aboutsummaryrefslogtreecommitdiff
path: root/network/pptpd
diff options
context:
space:
mode:
Diffstat (limited to 'network/pptpd')
-rw-r--r--network/pptpd/pptpctl_fix.patch13
-rw-r--r--network/pptpd/pptpd.SlackBuild5
2 files changed, 17 insertions, 1 deletions
diff --git a/network/pptpd/pptpctl_fix.patch b/network/pptpd/pptpctl_fix.patch
new file mode 100644
index 0000000000000..86011c275e8a6
--- /dev/null
+++ b/network/pptpd/pptpctl_fix.patch
@@ -0,0 +1,13 @@
+diff -rupN pptpd-1.3.4/pptpctrl.c pptpd-1.3.4.new/pptpctrl.c
+--- pptpd-1.3.4/pptpctrl.c 2006-12-08 13:01:40.000000000 +1300
++++ pptpd-1.3.4.new/pptpctrl.c 2012-09-14 11:16:38.646659399 +1200
+@@ -759,8 +759,8 @@ static void launch_pppd(char **pppaddrs,
+ syslog(LOG_DEBUG, "CTRL (PPPD Launcher): remote address = %s", pppaddrs[1]);
+ }
+
++ char pppInterfaceIPs[33];
+ if (*pppaddrs[0] || *pppaddrs[1]) {
+- char pppInterfaceIPs[33];
+ sprintf(pppInterfaceIPs, "%s:%s", pppaddrs[0], pppaddrs[1]);
+ pppd_argv[an++] = pppInterfaceIPs;
+ }
diff --git a/network/pptpd/pptpd.SlackBuild b/network/pptpd/pptpd.SlackBuild
index 0e4d657fb5351..2e2359aeba769 100644
--- a/network/pptpd/pptpd.SlackBuild
+++ b/network/pptpd/pptpd.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=pptpd
VERSION=${VERSION:-1.3.4}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -79,6 +79,9 @@ patch -p1 < $CWD/fix_plugins_patchlevel_h.diff
# Fix hardcoded /usr/lib/pptpd/ in pptpctrl.c if ARCH=x86_64
[ "$ARCH" = "x86_64" ] && patch -p1 < $CWD/fix_pptpctrl_c_for_x86_64.diff
+# Thanks to Swaz for the patch to fix an invalid declaration of pppInterfaceIPs
+patch -p1 < $CWD/pptpctl_fix.patch
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \