summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2020-02-25 19:42:07 +0100
committerJakob Odersky <jakob@odersky.com>2020-02-25 20:08:31 +0100
commit595131b8e3ffe99e9187c7adb5e73e922bd931e1 (patch)
treee2ce6d110858d8077517b602c33637ec704a1ad5 /debian
downloadresteasy-595131b8e3ffe99e9187c7adb5e73e922bd931e1.tar.gz
resteasy-595131b8e3ffe99e9187c7adb5e73e922bd931e1.tar.bz2
resteasy-595131b8e3ffe99e9187c7adb5e73e922bd931e1.zip
Initial commit
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog5
-rw-r--r--debian/control22
-rw-r--r--debian/copyright27
-rw-r--r--debian/resteasy-desktop.install1
-rw-r--r--debian/resteasy-desktop.postinst39
-rw-r--r--debian/resteasy-desktop.user.service9
-rw-r--r--debian/resteasy.install2
-rw-r--r--debian/resteasy.postinst42
-rw-r--r--debian/resteasy.service8
-rw-r--r--debian/resteasy.udev6
-rwxr-xr-xdebian/rules11
-rw-r--r--debian/source/format1
12 files changed, 173 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..80d7307
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+resteasy (0) unstable; urgency=medium
+
+ * Initial Release.
+
+ -- Jakob Odersky <jakob@odersky.com> Sun, 16 Feb 2020 01:20:26 +0100
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f5477b1
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,22 @@
+Source: resteasy
+Section: admin
+Priority: optional
+Maintainer: Jakob Odersky <jakob@odersky.com>
+Build-Depends: debhelper-compat (= 12), pandoc
+Standards-Version: 4.4.1
+
+Package: resteasy
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, borgbackup
+Description: simple plug and play backup system
+ Resteasy is a collection of wrapper scripts and services around borg, that
+ provide an easy-to-use backup solution.
+
+Package: resteasy-desktop
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, resteasy, libnotify-bin, dbus, python3
+Description: simple plug and play backup system, desktop notification component
+ Resteasy is a collection of wrapper scripts and services around borg, that
+ provide an easy-to-use backup solution.
+ .
+ This package provides utilities for notifying users of running backups.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..42027a3
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: resteasy
+
+Files: *
+Copyright: 2020 Jakob Odersky <jakob@odersky.com>
+License: GPL-3.0+
+
+Files: debian/*
+Copyright: 2020Jakob Odersky <jakob@odersky.com>
+License: GPL-3.0+
+
+License: GPL-3.0+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/resteasy-desktop.install b/debian/resteasy-desktop.install
new file mode 100644
index 0000000..92b6301
--- /dev/null
+++ b/debian/resteasy-desktop.install
@@ -0,0 +1 @@
+resteasy-desktop/libexec/* usr/libexec/resteasy/
diff --git a/debian/resteasy-desktop.postinst b/debian/resteasy-desktop.postinst
new file mode 100644
index 0000000..bbbe8cf
--- /dev/null
+++ b/debian/resteasy-desktop.postinst
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postinst script for resteasy
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see https://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/resteasy-desktop.user.service b/debian/resteasy-desktop.user.service
new file mode 100644
index 0000000..c05fc6f
--- /dev/null
+++ b/debian/resteasy-desktop.user.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=monitor backup system
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/resteasy desktop-monitor
+
+[Install]
+WantedBy=default.target
diff --git a/debian/resteasy.install b/debian/resteasy.install
new file mode 100644
index 0000000..2031a55
--- /dev/null
+++ b/debian/resteasy.install
@@ -0,0 +1,2 @@
+resteasy/libexec/* usr/libexec/resteasy/
+resteasy/sbin usr/
diff --git a/debian/resteasy.postinst b/debian/resteasy.postinst
new file mode 100644
index 0000000..3bd788c
--- /dev/null
+++ b/debian/resteasy.postinst
@@ -0,0 +1,42 @@
+#!/bin/sh
+# postinst script for resteasy
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see https://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ touch /etc/resteasy
+ chown root:root /etc/resteasy
+ chmod 0600 /etc/resteasy
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/resteasy.service b/debian/resteasy.service
new file mode 100644
index 0000000..f2a81ae
--- /dev/null
+++ b/debian/resteasy.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=backup system
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/resteasy mount
+ExecStart=/usr/sbin/resteasy run-backup
+ExecStopPost=/usr/sbin/resteasy umount
diff --git a/debian/resteasy.udev b/debian/resteasy.udev
new file mode 100644
index 0000000..a6c2bcb
--- /dev/null
+++ b/debian/resteasy.udev
@@ -0,0 +1,6 @@
+ACTION=="add", \
+SUBSYSTEM=="block", \
+ENV{ID_FS_USAGE}=="filesystem", \
+ENV{ID_PART_ENTRY_TYPE}=="8e8e0bae-5627-4acd-8fd9-70873806d42e", \
+TAG+="systemd", \
+ENV{SYSTEMD_WANTS}="resteasy.service"
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1a0e016
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_installman:
+ mkdir -p debian/resteasy/usr/share/man/man8/
+ pandoc --standalone --from markdown-smart --to man resteasy.8.md | \
+ gzip -9 --no-name --stdout > \
+ debian/resteasy/usr/share/man/man8/resteasy.8.gz
+ dh_installman
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)