diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-06-27 03:56:37 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-06-27 03:56:37 +0000 |
commit | 2676c8b3a08c1af42cabaa11ac68985ef635eca3 (patch) | |
tree | e04aef3931197d9020ca26e75c3f8f62e666041c /extra/pptpclient | |
parent | 76b667b6360f6f7e97f13392cf156f197dc4017b (diff) |
Fri Jun 27 03:52:25 UTC 2014
Diffstat (limited to 'extra/pptpclient')
-rw-r--r-- | extra/pptpclient/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/pptpclient/PKGBUILD b/extra/pptpclient/PKGBUILD new file mode 100644 index 000000000..e09245fec --- /dev/null +++ b/extra/pptpclient/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 215491 2014-06-26 20:19:29Z daniel $ +# Maintainer: Daniel Isenmann <daniel @ archlinux.org> +# Contributor: Mark Nikkel <mnikkel@gmail.com> + +pkgname=pptpclient +pkgver=1.8.0 +pkgrel=1 +pkgdesc="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP." +arch=('i686' 'x86_64') +url="http://pptpclient.sourceforge.net/" +license=('GPL') +depends=('ppp' 'iproute2') +backup=('etc/ppp/options.pptp') +source=("http://downloads.sourceforge.net/sourceforge/pptpclient/pptp-$pkgver.tar.gz") +md5sums=('4efce9f263e2c3f38d79d9df222476de') + +prepare() { + cd $srcdir/pptp-$pkgver + + # use our CFLAGS and LDFLAGS + sed -i -e "/CFLAGS =/ c\CFLAGS = ${CFLAGS}" Makefile + sed -i -e "/LDFLAGS =/ c\LDFLAGS = ${LDFLAGS}" Makefile + + # adjust ip path + sed -i 's#/bin/ip#/usr/bin/ip#' routing.c + + # put binaries in /usr/bin + sed -i "/BINDIR/s#/sbin#/bin#" Makefile +} + +build() { + cd $srcdir/pptp-$pkgver + make +} + +package() { + cd $srcdir/pptp-$pkgver + make DESTDIR=$pkgdir install +} |