termux-packages/packages/util-linux/build.sh

55 lines
1.6 KiB
Bash
Raw Normal View History

2016-06-23 22:25:17 +02:00
TERMUX_PKG_HOMEPAGE=https://en.wikipedia.org/wiki/Util-linux
TERMUX_PKG_DESCRIPTION="Miscellaneous system utilities"
2022-02-23 20:33:09 +01:00
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"
2022-04-02 06:01:39 +02:00
TERMUX_PKG_VERSION=2.38
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
2022-04-02 06:01:39 +02:00
TERMUX_PKG_SHA256=6d111cbe4d55b336db2f1fbeffbc65b89908704c01136371d32aa9bec373eb64
2022-02-23 20:33:09 +01:00
# libcrypt is required for only newgrp and sulogin, which are not built anyways
TERMUX_PKG_DEPENDS="ncurses, libcap-ng, zlib"
TERMUX_PKG_ESSENTIAL=true
TERMUX_PKG_BREAKS="util-linux-dev"
TERMUX_PKG_REPLACES="util-linux-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ac_cv_func_setns=yes
ac_cv_func_unshare=yes
2022-04-02 06:01:39 +02:00
ac_cv_func_uselocale=no
2021-12-10 21:06:45 +01:00
--enable-setpriv
--disable-agetty
2019-07-23 16:42:29 +02:00
--disable-ctrlaltdel
--disable-eject
2019-07-23 16:42:29 +02:00
--disable-fdformat
2022-04-02 06:01:39 +02:00
--disable-ipcmk
--disable-ipcrm
--disable-ipcs
--disable-kill
--disable-last
--disable-libuuid
--disable-logger
2019-07-23 16:42:29 +02:00
--disable-mesg
--disable-nologin
--disable-pivot_root
2019-07-23 16:42:29 +02:00
--disable-raw
--disable-switch_root
--disable-wall
--disable-libmount
--disable-lsmem
--disable-chmem
2018-05-19 03:18:52 +02:00
--disable-rfkill
--disable-hwclock-cmos
"
2016-06-23 22:25:17 +02:00
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"
fi
}