[Pkg-swan-devel] [strongswan] 02/02: Initial systemd integration

Romain Francoise rfrancoise at moszumanska.debian.org
Fri Jul 25 22:06:05 UTC 2014


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

rfrancoise pushed a commit to branch master
in repository strongswan.

commit d5dc988a10f44a08f0b85e85d23abbd84c06a927
Author: Romain Francoise <rfrancoise at debian.org>
Date:   Fri Jul 25 23:15:34 2014 +0200

    Initial systemd integration
---
 debian/changelog                        | 14 ++++++++++++++
 debian/control                          |  4 ++--
 debian/patches/03_systemd-service.patch | 15 +++++++++++++++
 debian/patches/series                   |  1 +
 debian/rules                            |  2 +-
 debian/strongswan-starter.install       |  1 +
 6 files changed, 34 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a505fbe..adbc5dd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,17 @@
+strongswan (5.2.0-2) UNRELEASED; urgency=medium
+
+  * Add systemd integration:
+    + Install upstream systemd service file in strongswan-starter.
+    + Alias strongswan.service to ipsec.service to match the sysv init script.
+    + Drop After=syslog.target, as syslog is socket-activated nowadays.
+    + Add ExecReload for reload action, since the starter script has one.
+    + On linux-any, add build-dep on systemd to ensure that the pkg-config
+      metadata file can be found.
+    + Add build-dep on dh-systemd, and use systemd dh addon.
+  * Remove debian/patches/03_include-stdint.patch.
+
+ -- Romain Francoise <rfrancoise at debian.org>  Fri, 25 Jul 2014 22:51:04 +0200
+
 strongswan (5.2.0-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/control b/debian/control
index 5b8d400..ddf6905 100644
--- a/debian/control
+++ b/debian/control
@@ -11,11 +11,11 @@ Vcs-Git: git://anonscm.debian.org/pkg-swan/strongswan.git
 Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.2), libtool, libgmp3-dev, 
   libssl-dev (>= 0.9.8), libcurl4-openssl-dev | libcurl3-dev | libcurl2-dev,
   libldap2-dev, libpam0g-dev, libkrb5-dev, bison, flex, bzip2, po-debconf,
-  libfcgi-dev, clearsilver-dev,
+  libfcgi-dev, clearsilver-dev, libgcrypt20-dev | libgcrypt11-dev,
   libxml2-dev, libsqlite3-dev, network-manager-dev (>= 0.7) [linux-any], 
   libnm-glib-vpn-dev (>= 0.7) [linux-any], libnm-util-dev (>= 0.7) [linux-any], 
   gperf, libcap-dev [linux-any], dh-autoreconf, pkg-config,
-  libgcrypt20-dev | libgcrypt11-dev
+  systemd [linux-any], dh-systemd (>= 1.5)
 Homepage: http://www.strongswan.org
 
 Package: strongswan
diff --git a/debian/patches/03_systemd-service.patch b/debian/patches/03_systemd-service.patch
new file mode 100644
index 0000000..bcf5812
--- /dev/null
+++ b/debian/patches/03_systemd-service.patch
@@ -0,0 +1,15 @@
+--- a/init/systemd/strongswan.service.in
++++ b/init/systemd/strongswan.service.in
+@@ -1,10 +1,11 @@
+ [Unit]
+ Description=strongSwan IPsec
+-After=syslog.target
+ 
+ [Service]
+ ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
++ExecReload=@SBINDIR@/@IPSEC_SCRIPT@ reload
+ StandardOutput=syslog
+ 
+ [Install]
+ WantedBy=multi-user.target
++Alias=ipsec.service
diff --git a/debian/patches/series b/debian/patches/series
index 2773268..7d9c29e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 01_fix-manpages.patch
 02_disable-libtls-tests.patch
+03_systemd-service.patch
diff --git a/debian/rules b/debian/rules
index 51ab054..8af4d3d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -196,4 +196,4 @@ override_dh_installlogcheck:
 	dh_installlogcheck --name strongswan
 
 %:
-	dh $@ --parallel --with autoreconf
+	dh $@ --parallel --with autoreconf,systemd
diff --git a/debian/strongswan-starter.install b/debian/strongswan-starter.install
index 5d765ee..ee8c8ec 100644
--- a/debian/strongswan-starter.install
+++ b/debian/strongswan-starter.install
@@ -10,6 +10,7 @@ usr/share/man/man8/ipsec.8
 usr/share/man/man5/ipsec.conf.5
 usr/share/man/man5/ipsec.secrets.5
 usr/share/man/man5/strongswan.conf.5
+lib/systemd/system/strongswan.service
 #updown
 usr/lib/ipsec/plugins/libstrongswan-updown.so
 usr/share/strongswan/templates/config/plugins/updown.conf

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-swan/strongswan.git



More information about the Pkg-swan-devel mailing list