New package: rpi3-base-0.1

This commit is contained in:
Leah Neukirchen 2017-01-14 18:36:23 +01:00
parent 1c7f6a8120
commit db0fe6eb1c
3 changed files with 34 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,6 @@
#!/bin/sh -e
PKGNAME="$1"
VERSION="$2"
echo "Setting RPi3 kernel to ${VERSION}."
cp /boot/vmlinux-${VERSION} /boot/vmlinux-rpi3

View File

@ -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 <leah@vuxu.org>"
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
}