[debian-edu-commits] debian-edu/ 03/18: Add systemd support.

Dominik George natureshadow-guest at moszumanska.debian.org
Fri Oct 7 18:49:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

natureshadow-guest pushed a commit to branch master
in repository guacamole-server.

commit ef7178169eca05b801b3939741916032c01499ed
Author: Dominik George <nik at naturalnet.de>
Date:   Fri Oct 7 15:39:07 2016 +0200

    Add systemd support.
---
 debian/changelog     |  1 +
 debian/control       |  1 +
 debian/guacd.default |  8 ++++++++
 debian/guacd.install |  1 +
 debian/guacd.service | 16 ++++++++++++++++
 debian/rules         |  2 +-
 6 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 95ae7dd..20c28f8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ guacamole-server (0.9.9-1) UNRELEASED; urgency=medium
     + Enables WebP support.
     + Moves to libssh2.
   * Add shlib symbols file.
+  * Add systemd support.
   * Set maintainer to Debian Edu Developers (Closes: #805670)
   * Update homepage and VCS fields
   * Reformat control file
diff --git a/debian/control b/debian/control
index bf7e8b2..6ab86d3 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends:
  autotools-dev,
  debhelper (>= 9),
  dh-autoreconf,
+ dh-systemd (>= 1.5),
  libcairo-dev,
  libcunit1-dev,
  libfreerdp-dev (>= 1.0.1),
diff --git a/debian/guacd.default b/debian/guacd.default
new file mode 100644
index 0000000..2490f49
--- /dev/null
+++ b/debian/guacd.default
@@ -0,0 +1,8 @@
+# Environment for guacd
+
+# Address and port to listen on for network connections
+LISTEN_ADDRESS=127.0.0.1
+LISTEN_PORT=4822
+
+# Other arguments to guacd
+DAEMON_ARGS=
diff --git a/debian/guacd.install b/debian/guacd.install
index 1a6b1ba..eb7d79f 100644
--- a/debian/guacd.install
+++ b/debian/guacd.install
@@ -1,2 +1,3 @@
 /usr/sbin/guacd
 /usr/share/man/man8/guacd.8
+debian/guacd.service /lib/systemd/system/
diff --git a/debian/guacd.service b/debian/guacd.service
new file mode 100644
index 0000000..3f5428f
--- /dev/null
+++ b/debian/guacd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Guacamole proxy daemon
+Requires=xrdp-sesman.service
+After=syslog.target network.target
+
+[Service]
+Type=forking
+User=guacd
+Group=guacd
+RuntimeDirectory=guacd
+PIDFile=/var/run/guacd/guacd.pid
+EnvironmentFile=-/etc/default/guacd
+ExecStart=/usr/sbin/guacd $DAEMON_ARGS -b $LISTEN_ADDRESS -l $LISTEN_PORT
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/rules b/debian/rules
index b2dbac0..27995f1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 %:
-	dh $@ --with autoreconf
+	dh $@ --with autoreconf --with systemd
 
 # Set lib directory properly for multiarch
 override_dh_auto_configure:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/guacamole-server.git



More information about the debian-edu-commits mailing list