]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
Fix installation path of systemd files
authorLukas Wunner <lukas@wunner.de>
Fri, 27 Jan 2017 18:37:31 +0000 (02:37 +0800)
committerAron Xu <aron@debian.org>
Fri, 27 Jan 2017 18:43:11 +0000 (02:43 +0800)
The patch makes use of the --with-systemdunitdir configure parameter
which we do not set and which incorrectly defaults to
/usr/lib/systemd/system/.  (Debian uses /lib/systemd/system/.)  Amend
debian/rules to set that parameter. This obviates the need to specify
the /lib/systemd/system/ path in debian/zfs-zed.install and
debian/zfsutils-linux.install, so fix those up while at it.

Signed-off-by: Aron Xu <aron@debian.org>
debian/rules
debian/zfs-zed.install
debian/zfsutils-linux.install

index 15e05927733369be4f4c8356a94fcea23789686d..6dfb8c12efc67948f34f507cb18cbb5a8ee9a0b3 100755 (executable)
@@ -52,6 +52,8 @@ endif
          --sbindir=/sbin \
          --libdir=/lib \
          --with-udevdir=/lib/udev \
+         --with-systemdunitdir=/lib/systemd/system \
+         --with-systemdpresetdir=/lib/systemd/system-preset \
          --with-config=user
 
 override_dh_auto_test:
index a84fff75a1bc4c459da0ea4588957a0d951ad4c0..bc711e6071f39f075cd5910df9fa098081f7a1df 100644 (file)
@@ -1,5 +1,5 @@
 usr/sbin/zed
 etc/zfs/zed.d/*
 usr/lib/*/zfs/zed.d/*
-usr/lib/systemd/system/zfs-zed.service lib/systemd/system/
+lib/systemd/system/zfs-zed.service
 usr/share/man/man8/zed.8
index 4407aa518560917cbdcc9c16623f4a822724d11a..947ffd91cd88b139e79f3357a0b79b2062094df9 100644 (file)
@@ -1,10 +1,10 @@
 ../tree/zfsutils-linux/* /
-usr/lib/systemd/system/zfs-mount.service lib/systemd/system/
-usr/lib/systemd/system/zfs-share.service lib/systemd/system/
-usr/lib/systemd/system/zfs-import-scan.service lib/systemd/system/
-usr/lib/systemd/system/zfs-import-cache.service lib/systemd/system/
-usr/lib/systemd/system/zfs.target lib/systemd/system/
-usr/lib/systemd/system-preset/ lib/systemd/
+lib/systemd/system/zfs-mount.service
+lib/systemd/system/zfs-share.service
+lib/systemd/system/zfs-import-scan.service
+lib/systemd/system/zfs-import-cache.service
+lib/systemd/system/zfs.target
+lib/systemd/system-preset/
 usr/lib/modules-load.d/ lib/
 lib/udev/
 etc/default/zfs