From 8a2223a43e8e699a92efe950117edd4179866335 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sun, 3 Aug 2014 22:32:41 +0200 Subject: [PATCH] Add debian build tree --- openmediavault-zfs/debian/changelog | 5 +++ openmediavault-zfs/debian/compat | 1 + openmediavault-zfs/debian/control | 11 ++++++ openmediavault-zfs/debian/copyright | 9 +++++ openmediavault-zfs/debian/files | 1 + openmediavault-zfs/debian/install | 2 + .../debian/openmediavault-zfs.debhelper.log | 14 +++++++ .../debian/openmediavault-zfs.substvars | 1 + openmediavault-zfs/debian/postinst | 30 +++++++++++++++ openmediavault-zfs/debian/postrm | 31 +++++++++++++++ openmediavault-zfs/debian/preinst | 17 +++++++++ openmediavault-zfs/debian/rules | 38 +++++++++++++++++++ openmediavault-zfs/debian/source/format | 1 + openmediavault-zfs/debian/triggers | 3 ++ 14 files changed, 164 insertions(+) create mode 100644 openmediavault-zfs/debian/changelog create mode 100644 openmediavault-zfs/debian/compat create mode 100644 openmediavault-zfs/debian/control create mode 100644 openmediavault-zfs/debian/copyright create mode 100644 openmediavault-zfs/debian/files create mode 100644 openmediavault-zfs/debian/install create mode 100644 openmediavault-zfs/debian/openmediavault-zfs.debhelper.log create mode 100644 openmediavault-zfs/debian/openmediavault-zfs.substvars create mode 100644 openmediavault-zfs/debian/postinst create mode 100644 openmediavault-zfs/debian/postrm create mode 100644 openmediavault-zfs/debian/preinst create mode 100755 openmediavault-zfs/debian/rules create mode 100644 openmediavault-zfs/debian/source/format create mode 100644 openmediavault-zfs/debian/triggers diff --git a/openmediavault-zfs/debian/changelog b/openmediavault-zfs/debian/changelog new file mode 100644 index 0000000..192437c --- /dev/null +++ b/openmediavault-zfs/debian/changelog @@ -0,0 +1,5 @@ +openmediavault-zfs (0.6.0) testing; urgency=low + + * Initial release for OMV 0.6 + + -- OpenMediaVault Plugin Developers Tue, 7 Jan 2014 21:28:27 -0500 diff --git a/openmediavault-zfs/debian/compat b/openmediavault-zfs/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/openmediavault-zfs/debian/compat @@ -0,0 +1 @@ +7 diff --git a/openmediavault-zfs/debian/control b/openmediavault-zfs/debian/control new file mode 100644 index 0000000..d9db4c4 --- /dev/null +++ b/openmediavault-zfs/debian/control @@ -0,0 +1,11 @@ +Source: openmediavault-zfs +Section: net +Priority: optional +Maintainer: OpenMediaVault Plugin Developers +Build-Depends: debhelper (>= 8.0.0) +Standards-Version: 3.9.3 + +Package: openmediavault-zfs +Architecture: amd64 +Depends: +Description: zfs plugin for OpenMediaVault. diff --git a/openmediavault-zfs/debian/copyright b/openmediavault-zfs/debian/copyright new file mode 100644 index 0000000..ef4281b --- /dev/null +++ b/openmediavault-zfs/debian/copyright @@ -0,0 +1,9 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Contact: OpenMediaVault Plugin Developers +Copyright: 2013 OpenMediaVault Plugin Developers +License: GPL-3 + +Files: /var/www/openmediavault/images/snapraid.png + /var/www/openmediavault/images/snapraid.svg +Copyright: IcoMoon +IcoMoon diff --git a/openmediavault-zfs/debian/files b/openmediavault-zfs/debian/files new file mode 100644 index 0000000..90f17b3 --- /dev/null +++ b/openmediavault-zfs/debian/files @@ -0,0 +1 @@ +openmediavault-zfs_0.6.0_amd64.deb net optional diff --git a/openmediavault-zfs/debian/install b/openmediavault-zfs/debian/install new file mode 100644 index 0000000..89169d9 --- /dev/null +++ b/openmediavault-zfs/debian/install @@ -0,0 +1,2 @@ +var/www/openmediavault/* var/www/openmediavault +usr/share/openmediavault/* usr/share/openmediavault diff --git a/openmediavault-zfs/debian/openmediavault-zfs.debhelper.log b/openmediavault-zfs/debian/openmediavault-zfs.debhelper.log new file mode 100644 index 0000000..78d9a91 --- /dev/null +++ b/openmediavault-zfs/debian/openmediavault-zfs.debhelper.log @@ -0,0 +1,14 @@ +dh_prep +dh_installdirs +dh_install +dh_installchangelogs +dh_installdebconf +dh_lintian +dh_link +dh_compress +dh_fixperms +dh_installdeb +dh_gencontrol +dh_md5sums +dh_builddeb +dh_builddeb diff --git a/openmediavault-zfs/debian/openmediavault-zfs.substvars b/openmediavault-zfs/debian/openmediavault-zfs.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/openmediavault-zfs/debian/openmediavault-zfs.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/openmediavault-zfs/debian/postinst b/openmediavault-zfs/debian/postinst new file mode 100644 index 0000000..4788a43 --- /dev/null +++ b/openmediavault-zfs/debian/postinst @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e + +. /etc/default/openmediavault +. /usr/share/openmediavault/scripts/helper-functions + + +case "$1" in + configure) + if ! omv_config_exists "/config/services/zfs"; then + echo "Initialize configuration" + object="0" + object="${object}827" + omv_config_add_element "/config/services" "zfs" "${object}" true + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/openmediavault-zfs/debian/postrm b/openmediavault-zfs/debian/postrm new file mode 100644 index 0000000..f08aee5 --- /dev/null +++ b/openmediavault-zfs/debian/postrm @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +. /etc/default/openmediavault +. /usr/share/openmediavault/scripts/helper-functions + +CONFIG="/config/services/zfs" + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + if omv_config_exists $CONFIG; then + echo "Deleting Configuration" + omv_config_delete $CONFIG; + fi + + if ! omv_config_exists $CONFIG; then + echo "Configuration Deleted" + fi + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/openmediavault-zfs/debian/preinst b/openmediavault-zfs/debian/preinst new file mode 100644 index 0000000..8f8cce5 --- /dev/null +++ b/openmediavault-zfs/debian/preinst @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +case "$1" in +install|upgrade) + + ;; +*) + echo "preinst called with unknown argument" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/openmediavault-zfs/debian/rules b/openmediavault-zfs/debian/rules new file mode 100755 index 0000000..8feae87 --- /dev/null +++ b/openmediavault-zfs/debian/rules @@ -0,0 +1,38 @@ +#!/usr/bin/make -f + +include ./openmediavault.mk + +clean: + dh_testdir + dh_testroot + dh_clean + +install: + dh_testdir + dh_testroot + dh_prep + dh_installdirs + dh_install + +binary-indep: install omv_clean_scm + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdebconf + dh_lintian + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: install +# We have nothing to do by default. + +build: +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: clean binary-indep binary-arch binary install diff --git a/openmediavault-zfs/debian/source/format b/openmediavault-zfs/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/openmediavault-zfs/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/openmediavault-zfs/debian/triggers b/openmediavault-zfs/debian/triggers new file mode 100644 index 0000000..b3f994b --- /dev/null +++ b/openmediavault-zfs/debian/triggers @@ -0,0 +1,3 @@ +activate update-locale +activate update-fixperms +activate restart-engined -- 2.39.5