Merge pull request #1577 from pullmoll/cubietruck-base
New package: cubietruck-base
This commit is contained in:
commit
98ccc82047
|
@ -0,0 +1,13 @@
|
||||||
|
case "$ACTION" in
|
||||||
|
post)
|
||||||
|
# enable sshd, ntpdate, ntpd and dhcpcd services.
|
||||||
|
if [ -x /usr/bin/systemctl ]; then
|
||||||
|
systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service
|
||||||
|
else
|
||||||
|
mkdir -p etc/runit/runsvdir/default/
|
||||||
|
ln -s /etc/sv/sshd etc/runit/runsvdir/default/
|
||||||
|
ln -s /etc/sv/ntpd etc/runit/runsvdir/default/
|
||||||
|
ln -s /etc/sv/dhcpcd etc/runit/runsvdir/default/
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -0,0 +1,21 @@
|
||||||
|
# Template file for 'cubietruck-base'
|
||||||
|
pkgname=cubietruck-base
|
||||||
|
version=2.3
|
||||||
|
revision=1
|
||||||
|
build_style=meta
|
||||||
|
homepage="http://www.voidlinux.eu"
|
||||||
|
short_desc="Void Linux Cubietruck (Cubieboard 3) platform package"
|
||||||
|
maintainer="Jürgen Buchmüller <pullmoll@t-online>"
|
||||||
|
license="Public Domain"
|
||||||
|
|
||||||
|
only_for_archs="armv7l"
|
||||||
|
depends="virtual?ntp-daemon cubietruck-uboot sun7i-kernel linux-firmware-network"
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
# Load the sunxi-emac module by default.
|
||||||
|
vmkdir usr/lib/modules-load.d
|
||||||
|
echo sunxi-emac > ${DESTDIR}/usr/lib/modules-load.d/cubietruck.conf
|
||||||
|
# Set proper perms to some devices.
|
||||||
|
vmkdir usr/lib/udev/rules.d
|
||||||
|
echo 'KERNEL=="disp|cedar_dev|mali|ump", MODE="0660", GROUP="video"' > ${DESTDIR}/usr/lib/udev/rules.d/50-cubietruck.rules
|
||||||
|
}
|
Loading…
Reference in New Issue