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