aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libreswan/ipsec.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-05-13 18:37:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-05-13 18:37:10 +0000
commit61c14a0399fd8c6015dfd891dbf8f4f6bb63fdb7 (patch)
tree687d428c26a7105c2c5c71af1c6eda51bda56586 /testing/libreswan/ipsec.initd
parent0fa58f9984bf847986daad76fad7d5199a3f707b (diff)
downloadaports-61c14a0399fd8c6015dfd891dbf8f4f6bb63fdb7.tar.bz2
aports-61c14a0399fd8c6015dfd891dbf8f4f6bb63fdb7.tar.xz
testing/libreswan: fix installdirs, add init.d script from openswan
and split out docs
Diffstat (limited to 'testing/libreswan/ipsec.initd')
-rw-r--r--testing/libreswan/ipsec.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/libreswan/ipsec.initd b/testing/libreswan/ipsec.initd
new file mode 100644
index 0000000000..d5bb222ef8
--- /dev/null
+++ b/testing/libreswan/ipsec.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+
+# libreswan ipsec init.d file for alpine linux.
+
+name=ipsec
+daemon=/usr/libexec/ipsec/setup
+pidfile=/var/run/pluto/ipsec_setup.pid
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting ${name}"
+ $daemon start
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${name}"
+ $daemon stop
+ eend $?
+}
+