void-packages/srcpkgs/rpi-base-files/template
2013-11-11 12:56:32 +01:00

32 lines
891 B
Text

# Template file for 'rpi-base-files'
pkgname=rpi-base-files
version=0.1
revision=1
short_desc="Void Linux base system files for the Raspberry Pi"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.voidlinux.eu"
license="Public domain"
# XXX only for rpi
only_for_archs="armv6l"
makedepends="ntp?ntp-daemon dhcpcd openssh-server"
do_install() {
# Load the audio module by default.
vmkdir usr/lib/modules-load.d
echo snd-bcm2835 > ${DESTDIR}/usr/lib/modules-load.d/snd_bcm2835.conf
# Fix permissions for the vchiq device.
vmkdir usr/lib/udev/rules.d
echo 'SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"' > \
${DESTDIR}/usr/lib/udev/rules.d/71-raspberrypi.rules
}
rpi-base-files_package() {
# enable dhcpcd and sshd by default.
systemd_services="dhcpcd.service on sshd.service on"
replaces="base-system<0.77"
depends="${makedepends}"
pkg_install() {
vmove all
}
}