base-system: make this available for Raspberry Pi and add f2fs-tools/openssh-server deps.

This now replaces base-system-rpi.
This commit is contained in:
Juan RP 2013-11-11 09:12:22 +01:00
parent ecf333b51a
commit 4ef3620f2f

View file

@ -1,29 +1,51 @@
# Template file for 'base-system' # Template file for 'base-system'
pkgname=base-system pkgname=base-system
version=0.75 version=0.76
revision=1 revision=1
build_style=meta build_style=meta
homepage="https://www.voidlinux.eu/" homepage="http://www.voidlinux.eu/"
short_desc="Void Linux base system meta package" short_desc="Void Linux base system meta package"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="Public domain" license="Public domain"
# XXX merge this with base-system-rpi
only_for_archs="i686 x86_64"
makedepends=" makedepends="
base-files>=0.77 ncurses coreutils findutils gcc glibc diffutils dash bash base-files>=0.77 ncurses coreutils findutils gcc glibc diffutils dash bash
grep gzip texinfo file sed gawk less util-linux which tar man-pages man-db grep gzip texinfo file sed gawk less util-linux which tar man-pages man-db
shadow e2fsprogs btrfs-progs xfsprogs kbd psmisc procps-ng sudo tzdata pciutils shadow e2fsprogs btrfs-progs xfsprogs f2fs-tools dosfstools kbd psmisc procps-ng
iana-etc systemd dcron?cron-daemon openssh>=6.1p1 dhcpcd iproute2 iputils tzdata pciutils iana-etc systemd dcron?cron-daemon openssh-server dhcpcd
bridge-utils ifenslave iw wpa_supplicant xbps netbsd-wtf nvi dosfstools iproute2 iputils bridge-utils ifenslave iw wpa_supplicant xbps netbsd-wtf
wifi-firmware linux void-artwork nss-mdns traceroute ethtool parted" nvi sudo wifi-firmware linux void-artwork nss-mdns traceroute ethtool parted"
if [ "$XBPS_TARGET_ARCH" = "armv6l" ]; then
# Raspberry Pi
makedepends+=" ntp?ntp-daemon rpi-firmware"
fi
do_install() {
if [ "$XBPS_TARGET_ARCH" = "armv6l" ]; then
# Raspberry Pi:
# - 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
else
vmkdir usr
fi
}
base-system_package() { base-system_package() {
replaces="base-system-rpi>=0"
systemd_services="sshd.service off"
# gcc and glibc shouldn't be direct dependencies. # gcc and glibc shouldn't be direct dependencies.
for f in ${makedepends}; do for f in ${makedepends}; do
if [ "$f" != "gcc" -a "$f" != "glibc" ]; then if [ "$f" != "gcc" -a "$f" != "glibc" ]; then
depends+=" $f" depends+=" $f"
fi fi
done done
pkg_install() {
vmove all
}
} }