diff --git a/contrib/Makefile.am b/contrib/Makefile.am index fa51bd941..5b8c1810b 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -1,4 +1,5 @@ include $(srcdir)/%D%/bash_completion.d/Makefile.am +include $(srcdir)/%D%/debian/Makefile.am include $(srcdir)/%D%/pyzfs/Makefile.am include $(srcdir)/%D%/zcp/Makefile.am diff --git a/contrib/debian/Makefile.am b/contrib/debian/Makefile.am new file mode 100644 index 000000000..f76b59645 --- /dev/null +++ b/contrib/debian/Makefile.am @@ -0,0 +1,48 @@ +dist_noinst_DATA += %D%/changelog.in +dist_noinst_DATA += %D%/clean +dist_noinst_DATA += %D%/control +dist_noinst_DATA += %D%/control.modules.in +dist_noinst_DATA += %D%/copyright +dist_noinst_DATA += %D%/Makefile.am +dist_noinst_DATA += %D%/not-installed +dist_noinst_DATA += %D%/openzfs-libnvpair3.docs +dist_noinst_DATA += %D%/openzfs-libnvpair3.install.in +dist_noinst_DATA += %D%/openzfs-libpam-zfs.install +dist_noinst_DATA += %D%/openzfs-libpam-zfs.postinst +dist_noinst_DATA += %D%/openzfs-libpam-zfs.prerm +dist_noinst_DATA += %D%/openzfs-libuutil3.docs +dist_noinst_DATA += %D%/openzfs-libuutil3.install.in +dist_noinst_DATA += %D%/openzfs-libzfs4.docs +dist_noinst_DATA += %D%/openzfs-libzfs4.install.in +dist_noinst_DATA += %D%/openzfs-libzfsbootenv1.docs +dist_noinst_DATA += %D%/openzfs-libzfsbootenv1.install.in +dist_noinst_DATA += %D%/openzfs-libzfs-dev.docs +dist_noinst_DATA += %D%/openzfs-libzfs-dev.install.in +dist_noinst_DATA += %D%/openzfs-libzpool5.docs +dist_noinst_DATA += %D%/openzfs-libzpool5.install.in +dist_noinst_DATA += %D%/openzfs-python3-pyzfs.install +dist_noinst_DATA += %D%/openzfs-zfs-dkms.config +dist_noinst_DATA += %D%/openzfs-zfs-dkms.dkms +dist_noinst_DATA += %D%/openzfs-zfs-dkms.docs +dist_noinst_DATA += %D%/openzfs-zfs-dkms.install +dist_noinst_DATA += %D%/openzfs-zfs-dkms.postinst +dist_noinst_DATA += %D%/openzfs-zfs-dkms.prerm +dist_noinst_DATA += %D%/openzfs-zfs-dkms.templates +dist_noinst_DATA += %D%/openzfs-zfs-dkms.triggers +dist_noinst_DATA += %D%/openzfs-zfs-dracut.install +dist_noinst_DATA += %D%/openzfs-zfs-initramfs.install +dist_noinst_DATA += %D%/openzfs-zfs-modules-_KVERS_-di.install.in +dist_noinst_DATA += %D%/openzfs-zfs-modules-_KVERS_.install.in +dist_noinst_DATA += %D%/openzfs-zfs-modules-_KVERS_.postinst.in +dist_noinst_DATA += %D%/openzfs-zfs-modules-_KVERS_.postrm.in +dist_noinst_DATA += %D%/openzfs-zfs-test.install +dist_noinst_DATA += %D%/openzfs-zfsutils.docs +dist_noinst_DATA += %D%/openzfs-zfsutils.examples +dist_noinst_DATA += %D%/openzfs-zfsutils.install +dist_noinst_DATA += %D%/openzfs-zfsutils.postinst +dist_noinst_DATA += %D%/openzfs-zfs-zed.install +dist_noinst_DATA += %D%/openzfs-zfs-zed.postinst +dist_noinst_DATA += %D%/openzfs-zfs-zed.postrm +dist_noinst_DATA += %D%/rules.in +dist_noinst_DATA += %D%/source +dist_noinst_DATA += %D%/tree diff --git a/contrib/debian/openzfs-zfs-zed.zfs-zed.init b/contrib/debian/openzfs-zfs-zed.zfs-zed.init deleted file mode 120000 index 3f41f6813..000000000 --- a/contrib/debian/openzfs-zfs-zed.zfs-zed.init +++ /dev/null @@ -1 +0,0 @@ -../etc/init.d/zfs-zed \ No newline at end of file diff --git a/contrib/debian/openzfs-zfsutils.zfs-import.init b/contrib/debian/openzfs-zfsutils.zfs-import.init deleted file mode 120000 index bfc368fd3..000000000 --- a/contrib/debian/openzfs-zfsutils.zfs-import.init +++ /dev/null @@ -1 +0,0 @@ -../etc/init.d/zfs-import \ No newline at end of file diff --git a/contrib/debian/openzfs-zfsutils.zfs-load-key.init b/contrib/debian/openzfs-zfsutils.zfs-load-key.init deleted file mode 120000 index 3f3e97f81..000000000 --- a/contrib/debian/openzfs-zfsutils.zfs-load-key.init +++ /dev/null @@ -1 +0,0 @@ -../etc/init.d/zfs-load-key \ No newline at end of file diff --git a/contrib/debian/openzfs-zfsutils.zfs-mount.init b/contrib/debian/openzfs-zfsutils.zfs-mount.init deleted file mode 120000 index 62a544332..000000000 --- a/contrib/debian/openzfs-zfsutils.zfs-mount.init +++ /dev/null @@ -1 +0,0 @@ -../etc/init.d/zfs-mount \ No newline at end of file diff --git a/contrib/debian/openzfs-zfsutils.zfs-share.init b/contrib/debian/openzfs-zfsutils.zfs-share.init deleted file mode 120000 index 3f069f9ba..000000000 --- a/contrib/debian/openzfs-zfsutils.zfs-share.init +++ /dev/null @@ -1 +0,0 @@ -../etc/init.d/zfs-share \ No newline at end of file diff --git a/contrib/debian/rules.in b/contrib/debian/rules.in index b3b6d9b92..1cca75d7b 100755 --- a/contrib/debian/rules.in +++ b/contrib/debian/rules.in @@ -56,6 +56,12 @@ override_dh_auto_configure: sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' "$$i" > "$${i%%.in}" ; \ done + ln -s '$(CURDIR)/etc/init.d/zfs-import' '$(CURDIR)/debian/openzfs-zfsutils.zfs-import.init' + ln -s '$(CURDIR)/etc/init.d/zfs-load-key' '$(CURDIR)/debian/openzfs-zfsutils.zfs-load-key.init' + ln -s '$(CURDIR)/etc/init.d/zfs-mount' '$(CURDIR)/debian/openzfs-zfsutils.zfs-mount.init' + ln -s '$(CURDIR)/etc/init.d/zfs-share' '$(CURDIR)/debian/openzfs-zfsutils.zfs-share.init' + ln -s '$(CURDIR)/etc/init.d/zfs-zed' '$(CURDIR)/debian/openzfs-zfs-zed.zfs-zed.init' + override_dh_gencontrol: dh_gencontrol -- -Vlinux:Recommends="linux-libc-dev (<< $(LINUX_NEXT)~), linux-libc-dev (>= $(LINUX_MIN)~),"