This macro is used by upstream to assist in creating packaging. It is
not useful to us, and produces an install time dependency on some dpkg
utils that can be avoided. See #900714, #902233.
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Per discussion with Fabian Gruenbichler, avoid pulling build artifacts
into the dkms source by extracting it ahead of dh_auto_build
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
*.deb contents and paths stay identical for all the built
packages, but setting bindir to /usr/bin should prevent
future mishaps with binaries that are supposed to end up in
/usr/bin (which is upstream's default for bindir)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Aron Xu <aron@debian.org>
If the user has set umask 077 instead of the standard 022,
dpkg-buildpackage fails with:
chmod -x debian/tmp/etc/zfs/zfs-functions
chmod: debian/tmp/etc/zfs/zfs-functions: new permissions are rw-r-xr-x, not rw-r--r--
debian/rules:64: recipe for target 'override_dh_auto_install' failed
Signed-off-by: Lukas Wunner <lukas@wunner.de>
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>
Add iscsitarget and istgt to the `Provides`, `Should-Start`,
and `Should-Stop` meta fields in the zfs-share init script.
Also widen the sysv sequence numbers for zfs-share to 25 15 on Ubuntu
to better accomodate any local init scripts that might be installed
near the iSCSI services.
For Ubuntu, change the /etc/init.d/zfs-share sysv sequence numbers
so that it unshares filesystems before the iSCSI target is stopped
during system shutdown.
This resolves the error:
* Removing iSCSI enterprise target modules: [fail]
FATAL: Module iscsi_trgt module is in use.
* Killing all remaining processes... [fail]
Closes: zfsonlinux/zfs#1271