diff options
Diffstat (limited to 'repo/lxc/lxc.xibuild')
-rw-r--r-- | repo/lxc/lxc.xibuild | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/repo/lxc/lxc.xibuild b/repo/lxc/lxc.xibuild index d931c7c..c5595a4 100644 --- a/repo/lxc/lxc.xibuild +++ b/repo/lxc/lxc.xibuild @@ -3,7 +3,7 @@ NAME="lxc" DESC="Userspace interface for the Linux kernel containment features" -MAKEDEPS="libcap libseccomp pam linux-headers musl-legacy-compat docbook2x automake autoconf libtool perl-xml-namespacesupport" +MAKEDEPS="libcap libseccomp pam linux-headers musl-legacy-compat docbook2x automake autoconf libtool perl-xml-namespacesupport perl-xml-sax perl-xml-sax-base libcap" PKG_VER=5.0.1 SOURCE="https://linuxcontainers.org/downloads/lxc/lxc-$PKG_VER.tar.gz" @@ -11,27 +11,32 @@ SOURCE="https://linuxcontainers.org/downloads/lxc/lxc-$PKG_VER.tar.gz" ADDITIONAL=" lxc.confd lxc.initd +sysconfdir.patch " -build() { - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --disable-apparmor \ - --enable-pam \ - --with-distro=xi \ - --disable-werror \ - --enable-doc - make +prepare () { + apply_patches + for line in 319 942; do + sed -i "${line}s/check: true/check: false/g" meson.build + done + sed -i "140d" src/lxc/process_utils.h } -check() { - make check +build() { + mkdir build && + cd build && + meson --prefix=/usr \ + -Db_lto=false \ + -Dpam-cgroup=true \ + -Dtests=true \ + -Dinit-script="[]" \ + -Dcapabilities=false \ + .. && + ninja } package() { - make DESTDIR="$PKG_DEST" install + DESTDIR=$PKG_DEST ninja install install -Dm755 "$BUILD_ROOT"/lxc.initd "$PKG_DEST"/etc/init.d/lxc install -Dm644 "$BUILD_ROOT"/lxc.confd "$PKG_DEST"/etc/conf.d/lxc |