summaryrefslogtreecommitdiff
path: root/community/xl2tpd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-06 00:25:32 -0700
committerroot <root@rshg054.dnsready.net>2012-10-06 00:25:32 -0700
commite7552010f531ef1b114352f0ce71a307360bf1d4 (patch)
treed37bd67211f2dc084113f36b80f2b4b5b9622aa5 /community/xl2tpd
parent777466db27694f0cad10a7159ba66f2a2b39a516 (diff)
Sat Oct 6 00:25:32 PDT 2012
Diffstat (limited to 'community/xl2tpd')
-rw-r--r--community/xl2tpd/PKGBUILD11
-rw-r--r--community/xl2tpd/xl2tpd.service15
-rw-r--r--community/xl2tpd/xl2tpd.tmpfiles1
3 files changed, 25 insertions, 2 deletions
diff --git a/community/xl2tpd/PKGBUILD b/community/xl2tpd/PKGBUILD
index e6936d7ea..0eaa673bb 100644
--- a/community/xl2tpd/PKGBUILD
+++ b/community/xl2tpd/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 65258 2012-02-20 12:39:15Z spupykin $
+# $Id: PKGBUILD 77112 2012-10-05 10:17:51Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Hengfu <rhfcaesar@gmail.com>
pkgname=xl2tpd
pkgver=1.3.0
-pkgrel=2
+pkgrel=3
pkgdesc="an open source implementation of the L2TP maintained by Xelerance Corporation"
arch=('i686' 'x86_64')
url="http://www.xelerance.com/services/software/xl2tpd/"
@@ -18,12 +18,16 @@ source=(http://arch.p5n.pp.ru/~sergej/dl/2012/xl2tpd-$pkgver.tar.gz
xl2tpd.conf.client-example
xl2tpd.conf.server-example
options.l2tpd
+ xl2tpd.service
+ xl2tpd.tmpfiles
ipparam.patch)
md5sums=('28264284552c442b24cf421755a2bb48'
'1439d13084fc09c2a19c97b24a834345'
'5f0ae07026e61a3dd15a76fd4144a6d5'
'16ed0886115d4dcc21072cfb847250bb'
'ed57eb67335cdf246251285dad502cc7'
+ '5ba9ddaf66c9827fe4a2caef67cf61c2'
+ '2e95e4fc03e1521ab20fd7e249efab5a'
'4d258a58cc109d5c4d96af8f81d481cf')
build() {
@@ -38,4 +42,7 @@ build() {
install -D -m0644 $srcdir/xl2tpd.conf.client-example $pkgdir/etc/xl2tpd/xl2tpd.conf.client-example
install -D -m0644 $srcdir/xl2tpd.conf.server-example $pkgdir/etc/xl2tpd/xl2tpd.conf.server-example
install -D -m0644 $srcdir/options.l2tpd $pkgdir/etc/ppp/options.l2tpd
+
+ install -Dm0644 $srcdir/xl2tpd.service $pkgdir/usr/lib/systemd/system/xl2tpd.service
+ install -Dm0644 $srcdir/xl2tpd.tmpfiles $pkgdir/usr/lib/tmpfiles.d/xl2tpd.conf
}
diff --git a/community/xl2tpd/xl2tpd.service b/community/xl2tpd/xl2tpd.service
new file mode 100644
index 000000000..b47cadf02
--- /dev/null
+++ b/community/xl2tpd/xl2tpd.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Level 2 Tunnel Protocol Daemon (L2TP)
+After=syslog.target network.target
+After=ipsec.service
+# Some ISPs in Russia use l2tp without IPsec, so don't insist anymore
+#Wants=ipsec.service
+
+[Service]
+Type=simple
+PIDFile=/var/run/xl2tpd/xl2tpd.pid
+ExecStart=/usr/sbin/xl2tpd -D
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target
diff --git a/community/xl2tpd/xl2tpd.tmpfiles b/community/xl2tpd/xl2tpd.tmpfiles
new file mode 100644
index 000000000..139680eb2
--- /dev/null
+++ b/community/xl2tpd/xl2tpd.tmpfiles
@@ -0,0 +1 @@
+d /var/run/xl2tpd 0755 root root -