]> git.proxmox.com Git - lxcfs.git/blobdiff - debian/rules
bump version to 5.0.3-pve4
[lxcfs.git] / debian / rules
index e8fef3a848e4bcf4d9c89a7ba8d5fc1cf08b2927..5b5bf7bf7d3e2a1dcb3136228ec94f2421023420 100755 (executable)
@@ -4,21 +4,22 @@
 #export DH_VERBOSE=1
 
 %:
-       dh $@  --with autoreconf,quilt
+       dh $@
 
-override_dh_install:
-       find $(CURDIR)/debian/lxcfs/lib/ -type d -empty -delete
-       sed -i "/dependency_libs/ s/'.*'/''/" \
-           "$(CURDIR)/debian/lxcfs/usr/lib/x86_64-linux-gnu/lxcfs/liblxcfs.la"
+override_dh_auto_clean:
+       rm -fr build
 
 override_dh_auto_configure:
-       dh_auto_configure -- --with-init-script=systemd
+       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_installsystemd:
-       # just fuck off
-
-override_dh_systemd_start:
-       dh_systemd_start -p lxcfs --no-stop-on-upgrade lxcfs.service
+       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