diff options
Diffstat (limited to 'security/openvpn-beta')
-rw-r--r-- | security/openvpn-beta/Makefile | 112 | ||||
-rw-r--r-- | security/openvpn-beta/distinfo | 2 | ||||
-rw-r--r-- | security/openvpn-beta/files/openvpn.in | 137 | ||||
-rw-r--r-- | security/openvpn-beta/files/pkg-message.in | 22 | ||||
-rw-r--r-- | security/openvpn-beta/pkg-descr | 14 | ||||
-rw-r--r-- | security/openvpn-beta/pkg-plist | 47 |
6 files changed, 0 insertions, 334 deletions
diff --git a/security/openvpn-beta/Makefile b/security/openvpn-beta/Makefile deleted file mode 100644 index 4cd89a010754..000000000000 --- a/security/openvpn-beta/Makefile +++ /dev/null @@ -1,112 +0,0 @@ -# Created by: Eric F Crist <ecrist@secure-computing.net> -# $FreeBSD$ - -PORTNAME= openvpn -DISTVERSION= 2.3_rc2 -PORTREVISION= 1 -CATEGORIES= security net -MASTER_SITES= http://swupdate.openvpn.net/community/releases/ -PKGNAMESUFFIX= -beta - -MAINTAINER= ports@FreeBSD.org -COMMENT= Secure IP/Ethernet tunnel daemon - -LICENSE= GPLv2 - -CONFLICTS_INSTALL= openvpn-[0-9]* openvpn-beta-[0-9]* - -USES= tar:xz - -GNU_CONFIGURE= yes -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -INSTALL_TARGET= install mandir=${MANPREFIX}/man - -LIB_DEPENDS+= liblzo2.so:${PORTSDIR}/archivers/lzo2 - -MAN8= openvpn.8 - -OPTIONS_DEFINE= PW_SAVE PKCS11 POLARSSL -PW_SAVE_DESC= Interactive passwords may be read from a file -PKCS11_DESC= Use security/pkcs11-helper -POLARSSL_DESC= Build with PolarSSL instead of OpenSSL - -USE_RC_SUBR= openvpn -USE_LDCONFIG= ${PREFIX}/lib - -SUB_FILES= pkg-message -SUB_LIST+= OSVERSION=${OSVERSION} - -.if defined(PACKAGE_BUILDING) -WITHOUT_CHECK= yes -.endif - -NO_STAGE= yes -.include <bsd.port.options.mk> - -.ifdef (LOG_OPENVPN) -CFLAGS+= -DLOG_OPENVPN=${LOG_OPENVPN} -.endif - -.if ${PORT_OPTIONS:MPOLARSSL} -LIB_DEPENDS+= libpolarssl.so:${PORTSDIR}/security/polarssl -CONFIGURE_ARGS+= --with-crypto-library=polarssl -WITHOUT_CHECK= yes -.else -USE_OPENSSL= yes -.endif - -pre-fetch: -.ifdef (LOG_OPENVPN) - @${ECHO} "Building with LOG_OPENVPN=${LOG_OPENVPN}" -.else - @${ECHO} "" - @${ECHO} "You may use the following build options:" - @${ECHO} "" - @${ECHO} " LOG_OPENVPN={Valid syslog facility}" - @${ECHO} " EXAMPLE: make LOG_OPENVPN=LOG_DAEMON" - @${ECHO} "" -.endif - -.if ${PORT_OPTIONS:MPW_SAVE} -CONFIGURE_ARGS+= --enable-password-save -.endif - -.if ${PORT_OPTIONS:MPKCS11} -LIB_DEPENDS+= libpkcs11-helper.so:${PORTSDIR}/security/pkcs11-helper -.else -CONFIGURE_ARGS+= --disable-pkcs11 -.endif - -post-patch: - @${FIND} ${WRKSRC} -name \*.orig -delete - @${FIND} ${WRKSRC} -name \*.bak -delete - -post-build: - cd ${WRKSRC}/src/plugins/down-root && ${MAKE} - cd ${WRKSRC}/src/plugins/auth-pam && ${CC} ${CPPFLAGS} -I../../../include -DDLOPEN_PAM=0 ${CFLAGS} -fPIC -shared -Wl,-soname,openvpn-auth-pam.so -o openvpn-auth-pam.so auth-pam.c pamdl.c -lc -lpam - @# self-tests here -.if !defined(WITHOUT_CHECK) - cd ${WRKSRC} && ${MAKE} check -.endif - -post-install: - ${MKDIR} ${PREFIX}/lib - ${LN} -s ${PREFIX}/lib/openvpn/plugins/openvpn-plugin-down-root.so ${PREFIX}/lib/openvpn-down-root.so - ${LN} -s ${PREFIX}/lib/openvpn/plugins/openvpn-plugin-auth-pam.so ${PREFIX}/lib/openvpn-auth-pam.so - -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -.for docs in AUTHORS COPYING COPYRIGHT.GPL ChangeLog INSTALL \ - PORTS README - ${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}/ -.endfor -.for sample in sample-config-files sample-scripts - (cd ${WRKSRC}/sample/${sample} && ${COPYTREE_SHARE} \* ${DOCSDIR}/${sample}) -.endfor -.else - -@${RMDIR} ${DOCSDIR} -.endif - @${CAT} ${PKGMESSAGE} - -.include <bsd.port.mk> diff --git a/security/openvpn-beta/distinfo b/security/openvpn-beta/distinfo deleted file mode 100644 index 202ac217c393..000000000000 --- a/security/openvpn-beta/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (openvpn-2.3_rc2.tar.xz) = f92f94f04ed69cb3a64446b01addf4a6780fba58ac8ad6e0af6a06ace271f2de -SIZE (openvpn-2.3_rc2.tar.xz) = 761940 diff --git a/security/openvpn-beta/files/openvpn.in b/security/openvpn-beta/files/openvpn.in deleted file mode 100644 index 124082b72687..000000000000 --- a/security/openvpn-beta/files/openvpn.in +++ /dev/null @@ -1,137 +0,0 @@ -#!/bin/sh -# -# openvpn.sh - load tun/tap driver and start OpenVPN daemon -# -# (C) Copyright 2005 - 2008 by Matthias Andree -# based on suggestions by Matthias Grimm and Dirk Gouders -# with multi-instance contribution from Denis Shaposhnikov, Gleb Kozyrev -# and Vasil Dimov -# -# $FreeBSD$ -# -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. -# -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -# details. -# -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin -# Street, Fifth Floor, Boston, MA 02110-1301, USA. - -# PROVIDE: openvpn -# REQUIRE: DAEMON -# KEYWORD: shutdown - -# ----------------------------------------------------------------------------- -# -# This script supports running multiple instances of openvpn. -# To run additional instance link this script to something like -# % ln -s openvpn openvpn_foo -# and define additional openvpn_foo_* variables in one of -# /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/openvpn_foo -# -# Below NAME should be substituted with the name of this script. By default -# it is openvpn, so read as openvpn_enable. If you linked the script to -# openvpn_foo, then read as openvpn_foo_enable etc. -# -# The following variables are supported (defaults are shown). -# You can place them in any of -# /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/NAME -# -# NAME_enable="NO" # set to YES to enable openvpn -# NAME_if= # driver(s) to load, set to "tun", "tap" or "tun tap" -# -# # optional: -# NAME_flags= # additional command line arguments -# NAME_configfile="%%PREFIX%%/etc/openvpn/NAME.conf" # --config file -# NAME_dir="%%PREFIX%%/etc/openvpn" # --cd directory -# -# You also need to set NAME_configfile and NAME_dir, if the configuration -# file and directory where keys and certificates reside differ from the above -# settings. -# -# Note that we deliberately refrain from unloading drivers. -# -# For further documentation, please see openvpn(8). -# - -. /etc/rc.subr - -case "$0" in -/etc/rc*) - # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown), - # so get the name of the script from $_file - name=$(basename "$_file" .sh) - ;; -*) - name=$(basename "$0" .sh) - ;; -esac - -rcvar=${name}_enable - -openvpn_precmd() -{ - for i in $interfaces ; do - # FreeBSD <= 5.4 does not know kldstat's -m option - # FreeBSD >= 6.0 does not add debug.* sysctl information - # in the default build - we check both to keep things simple - if ! sysctl debug.if_${i}_debug >/dev/null 2>&1 \ - && ! kldstat -m if_${i} >/dev/null 2>&1 ; then - if ! kldload if_${i} ; then - warn "Could not load $i module." - return 1 - fi - fi - done - return 0 -} - -stop_postcmd() -{ - rm -f "$pidfile" || warn "Could not remove $pidfile." -} - -softrestart() -{ - sig_reload=USR1 run_rc_command reload - exit $? -} - -# reload: support SIGHUP to reparse configuration file -# softrestart: support SIGUSR1 to reconnect without privileges -extra_commands="reload softrestart" -softrestart_cmd="softrestart" - -# pidfile -pidfile="/var/run/${name}.pid" - -# command and arguments -command="%%PREFIX%%/sbin/openvpn" - -# run this first -start_precmd="openvpn_precmd" -# and this last -stop_postcmd="stop_postcmd" - -load_rc_config ${name} - -eval ": \${${name}_enable:=\"NO\"}" -eval ": \${${name}_flags:=\"\"}" -eval ": \${${name}_if:=\"\"}" -eval ": \${${name}_configfile:=\"%%PREFIX%%/etc/openvpn/${name}.conf\"}" -eval ": \${${name}_dir:=\"%%PREFIX%%/etc/openvpn\"}" - -configfile="$(eval echo \${${name}_configfile})" -dir="$(eval echo \${${name}_dir})" -interfaces="$(eval echo \${${name}_if})" - -required_files=${configfile} -command_args="--cd ${dir} --daemon ${name} --config ${configfile} --writepid ${pidfile}" - -run_rc_command "$1" diff --git a/security/openvpn-beta/files/pkg-message.in b/security/openvpn-beta/files/pkg-message.in deleted file mode 100644 index 17460db8f5a7..000000000000 --- a/security/openvpn-beta/files/pkg-message.in +++ /dev/null @@ -1,22 +0,0 @@ -### ------------------------------------------------------------------------ -### Edit /etc/rc.conf[.local] to start OpenVPN automatically at system -### startup. See %%PREFIX%%/etc/rc.d/openvpn for details. -### ------------------------------------------------------------------------ -### For compatibility notes when interoperating with older OpenVPN -### versions, please, see <http://openvpn.net/relnotes.html> -### ------------------------------------------------------------------------ -### NOTE THIS IS AN UNSTABLE BETA VERSION UNDER DEVELOPMENT! -### It may or may not be suitable for production. Use at your own risk. -### ------------------------------------------------------------------------ -### -### PLUGIN LOCATION CHANGED! -### The following plugin locations have changed. There is a symlink to the -### new file for the duration of the 2.3 release. This will be removed in -### OpenVPN 2.4+. -### New Location: -### %%PREFIX%%/openvpn/plugins/openvpn-plugin-auth-pam.so -### %%PREFIX%%/openvpn/plugins/openvpn-plugin-down-root.so -### -### Old Location: -### %%PREFIX%%/openvpn-plugin-auth-pam.so -### %%PREFIX%%/openvpn-plugin-down-root.so diff --git a/security/openvpn-beta/pkg-descr b/security/openvpn-beta/pkg-descr deleted file mode 100644 index ed9fa4ae2146..000000000000 --- a/security/openvpn-beta/pkg-descr +++ /dev/null @@ -1,14 +0,0 @@ -This is a BETA build for OpenVPN. This means that this port may not function -properly in a production environment, but we've made strong efforts toward -making this as releasble as possible. Please use this port to aid OpenVPN -to test and make this next release as stable as possible. - -OpenVPN is a robust, scalable and highly configurable VPN (Virtual Private -Network) daemon which can be used to securely link two or more private networks -using an encrypted tunnel over the internet. It can operate over UDP or TCP, -can use SSL or a pre-shared secret to authenticate peers, and in SSL mode, one -server can handle many clients. - -DO NOT USE IN PRODUCTION WITHOUT CAUTION - -WWW: http://openvpn.net/ diff --git a/security/openvpn-beta/pkg-plist b/security/openvpn-beta/pkg-plist deleted file mode 100644 index 566a6c6b6c74..000000000000 --- a/security/openvpn-beta/pkg-plist +++ /dev/null @@ -1,47 +0,0 @@ -lib/openvpn/plugins/openvpn-plugin-auth-pam.so -lib/openvpn/plugins/openvpn-plugin-auth-pam.la -lib/openvpn/plugins/openvpn-plugin-down-root.so -lib/openvpn/plugins/openvpn-plugin-down-root.la -lib/openvpn-auth-pam.so -lib/openvpn-down-root.so -include/openvpn-plugin.h -sbin/openvpn -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/COPYING -%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT.GPL -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog -%%PORTDOCS%%%%DOCSDIR%%/INSTALL -%%PORTDOCS%%%%DOCSDIR%%/PORTS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/README.auth-pam -%%PORTDOCS%%%%DOCSDIR%%/README.down-root -%%PORTDOCS%%%%DOCSDIR%%/README.IPv6 -%%PORTDOCS%%%%DOCSDIR%%/README.polarssl -%%PORTDOCS%%%%DOCSDIR%%/management-notes.txt -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/README -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/client.conf -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/firewall.sh -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/home.up -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/loopback-client -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/loopback-server -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/office.up -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/openvpn-shutdown.sh -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/openvpn-startup.sh -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/server.conf -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/static-home.conf -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/static-office.conf -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/tls-home.conf -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/tls-office.conf -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/xinetd-client-config -%%PORTDOCS%%%%DOCSDIR%%/sample-config-files/xinetd-server-config -%%PORTDOCS%%%%DOCSDIR%%/sample-scripts/auth-pam.pl -%%PORTDOCS%%%%DOCSDIR%%/sample-scripts/bridge-start -%%PORTDOCS%%%%DOCSDIR%%/sample-scripts/bridge-stop -%%PORTDOCS%%%%DOCSDIR%%/sample-scripts/ucn.pl -%%PORTDOCS%%%%DOCSDIR%%/sample-scripts/verify-cn -%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/sample -%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/sample-config-files -%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/sample-scripts -%%PORTDOCS%%@dirrmtry %%DOCSDIR%% -@dirrmtry lib/openvpn/plugins -@dirrmtry lib/openvpn |