base-system-busybox: also provides whois; cross compile support.

This commit is contained in:
Juan RP 2013-12-08 16:00:17 +01:00
parent 86563184b2
commit 91751d4a18

View file

@ -1,7 +1,7 @@
# Build template for 'base-system-busybox'. # Build template for 'base-system-busybox'.
pkgname=base-system-busybox pkgname=base-system-busybox
version=1.21.1 version=1.21.1
revision=1 revision=2
wrksrc="busybox-${version}" wrksrc="busybox-${version}"
homepage="http://www.busybox.net" homepage="http://www.busybox.net"
makedepends="perl" makedepends="perl"
@ -13,6 +13,9 @@ checksum=cd5be0912ec856110ae12c76c3ec9cd5cba1df45b5a9da2b095b8284d1481303
do_build() { do_build() {
cp -f ${FILESDIR}/dotconfig .config cp -f ${FILESDIR}/dotconfig .config
if [ "$CROSS_BUILD" ]; then
sed -e "s,\(CONFIG_CROSS_COMPILER_PREFIX\).*,\1=\"${XBPS_CROSS_TRIPLET}-\",g" -i .config
fi
make ${makejobs} make ${makejobs}
} }
@ -36,7 +39,7 @@ base-system-busybox_package() {
FEATURES="acpid coreutils cpio dash diffutils dosfstools findutils gawk FEATURES="acpid coreutils cpio dash diffutils dosfstools findutils gawk
grep gzip hdparm ifenslave iproute2 iputils less lsof netcat nvi grep gzip hdparm ifenslave iproute2 iputils less lsof netcat nvi
patch powertop procps-ng psmisc rfkill run-parts sed tar patch powertop procps-ng psmisc rfkill run-parts sed tar
traceroute util-linux wget which xz" traceroute util-linux wget which whois xz"
for f in ${FEATURES}; do for f in ${FEATURES}; do
provides+="${f}-${version}_${revision} " provides+="${f}-${version}_${revision} "
replaces+="${f}>=0 " replaces+="${f}>=0 "