ports/115073: [MAINTAINER] net/poptop: [SUMMARIZE CHANGES]
Nils Vogels
nivo+kw+ports.bfa274 at is-root.com
Tue Jul 31 06:50:02 UTC 2007
>Number: 115073
>Category: ports
>Synopsis: [MAINTAINER] net/poptop: [SUMMARIZE CHANGES]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 31 06:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Nils Vogels
>Release: FreeBSD 5.4-RELEASE-p6 i386
>Organization:
IS-Root
>Environment:
System: FreeBSD imhotep.yuckfou.org 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Fri Aug 5 19:36:46 CEST
>Description:
- Add patch to make multiple simultaneous BSDPPP configurations possible
Thanks to Harold Gold for making the patch and Brett Glass (brett on lariat.net) for bringing it to maintainer's attention
- Bump revision
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- poptop-1.3.4_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net/poptop/Makefile /disk/3/home/nivo/ports/poptop/Makefile
--- /usr/ports/net/poptop/Makefile Mon Jul 23 11:36:17 2007
+++ /disk/3/home/nivo/ports/poptop/Makefile Tue Jul 31 08:25:50 2007
@@ -7,6 +7,7 @@
PORTNAME= poptop
PORTVERSION= 1.3.4
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,6 +18,7 @@
USE_GMAKE= yes
GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --mandir=${MANPREFIX}/man
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
diff -ruN --exclude=CVS /usr/ports/net/poptop/files/patch-pptpctrl.c /disk/3/home/nivo/ports/poptop/files/patch-pptpctrl.c
--- /usr/ports/net/poptop/files/patch-pptpctrl.c Mon May 15 08:53:11 2006
+++ /disk/3/home/nivo/ports/poptop/files/patch-pptpctrl.c Tue Jul 31 07:57:14 2007
@@ -1,15 +1,53 @@
---- pptpctrl.c.orig Mon Jan 24 23:04:13 2005
-+++ pptpctrl.c Sat May 6 12:48:55 2006
-@@ -742,7 +742,6 @@
+--- pptpctrl.c.orig Fri Dec 8 01:01:40 2006
++++ pptpctrl.c Tue Jul 31 07:56:19 2007
+@@ -150,8 +150,13 @@
+ syslog(LOG_DEBUG, "CTRL: remote address = %s", pppRemote);
+ if (*speed)
+ syslog(LOG_DEBUG, "CTRL: pppd speed = %s", speed);
++#if BSDUSER_PPP
++ if (*pppdxfig)
++ syslog(LOG_DEBUG, "CTRL: BSD userland ppp system label = %s", pppdxfig);
++#else
+ if (*pppdxfig)
+ syslog(LOG_DEBUG, "CTRL: pppd options file = %s", pppdxfig);
++#endif
+ }
+
+ addrlen = sizeof(addr);
+@@ -693,14 +698,19 @@
+
+ /* options for BSDUSER_PPP
+ *
+- * ignores IP addresses, config file option, speed
+- * fix usage info in pptpd.c and configure script if this changes
++ * Ignore IP addresses and line speed
++ * Use -o or --option string as PPP system label
++ * Usage info in pptpd.c and configure script have been updated to
++ * reflect this change
+ *
+ * IP addresses can be specified in /etc/ppp/ppp.secret per user
+ */
+ pppd_argv[an++] = "-direct";
+- pppd_argv[an++] = "pptp"; /* XXX this is the system name */
+- /* should be dynamic - PMG */
++ if (*pppdxfig) {
++ pppd_argv[an++] = pppdxfig;
++ } else {
++ pppd_argv[an++] = "pptp"; /* XXX this is the system label */
++ }
+
+ #elif SLIRP
+
+@@ -764,7 +774,6 @@
sprintf(pppInterfaceIPs, "%s:%s", pppaddrs[0], pppaddrs[1]);
pppd_argv[an++] = pppInterfaceIPs;
}
-#endif
-
+
if (!noipparam) {
pppd_argv[an++] = "ipparam";
-@@ -751,10 +750,11 @@
-
+@@ -773,10 +782,12 @@
+
if (pptp_logwtmp) {
pppd_argv[an++] = "plugin";
- pppd_argv[an++] = "/usr/lib/pptpd/pptpd-logwtmp.so";
@@ -17,7 +55,8 @@
pppd_argv[an++] = "pptpd-original-ip";
pppd_argv[an++] = inet_ntoa(inetaddrs[1]);
}
++
+#endif
-
+
/* argv arrays must always be NULL terminated */
pppd_argv[an++] = NULL;
diff -ruN --exclude=CVS /usr/ports/net/poptop/files/patch-pptpd.c /disk/3/home/nivo/ports/poptop/files/patch-pptpd.c
--- /usr/ports/net/poptop/files/patch-pptpd.c Mon Nov 28 13:44:11 2005
+++ /disk/3/home/nivo/ports/poptop/files/patch-pptpd.c Tue Jul 31 08:20:29 2007
@@ -1,6 +1,15 @@
---- pptpd.c.orig Fri Oct 21 12:10:41 2005
-+++ pptpd.c Fri Oct 21 12:12:30 2005
-@@ -109,13 +109,13 @@
+--- pptpd.c.orig Tue Sep 5 01:17:25 2006
++++ pptpd.c Tue Jul 31 08:19:38 2007
+@@ -98,18 +98,21 @@
+ printf(" [-i] [--noipparam] Suppress the passing of the client's IP address\n");
+ printf(" to PPP, which is done by default otherwise.\n");
+ printf(" [-l] [--listen x.x.x.x] Specifies IP of local interface to listen to.\n");
+-#if !defined(BSDUSER_PPP)
++#ifdef BSDUSER_PPP
++ printf(" [-o] [--option file] Specifies the userland PPP system label to use\n");
++ printf(" (default is pptp).\n");
++#else
+ printf(" [-o] [--option file] Specifies the PPP options file to use\n");
printf(" (default is /etc/ppp/options).\n");
#endif
printf(" [-p] [--pidfile file] Specifies the file to write the process ID to\n");
@@ -16,4 +25,21 @@
+ printf(" (default is %s).\n",STIMEOUT_DEFAULT);
printf(" [-v] [--version] Displays the pptpd version number.\n");
printf(" [-w] [--logwtmp] Update wtmp as users login.\n");
-
+ printf(" [-C] [--connections n] Limit on number of connections.\n");
+@@ -375,11 +378,16 @@
+ return 1;
+ }
+ /* check that the PPP options file is readable */
++ /* If -o or --option is being used to specify BSD userland
++ PPP system label, it makes no sense to check the option string to
++ see if it is the name of a readable file. */
++#if !defined(BSDUSER_PPP)
+ if (pppdoptstr && access(pppdoptstr, R_OK) < 0) {
+ syslog(LOG_ERR, "MGR: PPP options file %s not readable",
+ pppdoptstr);
+ return 1;
+ }
++#endif
+ #ifdef BCRELAY
+ /* check that the bcrelay binary is executable */
+ if (bcrelay && access(BCRELAY_BIN, X_OK) < 0) {
--- poptop-1.3.4_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list