From ce16a2aa64255692788b08961674f262c1628914 Mon Sep 17 00:00:00 2001 From: Anton Berezin Date: Thu, 13 Jun 2002 15:51:27 +0000 Subject: Update to 1.1.0. Submitted by: maintainer --- net/pptpclient/Makefile | 15 +++++----- net/pptpclient/distinfo | 2 +- net/pptpclient/files/patch-aa | 28 ++++++++--------- net/pptpclient/files/patch-ab | 70 ------------------------------------------- net/pptpclient/files/patch-ad | 16 ---------- 5 files changed, 23 insertions(+), 108 deletions(-) delete mode 100644 net/pptpclient/files/patch-ab delete mode 100644 net/pptpclient/files/patch-ad (limited to 'net/pptpclient') diff --git a/net/pptpclient/Makefile b/net/pptpclient/Makefile index cc2b500f1c4f..1a1780cb89a5 100644 --- a/net/pptpclient/Makefile +++ b/net/pptpclient/Makefile @@ -5,12 +5,13 @@ # $FreeBSD$ # -PORTNAME= pptpclient -PORTVERSION= 1.0.3 -CATEGORIES= net -MASTER_SITES= http://prdownloads.sourceforge.net/pptpclient/ -DISTNAME= pptp-linux-1.0.3 -DISTFILES= pptp-linux-1.0.3-1.tar.gz +PORTNAME= pptpclient +PORTVERSION= 1.1.0 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= pptpclient +DISTNAME= pptp-linux-1.1.0 +DISTFILES= pptp-linux-1.1.0-1.tar.gz MAINTAINER= thomas@cuivre.fr.eu.org @@ -19,7 +20,7 @@ LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt MAKE_ARGS= DEBUG="" \ INCLUDE="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib -lgnugetopt" \ - pptp + all GUNZIP_CMD= ${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} diff --git a/net/pptpclient/distinfo b/net/pptpclient/distinfo index f8dcb7641265..1e7f0904a746 100644 --- a/net/pptpclient/distinfo +++ b/net/pptpclient/distinfo @@ -1 +1 @@ -MD5 (pptp-linux-1.0.3-1.tar.gz) = 3feef84198b14bbe99cdbe17576c13e5 +MD5 (pptp-linux-1.1.0-1.tar.gz) = 03e340eb0a9118a8de94eef21560d6c9 diff --git a/net/pptpclient/files/patch-aa b/net/pptpclient/files/patch-aa index 7aea6b6c64f4..15d16760f727 100644 --- a/net/pptpclient/files/patch-aa +++ b/net/pptpclient/files/patch-aa @@ -1,19 +1,19 @@ -diff -ur dist/pptp-linux-1.0.3/Makefile work/pptp-linux-1.0.3/Makefile ---- dist/pptp-linux-1.0.3/Makefile Mon May 7 05:19:34 2001 -+++ Makefile Thu May 10 00:43:58 2001 -@@ -11,12 +11,12 @@ +--- Makefile.orig Mon Mar 11 09:36:52 2002 ++++ Makefile Thu Jun 13 15:20:18 2002 +@@ -2,14 +2,14 @@ + ################################################################# # CHANGE THIS LINE to point to the location of your pppd binary. - --CFLAGS += '-DPPPD_BINARY="/usr/sbin/pppd"' -+CFLAGS += '-DPPPD_BINARY="/usr/sbin/ppp"' -DUSER_PPP +-PPPD = /usr/sbin/pppd ++PPPD = /usr/sbin/ppp ################################################################# - PPTP_BIN = pptp --PPTP_OBJS = pptp.o pptp_gre.o ppp_fcs.o pty.o \ -+PPTP_OBJS = pptp.o pptp_gre.o ppp_fcs.o \ - pptp_ctrl.o dirutil.o vector.o \ - inststr.o util.o version.o --PPTP_DEPS = pptp_callmgr.h pptp_gre.h ppp_fcs.h pty.h util.h -+PPTP_DEPS = pptp_callmgr.h pptp_gre.h ppp_fcs.h util.h + CC = gcc + RM = rm -f + DEBUG = -g + INCLUDE = +-CFLAGS = -Wall -O1 $(DEBUG) $(INCLUDE) ++CFLAGS = -Wall -O1 $(DEBUG) $(INCLUDE) -DUSER_PPP + LIBS = + LDFLAGS = -lutil diff --git a/net/pptpclient/files/patch-ab b/net/pptpclient/files/patch-ab deleted file mode 100644 index 06fa6345189f..000000000000 --- a/net/pptpclient/files/patch-ab +++ /dev/null @@ -1,70 +0,0 @@ -diff -ur dist/pptp-linux-1.0.3/pptp.c work/pptp-linux-1.0.3/pptp.c ---- dist/pptp-linux-1.0.3/pptp.c Mon Apr 30 05:42:36 2001 -+++ pptp.c Thu May 10 00:43:02 2001 -@@ -7,7 +7,11 @@ - - #include - #include -+#ifdef __FreeBSD__ -+#include -+#else - #include -+#endif - #include - #include - #include -@@ -19,14 +23,15 @@ - #include - #include - #include -+#include - #include -+#include - #include - #include "pptp_callmgr.h" - #include "pptp_gre.h" - #include "version.h" - #include "inststr.h" - #include "util.h" --#include "pty.h" - - #ifndef PPPD_BINARY - #define PPPD_BINARY "pppd" -@@ -64,7 +69,7 @@ - int main(int argc, char **argv, char **envp) { - struct in_addr inetaddr; - int callmgr_sock; -- char ttydev[TTYMAX]; -+ char ttydev[PATH_MAX]; - int pty_fd, tty_fd, rc; - pid_t parent_pid, child_pid; - u_int16_t call_id, peer_call_id; -@@ -289,13 +294,23 @@ - void launch_pppd(char *ttydev, int argc, char **argv) { - char *new_argv[argc+4]; /* XXX if not using GCC, hard code a limit here. */ - int i; -+ int newi = 0; - -- new_argv[0] = PPPD_BINARY; -- new_argv[1] = ttydev; -- new_argv[2] = "38400"; -+ new_argv[newi++] = PPPD_BINARY; -+#ifdef USER_PPP -+ new_argv[newi++] = "-direct"; -+ if ((i = open(ttydev, O_RDWR)) == -1) -+ fatal("Cannot open %s: %s", ttydev, strerror(errno)); -+ if (dup2(i, 0) == -1) -+ fatal("dup2 failed: %s", strerror(errno)); -+ close(i); -+#else -+ new_argv[newi++] = ttydev; -+ new_argv[newi++] = "38400"; -+#endif - for (i=0; i -+#include - #include - #include --#include --#include - #include - #include - #include -- cgit v1.2.3