description="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP."
url="http://pptpclient.sourceforge.net/"

contributors="Guy, Greg, Rems"
packager="tnut <tnut@nutyx.org>"

makedepends=(ppp)

name=pptp
version=1.10.0
release=2

source=(http://downloads.sourceforge.net/sourceforge/pptpclient/$name-$version.tar.gz)

build() {

	cd $name-$version

# 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|/sbin/ip|g' routing.c

	make
	make DESTDIR=$PKG install
	
}
