2021-05-21 09:20:03 +00:00
|
|
|
pkgver=1.33.1
|
2021-01-12 11:06:46 +00:00
|
|
|
pkgname=busybox
|
|
|
|
bad=gmake
|
2021-01-31 11:09:14 +00:00
|
|
|
deps="musl"
|
2021-01-12 11:06:46 +00:00
|
|
|
pkgrel=1
|
|
|
|
|
|
|
|
fetch() {
|
2021-05-21 09:20:03 +00:00
|
|
|
curl "https://busybox.net/downloads/busybox-$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.gz
|
2021-01-12 11:06:46 +00:00
|
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
2021-06-01 08:49:20 +00:00
|
|
|
# cp ../man.sh .
|
2021-01-12 11:06:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
gmake HOSTCC=cc CC=cc CFLAGS=-O0 defconfig
|
|
|
|
gmake HOSTCC=cc CC=cc CFLAGS=-O0
|
|
|
|
gmake HOSTCC=cc CC=cc CFLAGS=-O0 install
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
install -d $pkgdir
|
|
|
|
cp -r ./_install/* $pkgdir
|
2021-01-17 19:15:45 +00:00
|
|
|
chmod 4755 $pkgdir/bin/busybox
|
2021-01-31 11:09:14 +00:00
|
|
|
|
2021-02-03 15:24:44 +00:00
|
|
|
install -d $pkgdir/etc/profile.d
|
2021-06-01 08:49:20 +00:00
|
|
|
# install -Dm755 ../man.sh $pkgdir/etc/profile.d
|
2021-02-03 15:24:44 +00:00
|
|
|
|
2021-01-31 11:09:14 +00:00
|
|
|
install -Dm755 ./examples/udhcp/simple.script $pkgdir/usr/share/udhcpc/default.script
|
|
|
|
|
2021-01-17 19:15:45 +00:00
|
|
|
rm $pkgdir/linuxrc
|
2021-01-12 11:06:46 +00:00
|
|
|
rm $pkgdir/bin/ln
|
2021-01-17 19:15:45 +00:00
|
|
|
rm $pkgdir/bin/uname
|
2021-01-12 11:06:46 +00:00
|
|
|
rm $pkgdir/usr/bin/install
|
2021-01-17 19:15:45 +00:00
|
|
|
rm $pkgdir/usr/bin/lspci
|
2021-01-31 11:09:14 +00:00
|
|
|
rm $pkgdir/bin/cat
|
|
|
|
rm $pkgdir/bin/chattr
|
|
|
|
rm $pkgdir/bin/chgrp
|
|
|
|
rm $pkgdir/bin/chmod
|
|
|
|
rm $pkgdir/bin/chown
|
|
|
|
rm $pkgdir/bin/cp
|
|
|
|
rm $pkgdir/bin/cpio
|
|
|
|
rm $pkgdir/bin/date
|
|
|
|
rm $pkgdir/bin/dmesg
|
|
|
|
rm $pkgdir/bin/dnsdomainname
|
|
|
|
rm $pkgdir/bin/echo
|
|
|
|
rm $pkgdir/bin/egrep
|
|
|
|
rm $pkgdir/bin/false
|
|
|
|
rm $pkgdir/bin/fgrep
|
|
|
|
rm $pkgdir/bin/fsync
|
|
|
|
rm $pkgdir/bin/grep
|
|
|
|
rm $pkgdir/bin/hostname
|
|
|
|
rm $pkgdir/bin/kill
|
|
|
|
rm $pkgdir/bin/login
|
|
|
|
rm $pkgdir/bin/ls
|
|
|
|
rm $pkgdir/bin/lsattr
|
|
|
|
rm $pkgdir/bin/mkdir
|
|
|
|
rm $pkgdir/bin/mknod
|
|
|
|
rm $pkgdir/bin/mktemp
|
|
|
|
rm $pkgdir/bin/mount
|
|
|
|
rm $pkgdir/bin/mountpoint
|
|
|
|
rm $pkgdir/bin/mv
|
|
|
|
rm $pkgdir/bin/netstat
|
|
|
|
rm $pkgdir/bin/nice
|
|
|
|
rm $pkgdir/bin/pidof
|
|
|
|
rm $pkgdir/bin/printenv
|
|
|
|
rm $pkgdir/bin/ps
|
|
|
|
rm $pkgdir/bin/pwd
|
|
|
|
rm $pkgdir/bin/rm
|
|
|
|
rm $pkgdir/bin/rmdir
|
|
|
|
rm $pkgdir/bin/sed
|
|
|
|
rm $pkgdir/bin/sleep
|
|
|
|
rm $pkgdir/bin/stat
|
|
|
|
rm $pkgdir/bin/su
|
2021-02-03 13:03:52 +00:00
|
|
|
rm $pkgdir/bin/sh
|
2021-01-31 11:09:14 +00:00
|
|
|
rm $pkgdir/bin/sync
|
|
|
|
rm $pkgdir/bin/touch
|
|
|
|
rm $pkgdir/bin/true
|
|
|
|
rm $pkgdir/bin/umount
|
|
|
|
rm $pkgdir/bin/usleep
|
2021-05-20 21:09:29 +00:00
|
|
|
rm $pkgdir/bin/tar
|
2021-01-31 11:09:14 +00:00
|
|
|
|
|
|
|
rm $pkgdir/sbin/blockdev
|
|
|
|
rm $pkgdir/sbin/freeramdisk
|
|
|
|
rm $pkgdir/sbin/halt
|
|
|
|
rm $pkgdir/sbin/hwclock
|
|
|
|
rm $pkgdir/sbin/ifconfig
|
|
|
|
rm $pkgdir/sbin/insmod
|
|
|
|
rm $pkgdir/sbin/losetup
|
|
|
|
rm $pkgdir/sbin/lsmod
|
|
|
|
rm $pkgdir/sbin/mkswap
|
|
|
|
rm $pkgdir/sbin/modinfo
|
|
|
|
rm $pkgdir/sbin/pivot_root
|
|
|
|
rm $pkgdir/sbin/poweroff
|
|
|
|
rm $pkgdir/sbin/reboot
|
|
|
|
rm $pkgdir/sbin/rmmod
|
|
|
|
rm $pkgdir/sbin/swapoff
|
|
|
|
rm $pkgdir/sbin/swapon
|
|
|
|
rm $pkgdir/sbin/switch_root
|
|
|
|
rm $pkgdir/sbin/sysctl
|
|
|
|
rm $pkgdir/sbin/vconfig
|
|
|
|
|
|
|
|
rm $pkgdir/usr/bin/basename
|
|
|
|
rm $pkgdir/usr/bin/bunzip2
|
|
|
|
rm $pkgdir/usr/bin/bzcat
|
|
|
|
rm $pkgdir/usr/bin/cal
|
|
|
|
rm $pkgdir/usr/bin/chrt
|
|
|
|
rm $pkgdir/usr/bin/chvt
|
|
|
|
rm $pkgdir/usr/bin/clear
|
|
|
|
rm $pkgdir/usr/bin/cmp
|
|
|
|
rm $pkgdir/usr/bin/comm
|
|
|
|
rm $pkgdir/usr/bin/cut
|
|
|
|
rm $pkgdir/usr/bin/dirname
|
|
|
|
rm $pkgdir/usr/bin/du
|
|
|
|
rm $pkgdir/usr/bin/eject
|
|
|
|
rm $pkgdir/usr/bin/env
|
|
|
|
rm $pkgdir/usr/bin/expand
|
|
|
|
rm $pkgdir/usr/bin/factor
|
|
|
|
rm $pkgdir/usr/bin/fallocate
|
|
|
|
rm $pkgdir/usr/bin/find
|
|
|
|
rm $pkgdir/usr/bin/flock
|
|
|
|
rm $pkgdir/usr/bin/free
|
|
|
|
rm $pkgdir/usr/bin/ftpget
|
|
|
|
rm $pkgdir/usr/bin/ftpput
|
|
|
|
rm $pkgdir/usr/bin/groups
|
|
|
|
rm $pkgdir/usr/bin/head
|
|
|
|
rm $pkgdir/usr/bin/hexedit
|
|
|
|
rm $pkgdir/usr/bin/id
|
|
|
|
rm $pkgdir/usr/bin/killall
|
|
|
|
rm $pkgdir/usr/bin/less
|
|
|
|
rm $pkgdir/usr/bin/logger
|
|
|
|
rm $pkgdir/usr/bin/logname
|
|
|
|
rm $pkgdir/usr/bin/lsusb
|
|
|
|
rm $pkgdir/usr/bin/md5sum
|
|
|
|
rm $pkgdir/usr/bin/microcom
|
|
|
|
rm $pkgdir/usr/bin/mkfifo
|
|
|
|
rm $pkgdir/usr/bin/mkpasswd
|
|
|
|
rm $pkgdir/usr/bin/nc
|
|
|
|
rm $pkgdir/usr/bin/nl
|
|
|
|
rm $pkgdir/usr/bin/nohup
|
|
|
|
rm $pkgdir/usr/bin/nproc
|
|
|
|
rm $pkgdir/usr/bin/nsenter
|
|
|
|
rm $pkgdir/usr/bin/od
|
|
|
|
rm $pkgdir/usr/bin/passwd
|
|
|
|
rm $pkgdir/usr/bin/paste
|
|
|
|
rm $pkgdir/usr/bin/patch
|
|
|
|
rm $pkgdir/usr/bin/pgrep
|
|
|
|
rm $pkgdir/usr/bin/pkill
|
|
|
|
rm $pkgdir/usr/bin/pmap
|
|
|
|
rm $pkgdir/usr/bin/printf
|
|
|
|
rm $pkgdir/usr/bin/pwdx
|
|
|
|
rm $pkgdir/usr/bin/readlink
|
|
|
|
rm $pkgdir/usr/bin/realpath
|
|
|
|
rm $pkgdir/usr/bin/renice
|
|
|
|
rm $pkgdir/usr/bin/reset
|
|
|
|
rm $pkgdir/usr/bin/seq
|
|
|
|
rm $pkgdir/usr/bin/setfattr
|
|
|
|
rm $pkgdir/usr/bin/setsid
|
|
|
|
rm $pkgdir/usr/bin/sha1sum
|
|
|
|
rm $pkgdir/usr/bin/shred
|
|
|
|
rm $pkgdir/usr/bin/sort
|
|
|
|
rm $pkgdir/usr/bin/split
|
|
|
|
rm $pkgdir/usr/bin/strings
|
|
|
|
rm $pkgdir/usr/bin/tac
|
|
|
|
rm $pkgdir/usr/bin/tail
|
|
|
|
rm $pkgdir/usr/bin/taskset
|
|
|
|
rm $pkgdir/usr/bin/tee
|
|
|
|
rm $pkgdir/usr/bin/test
|
|
|
|
rm $pkgdir/usr/bin/time
|
|
|
|
rm $pkgdir/usr/bin/timeout
|
|
|
|
rm $pkgdir/usr/bin/top
|
|
|
|
rm $pkgdir/usr/bin/truncate
|
|
|
|
rm $pkgdir/usr/bin/tty
|
|
|
|
rm $pkgdir/usr/bin/uniq
|
|
|
|
rm $pkgdir/usr/bin/unlink
|
|
|
|
rm $pkgdir/usr/bin/unshare
|
|
|
|
rm $pkgdir/usr/bin/uptime
|
|
|
|
rm $pkgdir/usr/bin/uudecode
|
|
|
|
rm $pkgdir/usr/bin/uuencode
|
|
|
|
rm $pkgdir/usr/bin/w
|
|
|
|
rm $pkgdir/usr/bin/wc
|
|
|
|
rm $pkgdir/usr/bin/which
|
|
|
|
rm $pkgdir/usr/bin/who
|
|
|
|
rm $pkgdir/usr/bin/whoami
|
|
|
|
rm $pkgdir/usr/bin/xargs
|
|
|
|
rm $pkgdir/usr/bin/xxd
|
|
|
|
rm $pkgdir/usr/bin/yes
|
|
|
|
|
|
|
|
rm $pkgdir/usr/sbin/chroot
|
|
|
|
rm $pkgdir/usr/sbin/fsfreeze
|
2021-06-01 08:49:20 +00:00
|
|
|
|
|
|
|
rm $pkgdir/usr/bin/man
|
2021-01-12 11:06:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|