summaryrefslogtreecommitdiff
path: root/community/pptpd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-16 00:33:10 -0700
committerroot <root@rshg054.dnsready.net>2012-10-16 00:33:10 -0700
commit99d0ec7ebad2eda5f3a03098962e3b250e3bef4c (patch)
tree8b24758dfa8c691cda33acaa931699ce81dc1c15 /community/pptpd
parente9dd04abd0ede1143ea4af10059e37c2f599e1fd (diff)
Tue Oct 16 00:33:08 PDT 2012
Diffstat (limited to 'community/pptpd')
-rw-r--r--community/pptpd/PKGBUILD7
-rw-r--r--community/pptpd/pptpd.service10
2 files changed, 15 insertions, 2 deletions
diff --git a/community/pptpd/PKGBUILD b/community/pptpd/PKGBUILD
index c3e97bec9..d7e98e032 100644
--- a/community/pptpd/PKGBUILD
+++ b/community/pptpd/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 74350 2012-07-25 10:18:29Z spupykin $
+# $Id: PKGBUILD 77852 2012-10-15 09:47:33Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=pptpd
pkgver=1.3.4
-pkgrel=10
+pkgrel=11
pkgdesc="Poptop server"
arch=(i686 x86_64)
url="http://poptop.sourceforge.net/"
@@ -12,9 +12,11 @@ depends=(ppp glibc)
backup=(etc/pptpd.conf)
source=(http://downloads.sourceforge.net/sourceforge/poptop/pptpd-$pkgver.tar.gz
pptpd
+ pptpd.service
unrecognized-opt.patch)
md5sums=('b38df9c431041922c997c1148bedf591'
'e09f81beb5d59a0fdfba94e3a60d992b'
+ '144c17c7d5c1b95cfb3450eb73aa2e50'
'cfa02c86d0413eb94fac15599986f54c')
build() {
@@ -38,6 +40,7 @@ package() {
mkdir -p $pkgdir/etc/
echo -e "# Read man pptpd.conf, see samples in /usr/share/doc/pptpd\n# and write your pptpd configuration here" >$pkgdir/etc/pptpd.conf
install -Dm0755 ../pptpd $pkgdir/etc/rc.d/pptpd
+ install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
mkdir -p $pkgdir/usr/share/doc/pptpd
cp -a samples $pkgdir/usr/share/doc/pptpd/
}
diff --git a/community/pptpd/pptpd.service b/community/pptpd/pptpd.service
new file mode 100644
index 000000000..739508b60
--- /dev/null
+++ b/community/pptpd/pptpd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=PPTP Server
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/pptpd -c /etc/pptpd.conf -p /var/run/pptpd.pid -f
+StandardOutput=null
+
+[Install]
+WantedBy=multi-user.target