summaryrefslogtreecommitdiffabout
path: root/debian
authorMichael Krelin <hacker@klever.net>2009-03-08 20:09:21 (UTC)
committer Michael Krelin <hacker@klever.net>2009-03-08 20:09:21 (UTC)
commitaadaa8b5d7eda23e72dbded9d6437b40358353f3 (patch) (side-by-side diff)
tree0bff6fdde1e2b9be02b48aaf7d03f095604718e1 /debian
downloadiii-0.0.zip
iii-0.0.tar.gz
iii-0.0.tar.bz2
Inital commit to public repository0.0
Diffstat (limited to 'debian') (more/less context) (ignore whitespace changes)
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control13
l---------debian/copyright1
-rw-r--r--debian/dirs3
-rw-r--r--debian/docs2
-rw-r--r--debian/examples1
-rwxr-xr-xdebian/iii.init57
-rwxr-xr-xdebian/iii.postinst18
-rwxr-xr-xdebian/iii.postrm3
-rwxr-xr-xdebian/iii.prerm4
-rwxr-xr-xdebian/rules11
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 $@