diff --git a/debian/control b/debian/control index 4a2ba5b..f192fdc 100644 --- a/debian/control +++ b/debian/control @@ -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 diff --git a/debian/docs b/debian/docs index 310840d..4855afe 100644 --- a/debian/docs +++ b/debian/docs @@ -1,2 +1,2 @@ -README +README.md debian/SOURCE diff --git a/debian/rules b/debian/rules index 5c58a37..8eab6ad 100755 --- a/debian/rules +++ b/debian/rules @@ -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