2019-07-13 18:21:43 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://linuxcontainers.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Linux Containers"
|
|
|
|
TERMUX_PKG_LICENSE="LGPL-2.1"
|
2022-01-31 19:41:15 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-06-01 13:46:23 +02:00
|
|
|
# v3.1.0 is the last version confirmed to work.
|
|
|
|
# Do not update it unless you tested it on your device.
|
|
|
|
TERMUX_PKG_VERSION=1:3.1.0
|
2020-07-23 22:51:17 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2022-01-26 21:06:49 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://linuxcontainers.org/downloads/lxc/lxc-${TERMUX_PKG_VERSION:2}.tar.gz
|
2020-06-01 13:46:23 +02:00
|
|
|
TERMUX_PKG_SHA256=4d8772c25baeaea2c37a954902b88c05d1454c91c887cb6a0997258cfac3fdc5
|
2019-12-05 06:23:15 +01:00
|
|
|
TERMUX_PKG_DEPENDS="gnupg, libcap, libseccomp, rsync, wget"
|
2019-07-29 09:27:14 +02:00
|
|
|
TERMUX_PKG_BREAKS="lxc-dev"
|
|
|
|
TERMUX_PKG_REPLACES="lxc-dev"
|
2019-07-13 18:21:43 +02:00
|
|
|
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--with-distro=termux
|
|
|
|
--with-runtime-path=$TERMUX_PREFIX/var/run
|
2019-07-13 20:11:25 +02:00
|
|
|
--disable-apparmor
|
|
|
|
--disable-selinux
|
|
|
|
--enable-seccomp
|
|
|
|
--enable-capabilities
|
|
|
|
--disable-examples
|
2019-09-19 15:32:46 +02:00
|
|
|
--disable-werror
|
2019-07-13 18:21:43 +02:00
|
|
|
"
|
|
|
|
|
2019-07-13 20:11:25 +02:00
|
|
|
termux_step_post_make_install() {
|
|
|
|
# Simple helper script for mounting cgroups.
|
|
|
|
install -Dm755 "$TERMUX_PKG_BUILDER_DIR"/lxc-setup-cgroups.sh \
|
|
|
|
"$TERMUX_PREFIX"/bin/lxc-setup-cgroups
|
|
|
|
sed -i "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" "$TERMUX_PREFIX"/bin/lxc-setup-cgroups
|
|
|
|
}
|