mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-11 23:00:52 +00:00
7711d6e8f2
kf6-kio depends on libmount which can syscall statx that is blocked on old Android
68 lines
2.1 KiB
Bash
68 lines
2.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://en.wikipedia.org/wiki/Util-linux
|
|
TERMUX_PKG_DESCRIPTION="Miscellaneous system utilities"
|
|
TERMUX_PKG_LICENSE="GPL-3.0, GPL-2.0, LGPL-2.1, BSD 3-Clause, BSD, ISC"
|
|
TERMUX_PKG_LICENSE_FILE="\
|
|
Documentation/licenses/COPYING.GPL-3.0-or-later
|
|
Documentation/licenses/COPYING.GPL-2.0-or-later
|
|
Documentation/licenses/COPYING.LGPL-2.1-or-later
|
|
Documentation/licenses/COPYING.BSD-3-Clause
|
|
Documentation/licenses/COPYING.BSD-4-Clause-UC
|
|
Documentation/licenses/COPYING.ISC"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="2.40.2"
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SRCURL=https://www.kernel.org/pub/linux/utils/util-linux/v${TERMUX_PKG_VERSION:0:4}/util-linux-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=d78b37a66f5922d70edf3bdfb01a6b33d34ed3c3cafd6628203b2a2b67c8e8b3
|
|
# libcrypt is required for only newgrp and sulogin, which are not built anyways
|
|
TERMUX_PKG_DEPENDS="libcap-ng, libsmartcols, ncurses, zlib, libandroid-glob"
|
|
TERMUX_PKG_ESSENTIAL=true
|
|
TERMUX_PKG_BREAKS="util-linux-dev"
|
|
TERMUX_PKG_REPLACES="util-linux-dev"
|
|
# Most android kernels are built without namespace support, so remove lsns
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
|
bin/lsns
|
|
share/bash-completion/completions/lsns
|
|
share/man/man8/lsns.8.gz
|
|
"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
ac_cv_func_setns=yes
|
|
ac_cv_func_statx=no
|
|
ac_cv_func_unshare=yes
|
|
ac_cv_func_uselocale=no
|
|
ac_cv_type_struct_statx=no
|
|
--enable-setpriv
|
|
--disable-agetty
|
|
--disable-ctrlaltdel
|
|
--disable-eject
|
|
--disable-fdformat
|
|
--disable-ipcmk
|
|
--disable-ipcrm
|
|
--disable-ipcs
|
|
--disable-kill
|
|
--disable-last
|
|
--disable-liblastlog2
|
|
--disable-logger
|
|
--disable-mesg
|
|
--disable-makeinstall-chown
|
|
--disable-mountpoint
|
|
--disable-nologin
|
|
--disable-pivot_root
|
|
--disable-poman
|
|
--disable-raw
|
|
--disable-switch_root
|
|
--disable-wall
|
|
--disable-lsmem
|
|
--disable-chmem
|
|
--disable-rfkill
|
|
--disable-hwclock-cmos
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
if [ $TERMUX_ARCH_BITS = 64 ]; then
|
|
#prlimit() is only available in 64-bit bionic.
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_prlimit=yes"
|
|
elif [ $TERMUX_ARCH_BITS = 32 ]; then
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-year2038"
|
|
fi
|
|
}
|