-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 13 | ||||
l--------- | debian/copyright | 1 | ||||
-rw-r--r-- | debian/dirs | 3 | ||||
-rw-r--r-- | debian/docs | 2 | ||||
-rw-r--r-- | debian/examples | 1 | ||||
-rwxr-xr-x | debian/iii.init | 57 | ||||
-rwxr-xr-x | debian/iii.postinst | 18 | ||||
-rwxr-xr-x | debian/iii.postrm | 3 | ||||
-rwxr-xr-x | debian/iii.prerm | 4 | ||||
-rwxr-xr-x | debian/rules | 11 |
12 files changed, 119 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3603e7e --- a/dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +iii (0.0) unstable; urgency=low + + * Initial release + + -- Michael Krelin <hacker@klever.net> Sun, 08 Mar 2009 19:39:38 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- a/dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..02a6138 --- a/dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: iii +Section: graphics +Priority: optional +Maintainer: Michael Krelin <hacker@klever.net> +Build-Depends: debhelper (>=7), gsoap, libssl-dev, libconfuse-dev, libarchive-dev, gettext +Standards-Version: 3.8.0 + +Package: iii +Architecture: any +Depends: adduser, ${shlibs:Depends} +Description: Eye-Fi Manager implementation + Implementation of Eye-Fi manager service for Linux + diff --git a/debian/copyright b/debian/copyright new file mode 120000 index 0000000..012065c --- a/dev/null +++ b/debian/copyright @@ -0,0 +1 @@ +../COPYING
\ No newline at end of file diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..04efab3 --- a/dev/null +++ b/debian/dirs @@ -0,0 +1,3 @@ +/etc/iii +/usr/sbin +/usr/share/doc/iii diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..3cc350b --- a/dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +AUTHORS +NEWS diff --git a/debian/examples b/debian/examples new file mode 100644 index 0000000..c1afd06 --- a/dev/null +++ b/debian/examples @@ -0,0 +1 @@ +doc/000000000000.conf diff --git a/debian/iii.init b/debian/iii.init new file mode 100755 index 0000000..c60c25e --- a/dev/null +++ b/debian/iii.init @@ -0,0 +1,57 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: iii +# Required-Start: $remote_fs $network +# Required-Stop: $remote_fs $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start iii eye-fi card manager daemon. +### END INIT INFO + +set -e + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +NAME=iii +DAEMON=/usr/sbin/${NAME}d +DESC="Eye-Fi card manager daemon" +PIDFILE=/var/run/${NAME}d.pid +SCRIPTNAME=/etc/init.d/$NAME +USER=eyefi +SSD="/sbin/start-stop-daemon" + +test -x $DAEMON || exit 0 + +if [ -f /etc/default/$NAME ] ; then + . /etc/default/$NAME + fi + +test -z "$NO_IIID" || exit 0 + +. /lib/lsb/init-functions + +case "$1" in + start) + log_daemon_msg "Starting $DESC" $NAME + $SSD --start --pidfile $PIDFILE --chuid $USER --background --make-pidfile --exec $DAEMON -- $DAEMON_OPTS + log_end_msg $? + ;; + stop) + log_daemon_msg "Stopping $DESC" $NAME + if $SSD --stop --oknodo --retry 30 --pidfile $PIDFILE --exec $DAEMON ; then + rm -f $PIDFILE + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + restart|force-reload) + $SCRIPTNAME stop + $SCRIPTNAME start + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/debian/iii.postinst b/debian/iii.postinst new file mode 100755 index 0000000..20463a1 --- a/dev/null +++ b/debian/iii.postinst @@ -0,0 +1,18 @@ +#!/bin/sh +set -e +UG=eyefi +P=eyekindo +H=/var/lib/$P + +if [ "$1" = configure ] ; then + getent group $UG >/dev/null 2>&1 || addgroup --system $UG + getent passwd $UG >/dev/null 2>&1 || adduser --system --home $H \ + --no-create-home --disabled-password --ingroup $UG $UG + if ! test -d $H ; then + mkdir -p $H + chown $UG:$UG $H + chmod 2770 $H + fi +fi + +#DEBHELPER# diff --git a/debian/iii.postrm b/debian/iii.postrm new file mode 100755 index 0000000..a2c66fa --- a/dev/null +++ b/debian/iii.postrm @@ -0,0 +1,3 @@ +#!/bin/sh + +#DEBHELPER# diff --git a/debian/iii.prerm b/debian/iii.prerm new file mode 100755 index 0000000..6060c4f --- a/dev/null +++ b/debian/iii.prerm @@ -0,0 +1,4 @@ +#!/bin/sh +set -e + +#DEBHELPER# diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..86549d3 --- a/dev/null +++ b/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f +%: + dh $@ + +build: build-stamp +build-stamp: + sh autogen.sh --version + dh build --before configure + dh_auto_configure -- --enable-debug + dh build --after configure + touch $@ |