2016-06-23 22:25:17 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://en.wikipedia.org/wiki/Util-linux
|
|
|
|
TERMUX_PKG_DESCRIPTION="Miscellaneous system utilities"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-11-30 09:02:49 +01:00
|
|
|
TERMUX_PKG_VERSION=2.37.2
|
2021-12-10 21:07:26 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2017-09-06 14:49:31 +02:00
|
|
|
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
|
2021-11-30 09:02:49 +01:00
|
|
|
TERMUX_PKG_SHA256=6a0764c1aae7fb607ef8a6dd2c0f6c47d5e5fd27aa08820abaad9ec14e28e9d9
|
2021-12-10 21:06:45 +01:00
|
|
|
TERMUX_PKG_DEPENDS="ncurses, libcap-ng, libcrypt, zlib"
|
2020-03-30 14:20:09 +02:00
|
|
|
TERMUX_PKG_ESSENTIAL=true
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="util-linux-dev"
|
|
|
|
TERMUX_PKG_REPLACES="util-linux-dev"
|
2017-02-01 23:45:58 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
ac_cv_func_setns=yes
|
|
|
|
ac_cv_func_unshare=yes
|
2021-12-10 21:06:45 +01:00
|
|
|
--enable-setpriv
|
2017-02-01 23:45:58 +01:00
|
|
|
--disable-agetty
|
2019-07-23 16:42:29 +02:00
|
|
|
--disable-ctrlaltdel
|
2017-02-01 23:45:58 +01:00
|
|
|
--disable-eject
|
2019-07-23 16:42:29 +02:00
|
|
|
--disable-fdformat
|
2017-02-01 23:45:58 +01:00
|
|
|
--disable-ipcrm
|
|
|
|
--disable-ipcs
|
|
|
|
--disable-kill
|
|
|
|
--disable-last
|
|
|
|
--disable-libuuid
|
|
|
|
--disable-logger
|
2019-07-23 16:42:29 +02:00
|
|
|
--disable-mesg
|
|
|
|
--disable-nologin
|
2017-02-01 23:45:58 +01:00
|
|
|
--disable-pivot_root
|
2019-07-23 16:42:29 +02:00
|
|
|
--disable-raw
|
2017-02-01 23:45:58 +01:00
|
|
|
--disable-switch_root
|
|
|
|
--disable-wall
|
2017-06-29 01:06:34 +02:00
|
|
|
--disable-libmount
|
2017-09-06 14:49:31 +02:00
|
|
|
--disable-lsmem
|
|
|
|
--disable-chmem
|
2018-05-19 03:18:52 +02:00
|
|
|
--disable-rfkill
|
2020-01-30 21:30:53 +01:00
|
|
|
--disable-hwclock-cmos
|
2017-02-01 23:45:58 +01:00
|
|
|
"
|
2016-06-23 22:25:17 +02:00
|
|
|
|
2017-02-01 23:45:58 +01:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
if [ $TERMUX_ARCH_BITS = 64 ]; then
|
2020-08-21 17:28:52 +02:00
|
|
|
#prlimit() is only available in 64-bit bionic.
|
2017-02-01 23:45:58 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_prlimit=yes"
|
|
|
|
fi
|
|
|
|
}
|