Index: security/softether/Makefile =================================================================== --- security/softether/Makefile +++ security/softether/Makefile @@ -3,20 +3,37 @@ PORTNAME= softether PORTVERSION= 4.25.9656 CATEGORIES= security -MASTER_SITES= http://www.softether-download.com/files/softether/v4.25-9656-rtm-2018.01.15-tree/Source_Code/ +MASTER_SITES= https://www.softether-download.com/files/softether/v4.25-9656-rtm-2018.01.15-tree/Source_Code/ DISTNAME= ${PORTNAME}-src-v4.25-9656-rtm MAINTAINER= hrs@FreeBSD.org COMMENT= Softether VPN solution LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE +ONLY_FOR_ARCHS= amd64 i386 CONFLICTS_INSTALL= softether-devel CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib PORTDOCS= AUTHORS.TXT ChangeLog LICENSE README THIRD_PARTY.TXT WARNING.TXT + +OPTIONS_DEFINE= DOCS UNLOCK + +# Use of some functions in Japan and China is restricted. +# This option Unlocks regional lockout following functions: +# - RADIUS / NT Domain user authentication function +# - RSA certificate user authentication function +# - Deep-inspect packet logging function +# - Source IP address control list function +# - syslog transfer function +UNLOCK_DESC= Unlock regional lockout (JP and CN) +UNLOCK_EXTRA_PATCHES= ${FILESDIR}/extra-patch-unrestrict-enterprise-functions + +USES= dos2unix gmake iconv:wchar_t localbase:ldflags ncurses \ + readline ssl DOS2UNIX_FILES= AUTHORS.TXT ChangeLog LICENSE README THIRD_PARTY.TXT \ WARNING.TXT \ src/Cedar/Cedar.h \ @@ -34,26 +51,8 @@ src/Mayaqua/Network.h \ src/Mayaqua/Table.h \ src/Mayaqua/Unix.c - -OPTIONS_DEFINE= DOCS UNLOCK - -# Use of some functions in Japan and China is restricted. -# This option Unlocks regional lockout following functions: -# - RADIUS / NT Domain user authentication function -# - RSA certificate user authentication function -# - Deep-inspect packet logging function -# - Source IP address control list function -# - syslog transfer function -UNLOCK_DESC= Unlock regional lockout (JP and CN) -UNLOCK_EXTRA_PATCHES= ${FILESDIR}/extra-patch-unrestrict-enterprise-functions - -ONLY_FOR_ARCHS= i386 amd64 - -USES= dos2unix gmake iconv:wchar_t localbase:ldflags ncurses \ - readline ssl USE_RC_SUBR= softether_bridge softether_client softether_server SUB_FILES= vpncmd -MAKE_JOBS_UNSAFE= yes LOGDIR?= /var/log/softether PLIST_SUB+= LOGDIR="${LOGDIR}" @@ -66,15 +65,14 @@ .include -# skip configure at all and copy the corresponding Makefile in place -post-extract: +post-patch: + # skip configure at all and copy the corresponding Makefile in place .if ${ARCH} != "amd64" @${CP} ${WRKSRC}/src/makefiles/freebsd_32bit.mak ${WRKSRC}/Makefile .else @${CP} ${WRKSRC}/src/makefiles/freebsd_64bit.mak ${WRKSRC}/Makefile .endif - -# pull in user specific CFLAGS and LDFLAGS + # pull in user specific CFLAGS and LDFLAGS @${REINPLACE_CMD} -e "s|OPTIONS_COMPILE_RELEASE=|OPTIONS_COMPILE_RELEASE=${CFLAGS} |g" ${WRKSRC}/Makefile @${REINPLACE_CMD} -e "s|OPTIONS_LINK_RELEASE=|OPTIONS_LINK_RELEASE=${LDFLAGS} |g" ${WRKSRC}/Makefile @@ -88,8 +86,6 @@ ${INSTALL_SCRIPT} ${WRKSRC}/bin/vpnserver/vpnserver ${STAGEDIR}/${PREFIX}/libexec/${PORTNAME}/vpnserver ${INSTALL_DATA} ${WRKSRC}/bin/vpnserver/hamcore.se2 ${STAGEDIR}/${PREFIX}/libexec/${PORTNAME}/hamcore.se2 ${INSTALL_SCRIPT} ${WRKDIR}/vpncmd ${STAGEDIR}/${PREFIX}/sbin/vpncmd - -post-install: .for i in vpnbridge vpnclient vpncmd vpnserver @${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/${i} .endfor Index: security/softether/pkg-descr =================================================================== --- security/softether/pkg-descr +++ security/softether/pkg-descr @@ -4,4 +4,4 @@ and EtherIP tunneling protocols and has a clone function to support OpenVPN clients. -WWW: http://www.softether.org +WWW: https://www.softether.org