[arch-commits] Commit in pptpclient/trunk (PKGBUILD)
Allan McRae
allan at archlinux.org
Fri Nov 19 12:45:55 UTC 2010
Date: Friday, November 19, 2010 @ 07:45:55
Author: allan
Revision: 99891
upgpkg: pptpclient 1.7.2-3
rebuild of old package, use our LDFLAGS, tidy up PKGBUILD
Modified:
pptpclient/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-11-19 12:11:16 UTC (rev 99890)
+++ PKGBUILD 2010-11-19 12:45:55 UTC (rev 99891)
@@ -1,21 +1,33 @@
+# $Id$
# Maintainer: Daniel Isenmann <daniel @ archlinux.org>
# Contributor: Mark Nikkel <mnikkel at gmail.com>
+
pkgname=pptpclient
pkgver=1.7.2
-pkgrel=2
+pkgrel=3
pkgdesc="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP."
+arch=('i686' 'x86_64')
url="http://pptpclient.sourceforge.net/"
license=('GPL')
-depends=(glibc ppp iproute2)
-backup=(etc/ppp/{options.pptp})
+depends=('ppp' 'iproute2')
+backup=(etc/ppp/options.pptp)
source=(http://downloads.sourceforge.net/sourceforge/pptpclient/pptp-$pkgver.tar.gz)
md5sums=('4c3d19286a37459a632c7128c92a9857')
-arch=('i686' 'x86_64')
-
+
build() {
cd $srcdir/pptp-$pkgver
- sed -i '/CFLAGS/d' Makefile
- sed -i 's|\/bin\/ip|\/usr\/sbin\/ip|g' routing.c
- make || return 1
+
+ # 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/sbin/ip#' routing.c
+
+ make
+}
+
+package() {
+ cd $srcdir/pptp-$pkgver
make DESTDIR=$pkgdir install
}
More information about the arch-commits
mailing list