From owner-svn-ports-head@freebsd.org Sat Nov 19 11:45:16 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67A61C4995E; Sat, 19 Nov 2016 11:45:16 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 38AD314CD; Sat, 19 Nov 2016 11:45:16 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uAJBjFWA032403; Sat, 19 Nov 2016 11:45:15 GMT (envelope-from hrs@FreeBSD.org) Received: (from hrs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uAJBjEx6032394; Sat, 19 Nov 2016 11:45:14 GMT (envelope-from hrs@FreeBSD.org) Message-Id: <201611191145.uAJBjEx6032394@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hrs set sender to hrs@FreeBSD.org using -f From: Hiroki Sato Date: Sat, 19 Nov 2016 11:45:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r426359 - in head/net: . softethervpn softethervpn/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2016 11:45:16 -0000 Author: hrs Date: Sat Nov 19 11:45:14 2016 New Revision: 426359 URL: https://svnweb.freebsd.org/changeset/ports/426359 Log: Add net/softethervpn, a cross-platform multi-protocol VPN software under GPLv2. Added: head/net/softethervpn/ head/net/softethervpn/Makefile (contents, props changed) head/net/softethervpn/distinfo (contents, props changed) head/net/softethervpn/files/ head/net/softethervpn/files/patch-src-makefiles-freebsd_32bit.mak (contents, props changed) head/net/softethervpn/files/vpnbridge.in (contents, props changed) head/net/softethervpn/files/vpnclient.in (contents, props changed) head/net/softethervpn/files/vpnserver.in (contents, props changed) head/net/softethervpn/pkg-descr (contents, props changed) head/net/softethervpn/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Sat Nov 19 11:39:40 2016 (r426358) +++ head/net/Makefile Sat Nov 19 11:45:14 2016 (r426359) @@ -1267,6 +1267,7 @@ SUBDIR += socketpipe SUBDIR += socketw SUBDIR += sofia-sip + SUBDIR += softethervpn SUBDIR += spideroak SUBDIR += splatd SUBDIR += spoofer Added: head/net/softethervpn/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/softethervpn/Makefile Sat Nov 19 11:45:14 2016 (r426359) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= softethervpn +PORTVERSION= 4.21.9613 +CATEGORIES= net + +MAINTAINER= hrs@FreeBSD.org +COMMENT= Cross-platform Multi-protocol VPN Software + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake iconv localbase readline ssl +USE_GITHUB= yes +GH_ACCOUNT= SoftEtherVPN +GH_PROJECT= SoftEtherVPN +GH_TAGNAME= 1e17c9b +ALL_TARGET= build +MAKE_ENV= STAGEDIR=${STAGEDIR} +USE_RC_SUBR= vpnserver vpnclient vpnbridge +PORTDOCS= AUTHORS.TXT BUILD_UNIX.TXT ChangeLog README THIRD_PARTY.TXT \ + WARNING.TXT + +OPTIONS_DEFINE= DOCS +OPTIONS_DEFAULT=DOCS + +post-patch: + ${INSTALL_DATA} ${WRKSRC}/src/makefiles/freebsd_32bit.mak \ + ${WRKSRC}/Makefile + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && \ + ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} + +.include Added: head/net/softethervpn/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/softethervpn/distinfo Sat Nov 19 11:45:14 2016 (r426359) @@ -0,0 +1,3 @@ +TIMESTAMP = 1479531912 +SHA256 (SoftEtherVPN-SoftEtherVPN-4.21.9613-1e17c9b_GH0.tar.gz) = 3ba427abd3684e6f3fa1896512d240890f07beee179aef0823cbfd165b06def5 +SIZE (SoftEtherVPN-SoftEtherVPN-4.21.9613-1e17c9b_GH0.tar.gz) = 33681928 Added: head/net/softethervpn/files/patch-src-makefiles-freebsd_32bit.mak ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/softethervpn/files/patch-src-makefiles-freebsd_32bit.mak Sat Nov 19 11:45:14 2016 (r426359) @@ -0,0 +1,110 @@ +--- src/makefiles/freebsd_32bit.mak.orig 2016-04-24 14:49:31 UTC ++++ src/makefiles/freebsd_32bit.mak +@@ -25,19 +25,19 @@ + + #CC=gcc + +-OPTIONS_COMPILE_DEBUG=-D_DEBUG -DDEBUG -DUNIX -DUNIX_BSD -DBRIDGE_BPF -DNO_VLAN -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -I/usr/local/include -I/usr/include -g -fsigned-char ++OPTIONS_COMPILE_DEBUG=-D_DEBUG -DDEBUG -DUNIX -DUNIX_BSD -DBRIDGE_BPF -DNO_VLAN -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -g -fsigned-char + +-OPTIONS_LINK_DEBUG=-g -fsigned-char -L/usr/local/lib -L/usr/lib -lm -lpthread -lssl -lcrypto -liconv -lreadline -lncurses -lz ++OPTIONS_LINK_DEBUG=-g -fsigned-char -lm -lpthread -lssl -lcrypto -liconv -lreadline -lncurses -lz + +-OPTIONS_COMPILE_RELEASE=-DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_BSD -DBRIDGE_BPF -DNO_VLAN -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -I/usr/local/include -I/usr/include -O2 -fsigned-char ++OPTIONS_COMPILE_RELEASE=-DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_BSD -DBRIDGE_BPF -DNO_VLAN -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -fsigned-char ${CFLAGS} + +-OPTIONS_LINK_RELEASE=-O2 -fsigned-char -L/usr/local/lib -L/usr/lib -lm -lpthread -lssl -lcrypto -liconv -lreadline -lncurses -lz ++OPTIONS_LINK_RELEASE=-fsigned-char ${LDFLAGS} ${LIBS} -lm -lpthread -lssl -lcrypto -liconv -lreadline -lncurses -lz + +-INSTALL_BINDIR=/usr/bin/ +-INSTALL_VPNSERVER_DIR=/usr/vpnserver/ +-INSTALL_VPNBRIDGE_DIR=/usr/vpnbridge/ +-INSTALL_VPNCLIENT_DIR=/usr/vpnclient/ +-INSTALL_VPNCMD_DIR=/usr/vpncmd/ ++INSTALL_BINDIR=${PREFIX}/sbin/ ++INSTALL_VPNSERVER_DIR=${PREFIX}/softethervpn/vpnserver/ ++INSTALL_VPNBRIDGE_DIR=${PREFIX}/softethervpn/vpnbridge/ ++INSTALL_VPNCLIENT_DIR=${PREFIX}/softethervpn/vpnclient/ ++INSTALL_VPNCMD_DIR=${PREFIX}/softethervpn/vpncmd/ + + ifeq ($(DEBUG),YES) + OPTIONS_COMPILE=$(OPTIONS_COMPILE_DEBUG) +@@ -379,7 +379,7 @@ tmp/objs/vpncmd.o: src/vpncmd/vpncmd.c $ + $(CC) $(OPTIONS_COMPILE) -c src/vpncmd/vpncmd.c -o tmp/objs/vpncmd.o + + # Install +-install: $(INSTALL_BINDIR)vpnserver $(INSTALL_BINDIR)vpnbridge $(INSTALL_BINDIR)vpnclient $(INSTALL_BINDIR)vpncmd ++install: $(STAGEDIR)$(INSTALL_BINDIR)vpnserver $(STAGEDIR)$(INSTALL_BINDIR)vpnbridge $(STAGEDIR)$(INSTALL_BINDIR)vpnclient $(STAGEDIR)$(INSTALL_BINDIR)vpncmd + @echo + @echo "--------------------------------------------------------------------" + @echo "Installation completed successfully." +@@ -391,41 +391,37 @@ install: $(INSTALL_BINDIR)vpnserver $(IN + @echo "--------------------------------------------------------------------" + @echo + +-$(INSTALL_BINDIR)vpnserver: bin/vpnserver/hamcore.se2 bin/vpnserver/vpnserver +- @mkdir -p $(INSTALL_VPNSERVER_DIR) +- cp bin/vpnserver/hamcore.se2 $(INSTALL_VPNSERVER_DIR)hamcore.se2 +- cp bin/vpnserver/vpnserver $(INSTALL_VPNSERVER_DIR)vpnserver +- echo "#!/bin/sh" > $(INSTALL_BINDIR)vpnserver +- echo $(INSTALL_VPNSERVER_DIR)vpnserver '"$$@"' >> $(INSTALL_BINDIR)vpnserver +- echo 'exit $$?' >> $(INSTALL_BINDIR)vpnserver +- chmod 755 $(INSTALL_BINDIR)vpnserver ++$(STAGEDIR)$(INSTALL_BINDIR)vpnserver: bin/vpnserver/hamcore.se2 bin/vpnserver/vpnserver ++ @mkdir -p $(STAGEDIR)$(INSTALL_VPNSERVER_DIR) ++ cp bin/vpnserver/hamcore.se2 $(STAGEDIR)$(INSTALL_VPNSERVER_DIR)hamcore.se2 ++ $(BSD_INSTALL_PROGRAM) bin/vpnserver/vpnserver $(STAGEDIR)$(INSTALL_VPNSERVER_DIR)vpnserver ++ echo "#!/bin/sh" > $(STAGEDIR)$(INSTALL_BINDIR)vpnserver ++ echo exec $(INSTALL_VPNSERVER_DIR)vpnserver '"$$@"' >> $(STAGEDIR)$(INSTALL_BINDIR)vpnserver ++ chmod 755 $(STAGEDIR)$(INSTALL_BINDIR)vpnserver + +-$(INSTALL_BINDIR)vpnbridge: bin/vpnbridge/hamcore.se2 bin/vpnbridge/vpnbridge +- @mkdir -p $(INSTALL_VPNBRIDGE_DIR) +- cp bin/vpnbridge/hamcore.se2 $(INSTALL_VPNBRIDGE_DIR)hamcore.se2 +- cp bin/vpnbridge/vpnbridge $(INSTALL_VPNBRIDGE_DIR)vpnbridge +- echo "#!/bin/sh" > $(INSTALL_BINDIR)vpnbridge +- echo $(INSTALL_VPNBRIDGE_DIR)vpnbridge '"$$@"' >> $(INSTALL_BINDIR)vpnbridge +- echo 'exit $$?' >> $(INSTALL_BINDIR)vpnbridge +- chmod 755 $(INSTALL_BINDIR)vpnbridge ++$(STAGEDIR)$(INSTALL_BINDIR)vpnbridge: bin/vpnbridge/hamcore.se2 bin/vpnbridge/vpnbridge ++ @mkdir -p $(STAGEDIR)$(INSTALL_VPNBRIDGE_DIR) ++ cp bin/vpnbridge/hamcore.se2 $(STAGEDIR)$(INSTALL_VPNBRIDGE_DIR)hamcore.se2 ++ $(BSD_INSTALL_PROGRAM) bin/vpnbridge/vpnbridge $(STAGEDIR)$(INSTALL_VPNBRIDGE_DIR)vpnbridge ++ echo "#!/bin/sh" > $(STAGEDIR)$(INSTALL_BINDIR)vpnbridge ++ echo exec $(INSTALL_VPNBRIDGE_DIR)vpnbridge '"$$@"' >> $(STAGEDIR)$(INSTALL_BINDIR)vpnbridge ++ chmod 755 $(STAGEDIR)$(INSTALL_BINDIR)vpnbridge + +-$(INSTALL_BINDIR)vpnclient: bin/vpnclient/hamcore.se2 bin/vpnclient/vpnclient +- @mkdir -p $(INSTALL_VPNCLIENT_DIR) +- cp bin/vpnclient/hamcore.se2 $(INSTALL_VPNCLIENT_DIR)hamcore.se2 +- cp bin/vpnclient/vpnclient $(INSTALL_VPNCLIENT_DIR)vpnclient +- echo "#!/bin/sh" > $(INSTALL_BINDIR)vpnclient +- echo $(INSTALL_VPNCLIENT_DIR)vpnclient '"$$@"' >> $(INSTALL_BINDIR)vpnclient +- echo 'exit $$?' >> $(INSTALL_BINDIR)vpnclient +- chmod 755 $(INSTALL_BINDIR)vpnclient ++$(STAGEDIR)$(INSTALL_BINDIR)vpnclient: bin/vpnclient/hamcore.se2 bin/vpnclient/vpnclient ++ @mkdir -p $(STAGEDIR)$(INSTALL_VPNCLIENT_DIR) ++ cp bin/vpnclient/hamcore.se2 $(STAGEDIR)$(INSTALL_VPNCLIENT_DIR)hamcore.se2 ++ $(BSD_INSTALL_PROGRAM) bin/vpnclient/vpnclient $(STAGEDIR)$(INSTALL_VPNCLIENT_DIR)vpnclient ++ echo "#!/bin/sh" > $(STAGEDIR)$(INSTALL_BINDIR)vpnclient ++ echo exec $(INSTALL_VPNCLIENT_DIR)vpnclient '"$$@"' >> $(STAGEDIR)$(INSTALL_BINDIR)vpnclient ++ chmod 755 $(STAGEDIR)$(INSTALL_BINDIR)vpnclient + +-$(INSTALL_BINDIR)vpncmd: bin/vpncmd/hamcore.se2 bin/vpncmd/vpncmd +- @mkdir -p $(INSTALL_VPNCMD_DIR) +- cp bin/vpncmd/hamcore.se2 $(INSTALL_VPNCMD_DIR)hamcore.se2 +- cp bin/vpncmd/vpncmd $(INSTALL_VPNCMD_DIR)vpncmd +- echo "#!/bin/sh" > $(INSTALL_BINDIR)vpncmd +- echo $(INSTALL_VPNCMD_DIR)vpncmd '"$$@"' >> $(INSTALL_BINDIR)vpncmd +- echo 'exit $$?' >> $(INSTALL_BINDIR)vpncmd +- chmod 755 $(INSTALL_BINDIR)vpncmd ++$(STAGEDIR)$(INSTALL_BINDIR)vpncmd: bin/vpncmd/hamcore.se2 bin/vpncmd/vpncmd ++ @mkdir -p $(STAGEDIR)$(INSTALL_VPNCMD_DIR) ++ cp bin/vpncmd/hamcore.se2 $(STAGEDIR)$(INSTALL_VPNCMD_DIR)hamcore.se2 ++ $(BSD_INSTALL_PROGRAM) bin/vpncmd/vpncmd $(STAGEDIR)$(INSTALL_VPNCMD_DIR)vpncmd ++ echo "#!/bin/sh" > $(STAGEDIR)$(INSTALL_BINDIR)vpncmd ++ echo exec $(INSTALL_VPNCMD_DIR)vpncmd '"$$@"' >> $(STAGEDIR)$(INSTALL_BINDIR)vpncmd ++ chmod 755 $(STAGEDIR)$(INSTALL_BINDIR)vpncmd + + # Clean + clean: Added: head/net/softethervpn/files/vpnbridge.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/softethervpn/files/vpnbridge.in Sat Nov 19 11:45:14 2016 (r426359) @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: vpnbridge +# REQUIRE: LOGIN +# +. /etc/rc.subr + +name=vpnbridge +rcvar=${name}_enable +command=%%PREFIX%%/sbin/${name} +start_cmd="${name}_start" +stop_cmd="${name}_stop" + +vpnbridge_start() +{ + + $command start +} + +vpnbridge_stop() +{ + + $command stop +} + +load_rc_config $name +: ${vpnbridge_enable:=NO} +run_rc_command "$1" Added: head/net/softethervpn/files/vpnclient.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/softethervpn/files/vpnclient.in Sat Nov 19 11:45:14 2016 (r426359) @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: vpnclient +# REQUIRE: LOGIN +# +. /etc/rc.subr + +name=vpnclient +rcvar=${name}_enable +command=%%PREFIX%%/sbin/${name} +start_cmd="${name}_start" +stop_cmd="${name}_stop" + +vpnclient_start() +{ + + $command start +} + +vpnclient_stop() +{ + + $command stop +} + +load_rc_config $name +: ${vpnclient_enable:=NO} +run_rc_command "$1" Added: head/net/softethervpn/files/vpnserver.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/softethervpn/files/vpnserver.in Sat Nov 19 11:45:14 2016 (r426359) @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: vpnserver +# REQUIRE: LOGIN +# +. /etc/rc.subr + +name=vpnserver +rcvar=${name}_enable +command=%%PREFIX%%/sbin/${name} +start_cmd="${name}_start" +stop_cmd="${name}_stop" + +vpnserver_start() +{ + + $command start +} + +vpnserver_stop() +{ + + $command stop +} + +load_rc_config $name +: ${vpnserver_enable:=NO} +run_rc_command "$1" Added: head/net/softethervpn/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/softethervpn/pkg-descr Sat Nov 19 11:45:14 2016 (r426359) @@ -0,0 +1,10 @@ +SoftEther VPN ("SoftEther" means "Software Ethernet") is one of the +world's most powerful and easy-to-use multi-protocol VPN software. + +SoftEther VPN runs on Windows, Linux, Mac, FreeBSD and Solaris. + +SoftEther VPN supports most of widely-used VPN protocols +including SSL-VPN, OpenVPN, IPsec, L2TP, MS-SSTP, L2TPv3 and EtherIP +by the single SoftEther VPN Server program. + +WWW: http://www.softether.org/ Added: head/net/softethervpn/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/softethervpn/pkg-plist Sat Nov 19 11:45:14 2016 (r426359) @@ -0,0 +1,12 @@ +sbin/vpnserver +sbin/vpnbridge +sbin/vpnclient +sbin/vpncmd +softethervpn/vpnbridge/hamcore.se2 +softethervpn/vpnbridge/vpnbridge +softethervpn/vpnclient/hamcore.se2 +softethervpn/vpnclient/vpnclient +softethervpn/vpncmd/hamcore.se2 +softethervpn/vpncmd/vpncmd +softethervpn/vpnserver/hamcore.se2 +softethervpn/vpnserver/vpnserver