2017-11-26 21:24:45 +01:00
|
|
|
|
# Tanım: UNIX araçlarının hafif hallerinin tek ikilide yer alması
|
|
|
|
|
# URL: http://busybox.net/
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2017-12-22 23:19:06 +01:00
|
|
|
|
# Grup: sistem
|
2017-11-26 21:24:45 +01:00
|
|
|
|
|
|
|
|
|
isim=busybox
|
|
|
|
|
surum=1.27.2
|
2018-02-02 10:34:57 +01:00
|
|
|
|
devir=2
|
|
|
|
|
kaynak=(http://busybox.net/downloads/$isim-$surum.tar.bz2
|
|
|
|
|
busybox-1.27.0_lzip-0.patch)
|
2017-11-26 21:24:45 +01:00
|
|
|
|
|
|
|
|
|
derle() {
|
|
|
|
|
cd $isim-$surum
|
|
|
|
|
# https://bugs.gentoo.org/show_bug.cgi?id=310413
|
|
|
|
|
export CFLAGS+=' -fno-strict-aliasing'
|
|
|
|
|
[ "$CC" ] || CC=gcc
|
2018-02-02 10:34:57 +01:00
|
|
|
|
patch -Np1 -i "${SRC}/busybox-1.27.0_lzip-0.patch"
|
2017-11-26 21:24:45 +01:00
|
|
|
|
#for i in $SRC/*.patch; do
|
|
|
|
|
# patch -p1 -i $i
|
|
|
|
|
#done
|
|
|
|
|
make defconfig
|
|
|
|
|
make CC="$CC"
|
|
|
|
|
install -m 0755 -D busybox $PKG/sbin/busybox
|
|
|
|
|
make clean
|
|
|
|
|
export LDFLAGS+=' -static'
|
|
|
|
|
make defconfig
|
|
|
|
|
make CC="$CC"
|
|
|
|
|
install -m 0755 -D busybox $PKG/sbin/busybox.static
|
|
|
|
|
}
|