#export DH_VERBOSE=1
%:
- dh $@ --with autotools_dev,autoreconf,systemd,quilt
+ dh $@
-override_dh_strip:
- dh_strip --dbg-package=lxcfs-dbg
+override_dh_auto_clean:
+ rm -fr build
-# Don't install PAM module for now, we don't need it.
-override_dh_install:
- rm $(CURDIR)/debian/lxcfs/lib/*/security/pam_cgfs.so
- find $(CURDIR)/debian/lxcfs/lib/ -type d -empty -delete
+override_dh_auto_configure:
+ mkdir -p build
+ cd build && meson .. --prefix=/usr \
+ -Dinit-script=systemd \
+ -Dfuse-version=3
override_dh_auto_install:
dh_auto_install --destdir=debian/lxcfs
-override_dh_installinit:
- dh_installinit -p lxcfs --no-restart-on-upgrade
-
-override_dh_systemd_start:
- dh_systemd_start -p lxcfs --no-restart-on-upgrade lxcfs.service
+override_dh_installsystemd:
+ install -dm755 $(CURDIR)/debian/lxcfs/lib
+ mv $(CURDIR)/debian/lxcfs/usr/lib/systemd \
+ $(CURDIR)/debian/lxcfs/lib/systemd
+ dh_installsystemd -p lxcfs --no-start --no-stop-on-upgrade lxcfs.service