From e864119910827fecc4cd5a51d3987598e0f9526a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 31 Dec 2009 14:00:09 +0000 Subject: testing/pptpclient: new aport Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP. http://pptpclient.sourceforge.net/ --- testing/pptpclient/APKBUILD | 31 ++++++++++++++++++++++++++++++ testing/pptpclient/pptpclient-uclibc.patch | 21 ++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 testing/pptpclient/APKBUILD create mode 100644 testing/pptpclient/pptpclient-uclibc.patch (limited to 'testing/pptpclient') diff --git a/testing/pptpclient/APKBUILD b/testing/pptpclient/APKBUILD new file mode 100644 index 00000000..a5077f6b --- /dev/null +++ b/testing/pptpclient/APKBUILD @@ -0,0 +1,31 @@ +# Maintainer: Natanael Copa +pkgname=pptpclient +pkgver=1.7.2 +pkgrel=0 +pkgdesc="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP." +url="http://pptpclient.sourceforge.net/" +license="GPL" +depends="ppp iproute2" +makedepends= +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/sourceforge/$pkgname/pptp-$pkgver.tar.gz + pptpclient-uclibc.patch" + +prepare() { + cd "$srcdir"/pptp-$pkgver + patch -p1 -i "$srcdir"/pptpclient-uclibc.patch || return 1 + sed -i '/CFLAGS/d' Makefile + sed -i 's|\/bin\/ip|\/usr\/sbin\/ip|g' routing.c +} + +build() { + cd "$srcdir"/pptp-$pkgver + make || return 1 +} + +package() { + cd "$srcdir"/pptp-$pkgver + make DESTDIR="$pkgdir" install +} +md5sums="4c3d19286a37459a632c7128c92a9857 pptp-1.7.2.tar.gz +34b643e4e4224e723f6a768018b46015 pptpclient-uclibc.patch" diff --git a/testing/pptpclient/pptpclient-uclibc.patch b/testing/pptpclient/pptpclient-uclibc.patch new file mode 100644 index 00000000..aa9536e4 --- /dev/null +++ b/testing/pptpclient/pptpclient-uclibc.patch @@ -0,0 +1,21 @@ +diff --git a/pptp_compat.c b/pptp_compat.c +index 1760a3b..6ebbea4 100644 +--- a/pptp_compat.c ++++ b/pptp_compat.c +@@ -2,6 +2,7 @@ + * + */ + ++#if defined (__SVR4) && defined (__sun) /* Solaris */ + #include + #include + #include +@@ -14,8 +15,6 @@ + #include + #include "util.h" + +- +-#if defined (__SVR4) && defined (__sun) /* Solaris */ + /* + * daemon implementation from uClibc + */ -- cgit v1.2.3