1 # Contributor: Vadim Abramchuk <abram@uainet.net>
2 pkgname=accel-pptp-server-git
5 pkgdesc="Kernelspace PPTP server"
7 url="http://accel-pptp.sourceforge.net/"
10 depends=('ppp','accel-pptp-kernel-git')
17 #install='accel-pptp.install'
19 source=(fix-accel-pptp-install.patch)
21 md5sums=('b9a70799466564c1307b52c4159f8163')
23 _gitroot="git://accel-pptp.git.sourceforge.net/gitroot/accel-pptp/accel-pptp"
28 msg "Connecting to GIT server...."
30 if [ -d $_gitname ] ; then
31 cd $_gitname && git pull origin
32 msg "The local files are updated."
37 msg "GIT checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf "$srcdir/$_gitname-build"
41 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
48 export PPPD_VERSION=`/usr/sbin/pppd --version 2>&1|grep version|awk '{print $3}'`
49 echo ">>> Building pppd plugin"
53 mkdir -p $pkgdir/usr/lib/pppd/${PPPD_VERSION}
54 install -m 0644 src/.libs/pptp.so.0.0.0 $pkgdir/usr/lib/pppd/$PPPD_VERSION/pptp.so
56 echo ">>> Plugin install dir is $pkgdir/usr/lib/pppd/$PPPD_VERSION"
57 echo ">>> Patching the source..."
60 patch -p1 < ${startdir}/fix-accel-pptp-install.patch
61 echo ">>> Building PPTP server..."
62 ./configure --prefix=/usr
64 make DESTDIR=${pkgdir} install