From 6f9c465cacf30a27e702cd15fe2f1992537fc9d0 Mon Sep 17 00:00:00 2001 From: Stefan Walter Date: Thu, 11 Nov 2010 07:51:49 +0000 Subject: [PATCH] Use ppp instead of pppd and document it. PR: 141001 Submitted by: "Antoine Vu-Ngoc" Patch by: maintainer --- net/ssltunnel-server/Makefile | 11 ++++++----- net/ssltunnel-server/distinfo | 1 - net/ssltunnel-server/pkg-message | 11 +++++++++++ 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 net/ssltunnel-server/pkg-message diff --git a/net/ssltunnel-server/Makefile b/net/ssltunnel-server/Makefile index e748b97c697b..3c6fa5535c3b 100644 --- a/net/ssltunnel-server/Makefile +++ b/net/ssltunnel-server/Makefile @@ -1,10 +1,7 @@ -# ex:ts=8 -# Ports collection makefile for: ssltunnel-server +# Ports collection Makefile for: ssltunnel-server # Date created: June 10, 2003 # Whom: at@rominet.net # -# $Id: Makefile,v 1.3 2003/09/21 16:20:44 thivillon Exp $ -# # $FreeBSD$ # @@ -32,6 +29,9 @@ post-patch: ${WRKSRC}/server/main.c \ ${WRKSRC}/server/pppwho.c \ ${WRKSRC}/server/sessions.c + @${REINPLACE_CMD} -e 's^sbin/pppd^sbin/ppp^g' ${WRKSRC}/server/users + @${AWK} '{print}/ppp/ { print "args -direct" }' \ + ${WRKSRC}/server/users > ${WRKSRC}/server/users.new post-install: .if !defined(NOPORTDOCS) @@ -40,6 +40,7 @@ post-install: ${INSTALL_MAN} ${WRKSRC}/LISEZ-MOI ${DOCSDIR} .endif ${INSTALL_SCRIPT} ${WRKSRC}/server/pppserver.sh ${PREFIX}/etc/rc.d/ssltunnel.sh.sample - ${INSTALL_DATA} ${WRKSRC}/server/users ${PREFIX}/etc/ssltunnel/users.sample + ${INSTALL_DATA} ${WRKSRC}/server/users.new ${PREFIX}/etc/ssltunnel/users.sample + @${CAT} ${PKGMESSAGE} | ${SED} "s|PREFIX|${PREFIX}|g" .include diff --git a/net/ssltunnel-server/distinfo b/net/ssltunnel-server/distinfo index 02591c54c5ee..225f6e000193 100644 --- a/net/ssltunnel-server/distinfo +++ b/net/ssltunnel-server/distinfo @@ -1,3 +1,2 @@ -MD5 (ssltunnel-1.18.tar.gz) = 67365324ec3ef232109c4a565f799604 SHA256 (ssltunnel-1.18.tar.gz) = 1d2e4bbc935341775e7cc26dae980d6bdd5e8351f5a0cbf4d85363ac5d71081f SIZE (ssltunnel-1.18.tar.gz) = 132302 diff --git a/net/ssltunnel-server/pkg-message b/net/ssltunnel-server/pkg-message new file mode 100644 index 000000000000..cf637f41f7ff --- /dev/null +++ b/net/ssltunnel-server/pkg-message @@ -0,0 +1,11 @@ +All ppp parameters that were to go into PREFIX/etc/ssltunnel/users should +go to /etc/ppp/ppp.conf for example: + +default: +# set log Phase Chat LCP IPCP CCP tun command +set log Phase tun +ident user-ppp VERSION +set timeout 0 +enable echo +disable ipv6cp +set ifaddr 192.168.230.13:192.168.230.20