summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-09-21 00:30:23 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2015-09-21 00:30:23 (GMT)
commit1bb82e686f2aa870e7ee2118fe9e387a7f9c6b99 (patch)
treef3c874d6bf3fd2c79f4d06b947e4765154360a2a
parent8a679892b9e6e96b10dfeb16d1caacb096bc116f (diff)
added debian dir and fixed initscrpt
-rwxr-xr-xcontrib/initscript2
-rw-r--r--contrib/systemd@.service (renamed from contrib/systemd.service)0
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control16
-rw-r--r--debian/copyright43
-rwxr-xr-xdebian/rules15
-rw-r--r--debian/source/format1
-rw-r--r--src/Makefile2
9 files changed, 83 insertions, 2 deletions
diff --git a/contrib/initscript b/contrib/initscript
index aadf074..d460843 100755
--- a/contrib/initscript
+++ b/contrib/initscript
@@ -60,7 +60,7 @@ case "$1" in
done
else
echo " no config found"
- exit 1;
+ exit 0;
fi
else
while shift ; do
diff --git a/contrib/systemd.service b/contrib/systemd@.service
index af48071..af48071 100644
--- a/contrib/systemd.service
+++ b/contrib/systemd@.service
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..419d3c2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+dropnroll (0.1-1) unstable; urgency=medium
+
+ * Initial release
+
+ -- Christian Pointner <equinox@spreadspace.org> Mon, 21 Sep 2015 01:15:51 +0200
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..52018a6
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,16 @@
+Source: dropnroll
+Section: misc
+Priority: extra
+Maintainer: Christian Pointner <equinox@spreadspace.org>
+Build-Depends: debhelper (>= 9), dh-systemd
+Standards-Version: 3.9.5
+
+Package: dropnroll
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: inotify based dropbox daemon
+ dropnroll is a small daemon which can be used to watch one or more
+ directories for new files. When a new file is detected an external program will
+ get started.
+ Additional directories can be added to the daemon's watch list using a simple
+ unix socket based command interface.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..204ca0f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,43 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: dropnroll
+Upstream-Contact: Christian Pointner <equinox@spreadspace.org>
+
+Files: *
+Copyright: Copyright 2009-2015 Christian Pointner <equinox@spreadspace.org>
+License: GPL-3+
+ dropnroll 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.
+ .
+ dropnroll 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 dropnroll. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
+
+Files: debian/*
+Copyright: Copyright 2015 Christian Pointner <equinox@spreadspace.org>
+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 <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5dfe6ad
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+%:
+ dh $@ --with=systemd --sourcedirectory=src
+
+override_dh_auto_configure:
+ dh_auto_configure -- --systemddir=/lib/systemd/system --ebuild-compat
+
+override_dh_installinit:
+ dh_installinit --onlyscripts
+
+override_dh_systemd_enable:
+ dh_systemd_enable dropnroll@.service
+
+override_dh_systemd_start:
+ dh_systemd_start dropnroll@.service
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)
diff --git a/src/Makefile b/src/Makefile
index 886872e..13b38b5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -102,7 +102,7 @@ install-bin: $(EXECUTABLE)
install-systemd:
$(INSTALL) -d $(DESTDIR)$(SYSTEMDDIR)
- $(INSTALL) -m 644 ../contrib/systemd.service $(DESTDIR)$(SYSTEMDDIR)/$(EXECUTABLE).service
+ $(INSTALL) -m 644 ../contrib/systemd@.service $(DESTDIR)$(SYSTEMDDIR)/$(EXECUTABLE)@.service
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m 755 ../contrib/$(EXECUTABLE)-launcher $(DESTDIR)$(BINDIR)