summaryrefslogtreecommitdiff
path: root/community/ipsec-tools
diff options
context:
space:
mode:
Diffstat (limited to 'community/ipsec-tools')
-rw-r--r--community/ipsec-tools/PKGBUILD11
-rw-r--r--community/ipsec-tools/ipsec.service11
2 files changed, 18 insertions, 4 deletions
diff --git a/community/ipsec-tools/PKGBUILD b/community/ipsec-tools/PKGBUILD
index bef043e60..e727d5644 100644
--- a/community/ipsec-tools/PKGBUILD
+++ b/community/ipsec-tools/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 77124 2012-10-05 11:03:22Z spupykin $
+# $Id: PKGBUILD 78385 2012-10-17 16:23:33Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Allan Henriksen <allan.henriksen@gmail.com>
pkgname=ipsec-tools
pkgver=0.8.0
-pkgrel=4
+pkgrel=5
pkgdesc="KAME IPSec tools ported to Linux"
arch=('i686' 'x86_64' 'mips64el')
url="http://ipsec-tools.sourceforge.net/"
@@ -15,11 +15,13 @@ options=('!makeflags' '!libtool')
source=(http://downloads.sourceforge.net/sourceforge/ipsec-tools/$pkgname-$pkgver.tar.bz2
racoon.rc
ipsec.rc
- racoon.service)
+ racoon.service
+ ipsec.service)
md5sums=('b79aae3055a51f8de5c0f1b8ca6cf619'
'416b8e362d86987b8c55f7153cdafbeb'
'90d0810267cbd847383ae3101699b192'
- '1632fce55ba5592dea1f8bf661106e7d')
+ '1632fce55ba5592dea1f8bf661106e7d'
+ 'bc05a2b85e41bf89dac809657e857730')
build() {
cd $srcdir/$pkgname-$pkgver
@@ -36,4 +38,5 @@ package() {
install -Dm0755 $srcdir/racoon.rc $pkgdir/etc/rc.d/racoon
install -Dm0755 $srcdir/ipsec.rc $pkgdir/etc/rc.d/ipsec
install -Dm0644 $srcdir/racoon.service $pkgdir/usr/lib/systemd/system/racoon.service
+ install -Dm0644 $srcdir/ipsec.service $pkgdir/usr/lib/systemd/system/ipsec.service
}
diff --git a/community/ipsec-tools/ipsec.service b/community/ipsec-tools/ipsec.service
new file mode 100644
index 000000000..63db40b22
--- /dev/null
+++ b/community/ipsec-tools/ipsec.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Load IPSec Security Policy Database
+After=syslog.target network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/setkey -f /etc/ipsec.conf
+ExecStop=/usr/sbin/setkey -F -P ; /usr/sbin/setkey -F
+
+[Install]
+WantedBy=multi-user.target