diff --git a/srcpkgs/rpi-base-files/template b/srcpkgs/rpi-base-files/template new file mode 100644 index 00000000000..80fca6d6c3f --- /dev/null +++ b/srcpkgs/rpi-base-files/template @@ -0,0 +1,32 @@ +# 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 " +homepage="http://www.voidlinux.eu" +license="Public domain" + +# XXX only for rpi +only_for_archs="armv6l" +makedepends="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 +} + +base-files-rpi_package() { + # enable dhcpcd and sshd by default. + systemd_services="dhcpcd.service on sshd.service on" + replaces="base-system<0.77" + depends="dhcpcd openssh-server" + pkg_install() { + vmove all + } +}