Commit Graph

93 Commits

Author SHA1 Message Date
Mo Zhou
f1ee2cb4d0 remove whitespace 2018-10-26 13:27:00 +00:00
Mo Zhou
1c34348313 Fix FTBFS on architecture=all . (Closes: #911937) 2018-10-26 12:47:16 +00:00
Antonio Russo
effbedcda6 Use dkms.mkconf to produce dkms.conf
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
2018-10-26 12:38:44 +00:00
Antonio Russo
4cbaa78789 Remove ZFS_AC_PACKAGE macros from DKMS sources
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>
2018-10-26 12:36:00 +00:00
Antonio Russo
200661e335 Minor packaging cleanup
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
2018-10-26 12:32:10 +00:00
Antonio Russo
fb0b8605fa make dkms distdir before build
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>
2018-10-26 12:30:42 +00:00
Antonio Russo
fd8339ac78 Modify META before autoreconf
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
2018-10-26 12:28:51 +00:00
Antonio Russo
b981c8a4d8 Use upstream bash completion file
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
2018-10-26 12:26:38 +00:00
Mo Zhou
ff547c2992 Restart zed service after upgrade.
Gbp-Dch: Ignore
2018-10-26 08:16:25 +00:00
Mo Zhou
2ad6c7f9e1 Install init scripts to support non-systemd setups. (Closes: #826994)
Thanks to Chris Dos <chris@chrisdos.com>
Gbp-Dch: Full
2018-10-26 07:53:21 +00:00
Mo Zhou
0f73afe242 Recommends linux-libc-dev (<< LINUX_NEXT~) instead of (<< LINUX_NEXT). 2018-09-19 04:48:42 +00:00
Mo Zhou
c8746aa818 Replace get_next.sh with one-liner awk script in rules. 2018-09-19 04:24:00 +00:00
Aron Xu
946d119fc4 Fix lintian obsolete-relation-form-in-source 2018-05-18 00:19:10 +08:00
Aron Xu
7c847cb1ea d/rules: add --enable-systemd 2018-05-18 00:10:38 +08:00
Antonio Russo
3f008d5726 Install enum-extract.pl with dkms 2018-05-16 21:43:50 +08:00
Aron Xu
77112a7284 Recommends: linux-libc-dev (< ${LINUX_NEXT})
This tries to prevent unexpected upgrades of kernel that is not known
to be supported by the packaged version of ZFS/SPL.
2018-02-26 18:35:02 +08:00
Fabian Grünbichler
407883350d build: add implicit version to dh_makeshlibs (Closes: #880709)
to mimic upstream's current level of ABI/API stability. this is akin to
"every upstream version breaks compatibility".
2017-11-28 16:15:02 +08:00
Fabian Grünbichler
5bb90f438b d/rules: remove obsolete calls to dpkg-architecture
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-11-28 16:08:45 +08:00
Fabian Grünbichler
f40b765d07 d/rules: use DEB_VERSION_UPSTREAM
instead of manually parsing d/changelog

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-11-28 16:08:45 +08:00
Fabian Grünbichler
6375823049 d/rules: include dpkg's default.mk
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-11-28 16:08:45 +08:00
Fabian Grünbichler
7e332a4cf4 dh_install: switch to --fail-missing 2017-10-31 18:25:57 +08:00
Fabian Grünbichler
5a7b0cb7a9 fix python script install path (Closes: #842237)
*.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>
2017-01-31 20:56:07 +08:00
Lukas Wunner
84dc3e0481 Fix build breakage caused by nonstandard umask
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>
2017-01-31 20:51:53 +08:00
Lukas Wunner
58907cc6bf Fix installation path of systemd files
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>
2017-01-28 02:43:11 +08:00
Aron Xu
a9e7352625 Install zed into /usr/sbin 2016-10-17 15:03:09 +08:00
Colin Ian King
a52a935680 Use python3 for arcstat.py, arc_summary.py & dbufstat.py (LP: #1627909) 2016-10-17 14:30:56 +08:00
Richard Laager
e1c956cc55 Remove .py extension from utilities in /usr/sbin as per policy 10.4 Scripts (LP: #1628279) 2016-10-17 14:26:45 +08:00
Eric Desrochers
b83d293b8d Change utilities path (bindir) to /usr/sbin (Closes: #832938) 2016-08-04 21:50:29 +08:00
Aron Xu
b3671465e1 Remove .gitignore files and clean build tree 2016-04-26 17:01:58 +08:00
Aron Xu
8aa6974809 Fix binary module builds 2016-04-25 23:52:33 +08:00
Petter Reinholdtsen
0fc76429cc Added new rule debian-copyright to autogenerate debian/copyright.cme. 2016-02-22 08:10:57 +00:00
Aron Xu
97487d06b3 Remove executable bit from files not intended to be run 2015-11-22 15:51:16 +08:00
Aron Xu
814413118f Add python related dependencies 2015-11-22 15:44:16 +08:00
Aron Xu
e7a57fc04d Use dh-systemd 2015-11-06 21:14:18 +08:00
Aron Xu
0aa4ec8eaa Pedantic format change 2015-11-03 01:03:19 +08:00
Aron Xu
ea1ac9419c Correct path 2015-11-03 00:52:48 +08:00
Aron Xu
0b24fb47c5 Update shlib versions in rules 2015-11-03 00:41:28 +08:00
Aron Xu
3dce99637d Update package name for udeb conf (not used) 2015-11-02 11:04:52 +08:00
Aron Xu
e8f06defed Use dh-autoreconf 2015-11-02 10:57:47 +08:00
Aron Xu
ca31e36953 Use upstream version of LSB init scripts 2015-11-02 10:45:04 +08:00
Aron Xu
4c8f522150 Add warning about incompatibilities of the licenses 2015-11-01 14:13:01 +08:00
Aron Xu
2097931ff2 Add --list-missing to dh_install 2015-08-13 21:36:21 +08:00
Turbo Fredriksson
c2b155aee5 Default to /usr/src/spl-$(VERSION) 2013-11-28 00:32:26 +08:00
Darik Horn
4a1a6ace99 Add LSB headers for iSCSI in /etc/init.d/zfs-share
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.
2013-11-28 00:10:04 +08:00
Darik Horn
1ea7edc58b Run zfs ushare -a before iscsi during shutdown.
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
2013-11-28 00:07:43 +08:00
Richard Laager
30f59abc40 Enable all hardening flags 2013-11-27 23:59:11 +08:00
Darik Horn
4b4a7a4c58 Use dh_auto_configure.
Let debhelper call the ./configure script with automatic options.
2013-11-27 23:58:07 +08:00
Aron Xu
4365121dc7 Merge dbg packages 2013-09-07 03:10:15 +08:00
Aron Xu
a0d08c5455 Correct TAB in rules 2013-08-03 16:20:32 +08:00
Aron Xu
3f2148a980 Correct symlinks for libzfs-dev 2013-08-03 16:18:07 +08:00