diff options
Diffstat (limited to 'community/pptpd/PKGBUILD')
-rw-r--r-- | community/pptpd/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/community/pptpd/PKGBUILD b/community/pptpd/PKGBUILD new file mode 100644 index 000000000..8a3a1bd05 --- /dev/null +++ b/community/pptpd/PKGBUILD @@ -0,0 +1,49 @@ +# $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=13 +pkgdesc="Poptop server" +arch=(i686 x86_64) +url="http://poptop.sourceforge.net/" +license=('GPL') +depends=(ppp glibc) +backup=(etc/pptpd.conf) +source=(http://downloads.sourceforge.net/sourceforge/poptop/pptpd-$pkgver.tar.gz + pptpd.service + unrecognized-opt.patch) +md5sums=('b38df9c431041922c997c1148bedf591' + 'f17df2a137282adbd04c75dd25784a9c' + 'cfa02c86d0413eb94fac15599986f54c') + +build() { + local _pppver=`pacman -Q ppp` + _pppver=${_pppver%-*} + _pppver=${_pppver#ppp } + + 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 \ + --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 + sed -i 's|?=|=|g' plugins/Makefile +} + +package() { + cd $srcdir/$pkgname-$pkgver + 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 -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/ +} |