From 99d0ec7ebad2eda5f3a03098962e3b250e3bef4c Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Oct 2012 00:33:10 -0700 Subject: Tue Oct 16 00:33:08 PDT 2012 --- community/pptpd/PKGBUILD | 7 +++++-- community/pptpd/pptpd.service | 10 ++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 community/pptpd/pptpd.service (limited to 'community/pptpd') 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 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 -- cgit v1.2.3-54-g00ecf