2013-12-08 12:14:00 +00:00
|
|
|
# Build template for 'base-system-busybox'.
|
2012-09-17 13:50:27 +00:00
|
|
|
pkgname=base-system-busybox
|
2013-12-08 12:14:00 +00:00
|
|
|
version=1.21.1
|
2013-12-08 15:00:17 +00:00
|
|
|
revision=2
|
2012-01-29 19:27:49 +00:00
|
|
|
wrksrc="busybox-${version}"
|
|
|
|
homepage="http://www.busybox.net"
|
2013-12-08 12:14:00 +00:00
|
|
|
makedepends="perl"
|
|
|
|
short_desc="The Swiss Army Knife of Embedded Linux - base-system replacements"
|
2012-01-29 19:27:49 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
2013-04-12 06:55:23 +00:00
|
|
|
distfiles="${homepage}/downloads/busybox-$version.tar.bz2"
|
2013-12-08 12:14:00 +00:00
|
|
|
checksum=cd5be0912ec856110ae12c76c3ec9cd5cba1df45b5a9da2b095b8284d1481303
|
2012-01-29 19:27:49 +00:00
|
|
|
|
|
|
|
do_build() {
|
|
|
|
cp -f ${FILESDIR}/dotconfig .config
|
2013-12-08 15:00:17 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
sed -e "s,\(CONFIG_CROSS_COMPILER_PREFIX\).*,\1=\"${XBPS_CROSS_TRIPLET}-\",g" -i .config
|
|
|
|
fi
|
2012-01-29 19:27:49 +00:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2013-12-08 12:14:00 +00:00
|
|
|
# Install everything to /usr/bin.
|
2012-07-09 13:20:34 +00:00
|
|
|
vmkdir usr/bin
|
2013-12-08 12:14:00 +00: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 19:27:49 +00:00
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
base-system-busybox_package() {
|
2013-12-08 12:14:00 +00:00
|
|
|
# Applets provided by this busybox version.
|
|
|
|
# Keep this list updated with ${FILESDIR}/dotconfig.
|
|
|
|
#
|
|
|
|
# XXX bzip2 provides libbz2, split it into libbz2 pkg.
|
2013-12-08 12:18:01 +00:00
|
|
|
FEATURES="acpid coreutils cpio dash diffutils dosfstools findutils gawk
|
|
|
|
grep gzip hdparm ifenslave iproute2 iputils less lsof netcat nvi
|
2013-12-08 12:14:00 +00:00
|
|
|
patch powertop procps-ng psmisc rfkill run-parts sed tar
|
2013-12-08 15:00:17 +00:00
|
|
|
traceroute util-linux wget which whois xz"
|
2013-12-08 12:14:00 +00:00
|
|
|
for f in ${FEATURES}; do
|
|
|
|
provides+="${f}-${version}_${revision} "
|
|
|
|
replaces+="${f}>=0 "
|
|
|
|
done
|
2013-04-12 06:55:23 +00:00
|
|
|
pkg_install() {
|
2013-12-08 12:14:00 +00:00
|
|
|
vmove all
|
2013-04-12 06:55:23 +00:00
|
|
|
}
|
|
|
|
}
|