1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Update to 1.8.0

- Stage support

PR:		ports/185711
Submitted by:	KATO Tsuguru
This commit is contained in:
Antoine Brodin 2014-01-14 18:02:16 +00:00
parent 054cdfe9bc
commit ddc70f06b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339704
6 changed files with 15 additions and 62 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= pptpclient
PORTVERSION= 1.7.2
PORTREVISION= 6
PORTVERSION= 1.8.0
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/pptp/pptp-${PORTVERSION}
DISTNAME= pptp-${PORTVERSION}
@ -11,19 +10,22 @@ DISTNAME= pptp-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= PPTP client for establishing a VPN link with an NT server
LICENSE= GPLv2
LICENSE= GPLv2 # (or later)
USES= perl5
MAKE_ARGS= DEBUG="" CC="${CC}"
MAKE_ARGS= CC="${CC}" OPTIMIZE="${CFLAGS}" DEBUG="" PPPD="/usr/sbin/ppp"
CFLAGS+= -DUSER_PPP
MAN8= pptp.8
PLIST_FILES= sbin/pptp man/man8/pptp.8.gz
PORTEXAMPLES= README ppp.conf
OPTIONS_DEFINE= EXAMPLES
NO_STAGE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pptp ${PREFIX}/sbin
@${MKDIR} ${PREFIX}/share/examples/pptpclient
${INSTALL_DATA} ${FILESDIR}/README ${PREFIX}/share/examples/pptpclient
${INSTALL_DATA} ${FILESDIR}/ppp.conf ${PREFIX}/share/examples/pptpclient
${INSTALL_MAN} ${WRKSRC}/pptp.8 ${PREFIX}/man/man8
${INSTALL_PROGRAM} ${WRKSRC}/pptp ${STAGEDIR}${PREFIX}/sbin
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/README ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/ppp.conf ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_MAN} ${WRKSRC}/pptp.8 ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (pptp-1.7.2.tar.gz) = e98ae0065d2a39fa3131654ff28cb7070e996f668ed6d0e7d9a445b8d37694bc
SIZE (pptp-1.7.2.tar.gz) = 81113
SHA256 (pptp-1.8.0.tar.gz) = e39c42d933242a8a6dd8600a0fa7f0a5ec8f066d10c4149d8e81a5c68fe4bbda
SIZE (pptp-1.8.0.tar.gz) = 86778

View File

@ -1,20 +0,0 @@
--- Makefile.orig 2008-05-14 11:33:55.000000000 +0500
+++ Makefile 2013-08-29 11:28:02.675336240 +0400
@@ -4,7 +4,7 @@ RELEASE=
#################################################################
# CHANGE THIS LINE to point to the location of your pppd binary.
-PPPD = /usr/sbin/pppd
+PPPD = /usr/sbin/ppp
#################################################################
BINDIR=$(DESTDIR)/usr/sbin
@@ -16,7 +16,7 @@ RM = rm -f
OPTIMIZE= -O0
DEBUG = -g
INCLUDE =
-CFLAGS = -Wall $(OPTIMIZE) $(DEBUG) $(INCLUDE)
+CFLAGS += -Wall $(DEBUG) $(INCLUDE) -DUSER_PPP
LIBS = -lutil
# Solaris 10
# LIBS = -lnsl -lsocket -lresolv

View File

@ -1,14 +0,0 @@
RCS file: /home/jdp/f5/pptp/cvs/pptp/pptp_callmgr.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- pptp_callmgr.h 1999/04/28 19:36:57 1.1.1.1
+++ pptp_callmgr.h 1999/04/28 19:43:06 1.2
@@ -6,4 +6,7 @@
*/
#define PPTP_SOCKET_PREFIX "/var/run/pptp/"
+
+#ifndef PPTP_CALLMGR_BINARY
#define PPTP_CALLMGR_BINARY "./pptp_callmgr"
+#endif

View File

@ -1,11 +0,0 @@
--- pptp_compat.c.orig 2008-05-19 03:44:02.000000000 +0800
+++ pptp_compat.c 2008-05-19 03:44:45.000000000 +0800
@@ -7,7 +7,7 @@
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>
-#include <stropts.h>
+#include <sys/un.h>
#include <stdlib.h>
#include <strings.h>
#include "pptp_compat.h"

View File

@ -1,4 +0,0 @@
sbin/pptp
%%EXAMPLESDIR%%/README
%%EXAMPLESDIR%%/ppp.conf
@dirrm %%EXAMPLESDIR%%