[packages] pptpd: update to v1.3.4 - patch by Edgar Soldin
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 23 Jan 2010 22:18:19 +0000 (22:18 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 23 Jan 2010 22:18:19 +0000 (22:18 +0000)
SVN-Revision: 19301

net/pptpd/Makefile
net/pptpd/patches/001-bad_pqueue_debug.patch
net/pptpd/patches/002-makefile_fix.patch [new file with mode: 0644]
net/pptpd/patches/002-pptpgre_use_debug_option.patch [deleted file]

index 6793972..3e78e98 100644 (file)
@@ -8,19 +8,19 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pptpd
-PKG_VERSION:=1.3.0
+PKG_VERSION:=1.3.4
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/poptop
-PKG_MD5SUM:=75d494e881f7027f4e60b114163f6b67
+#PKG_MD5SUM:=75d494e881f7027f4e60b114163f6b67 #1.3.0
 
 include $(INCLUDE_DIR)/package.mk
 
 define Package/pptpd
   SECTION:=net
   CATEGORY:=Network
-  DEPENDS:=+kmod-ppp +kmod-gre
+  DEPENDS:=+kmod-ppp +kmod-gre +ppp
   TITLE:=PopTop pptp server
   URL:=http://www.poptop.org/
   SUBMENU:=VPN
index 87e7664..8e8f5a5 100644 (file)
@@ -1,7 +1,6 @@
-diff -urN pptpd-1.3.0/pqueue.c.orig pptpd-1.3.0/pqueue.c
---- pptpd-1.3.0/pqueue.c.orig  2006-04-17 20:44:28.000000000 -0400
-+++ pptpd-1.3.0/pqueue.c       2006-04-17 20:44:58.000000000 -0400
-@@ -6,14 +6,11 @@
+--- pptpd-1.3.4.orig/pqueue.c  2005-08-03 10:53:22.000000000 +0200
++++ pptpd-1.3.4/pqueue.c       2009-12-03 17:47:26.976174000 +0100
+@@ -7,13 +7,11 @@
  #include "pqueue.h"
  
  #ifdef DEBUG_PQUEUE
@@ -13,7 +12,6 @@ diff -urN pptpd-1.3.0/pqueue.c.orig pptpd-1.3.0/pqueue.c
  #endif
  
 -#define DEBUG_CMD(_a) if (DEBUG_ON) { _a }
--
 -
  #define MIN_CAPACITY 128 /* min allocated buffer for a packet */
  
diff --git a/net/pptpd/patches/002-makefile_fix.patch b/net/pptpd/patches/002-makefile_fix.patch
new file mode 100644 (file)
index 0000000..554b0a1
--- /dev/null
@@ -0,0 +1,11 @@
+--- pptpd-1.3.4.orig/plugins/Makefile  2006-08-03 04:02:01.000000000 +0200
++++ pptpd-1.3.4/plugins/Makefile       2009-12-03 21:18:09.678467590 +0100
+@@ -18,7 +18,7 @@ all: $(PLUGINS)
+ %.so: %.c
+       $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD)
+-LIBDIR        ?= $(DESTDIR)$(prefix)/lib/pptpd
++LIBDIR        = $(DESTDIR)$(prefix)/lib/pptpd
+ install: $(PLUGINS)
+       $(INSTALL) -d $(LIBDIR)
diff --git a/net/pptpd/patches/002-pptpgre_use_debug_option.patch b/net/pptpd/patches/002-pptpgre_use_debug_option.patch
deleted file mode 100644 (file)
index d4ffe5c..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-diff -Nur pptpd-1.3.0/pptpgre.c.orig pptpd-1.3.0/pptpgre.c
---- pptpd-1.3.0/pptpgre.c.orig 2006-04-18 02:13:10.000000000 -0400
-+++ pptpd-1.3.0/pptpgre.c      2006-04-18 02:14:19.000000000 -0400
-@@ -46,6 +46,9 @@
- #define PACKET_MAX 8196
-+/* Command Line Variable Args */
-+extern int pptpctrl_debug;
-+
- typedef int (*callback_t)(int cl, void *pack, unsigned int len);
- /* test for a 32 bit counter overflow */
-@@ -319,7 +322,9 @@
-                       stats.rx_lost += head->seq - gre.seq_recv - 1;
-                       syslog(LOG_DEBUG, "GRE: timeout waiting for %d packets", head->seq - gre.seq_recv - 1);        
-               }
--              syslog(LOG_DEBUG, "GRE: accepting #%d from queue", head->seq);
-+              if (pptpctrl_debug) {
-+                      syslog(LOG_DEBUG, "GRE: accepting #%d from queue", head->seq);
-+              }
-               gre.seq_recv = head->seq;
-               status = callback(cl, head->packet, head->packlen);
-               pqueue_del(head);
-@@ -399,7 +404,9 @@
-               }
-               /* check for out-of-order sequence number */
-               if (seq_greater(seq, gre.seq_recv)) {
--                      syslog(LOG_DEBUG, "GRE: accepting packet #%d", seq);
-+                      if (pptpctrl_debug) {
-+                              syslog(LOG_DEBUG, "GRE: accepting packet #%d", seq);
-+                      }
-                       stats.rx_accepted++;
-                       gre.seq_recv = seq;
-                       return cb(cl, buffer + ip_len + headersize, payload_len);