From 3973788d772b7eb95284222a1ef9a7c9a00dd974 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 14 May 2015 15:38:17 +0200 Subject: updated to package 0.12 with systemd unit files diff --git a/debian/changelog b/debian/changelog index b370da3..cd2f059 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +rhnop (0.12-1) UNRELEASED; urgency=medium + + * add systemd unit files + * fix some issues with library and config path + + -- Christian Pointner Thu, 14 May 2015 15:35:59 +0200 + rhnop (0.11-1) unstable; urgency=medium * Initial release. diff --git a/debian/control b/debian/control index 169a44b..065e31d 100644 --- a/debian/control +++ b/debian/control @@ -3,31 +3,31 @@ Maintainer: Christian Pointner Section: net Priority: optional Standards-Version: 3.9.5 -Build-Depends: debhelper (>= 9), liblua5.2-dev, lua5.2 +Build-Depends: debhelper (>= 9), dh-systemd, liblua5.2-dev, lua5.2 Package: rhnop-common Architecture: all Depends: ${misc:Depends}, adduser Description: Radio Helsinki now playing information system - common - The Radio Helsinki now playing information system gathers the - now playing info into an mysql database for further processing. - . - This package contains common files. + The Radio Helsinki now playing information system gathers the + now playing info into an mysql database for further processing. + . + This package contains common files. Package: rhnop-client Architecture: all Depends: ${misc:Depends}, rhnop-common, lua-socket, lua-sql-mysql, lua5.2 Description: Radio Helsinki now playing information system - client - The Radio Helsinki now playing information system gathers the - now playing info into an mysql database for further processing. - . - This package contains the client component (import server). + The Radio Helsinki now playing information system gathers the + now playing info into an mysql database for further processing. + . + This package contains the client component (import server). Package: rhnop-server Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, rhnop-common, lua-posix, lua-socket, lua-sql-mysql, lua-mq, lua5.2 Description: Radio Helsinki now playing information system - server - The Radio Helsinki now playing information system gathers the - now playing info into an mysql database for further processing. - . - This package contains the server component (airplay server). + The Radio Helsinki now playing information system gathers the + now playing info into an mysql database for further processing. + . + This package contains the server component (airplay server). diff --git a/debian/copyright b/debian/copyright index c86ffd4..8abf351 100644 --- a/debian/copyright +++ b/debian/copyright @@ -18,6 +18,10 @@ License: GPL-3+ . You should have received a copy of the GNU General Public License along with rhnop. 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 @@ -34,3 +38,7 @@ License: GPL-3+ . 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/rhnop-client.nopcollectd-master.service b/debian/rhnop-client.nopcollectd-master.service new file mode 100644 index 0000000..154e374 --- /dev/null +++ b/debian/rhnop-client.nopcollectd-master.service @@ -0,0 +1,14 @@ +[Unit] +Description=Radio Helsinki Now Playing Daemon (Client: Master) + +[Service] +ExecStart=/usr/bin/nopcollectd master +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=full +ProtectHome=yes + +[Install] +WantedBy=multi-user.target diff --git a/debian/rhnop-client.nopcollectd-standby.service b/debian/rhnop-client.nopcollectd-standby.service new file mode 100644 index 0000000..5c6ec33 --- /dev/null +++ b/debian/rhnop-client.nopcollectd-standby.service @@ -0,0 +1,14 @@ +[Unit] +Description=Radio Helsinki Now Playing Daemon (Client: Standby) + +[Service] +ExecStart=/usr/bin/nopcollectd standby +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=full +ProtectHome=yes + +[Install] +WantedBy=multi-user.target diff --git a/debian/rhnop-client.nopsysstated.service b/debian/rhnop-client.nopsysstated.service new file mode 100644 index 0000000..d65dca8 --- /dev/null +++ b/debian/rhnop-client.nopsysstated.service @@ -0,0 +1,14 @@ +[Unit] +Description=Radio Helsinki Playout State Daemon + +[Service] +ExecStart=/usr/bin/nopsysstated +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=full +ProtectHome=yes + +[Install] +WantedBy=multi-user.target diff --git a/debian/rhnop-server.nopsyncd.service b/debian/rhnop-server.nopsyncd.service new file mode 100644 index 0000000..bd05e68 --- /dev/null +++ b/debian/rhnop-server.nopsyncd.service @@ -0,0 +1,14 @@ +[Unit] +Description=Radio Helsinki Now Playing Daemon (Server) + +[Service] +ExecStart=/usr/bin/nopsyncd +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=full +ProtectHome=yes + +[Install] +WantedBy=multi-user.target diff --git a/debian/rules b/debian/rules index 83b194e..e09f048 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,12 @@ #!/usr/bin/make -f %: - dh $@ --sourcedirectory=src + dh $@ --with=systemd --sourcedirectory=src override_dh_auto_configure: dh_auto_configure -- --ebuild-compat + +override_dh_systemd_enable: + dh_systemd_enable --name=nopsyncd nopsyncd.service + dh_systemd_enable --name=nopsysstated nopsysstated.service + dh_systemd_enable --name=nopcollectd-master nopcollectd-master.service + dh_systemd_enable --name=nopcollectd-standby nopcollectd-standby.service -- cgit v0.10.2