Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2014 17:38:28 GMT
From:      Tommy Scheunemann <net@arrishq.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/188437: New port: security/softether
Message-ID:  <201404101738.s3AHcSKb086212@cgiserv.freebsd.org>
Resent-Message-ID: <201404101740.s3AHe0c6063756@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         188437
>Category:       ports
>Synopsis:       New port: security/softether
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 10 17:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Tommy Scheunemann
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD zeus.domain.local 10.0-RELEASE FreeBSD 10.0-RELEASE #1: Wed Mar 19 18:11:05 CET 2014     root@zeus.domain.local:/usr/obj/usr/src/sys/ZEUS  i386
>Description:
New port for SoftEther VPN. An OpenSource multi-protocol and multi-platform VPN client server solution. The port includes the configuration tool (vpncmd), the server component and the client component.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	softether
#	softether/pkg-plist
#	softether/Makefile
#	softether/distinfo
#	softether/pkg-descr
#	softether/pkg-message
#	softether/files
#	softether/files/softether_bridge.in
#	softether/files/softether_server.in
#	softether/files/softether_client.in
#	softether/files/vpncmd.in
#
echo c - softether
mkdir -p softether > /dev/null 2>&1
echo x - softether/pkg-plist
sed 's/^X//' >softether/pkg-plist << '1fa135360225fd77926cca9d8ab37167'
Xlibexec/softether/lang.config
Xlibexec/softether/hamcore.se2
Xlibexec/softether/vpnbridge
Xlibexec/softether/vpnclient
Xlibexec/softether/vpncmd
Xlibexec/softether/vpnserver
X@dirrm libexec/softether
Xsbin/vpncmd
1fa135360225fd77926cca9d8ab37167
echo x - softether/Makefile
sed 's/^X//' >softether/Makefile << '21dbd9ddfa0dea11c45f178367397c9f'
X# $FreeBSD$
X
XPORTNAME=	softether
XPORTVERSION=	4.0.6.9437
XCATEGORIES=	security
XMASTER_SITES=	http://www.softether-download.com/files/softether/v4.06-9437-beta-2014.04.09-tree/Source%20Code/
XDISTNAME=	${PORTNAME}-src-v4.06-9437-beta
X
XMAINTAINER=	net@arrishq.net
XCOMMENT=	Softether VPN solution
X
XLICENSE=	GPLv2
X
XCPPFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
X
XDOCS=		AUTHORS.TXT ChangeLog LICENSE README THIRD_PARTY.TXT WARNING.TXT
X
XOPTIONS_DEFINE=	DOCS
X
XONLY_FOR_ARCHS=	i386 amd64
X
XUSE_GMAKE=	yes
XUSE_OPENSSL=	yes
XUSES=		iconv ncurses readline
XUSE_RC_SUBR=	softether_bridge softether_client softether_server
X
X# a pity the source directory has such a naming scheme, but well
XWRKSRC=		${WRKDIR}/v4.06-9437
X
X.include <bsd.port.pre.mk>
X
X# requires OpenSSL from ports
X.if ${OSVERSION} < 1000000
XWITH_OPENSSL_PORT=	yes
X.endif
X
X# skip configure at all and copy the corresponding Makefile in place
Xpost-extract:
X.if ${ARCH} != "amd64"
X	@${CP} ${WRKSRC}/src/makefiles/freebsd_32bit.mak ${WRKSRC}/Makefile
X.else
X	@${CP} ${WRKSRC}/src/makefiles/freebsd_64bit.mak ${WRKSRC}/Makefile
X.endif
X
X# pull in user specific CFLAGS and LDFLAGS
X	@${REINPLACE_CMD} -e "s|OPTIONS_COMPILE_RELEASE=|OPTIONS_COMPILE_RELEASE=${CFLAGS} |g" ${WRKSRC}/Makefile
X	@${REINPLACE_CMD} -e "s|OPTIONS_LINK_RELEASE=|OPTIONS_LINK_RELEASE=${LDFLAGS} |g" ${WRKSRC}/Makefile
X
X# gmake all is not defined, use gmake build
Xdo-build:
X	@cd ${WRKSRC}/ && ${SETENV} ${GMAKE_ENV} ${GMAKE} build
X	@${CP} ${FILESDIR}/vpncmd.in ${WRKDIR}/vpncmd
X	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${LOCALBASE},g' ${WRKDIR}/vpncmd
X
X# manually install to libexec, then the final install will copy scripts
X# into ${PREFIX}/sbin
Xdo-install:
X	@${MKDIR} ${STAGEDIR}/${PREFIX}/libexec/softether
X	@${INSTALL_SCRIPT} ${WRKSRC}/bin/vpnbridge/vpnbridge ${STAGEDIR}/${PREFIX}/libexec/softether/vpnbridge
X	@${INSTALL_SCRIPT} ${WRKSRC}/bin/vpnclient/vpnclient ${STAGEDIR}/${PREFIX}/libexec/softether/vpnclient
X	@${INSTALL_SCRIPT} ${WRKSRC}/bin/vpncmd/vpncmd ${STAGEDIR}/${PREFIX}/libexec/softether/vpncmd
X	@${INSTALL_SCRIPT} ${WRKSRC}/bin/vpnserver/vpnserver ${STAGEDIR}/${PREFIX}/libexec/softether/vpnserver
X	@${INSTALL_SCRIPT} ${WRKSRC}/bin/vpnserver/hamcore.se2 ${STAGEDIR}/${PREFIX}/libexec/softether/hamcore.se2
X	@${INSTALL_SCRIPT} ${WRKDIR}/vpncmd ${STAGEDIR}/${PREFIX}/sbin/vpncmd
X	@${ECHO} en > ${STAGEDIR}/${PREFIX}/libexec/softether/lang.config
X
X.if ${PORT_OPTIONS:MDOCS}
X	@${MKDIR} ${STAGEDIR}${DOCSDIR}
X	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
X.for i in ${DOCS}
X	@${CAT} ${WRKSRC}/${i} | ${TR} -d '\015' > ${STAGEDIR}${DOCSDIR}/${i}
X.endfor
X.endif
X
X.include <bsd.port.mk>
21dbd9ddfa0dea11c45f178367397c9f
echo x - softether/distinfo
sed 's/^X//' >softether/distinfo << '3f05f1dbd51574becbc06d868d926000'
XSHA256 (softether-src-v4.06-9437-beta.tar.gz) = 9c56f8587c5047f835d7c949d6707d070a756e103c88105bc4a2d04514a2092f
XSIZE (softether-src-v4.06-9437-beta.tar.gz) = 19137379
3f05f1dbd51574becbc06d868d926000
echo x - softether/pkg-descr
sed 's/^X//' >softether/pkg-descr << '73c57093d9f79224ddc47f9481f8c5b1'
XSoftEther VPN ("SoftEther" means "Software Ethernet") is a powerful, multi-OS
Xand easy-to-use multi-protocol VPN software.
XIt supports SSL-VPN (HTTPS), as well as OpenVPN, IPsec, L2TP, MS-SSTP, L2TPv3
Xand EitherIP tunneling protocols and has a clone function to support OpenVPN
Xclients.
X
XWWW: http://www.softether.org
73c57093d9f79224ddc47f9481f8c5b1
echo x - softether/pkg-message
sed 's/^X//' >softether/pkg-message << '62f1bf57a45999f68e7d2562e1ba2c05'
X**************************************************************************
X
X*** Warning ***
X
XThis port ignores, by design, any manual CFLAGS, LDFLAGS
Xoptions you may have set either by environment variables
Xor in /etc/make.conf.
X
X**************************************************************************
X
XTo run softether vpn server from startup, add
Xsoftether_server_enable="YES" in your /etc/rc.conf.
X
XTo run softether vpn bridge from startup, add
Xsoftether_bridge_enable="YES" in your /etc/rc.conf.
X
XTo run softether vpn client from startup, add
Xsoftether_client_enable="YES" in your /etc/rc.conf.
X
XInitial and further configuration of all softether services can be
Xdone either by using a Windows client to connect to the running
Xservices or by vpncmd from command line.
X
X**************************************************************************
62f1bf57a45999f68e7d2562e1ba2c05
echo c - softether/files
mkdir -p softether/files > /dev/null 2>&1
echo x - softether/files/softether_bridge.in
sed 's/^X//' >softether/files/softether_bridge.in << '14672b4bc30217e821843c142a43305a'
X#!/bin/sh
X
X# PROVIDE: softether_bridge
X# REQUIRE: NETWORKING SERVERS
X# BEFORE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable softether_bridge:
X# softether_bridge_enable (bool):  Set to "NO" by default.
X#                                  Set it to "YES" to enable
X#
X. /etc/rc.subr
X
Xname=softether_bridge
Xrcvar=softether_bridge_enable
Xload_rc_config ${name}
X
X: ${softether_bridge_enable:=NO}
X
Xcommand="%%PREFIX%%/libexec/softether/vpnbridge"
X
Xstart_cmd="${command} start"
Xstop_cmd="${command} stop"
X
Xsoftether_bridge_start()
X{
X	${start_cmd}
X}
X
Xsoftether_bridge_stop()
X{
X	${stop_cmd}
X}
X
Xrun_rc_command "$1"
14672b4bc30217e821843c142a43305a
echo x - softether/files/softether_server.in
sed 's/^X//' >softether/files/softether_server.in << '5eda1b34330d6392c448bdf01aa7d150'
X#!/bin/sh
X
X# PROVIDE: softether_server
X# REQUIRE: NETWORKING SERVERS
X# BEFORE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable softether_server:
X# softether_server_enable (bool):  Set to "NO" by default.
X#                                  Set it to "YES" to enable
X#
X. /etc/rc.subr
X
Xname=softether_server
Xrcvar=softether_server_enable
Xload_rc_config ${name}
X
X: ${softether_server_enable:=NO}
X
Xcommand="%%PREFIX%%/libexec/softether/vpnserver"
X
Xstart_cmd="${command} start"
Xstop_cmd="${command} stop"
X
Xsoftether_server_start()
X{
X	${start_cmd}
X}
X
Xsoftether_server_stop()
X{
X	${stop_cmd}
X}
X
Xrun_rc_command "$1"
5eda1b34330d6392c448bdf01aa7d150
echo x - softether/files/softether_client.in
sed 's/^X//' >softether/files/softether_client.in << 'e8c011c39462cc4664172de21c8105f8'
X#!/bin/sh
X
X# PROVIDE: softether_client
X# REQUIRE: NETWORKING SERVERS
X# BEFORE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable softether_client:
X# softether_client_enable (bool):  Set to "NO" by default.
X#                                  Set it to "YES" to enable
X#
X. /etc/rc.subr
X
Xname=softether_client
Xrcvar=softether_client_enable
Xload_rc_config ${name}
X
X: ${softether_client_enable:=NO}
X
Xcommand="%%PREFIX%%/libexec/softether/vpnclient"
X
Xstart_cmd="${command} start"
Xstop_cmd="${command} stop"
X
Xsoftether_client_start()
X{
X	${start_cmd}
X}
X
Xsoftether_client_stop()
X{
X	${stop_cmd}
X}
X
Xrun_rc_command "$1"
e8c011c39462cc4664172de21c8105f8
echo x - softether/files/vpncmd.in
sed 's/^X//' >softether/files/vpncmd.in << 'a37585c65ff147e75acf0067847ed667'
X#!/bin/sh
X#
X# wrapper script for vpncmd, the configuration binary for
X# SoftEther vpn
X#
X%%PREFIX%%/libexec/softether/vpncmd $@*
a37585c65ff147e75acf0067847ed667
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404101738.s3AHcSKb086212>