diff --git a/packages/busybox/build.sh b/packages/busybox/build.sh index 579479dc0..67b0a8ff8 100644 --- a/packages/busybox/build.sh +++ b/packages/busybox/build.sh @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://busybox.net/ TERMUX_PKG_DESCRIPTION="Tiny versions of many common UNIX utilities into a single small executable" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=1.30.1 -TERMUX_PKG_REVISION=5 -TERMUX_PKG_SHA256=3d1d04a4dbd34048f4794815a5c48ebb9eb53c5277e09ffffc060323b95dfbdc +TERMUX_PKG_REVISION=6 TERMUX_PKG_SRCURL=https://busybox.net/downloads/busybox-${TERMUX_PKG_VERSION}.tar.bz2 +TERMUX_PKG_SHA256=3d1d04a4dbd34048f4794815a5c48ebb9eb53c5277e09ffffc060323b95dfbdc TERMUX_PKG_BUILD_IN_SRC=yes # We replace env in the old coreutils package: @@ -29,11 +29,27 @@ termux_step_post_make_install() { install busybox_unstripped $PREFIX/bin/busybox fi - # To assist for package upgrading after https://github.com/termux/termux-packages/issues/4070. + # Utilities diff, mv, rm, rmdir are necessary to assist with package upgrading + # after https://github.com/termux/termux-packages/issues/4070. + # + # Other utilities (like crond/crontab) are useful but not available + # as standalone package in Termux. + # + # Few notes: + # + # * runsv, runsvdir, sv - for things like in https://github.com/termux/termux-packages/issues/4070. + # * tcpsvd - required for ftpd applet. + # * vi - replaced by vim, but it still good to have basic text editor in bootstrap. + # rm -Rf $TERMUX_PREFIX/bin/applets mkdir -p $TERMUX_PREFIX/bin/applets cd $TERMUX_PREFIX/bin/applets - for f in diff mv rm rmdir; do ln -s ../busybox $f; done + for f in crond crontab diff ftpd ftpget ftpput hostname inotifyd \ + iostat lsof lsusb mpstat mv nmeter rm rmdir runsv runsvdir \ + sendmail start-stop-daemon sv svlogd tcpsvd uptime usleep vi; do + ln -s ../busybox $f + done + unset f # Install busybox man page mkdir -p $TERMUX_PREFIX/share/man/man1