diff options
Diffstat (limited to 'repos/core/busybox/abuild')
| -rw-r--r-- | repos/core/busybox/abuild | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/repos/core/busybox/abuild b/repos/core/busybox/abuild new file mode 100644 index 00000000..4c777454 --- /dev/null +++ b/repos/core/busybox/abuild @@ -0,0 +1,85 @@ +name=busybox +version=1.36.1 +release=4 +source="https://${name}.net/downloads/${name}-${version}.tar.bz2 + busybox-suidwrapper.c + config + mdev.conf + fsck-resolve-uuid.patch + 0016-ping-make-ping-work-without-root-privileges.patch + install-fix-chown.patch + adduser-no-setgid.patch + lineedit-Handle-SIGWINCH-gracefully.patch + lsusb-vendor-product.patch + print-unicode.patch + modprobe-kernel-version.patch + 0007-nologin-Install-applet-to-sbin-instead-of-usr-sbin.patch + acpid.run + crond.run + ntpd.run + syslogd.run + tty1.run + tty2.run + tty3.run + tty4.run + tty5.run + ttyS0.run + pause.c + pause.1" +sv="acpid.run + crond.run + ntpd.run + syslogd.run + tty1.run + tty2.run + tty3.run + tty4.run + tty5.run + ttyS0.run" + +build() { + if [ "$BOOTSTRAP" ]; then + _opt="ARCH=$CARCH CROSS_COMPILE=$CTARGET-" + fi + + cp $SRC/config .config + #make menuconfig + make $_opt + make $_opt CONFIG_PREFIX=$PKG install + mkdir -p $PKG/usr/share/busybox + cat .config > $PKG/usr/share/busybox/config + + BIN="$BIN xzcat xz unxz unlzma lzcat lzma" #xz + #BIN="$BIN zcat gunzip gzip" #gzip + BIN="$BIN strings" #binutils + BIN="$BIN clear reset" #ncurses + BIN="$BIN patch" #patch + BIN="$BIN bzcat bunzip2 bzip2" #bzip2 + BIN="$BIN setfattr" #attr + BIN="$BIN chattr lsattr mke2fs findfs mkfs.ext2 blkid" #e2fsprogs + BIN="$BIN mkdosfs mkfs.vfat " #dosfstools + + # XXX + for i in $BIN; do + rm $PKG/*/$i || true + rm $PKG/*/*/$i || true + done + + ${CC:-cc} -o $PKG/bin/busybox-suidwrapper $SRC/busybox-suidwrapper.c + chmod u+s $PKG/bin/busybox-suidwrapper + + for i in $($PKG/bin/busybox-suidwrapper -l); do + [ -e /bin/$i ] && ln -svf busybox-suidwrapper $PKG/bin/$i + [ -e /usr/bin/$i ] && ln -svf ../../bin/busybox-suidwrapper $PKG/usr/bin/$i + done + + mkdir -p $PKG/etc + install -m644 $SRC/mdev.conf $PKG/etc/mdev.conf + + rm $PKG/usr/bin/diff + ln -s busybox $PKG/bin/diff + + ${CC:-gcc} ${CFLAGS} $SRC/pause.c -o $PKG/usr/bin/pause + install -d $PKG/usr/share/man/man1 + install -m644 $SRC/pause.1 $PKG/usr/share/man/man1/pause.1 +} |