2013-12-08 13:14:00 +01:00
|
|
|
# Build template for 'base-system-busybox'.
|
2012-09-17 15:50:27 +02:00
|
|
|
pkgname=base-system-busybox
|
2014-02-10 11:57:53 +01:00
|
|
|
version=1.22.1
|
2014-03-17 11:21:57 +01:00
|
|
|
revision=3
|
2012-01-29 20:27:49 +01:00
|
|
|
wrksrc="busybox-${version}"
|
|
|
|
homepage="http://www.busybox.net"
|
2014-02-10 11:57:53 +01:00
|
|
|
hostmakedepends="perl"
|
2013-12-08 13:14:00 +01:00
|
|
|
short_desc="The Swiss Army Knife of Embedded Linux - base-system replacements"
|
2012-01-29 20:27:49 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
2013-04-12 08:55:23 +02:00
|
|
|
distfiles="${homepage}/downloads/busybox-$version.tar.bz2"
|
2014-02-10 11:57:53 +01:00
|
|
|
checksum=ae0b029d0a9e4dd71a077a790840e496dd838998e4571b87b60fed7462b6678b
|
2012-01-29 20:27:49 +01:00
|
|
|
|
2014-01-01 16:10:11 +01:00
|
|
|
# Applets provided by this busybox version.
|
|
|
|
# Keep this list updated with ${FILESDIR}/dotconfig.
|
|
|
|
#
|
|
|
|
# XXX bzip2 provides libbz2, split it into libbz2 pkg.
|
|
|
|
_FEATURES="acpid coreutils cpio dash diffutils dosfstools findutils gawk
|
|
|
|
grep gzip hdparm ifenslave iproute2 iputils less lsof netcat nvi
|
|
|
|
patch powertop procps-ng psmisc rfkill run-parts sed tar
|
|
|
|
traceroute util-linux wget which whois xz"
|
|
|
|
for f in ${_FEATURES}; do
|
|
|
|
provides+="${f}-${version}_${revision} "
|
|
|
|
replaces+="${f}>=0 "
|
|
|
|
done
|
|
|
|
|
2014-02-10 11:57:53 +01:00
|
|
|
pre_build() {
|
2012-01-29 20:27:49 +01:00
|
|
|
cp -f ${FILESDIR}/dotconfig .config
|
2013-12-08 16:00:17 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
sed -e "s,\(CONFIG_CROSS_COMPILER_PREFIX\).*,\1=\"${XBPS_CROSS_TRIPLET}-\",g" -i .config
|
|
|
|
fi
|
2014-02-10 11:57:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2012-01-29 20:27:49 +01:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2013-12-08 13:14:00 +01:00
|
|
|
# Install everything to /usr/bin.
|
2012-07-09 15:20:34 +02:00
|
|
|
vmkdir usr/bin
|
2013-12-08 13:14:00 +01:00
|
|
|
for f in bin sbin usr/sbin; do
|
|
|
|
ln -sfr ${DESTDIR}/usr/bin ${DESTDIR}/${f}
|
|
|
|
done
|
|
|
|
make CONFIG_PREFIX=${DESTDIR} install
|
|
|
|
vinstall ${FILESDIR}/udhcpc-default.script \
|
|
|
|
755 usr/share/udhcpc default.script
|
|
|
|
rm -f ${DESTDIR}/{bin,sbin,usr/sbin}
|
2012-01-29 20:27:49 +01:00
|
|
|
}
|