diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..006a099 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +foodoord (1-1~foobar1) unstable; urgency=low + + * Initial release. + + -- gammlaa Sat, 04 Apr 2015 16:19:46 +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..dcd7680 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: foodoord +Section: net +Priority: optional +Maintainer: gammlaa +Build-Depends: debhelper (>= 9), dh-python, python +Standards-Version: 3.9.6 +Homepage: https://github.com/c3e/foodoord + +Package: foodoord +Architecture: all +X-Python-Version: any +Depends: ${misc:Depends}, adduser, python-pifacedigitalio +Description: Türschließsystem des foobar e.V. + Simsalabim! + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..bec4f4e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,38 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: foodoord +Source: + +Files: * +Copyright: + +License: + + + . + + +# If you want to use GPL v2 or later for the /debian/* files use +# the following clauses, or change it to suit. Delete these two lines +Files: debian/* +Copyright: 2014 gammlaa +License: GPL-2+ + This package 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 2 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 + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid to pick license terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff --git a/debian/foodoord.cron.d b/debian/foodoord.cron.d new file mode 100644 index 0000000..6d07f50 --- /dev/null +++ b/debian/foodoord.cron.d @@ -0,0 +1 @@ +*/5 * * * * root [ -x /usr/sbin/foodoor-update-keydb ] && /usr/sbin/foodoor-update-keydb >/dev/null 2>&1 diff --git a/debian/foodoord.install b/debian/foodoord.install new file mode 100644 index 0000000..9566319 --- /dev/null +++ b/debian/foodoord.install @@ -0,0 +1,5 @@ +foodoord.conf etc +foodoor usr/sbin +foodoord usr/sbin +foodoor-ssh-wrapper usr/sbin +foodoor-update-keydb usr/sbin diff --git a/debian/foodoord.preinst b/debian/foodoord.preinst new file mode 100644 index 0000000..e8e5645 --- /dev/null +++ b/debian/foodoord.preinst @@ -0,0 +1,38 @@ +#!/bin/sh +# preinst script for foodoord +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + addgroup --system foodoor + adduser --system --ingroup foodoor --home /var/lib/foodoor/open --disabled-password --disabled-login open + adduser --system --ingroup foodoor --home /var/lib/foodoor/close --disabled-password --disabled-login close + ;; + + abort-upgrade) + ;; + + *) + echo "preinst 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/rules b/debian/rules new file mode 100755 index 0000000..a0e43ae --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#DH_VERBOSE = 1 + +%: + dh $@ --with=python2 + +override_dh_installinit: + mkdir debian/foodoord/etc/init.d + cp foodoord_initd debian/foodoord/etc/init.d/foodoord + dh_installinit --onlyscripts 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)