diff options
Diffstat (limited to 'community/pptpd')
-rw-r--r-- | community/pptpd/PKGBUILD | 17 | ||||
-rw-r--r-- | community/pptpd/pptpd | 35 | ||||
-rw-r--r-- | community/pptpd/pptpd.service | 2 |
3 files changed, 11 insertions, 43 deletions
diff --git a/community/pptpd/PKGBUILD b/community/pptpd/PKGBUILD index ab5e4d45c..db5d84eea 100644 --- a/community/pptpd/PKGBUILD +++ b/community/pptpd/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 77852 2012-10-15 09:47:33Z spupykin $ +# $Id: PKGBUILD 91528 2013-05-23 11:16:52Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> pkgname=pptpd pkgver=1.3.4 -pkgrel=11 +pkgrel=13 pkgdesc="Poptop server" arch=(i686 x86_64 'mips64el') url="http://poptop.sourceforge.net/" @@ -11,12 +11,10 @@ license=('GPL') 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' + 'f17df2a137282adbd04c75dd25784a9c' 'cfa02c86d0413eb94fac15599986f54c') build() { @@ -26,8 +24,14 @@ build() { cd $srcdir/$pkgname-$pkgver patch -p1 <$srcdir/unrecognized-opt.patch + sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADER|g' configure.in autoreconf -i - ./configure --prefix=/usr --libdir=/usr/lib --exec-prefix=/usr --mandir=/usr/share/man + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib \ + --sbindir=/usr/bin \ + --exec-prefix=/usr \ + --mandir=/usr/share/man sed -i "s|#define VERSION.*|#define VERSION \"${_pppver}\"|" plugins/patchlevel.h make sed -i 's|install -o root|install|g' plugins/Makefile @@ -39,7 +43,6 @@ package() { make DESTDIR=$pkgdir install 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 b/community/pptpd/pptpd deleted file mode 100644 index 08c4de496..000000000 --- a/community/pptpd/pptpd +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -# general config -. /etc/rc.conf -. /etc/rc.d/functions - -case "$1" in - start) - stat_busy "Starting PPTP Daemon" - pptpd -c /etc/pptpd.conf -p /var/run/pptpd.pid - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon pptpd - stat_done - fi - ;; - stop) - stat_busy "Stopping PPTP Daemon" - kill `cat /var/run/pptpd.pid` - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon pptpd - stat_done - fi - ;; - restart) - $0 stop - sleep 3 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac diff --git a/community/pptpd/pptpd.service b/community/pptpd/pptpd.service index 739508b60..c907c0b9f 100644 --- a/community/pptpd/pptpd.service +++ b/community/pptpd/pptpd.service @@ -3,7 +3,7 @@ Description=PPTP Server After=network.target [Service] -ExecStart=/usr/sbin/pptpd -c /etc/pptpd.conf -p /var/run/pptpd.pid -f +ExecStart=/usr/bin/pptpd -c /etc/pptpd.conf -p /var/run/pptpd.pid -f StandardOutput=null [Install] |