From 23f878a89d508de074055c12eb6378e264f0b0a1 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Mon, 14 Sep 2020 16:05:06 -0400 Subject: [PATCH] Add packaging bits for TrueNAS SCALE --- contrib/truenas/changelog | 35 +++++++++++++++++++++++++++++++++++ contrib/truenas/compat | 1 + contrib/truenas/control | 10 ++++++++++ contrib/truenas/copyright | 7 +++++++ contrib/truenas/rules | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 85 insertions(+) create mode 100644 contrib/truenas/changelog create mode 100644 contrib/truenas/compat create mode 100644 contrib/truenas/control create mode 100644 contrib/truenas/copyright create mode 100644 contrib/truenas/rules diff --git a/contrib/truenas/changelog b/contrib/truenas/changelog new file mode 100644 index 0000000000..04b81bda14 --- /dev/null +++ b/contrib/truenas/changelog @@ -0,0 +1,35 @@ +openzfs (2.1.0-0) unstable; urgency=medium + + * Rebased to OpenZFS 2.1.0 + + -- Ryan Moeller Thu, 01 Apr 2021 13:00:00 -500 + +openzfs (2.0.4-0) unstable; urgency=medium + + * Rebased to OpenZFS 2.0.4 + + -- Ryan Moeller Tue, 09 Mar 2021 14:00:00 -0500 + +openzfs (2.0.3-0) unstable; urgency=medium + + * Rebased to OpenZFS 2.0.3 + + -- Ryan Moeller Wed, 24 Feb 2021 15:00:00 -0500 + +openzfs (2.0.2-0) unstable; urgency=medium + + * Rebased to OpenZFS 2.0.2 + + -- Ryan Moeller Mon, 01 Feb 2021 15:00:00 -0500 + +openzfs (2.0.1-0) unstable; urgency=medium + + * Rebased to OpenZFS 2.0.1 + + -- Ryan Moeller Thu, 07 Jan 2021 17:34:28 -0500 + +openzfs (2.0.0-0) unstable; urgency=medium + + * Initial package for TrueNAS SCALE based on OpenZFS 2.0.0 + + -- Ryan Moeller Mon, 14 Sep 2020 22:01:55 -0400 diff --git a/contrib/truenas/compat b/contrib/truenas/compat new file mode 100644 index 0000000000..48082f72f0 --- /dev/null +++ b/contrib/truenas/compat @@ -0,0 +1 @@ +12 diff --git a/contrib/truenas/control b/contrib/truenas/control new file mode 100644 index 0000000000..e2273a147b --- /dev/null +++ b/contrib/truenas/control @@ -0,0 +1,10 @@ +Source: openzfs +Maintainer: Ryan Moeller +Section: truenas +Priority: extra +Build-Depends: build-essential, autoconf, automake, libtool, gawk, alien, fakeroot, libblkid-dev, uuid-dev, libudev-dev, libssl-dev, zlib1g-dev, libaio-dev, libattr1-dev, libelf-dev, linux-image-amd64, linux-headers-amd64, python3, python3-dev, python3-setuptools, python3-cffi, libffi-dev + +Package: openzfs +Architecture: amd64 +Depends: zfs, ${kmod}, linux-image-amd64, libnvpair3, libuutil3, libzfs5, libzpool5 +Description: OpenZFS 2.1 for TrueNAS SCALE diff --git a/contrib/truenas/copyright b/contrib/truenas/copyright new file mode 100644 index 0000000000..c608246779 --- /dev/null +++ b/contrib/truenas/copyright @@ -0,0 +1,7 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: openzfs/zfs +Source: https://github.com/openzfs/zfs + +Files: * +Copyright: See AUTHORS file +License: See COPYRIGHT and LICENSE files diff --git a/contrib/truenas/rules b/contrib/truenas/rules new file mode 100644 index 0000000000..fe51e0858b --- /dev/null +++ b/contrib/truenas/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f +export DH_VERBOSE = 1 + +%: + dh $@ + +src!= dpkg --get-selections | awk '/^linux-headers-.*-common/ { print $$1 }' +obj!= dpkg --get-selections | awk '/^linux-headers-.*-amd64/ { print $$1 }' +krn!= dpkg --get-selections | awk '/^linux-image-.*-amd64/ { print $$1 }' +kmod= kmod-zfs-$(subst linux-image-,,$(krn)) + +override_dh_auto_configure: + dh_auto_configure -- \ + --enable-debug --enable-debuginfo \ + --with-linux=/usr/src/${src} \ + --with-linux-obj=/usr/src/${obj} + +override_dh_auto_test: + +override_dh_shlibdeps: + +override_dh_auto_install: + +override_dh_gencontrol: + echo kmod=$(kmod) >> debian/openzfs.substvars + dh_gencontrol + +override_dh_builddeb: + $(MAKE) deb-kmod deb-utils + mv *.deb ../ + mv ../openzfs-build-deps-depends_*.deb ./ + dh_builddeb