summaryrefslogtreecommitdiff
path: root/core/pptpclient/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/pptpclient/PKGBUILD')
-rw-r--r--core/pptpclient/PKGBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/core/pptpclient/PKGBUILD b/core/pptpclient/PKGBUILD
index b27c7d5bc..d4e2d3e0e 100644
--- a/core/pptpclient/PKGBUILD
+++ b/core/pptpclient/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 142906 2011-11-18 07:42:07Z pierre $
+# $Id: PKGBUILD 187040 2013-06-03 11:15:32Z allan $
# Maintainer: Daniel Isenmann <daniel @ archlinux.org>
# Contributor: Mark Nikkel <mnikkel@gmail.com>
pkgname=pptpclient
pkgver=1.7.2
-pkgrel=4
+pkgrel=5
pkgdesc="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP."
arch=('i686' 'x86_64')
url="http://pptpclient.sourceforge.net/"
@@ -14,7 +14,7 @@ backup=('etc/ppp/options.pptp')
source=("http://downloads.sourceforge.net/sourceforge/pptpclient/pptp-$pkgver.tar.gz")
md5sums=('4c3d19286a37459a632c7128c92a9857')
-build() {
+prepare() {
cd $srcdir/pptp-$pkgver
# use our CFLAGS and LDFLAGS
@@ -22,8 +22,14 @@ build() {
sed -i -e "/LDFLAGS =/ c\LDFLAGS = ${LDFLAGS}" Makefile
# adjust ip path
- sed -i 's#/bin/ip#/usr/sbin/ip#' routing.c
+ 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
}