diff options
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 13 | ||||
-rw-r--r-- | debian/copyright | 36 | ||||
-rw-r--r-- | debian/install | 2 | ||||
-rw-r--r-- | debian/postinst | 12 | ||||
-rw-r--r-- | debian/postrm | 17 | ||||
-rw-r--r-- | debian/rhimportd.conf | 7 | ||||
-rw-r--r-- | debian/rhimportd.service | 19 | ||||
-rwxr-xr-x | debian/rules | 17 | ||||
-rw-r--r-- | debian/source/format | 1 |
11 files changed, 130 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..39ebab3 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rhimportd (0.1-1) unstable; urgency=medium + + * Initial release. + + -- Christian Pointner <equinox@helsinki.at> Tue, 05 Jan 2016 18:48:15 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3a29556 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: rhimportd +Section: net +Priority: optional +Maintainer: Christian Pointner <equinox@helsinki.ag> +Build-Depends: debhelper (>=9), dh-systemd, golang-go (>=2:1.3.3), git, ca-certificates +Standards-Version: 3.9.5 + +Package: rhimportd +Architecture: i386 amd64 armhf armel +Depends: ${misc:Depends}, ${shlibs:Depends}, adduser +Description: Radio Helsinki Rivendell Import Daemon + This is small daemon to import files into Rivendell from various sources + using various control interfaces. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..662bcbd --- /dev/null +++ b/debian/copyright @@ -0,0 +1,36 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: rhrdtime +Upstream-Contact: Christian Pointner <equinox@helsinki.at> +Source: http://git.helsinki.at/?p=rhrdtime.git;a=summary + +Files: * +Copyright: 2015, Christian Pointner <equinox@helsinki.at> +License: GPL-3+ + rhrdtime 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 + any later version. + . + rhrdtime 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 rhrdtime. If not, see <http://www.gnu.org/licenses/>. + +Files: debian/* +Copyright: 2015, Christian Pointner <equinox@helsinki.at> +License: GPL-3+ + 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 program 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 '/usr/share/common-licenses/GPL-3'. diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..4ee774d --- /dev/null +++ b/debian/install @@ -0,0 +1,2 @@ +etc/rhimportd.conf +usr/bin/rhimportd diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..e3ccd08 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,12 @@ +#!/bin/sh +# postinst script for rhimportd + +set -e + +if [ "$1" = "configure" ]; then + adduser --quiet --system --group --home /var/lib/rhimportd rhimportd +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..f2c848e --- /dev/null +++ b/debian/postrm @@ -0,0 +1,17 @@ +#!/bin/sh +# postrm script for rhimportd + +set -e + +if [ "$1" = "purge" ] ; then + if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then + deluser --quiet --system rhimportd || true + delgroup --quiet --system rhimportd || true + else + echo "Not removing rhimportd user and group: adduser package not found." >&2 + fi +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/rhimportd.conf b/debian/rhimportd.conf new file mode 100644 index 0000000..37bd091 --- /dev/null +++ b/debian/rhimportd.conf @@ -0,0 +1,7 @@ +RHIMPORTD_RD_CONF=/etc/rd.conf +RHIMPORTD_RDXPORT_URL=http://localhost/rd-bin/rdxport.cgi +RHIMPORTD_TEMP_DIR=/var/lib/rhimportd/tmp +RHIMPORTD_LOCAL_FETCH_DIR=/var/lib/rhimportd/local +RHIMPORTD_WATCH_DIR=/var/lib/rhimportd/watch +RHIMPORTD_WEB_ADDR=localhost:4080 +RHIMPORTD_TELNET_ADDR="" diff --git a/debian/rhimportd.service b/debian/rhimportd.service new file mode 100644 index 0000000..f821c38 --- /dev/null +++ b/debian/rhimportd.service @@ -0,0 +1,19 @@ +[Unit] +Description=Radio Helsinki Rivendell Import Daemon + +[Service] +User=rhimportd +Group=rhimportd +EnvironmentFile=/etc/rhimportd.config +ExecStart=/usr/bin/rhimportd +Restart=always +RestartSec=1s +StartLimitInterval=5 +StartLimitBurst=6 +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=full +ProtectHome=yes + +[Install] +WantedBy=multi-user.target diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..00fe9d3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f +%: + dh $@ --with=systemd + +override_dh_auto_configure: + +override_dh_auto_build: + $(MAKE) build + +override_dh_auto_clean: + $(MAKE) distclean + +override_dh_auto_install: + install -d $$(pwd)/debian/tmp/usr/bin/ + install -m 755 $$(pwd)/bin/rhimportd $$(pwd)/debian/tmp/usr/bin/ + install -d $$(pwd)/debian/tmp/etc/ + install -m 644 $$(pwd)/debian/rhimportd.conf $$(pwd)/debian/tmp/etc/ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) |