From 1bb82e686f2aa870e7ee2118fe9e387a7f9c6b99 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 21 Sep 2015 02:30:23 +0200 Subject: added debian dir and fixed initscrpt --- contrib/initscript | 2 +- contrib/systemd.service | 9 --------- contrib/systemd@.service | 9 +++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 16 ++++++++++++++++ debian/copyright | 43 +++++++++++++++++++++++++++++++++++++++++++ debian/rules | 15 +++++++++++++++ debian/source/format | 1 + src/Makefile | 2 +- 10 files changed, 92 insertions(+), 11 deletions(-) delete mode 100644 contrib/systemd.service create mode 100644 contrib/systemd@.service create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format 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 deleted file mode 100644 index af48071..0000000 --- a/contrib/systemd.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Drop'N'Roll Daemon (%i) - -[Service] -ExecStart=/usr/bin/dropnroll-launcher %i -PrivateDevices=yes - -[Install] -WantedBy=multi-user.target diff --git a/contrib/systemd@.service b/contrib/systemd@.service new file mode 100644 index 0000000..af48071 --- /dev/null +++ b/contrib/systemd@.service @@ -0,0 +1,9 @@ +[Unit] +Description=Drop'N'Roll Daemon (%i) + +[Service] +ExecStart=/usr/bin/dropnroll-launcher %i +PrivateDevices=yes + +[Install] +WantedBy=multi-user.target 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 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 +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 + +Files: * +Copyright: Copyright 2009-2015 Christian Pointner +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 . + . + 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 +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 . + . + 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) -- cgit v1.2.3