debianutils: remove add-shell & remove-shell utilities

Termux doesn't control allowed shells through $PREFIX/etc/shells, so
these utilities are useless.
This commit is contained in:
Leonid Pliushch 2020-06-07 01:15:22 +03:00
parent af47bbf3a4
commit 789a42170c
4 changed files with 10 additions and 26 deletions

View File

@ -53,7 +53,6 @@ termux_step_post_make_install() {
#
# * runsv, runsvdir, sv - for things like in https://github.com/termux/termux-packages/pull/3460.
# * tcpsvd - required for ftpd applet.
# * which - replaced by debianutils, but still good to have in bootstrap.
#
rm -Rf $TERMUX_PREFIX/bin/applets
mkdir -p $TERMUX_PREFIX/bin/applets

View File

@ -1,12 +0,0 @@
diff -u -r ../debianutils-4.4/add-shell ./add-shell
--- ../debianutils-4.4/add-shell 2013-07-28 03:30:26.000000000 +0200
+++ ./add-shell 2014-05-30 16:07:00.000000000 +0200
@@ -6,7 +6,7 @@
exit 1
fi
-file=/etc/shells
+file=@TERMUX_PREFIX@/etc/shells
# I want this to be GUARANTEED to be on the same filesystem as $file
tmpfile=${file}.tmp

View File

@ -2,6 +2,15 @@ TERMUX_PKG_HOMEPAGE=https://packages.debian.org/debianutils
TERMUX_PKG_DESCRIPTION="Small utilities which are used primarily by the installation scripts of Debian packages"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=4.11
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=http://ftp.debian.org/debian/pool/main/d/debianutils/debianutils_${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=bb5ce6290696b0d623377521ed217f484aa98f7346c5f7c48f9ae3e1acfb7151
TERMUX_PKG_RM_AFTER_INSTALL="bin/installkernel share/man/man8/installkernel.8"
TERMUX_PKG_RM_AFTER_INSTALL="
bin/add-shell
bin/installkernel
bin/remove-shell
share/man/man8/add-shell.8
share/man/man8/installkernel.8
share/man/man8/remove-shell.8
"

View File

@ -1,12 +0,0 @@
diff -u -r ../debianutils-4.4/remove-shell ./remove-shell
--- ../debianutils-4.4/remove-shell 2013-07-28 03:30:26.000000000 +0200
+++ ./remove-shell 2014-05-30 16:38:24.000000000 +0200
@@ -6,7 +6,7 @@
exit 1
fi
-file=/etc/shells
+file=@TERMUX_PREFIX@/etc/shells
# I want this to be GUARANTEED to be on the same filesystem as $file
tmpfile=${file}.tmp
otmpfile=${file}.tmp2