diff --git a/srcpkgs/rpi3-base/INSTALL b/srcpkgs/rpi3-base/INSTALL new file mode 100644 index 00000000000..805997ab294 --- /dev/null +++ b/srcpkgs/rpi3-base/INSTALL @@ -0,0 +1,9 @@ +case "$ACTION" in +post) + mkdir -p etc/runit/runsvdir/default/ + ln -sf /etc/sv/sshd etc/runit/runsvdir/default/ + ln -sf /etc/sv/ntpd etc/runit/runsvdir/default/ + ln -sf /etc/sv/dhcpcd etc/runit/runsvdir/default/ + ln -sf /etc/sv/agetty-ttyS0 etc/runit/runsvdir/default/ + ;; +esac diff --git a/srcpkgs/rpi3-base/files/20-rpi3 b/srcpkgs/rpi3-base/files/20-rpi3 new file mode 100644 index 00000000000..aaf322d1c99 --- /dev/null +++ b/srcpkgs/rpi3-base/files/20-rpi3 @@ -0,0 +1,6 @@ +#!/bin/sh -e +PKGNAME="$1" +VERSION="$2" + +echo "Setting RPi3 kernel to ${VERSION}." +cp /boot/vmlinux-${VERSION} /boot/vmlinux-rpi3 diff --git a/srcpkgs/rpi3-base/template b/srcpkgs/rpi3-base/template new file mode 100644 index 00000000000..fc6138de4d4 --- /dev/null +++ b/srcpkgs/rpi3-base/template @@ -0,0 +1,19 @@ +# Template file for 'rpi3-base' +pkgname=rpi3-base +version=0.1 +revision=1 +homepage="http://www.voidlinux.eu" +short_desc="Void Linux RaspberryPi3 (64 bit) base files" +maintainer="Leah Neukirchen " +license="Public Domain" + +only_for_archs="aarch64 aarch64-musl" +depends="virtual?ntp-daemon rpi3-firmware linux" + +do_install() { + # 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 + vinstall ${FILESDIR}/20-rpi3 0755 etc/kernel.d/post-install +}