summaryrefslogtreecommitdiff
path: root/community/pptpd
diff options
context:
space:
mode:
Diffstat (limited to 'community/pptpd')
-rw-r--r--community/pptpd/PKGBUILD11
-rw-r--r--community/pptpd/unrecognized-opt.patch13
2 files changed, 20 insertions, 4 deletions
diff --git a/community/pptpd/PKGBUILD b/community/pptpd/PKGBUILD
index 59faabd19..66203ba7b 100644
--- a/community/pptpd/PKGBUILD
+++ b/community/pptpd/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 70218 2012-05-02 13:03:21Z spupykin $
+# $Id: PKGBUILD 70497 2012-05-09 17:18:35Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=pptpd
pkgver=1.3.4
-pkgrel=6
+pkgrel=7
pkgdesc="Poptop server"
arch=(i686 x86_64)
url="http://poptop.sourceforge.net/"
@@ -11,12 +11,15 @@ license=('GPL')
depends=(ppp glibc)
backup=(etc/pptpd.conf)
source=(http://downloads.sourceforge.net/sourceforge/poptop/pptpd-$pkgver.tar.gz
- pptpd)
+ pptpd
+ unrecognized-opt.patch)
md5sums=('b38df9c431041922c997c1148bedf591'
- 'e09f81beb5d59a0fdfba94e3a60d992b')
+ 'e09f81beb5d59a0fdfba94e3a60d992b'
+ 'cfa02c86d0413eb94fac15599986f54c')
build() {
cd $srcdir/$pkgname-$pkgver
+ patch -p1 <$srcdir/unrecognized-opt.patch
autoreconf -i
./configure --prefix=/usr --libdir=/usr/lib --exec-prefix=/usr --mandir=/usr/share
make
diff --git a/community/pptpd/unrecognized-opt.patch b/community/pptpd/unrecognized-opt.patch
new file mode 100644
index 000000000..17ec49e52
--- /dev/null
+++ b/community/pptpd/unrecognized-opt.patch
@@ -0,0 +1,13 @@
+diff -wbBur pptpd-1.3.4/pptpctrl.c pptpd-1.3.4.my/pptpctrl.c
+--- pptpd-1.3.4/pptpctrl.c 2006-12-08 03:01:40.000000000 +0300
++++ pptpd-1.3.4.my/pptpctrl.c 2012-05-09 21:13:30.000000000 +0400
+@@ -759,8 +759,8 @@
+ syslog(LOG_DEBUG, "CTRL (PPPD Launcher): remote address = %s", pppaddrs[1]);
+ }
+
+- if (*pppaddrs[0] || *pppaddrs[1]) {
+ char pppInterfaceIPs[33];
++ if (*pppaddrs[0] || *pppaddrs[1]) {
+ sprintf(pppInterfaceIPs, "%s:%s", pppaddrs[0], pppaddrs[1]);
+ pppd_argv[an++] = pppInterfaceIPs;
+ }