]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - debian/rules
d/rules: add --enable-systemd
[mirror_zfs-debian.git] / debian / rules
index bcc8251746fe32a148d952c536d112904f4e5c6a..5c577ca1658b743ca03ad96416c7eddb698d64bb 100755 (executable)
@@ -34,7 +34,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
        dh $@ --with autoreconf,dkms,python3,systemd --parallel
 
 override_dh_auto_configure:
-       @cp debian/control.in debian/control
+       sed "s/@LINUX_COMPAT@/linux-libc-dev \(< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
 ifeq ($(BUILD_UDEB), true)
        cat debian/control.udeb.in >> debian/control
 endif
@@ -48,6 +48,7 @@ endif
          --sbindir=/sbin \
          --libdir=/lib \
          --with-udevdir=/lib/udev \
+         --enable-systemd \
          --with-systemdunitdir=/lib/systemd/system \
          --with-systemdpresetdir=/lib/systemd/system-preset \
          --with-config=user
@@ -80,7 +81,8 @@ override_dh_auto_install:
 
        @# Install the DKMS source.
        @# We only want the files needed to build the modules
-       mkdir -p '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)'
+       mkdir -p '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)/scripts'
+       cp '$(CURDIR)/scripts/enum-extract.pl' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)/scripts'
        $(foreach file,$(DKMSFILES),mv '$(CURDIR)/$(NAME)-$(DEB_VERSION_UPSTREAM)/$(file)' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)' || exit 1;)
        @# Hellish awk line:
        @#  * Deletes from configure.ac the parts not needed for building the kernel module
@@ -116,13 +118,13 @@ override_dh_dkms:
        dh_dkms -V $(DEB_VERSION_UPSTREAM)
 
 override_dh_makeshlibs:
-       dh_makeshlibs -a
+       dh_makeshlibs -a -V
 ifeq ($(BUILD_UDEB), true)
-       dh_makeshlibs -plibnvpair1linux --add-udeb=libnvpair1-udeb
-       dh_makeshlibs -plibuutil1linux --add-udeb=libuutil1-udeb
-       dh_makeshlibs -plibzfs2linux --add-udeb=libzfs2-udeb
-       dh_makeshlibs -plibzpool2linux --add-udeb=libzpool2-udeb
-       dh_makeshlibs -pzfsutils-linux --add-udeb=zfsutils-udeb
+       dh_makeshlibs -V -plibnvpair1linux --add-udeb=libnvpair1-udeb
+       dh_makeshlibs -V -plibuutil1linux --add-udeb=libuutil1-udeb
+       dh_makeshlibs -V -plibzfs2linux --add-udeb=libzfs2-udeb
+       dh_makeshlibs -V -plibzpool2linux --add-udeb=libzpool2-udeb
+       dh_makeshlibs -V -pzfsutils-linux --add-udeb=zfsutils-udeb
 endif
 
 override_dh_strip:
@@ -141,7 +143,7 @@ override_dh_auto_clean:
        dh_auto_clean
        debconf-updatepo
        @if test -e META.orig; then mv META.orig META; fi
-       cp debian/control.in debian/control
+       sed "s/@LINUX_COMPAT@/linux-libc-dev \(< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
 ifeq ($(BUILD_UDEB), true)
        cat debian/control.udeb.in >> debian/control
 endif