5
0
mirror of git://git.proxmox.com/git/lxc.git synced 2025-03-16 10:50:38 +03:00

update to meson build system for lxc-5

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-06-22 11:26:07 +02:00
parent 01ed43133f
commit 92de5cbc25
3 changed files with 23 additions and 19 deletions

3
debian/control vendored
View File

@ -11,8 +11,9 @@ Build-Depends: bash-completion,
libapparmor-dev,
libcap-dev,
libgnutls28-dev,
linux-libc-dev,
libseccomp-dev (>= 2.4~),
linux-libc-dev,
meson (>= 0.61),
pkg-config,
quilt,
Standards-Version: 4.5.1

2
debian/docs vendored
View File

@ -1,2 +1,2 @@
README
README.md
debian/SOURCE

37
debian/rules vendored
View File

@ -8,31 +8,34 @@ DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
%:
dh $@ --with autoreconf,quilt
dh $@
override_dh_auto_clean:
rm -fr build
override_dh_auto_configure:
dh_auto_configure -- \
--with-distro=debian \
--with-init-script=systemd \
--enable-apparmor \
--enable-doc \
--enable-api-docs \
--disable-rpath \
--disable-selinux \
--enable-bash \
--disable-cgmanager \
--disable-python \
--disable-lua \
--disable-examples \
--enable-seccomp \
--disable-static \
--with-cgroup-pattern='lxc/%n' \
mkdir -p build
cd build && meson .. --prefix=/usr \
-Dinit-script=systemd \
-Dapparmor=true \
-Dseccomp=true \
-Dselinux=false \
-Dman=true \
-Dexamples=false \
-Dcgroup-pattern='lxc/%n'
# override_dh_auto_build:
# cd build && ninja -v
#
# override_dh_auto_test:
# cd build && ninja test
override_dh_fixperms:
dh_fixperms -Xusr/lib/$(DEB_HOST_MULTIARCH)/lxc/lxc-user-nic
override_dh_install:
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/liblxc_static.a
dh_apparmor -p lxc-pve --profile-name=usr.bin.lxc-start
dh_apparmor -p lxc-pve --profile-name=lxc-containers
dh_install