head	1.53;
access;
symbols
	RELEASE_8_3_0:1.49
	RELEASE_9_0_0:1.49
	RELEASE_7_4_0:1.44
	RELEASE_8_2_0:1.44
	RELEASE_6_EOL:1.43
	RELEASE_8_1_0:1.43
	RELEASE_7_3_0:1.41
	old_RELEASE_8_0_0:1.39
	old_RELEASE_7_2_0:1.39
	old_RELEASE_7_1_0:1.38
	old_RELEASE_6_4_0:1.38
	old_RELEASE_5_EOL:1.35
	old_RELEASE_7_0_0:1.34
	old_RELEASE_6_3_0:1.34
	old_PRE_XORG_7:1.34
	old_RELEASE_4_EOL:1.30
	old_RELEASE_6_2_0:1.30
	old_RELEASE_6_1_0:1.23
	old_RELEASE_5_5_0:1.23
	old_RELEASE_6_0_0:1.16
	old_RELEASE_5_4_0:1.9
	old_RELEASE_4_11_0:1.9
	old_RELEASE_5_3_0:1.9
	old_RELEASE_4_10_0:1.7
	old_RELEASE_5_2_1:1.7
	old_RELEASE_5_2_0:1.7
	old_RELEASE_4_9_0:1.6
	old_RELEASE_5_1_0:1.5
	old_RELEASE_4_8_0:1.4
	old_RELEASE_5_0_0:1.3
	old_RELEASE_4_7_0:1.2;
locks; strict;
comment	@# @;


1.53
date	2013.01.11.23.43.25;	author svnexp;	state Exp;
branches;
next	1.52;

1.52
date	2013.01.06.11.46.49;	author svnexp;	state Exp;
branches;
next	1.51;

1.51
date	2012.11.17.06.01.09;	author svnexp;	state Exp;
branches;
next	1.50;

1.50
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.49;

1.49
date	2011.10.04.21.58.09;	author mandree;	state Exp;
branches;
next	1.48;

1.48
date	2011.08.30.17.12.30;	author mandree;	state Exp;
branches;
next	1.47;

1.47
date	2011.08.07.17.23.39;	author pav;	state Exp;
branches;
next	1.46;

1.46
date	2011.07.25.19.47.12;	author mandree;	state Exp;
branches;
next	1.45;

1.45
date	2011.06.20.21.44.47;	author mandree;	state Exp;
branches;
next	1.44;

1.44
date	2011.01.08.10.07.21;	author mandree;	state Exp;
branches;
next	1.43;

1.43
date	2010.06.13.11.57.36;	author mandree;	state Exp;
branches;
next	1.42;

1.42
date	2010.03.27.06.14.02;	author dougb;	state Exp;
branches;
next	1.41;

1.41
date	2010.01.07.16.28.56;	author mandree;	state Exp;
branches;
next	1.40;

1.40
date	2010.01.07.16.07.16;	author mandree;	state Exp;
branches;
next	1.39;

1.39
date	2009.01.25.08.10.55;	author beech;	state Exp;
branches;
next	1.38;

1.38
date	2008.08.21.06.18.19;	author rafan;	state Exp;
branches;
next	1.37;

1.37
date	2008.07.18.12.16.20;	author miwi;	state Exp;
branches;
next	1.36;

1.36
date	2008.07.18.10.49.40;	author miwi;	state Exp;
branches;
next	1.35;

1.35
date	2008.02.20.01.15.28;	author rafan;	state Exp;
branches;
next	1.34;

1.34
date	2007.03.04.19.12.37;	author nox;	state Exp;
branches;
next	1.33;

1.33
date	2007.02.25.19.42.55;	author vd;	state Exp;
branches;
next	1.32;

1.32
date	2007.02.23.08.38.53;	author vd;	state Exp;
branches;
next	1.31;

1.31
date	2007.02.04.19.14.20;	author rafan;	state Exp;
branches;
next	1.30;

1.30
date	2006.10.02.17.47.32;	author alepulver;	state Exp;
branches;
next	1.29;

1.29
date	2006.09.30.07.48.24;	author rafan;	state Exp;
branches;
next	1.28;

1.28
date	2006.09.14.01.22.01;	author rafan;	state Exp;
branches;
next	1.27;

1.27
date	2006.08.20.07.06.37;	author itetcu;	state Exp;
branches;
next	1.26;

1.26
date	2006.07.28.09.56.53;	author itetcu;	state Exp;
branches;
next	1.25;

1.25
date	2006.04.27.12.53.55;	author garga;	state Exp;
branches;
next	1.24;

1.24
date	2006.04.05.14.57.24;	author garga;	state Exp;
branches;
next	1.23;

1.23
date	2005.11.10.15.05.42;	author garga;	state Exp;
branches;
next	1.22;

1.22
date	2005.11.05.01.24.14;	author mnag;	state Exp;
branches;
next	1.21;

1.21
date	2005.11.03.15.22.44;	author garga;	state Exp;
branches;
next	1.20;

1.20
date	2005.11.02.01.52.51;	author mnag;	state Exp;
branches;
next	1.19;

1.19
date	2005.10.25.08.03.55;	author dinoex;	state Exp;
branches;
next	1.18;

1.18
date	2005.09.18.12.01.56;	author vs;	state Exp;
branches;
next	1.17;

1.17
date	2005.08.29.18.52.19;	author garga;	state Exp;
branches;
next	1.16;

1.16
date	2005.08.22.10.31.35;	author garga;	state Exp;
branches;
next	1.15;

1.15
date	2005.08.19.18.48.34;	author garga;	state Exp;
branches;
next	1.14;

1.14
date	2005.07.14.13.15.47;	author garga;	state Exp;
branches;
next	1.13;

1.13
date	2005.05.31.19.58.32;	author flz;	state Exp;
branches;
next	1.12;

1.12
date	2005.05.31.17.57.10;	author flz;	state Exp;
branches;
next	1.11;

1.11
date	2005.05.19.16.22.20;	author vs;	state Exp;
branches;
next	1.10;

1.10
date	2005.04.21.14.04.41;	author jylefort;	state Exp;
branches;
next	1.9;

1.9
date	2004.09.03.16.17.04;	author vs;	state Exp;
branches;
next	1.8;

1.8
date	2004.05.10.15.51.24;	author vs;	state Exp;
branches;
next	1.7;

1.7
date	2003.11.21.12.19.01;	author krion;	state Exp;
branches;
next	1.6;

1.6
date	2003.07.18.00.16.06;	author leeym;	state Exp;
branches;
next	1.5;

1.5
date	2003.05.09.07.34.00;	author ijliao;	state Exp;
branches;
next	1.4;

1.4
date	2003.02.21.13.26.49;	author knu;	state Exp;
branches;
next	1.3;

1.3
date	2002.10.25.20.55.29;	author obraun;	state Exp;
branches;
next	1.2;

1.2
date	2002.07.11.16.51.06;	author ijliao;	state Exp;
branches;
next	1.1;

1.1
date	2002.06.24.16.13.08;	author pat;	state Exp;
branches;
next	;


desc
@@


1.53
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310252
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310252 | mandree | 2013-01-11 23:09:37 +0000 (Fri, 11 Jan 2013) | 11 lines
## SVN ##
## SVN ## OpenVPN changes, upgrades and fixes:
## SVN ##
## SVN ## - Upgrade security/openvpn to v2.3.0 (changes installed layout a bit),
## SVN ##   splitting and re-diffing patches.
## SVN ## - Retain v2.2.2 as security/openvpn22
## SVN ## - Mark security/openvpn20 as deprecated and to expire 6 months from now
## SVN ## - Fix TCP_NODELAY option (openvpn 2.3, 2.2), see
## SVN ##   <http://community.openvpn.net/openvpn/ticket/158>
## SVN ## - Fix PassTOS option (openvpn 2.2, 2.0), see
## SVN ##   http://community.openvpn.net/openvpn/ticket/135
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Matthias Andree <matthias.andree@@gmx.de>
# $FreeBSD: head/security/openvpn20/Makefile 310252 2013-01-11 23:09:37Z mandree $

PORTNAME=	openvpn
PORTVERSION=	2.0.9
PORTREVISION=	3
CATEGORIES=	security net
# MASTER_SITES points to hosts in distinct data centers,
# so just one MASTER_SITES entry should be OK.
MASTER_SITES=	http://openvpn.net/release/

MAINTAINER=	mandree@@FreeBSD.org
COMMENT=	Secure IP/Ethernet tunnel daemon

DEPRECATED=		Please migrate to a newer OpenVPN version
EXPIRATION_DATE=	2013-07-11

LATEST_LINK=	openvpn20
CONFLICTS_INSTALL=	openvpn-2.[!0]* openvpn-beta-[0-9]* openvpn-devel-[0-9]*

GNU_CONFIGURE=	yes
USE_OPENSSL=	yes
CONFIGURE_ARGS=	--with-lzo-lib=${LOCALBASE}/lib \
		--with-lzo-headers=${LOCALBASE}/include

MAN8=		openvpn.8

OPTIONS_DEFINE=	PW_SAVE
PW_SAVE_DESC=	Interactive passwords may be read from a file

USE_RC_SUBR=	openvpn
USE_LDCONFIG=	${PREFIX}/lib

LIB_DEPENDS+=	lzo2:${PORTSDIR}/archivers/lzo2

SUB_FILES=	pkg-message
SUB_LIST+=	OSVERSION=${OSVERSION}

.if defined(PACKAGE_BUILDING)
WITHOUT_CHECK=	yes
.endif

.include <bsd.port.pre.mk>

.ifdef (LOG_OPENVPN)
CFLAGS+=	-DLOG_OPENVPN=${LOG_OPENVPN}
.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, default LOG_DAEMON}"
	@@${ECHO} "      EXAMPLE:  make LOG_OPENVPN=LOG_DAEMON"
	@@${ECHO} ""
.endif

.if ${PORT_OPTIONS:MPW_SAVE}
CONFIGURE_ARGS+=	--enable-password-save
.else
CONFIGURE_ARGS+=	--disable-password-save
.endif

post-patch:
	${FIND} ${WRKSRC}/plugin -name Makefile \
	    -exec ${REINPLACE_CMD} 's;gcc;${CC};g' '{}' +

post-build:
	cd ${WRKSRC}/plugin/down-root && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS}
	cd ${WRKSRC}/plugin/auth-pam && ${CC} ${CPPFLAGS} -I../.. -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)
	@@${ECHO} ; ${ECHO} "### Note that you can skip these lengthy selftests with WITHOUT_CHECK=yes ###" ; ${ECHO}
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} check
.endif

post-install:
	${MKDIR} ${PREFIX}/lib
	${INSTALL_PROGRAM} ${WRKSRC}/plugin/down-root/openvpn-down-root.so ${PREFIX}/lib
	${INSTALL_PROGRAM} ${WRKSRC}/plugin/auth-pam/openvpn-auth-pam.so ${PREFIX}/lib
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/plugin/down-root/README ${DOCSDIR}/README.openvpn-down-root
	${INSTALL_DATA} ${WRKSRC}/plugin/auth-pam/README ${DOCSDIR}/README.openvpn-auth-pam
.for docs in AUTHORS COPYING COPYRIGHT.GPL ChangeLog INSTALL NEWS \
	PORTS README
	${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
.endfor
.for dir in easy-rsa easy-rsa/2.0 sample-config-files
	${MKDIR} ${DOCSDIR}/${dir}
	${FIND} ${WRKSRC}/${dir}/ -maxdepth 1 -type f \( -name '.*' -o -name Makefile \) -o -exec ${INSTALL_DATA} \{\} ${DOCSDIR}/${dir} \;
.endfor
.for dir in sample-scripts
	${MKDIR} ${DOCSDIR}/${dir}
	${FIND} ${WRKSRC}/${dir}/ -maxdepth 1 -type f -exec ${INSTALL_SCRIPT} \{\} ${DOCSDIR}/${dir} \;
.endfor
.endif
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.52
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309978
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309978 | mandree | 2013-01-06 11:29:44 +0000 (Sun, 06 Jan 2013) | 4 lines
## SVN ##
## SVN ## - Convert to OptionsNG
## SVN ## - Strip Makefile header
## SVN ## - Drop LIB_DEPENDS ABI versions
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/security/openvpn20/Makefile 309978 2013-01-06 11:29:44Z mandree $
d6 1
a6 1
PORTREVISION=	2
d15 3
@


1.51
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	openvpn
# Date created:		2002-06-23
# Whom:			Matthias Andree <matthias.andree@@gmx.de>
#
# $FreeBSD: head/security/openvpn20/Makefile 302141 2012-08-05 23:19:36Z dougb $
#
d25 2
a26 1
OPTIONS=	PW_SAVE "Interactive passwords may be read from a file" off
d31 1
a31 1
LIB_DEPENDS+=	lzo2.2:${PORTSDIR}/archivers/lzo2
d58 1
a58 1
.if defined(WITH_PW_SAVE)
d60 2
d81 1
a81 1
.if !defined(NOPORTDOCS)
@


1.50
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by dougb

Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.49
log
@Update and demote CONFLICTS to CONFLICTS_INSTALL.
@
text
@d31 1
a31 1
USE_RC_SUBR=	openvpn.sh
@


1.48
log
@Use recently bugfixed rc script from ../openvpn port.
@
text
@d20 1
a20 1
CONFLICTS=	openvpn-2.[!0]* openvpn-devel-[0-9]*
@


1.47
log
@- Turn off self-tests on pointyhat, they fail

Reported by:	pointyhat
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.46
log
@archivers/lzo was removed, remove support for it.
@
text
@d39 4
@


1.45
log
@Clang fixes:- patch plugin Makefiles to use ${CC} rather than gcc (found by -exp run);
- silence non-literal format string warnings (non-fix, adds patch-options.c)
- fix missing prototype warning (adds patch-route.c, bumps PORTREVISION)
- Use full ${MAKE} environment from do-build, for consistency.

While here, remove MD5 checksum.
@
text
@d34 2
a56 10
# NOTE: there is no way to explicitly specify the LZO version to OpenVPN,
# if LZO2 and LZO1 are installed, OpenVPN will pick LZO2.
# So depend on LZO1 only if it's already there and LZO2 isn't.
# PACKAGE_BUILDING will also force LZO2.
.if exists(${LOCALBASE}/lib/liblzo2.so.2) || !exists(${LOCALBASE}/lib/liblzo.so.1) || defined(PACKAGE_BUILDING)
LIB_DEPENDS+=	lzo2.2:${PORTSDIR}/archivers/lzo2
.else
LIB_DEPENDS+=	lzo.1:${PORTSDIR}/archivers/lzo
.endif

@


1.44
log
@Add a note about skipping the self-test.
@
text
@d10 1
d69 4
d74 1
a74 1
	cd ${WRKSRC}/plugin/down-root && ${MAKE}
d79 1
a79 1
	cd ${WRKSRC} && ${MAKE} check
@


1.43
log
@Switch MAINTAINER line to FreeBSD address.

Approved by: garga (mentor, implicit)
@
text
@d73 1
@


1.42
log
@RC_SUBR_SUFFIX has not been needed for a long time now, all supported
versions of FreeBSD now use /etc/rc.subr and rc.d scripts without .sh
appended to the script name.
@
text
@d15 1
a15 1
MAINTAINER=	matthias.andree@@gmx.de
@


1.41
log
@Move security/openvpn to security/openvpn20 (after previous repocopy).
Update security/openvpn20 to 2.0.9, revising pkg-message.

Move security/openvpn-devel to security/openvpn and
update security/openvpn to 2.1.1.

Remove security/openvpn-devel, adding a MOVED entry.

Update security/Makefile to remove openvpn-devel and add openvpn20 to
SUBDIRS.

Add a UPDATING entry for this shuffle.  Currently without upgrade
instructions since neither portupgrade nor portmaster are up to the
task (because of the CONFLICTS).

Approved by:  garga@@ (mentor)
@
text
@a37 2
SUB_LIST+=	RCSFX=${RC_SUBR_SUFFIX}

@


1.40
log
@repocopy obtained from ports/security/openvpn as of 2009-12-25 16:13Z

Requested by: mandree@@
PR:           ports/141921
Approved by:  garga@@ (mentor)
@
text
@d9 1
a9 8
# -----------------------------------------------------
# DO NOT BOTHER TO SEND NOTICES ABOUT OPENVPN 2.0.9
# AS IT FIXES WINDOWS-ONLY BUGS THAT DON'T AFFECT *BSD
# AND THUS DOES NOT WARRANT A PORT UPGRADE!
# UPGRADE REQUESTS WILL BE DROPPED UNLESS BSD-RELATED.
# -----------------------------------------------------
PORTVERSION=	2.0.6
PORTREVISION=	9
d18 2
a19 1
CONFLICTS=	openvpn-devel-[0-9]*
d33 1
a33 1
SUB_FILES=	pkg-message pkg-req
d51 1
a51 1
	@@${ECHO} "      LOG_OPENVPN={Valid syslog facility}"
a77 3
pre-install:
	PKG_PREFIX=${PREFIX} ${SH} ${PKGREQ} ${PKGNAME} INSTALL

d92 1
a92 1
	${FIND} ${WRKSRC}/${dir}/ -maxdepth 1 -type f -exec ${INSTALL_DATA} \{\} ${DOCSDIR}/${dir} \;
@


1.39
log
@- Add logging knob

PR:		ports/130893
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
Approved by:	Matthias Andree <matthias.andree@@gmx.de> (maintainer)
@
text
@@


1.38
log
@Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
@
text
@d46 16
@


1.37
log
@- Force commit to correct the previous commit log:

Correct permissions/owner of DOCSDIR-installed files

PR:		125726 / 125727
Request by:	maintainer via im
@
text
@a28 1
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
@


1.36
log
@- Respect NOPORTDOCS

PR:		125726
Submitted by:	Matthias Andree <matthias.andree@@gmx.de> (maintainer)
@
text
@@


1.35
log
@- Run opensvn with --daemon ${name} in order to get distinguishable and
  useful syslog tags

PR:		ports/120862
Submitted by:	Matthias Andree <matthias.andree at gmx.de> (maintainer)
@
text
@d16 1
a16 1
PORTREVISION=	8
d84 8
a91 4
	( cd ${WRKSRC} \
	&& ${FIND} easy-rsa sample-config-files sample-scripts -depth \
	| ${GREP} -v easy-rsa/Windows \
	| ${CPIO} -pdmu ${DOCSDIR} )
@


1.34
log
@rcfile:
- fix for FreeBSD releases before rcorder integration
- update copyright notice
- replace shell backticks by $().

Port:
- bump revision
- reformat comment

PR:		ports/109856
Submitted by:	Matthias Andree <matthias.andree@@gmx.de> (maintainer)
Approved by:	miwi (mentor)
@
text
@d16 1
a16 1
PORTREVISION=	7
@


1.33
log
@Fix a bug I introduced with last commit which resulted in openvpn not
being started during boot. The reason for this is that at boot $0 is not
/usr/local/etc/rc.d/openvpn but /etc/rc. The fix is a bit hackish because
it retrieves the script name from $_file - variable used in run_rc_script().

Reported by:	bazzoola <bazzoola@@gmail.com>
@
text
@d10 4
a13 4
# DO NOT BOTHER TO SEND NOTICES ABOUT 2.0.9 AS IT FIXES
# WINDOWS-ONLY BUGS THAT DON'T AFFECT *BSD AND THUS
# DOES NOT WARRANT A PORT UPGRADE! AND UPGRADE REQUESTS
# WILL BE DROPPED.
d16 1
a16 1
PORTREVISION=	6
@


1.32
log
@* Add support for running multiple instances of openvpn to the startup script
  Inspired by [1]
* Bump PORTREVISION
* Update the comment which says not to send notices about 2.0.8 to 2.0.9 since
  2.0.9 also introduces only Windows changes. Remove maintainer's name from
  this comment since he did not explicitly state this.

PR:		ports/108371 [1]
Submitted by:	Denis Shaposhnikov <dsh@@vlink.ru>, Gleb Kozyrev <gkozyrev@@gmail.com> [1]
Approved by:	matthias.andree@@gmx.de (maintainer timeout, 28 days)
@
text
@d16 1
a16 1
PORTREVISION=	5
@


1.31
log
@- Use newly added RC_SUBR_SUFFIX

Approved by:	Matthias Andree <matthias.andree at gmx.de> (maintainer)
@
text
@d10 1
a10 1
# DO NOT BOTHER TO SEND NOTICES ABOUT 2.0.8 AS IT FIXES
d13 1
a13 1
# WILL BE DROPPED.       -- Matthias Andree, 2006-10-01
d16 1
a16 1
PORTREVISION=	4
@


1.30
log
@- Fix build failures that arose from an accidentally omitted -fPIC.
- Portrevision bumped since the change affects all architectures,
  not just those that were failing.

PR:		ports/103863
Submitted by:	Matthias Andree <matthias.andree@@gmx.de> (maintainer)
Reported by:	pointyhat
@
text
@d45 1
a45 6
.if (${OSVERSION} >= 700007 || ( ${OSVERSION} < 700000 && ${OSVERSION} >= 600101))
rcsuffix=
.else
rcsuffix=	.sh
.endif
SUB_LIST+=	RCSFX=${rcsuffix}
@


1.29
log
@- Install additional auth-pam plugin

PR:		ports/103833
Submitted by:	Matthias Andree <matthias.andree at gmx.de> (maintainer)
Suggested by:	Michael Helmeste
Tested by:	Michael Helmeste
@
text
@d13 1
a13 1
# WILL BE DROPPED.       -- Matthias Andree, 2006-09-13
d16 1
a16 1
PORTREVISION=	3
d68 1
a68 1
	cd ${WRKSRC}/plugin/auth-pam && ${CC} ${CFLAGS} ${CPPFLAGS} -I../.. -DDLOPEN_PAM=0 -shared -Wl,-soname,openvpn-auth-pam.so -o openvpn-auth-pam.so auth-pam.c pamdl.c -lc -lpam
@


1.28
log
@- Update comments for OpenVPN 2.0.8

PR:		ports/103243
Submitted by:	Matthias Andree <matthias.andree at gmx.de> (maintainer)
@
text
@d16 1
a16 1
PORTREVISION=	2
d68 1
d79 2
a80 2
	${INSTALL_PROGRAM} ${WRKSRC}/plugin/down-root/openvpn-down-root.so \
		${PREFIX}/lib
d83 2
a84 2
	${INSTALL_DATA} ${WRKSRC}/plugin/down-root/README \
		${DOCSDIR}/README.openvpn-down-root
@


1.27
log
@- conflicts with openvpn-devel-[0-9]*
- bump PORTREVISION

PR:		ports/102301
Submitted by:	Matthias Andree (maintainer)
@
text
@d10 2
a11 2
# DO NOT BOTHER TO SEND NOTICES ABOUT 2.0.7 AS IT FIXES
# A WINDOWS-ONLY BUG THAT DOESN'T AFFECT *BSD AND THUS
d13 1
a13 1
# WILL BE DROPPED.       -- Matthias Andree, 2006-04-26
@


1.26
log
@1 - build and install lib/openvpn-down-root.so plugin (see --plugin option in
    the man page) and README.openvpn-down-root
2 - match rc.d filename as printed post install in pkg-message to actual file
    name on newer systems (which use openvpn rather than openvpn.sh)
Reported by:	Jean-Baptiste Quenot (Bcc'd)
The maintainer wishes to thank Jean-Baptiste for his report and patience.
3 - add a pkg-req script to prevent installation of 6.1 packages on older
    machines, which is a frequent source of "rc.d script doesn't work"
    complaints.

Added file(s):
- files/pkg-req.in

PR:		ports/100917
Submitted by:	Matthias Andree (maintainer)
@
text
@d16 1
a16 1
PORTREVISION=	1
d25 2
@


1.25
log
@Add a message explaining why it won't be upgraded to 2.0.7 version, to
prevent a lot of people asking maintainer about it:

# -----------------------------------------------------
# DO NOT BOTHER TO SEND NOTICES ABOUT 2.0.7 AS IT FIXES
# A WINDOWS-ONLY BUG THAT DOESN'T AFFECT *BSD AND THUS
# DOES NOT WARRANT A PORT UPGRADE! AND UPGRADE REQUESTS
# WILL BE DROPPED.       -- Matthias Andree, 2006-04-26
# -----------------------------------------------------

PR:		ports/96383
Submitted by:	maintainer
@
text
@d16 1
d36 1
d38 2
a39 1
SUB_FILES=	pkg-message
d43 7
a63 1
# self-tests here
d65 3
d69 4
d75 3
d80 2
@


1.24
log
@- Update to 2.0.6
  * security fix for client LD_PRELOAD code injection vulnerability
    through compromised upstream servers
    (FreeBSD VuXML Vuln VID be4ccb7b-c48b-11da-ae12-0002b3b60e4c,
     filed in separate PR)
    CVE id not known yet
  * 2 other changes only relevant for Linux and NetBSD, not detailed here.

PR:		ports/95345
Submitted by:	maintainer
Security:	VuXML be4ccb7b-c48b-11da-ae12-0002b3b60e4c
@
text
@d9 6
@


1.23
log
@- CATEGORY CHANGE: add "net" secondary category
- fix jail build on FreeBSD 4 (no security.jail.jailed oid in sysctl)
- catch jail IP misconfiguration and print clear error message
- add SHA256 checksum
- revise pkg-message and pkg-descr

PR:		ports/88785
Submitted by:	maintainer
@
text
@d9 1
a9 2
PORTVERSION=	2.0.5
PORTREVISION=	1
@


1.22
log
@Enables self-tests with WITH_JAIL
Bump PORTREVISION

PR:		88488
Submitted by:	Matthias Andree <matthias.andree@@gmx.de> (maintainer)
@
text
@d11 3
a13 1
CATEGORIES=	security
@


1.21
log
@- Update to 2.0.5

PR:		ports/88437
Submitted by:	maintainer
@
text
@d10 1
a47 1
.if !defined(WITH_JAIL)
a49 1
.endif
@


1.20
log
@Update to 2.0.4

PR:		88379
Submitted by:	Matthias Andree <matthias.andree@@gmx.de> (maintainer)
Security:	CVE-2005-3393, CVE-2005-3409
@
text
@d9 1
a9 1
DISTVERSION=	2.0.4
@


1.19
log
@- fix build in jail

maintainer emailed 2005-10-04
Approved by:	(maintainer timeout)
@
text
@d9 1
a9 2
DISTVERSION=	2.0.2
PORTREVISION=	1
d37 1
a37 1
LIB_DEPENDS=	lzo2.2:${PORTSDIR}/archivers/lzo2
d39 1
a39 1
LIB_DEPENDS=	lzo.1:${PORTSDIR}/archivers/lzo
@


1.18
log
@FreeBSD 6 no longer adds debug.if_* sysctl variables in its default kernel
(according to the release notes), so our heuristic assumes the module is
missing and tries to load it, which fails as the module already exists.

PR:		ports/86286
Submitted by:	maintainer
@
text
@d48 1
d51 1
@


1.17
log
@- Update to 2.0.2 that brings these upstream changes:

  - fix bug that would exhaust file descriptors as the routing table was modified
    (this had already been part of the port previously)
  - fix bug that would block the management socket until the peer connected
  - fix pkitool sh incompatibilities (from NetBSD)

PR:		ports/85299
Submitted by:	maintainer
@
text
@d10 1
@


1.16
log
@Fix a typo in the new rc file, where documentation didn't match the
actual variables.

PR:		ports/85156
Submitted by:	maintainer
Reported by:	Benjamin Lutz <benlutz@@datacomm.ch>
Approved by:	portmgr (krion)
@
text
@d9 1
a9 2
DISTVERSION=	2.0.1
PORTREVISION=	1
@


1.15
log
@- Security update to version 2.0.1, fixing four denial of service bugs,
  CAN-2005-2531, CAN-2005-2532, CAN-2005-2533, CAN-2005-2534
- Drop old init script and add a modern rcNG script in its place,
  requested by Matthias Grimm and Dirk Gouders (although the script below is
  one I, Matthias Andree, wrote). It can automatically load tun/tap drivers.
- move pkg-message to files/pkg-message.in, revise it, list it in SUB_FILES
  to expand ${PREFIX}.
- print pkg-message after installation from port
- switch to official "make check" as smoke-test, rather than wiring our own.
- prefer LZO2 in most situations, as OpenVPN will pick up LZO2 rather than
  LZO1 if both are installed.

PR:		ports/85109
Submitted by:	maintainer
Approved by:	portmgr (krion)
@
text
@d10 1
@


1.14
log
@Add PW_PASS option to compile with --enable-pass-save

PR:		82494
Submitted by:	Landon Fuller <landonf@@threerings.net>
Reviewed by:	Matthias Andree <matthias.andree@@gmx.de> (maintainer)
Approved by:	mantainer, flz (mentor)
@
text
@d3 1
a3 1
# Whom:			Matthias Andree <matthias.andree@@web.de>
d9 1
a9 2
DISTVERSION=	2.0
PORTREVISION=	3
a15 2
LIB_DEPENDS=	lzo.1:${PORTSDIR}/archivers/lzo

d26 4
d32 10
d48 1
a48 7
	( set -e ; cd ${WRKSRC} && \
	./openvpn --genkey --secret key && \
	./openvpn --test-crypto --secret key && ${RM} key )
	( set -e ; cd ${WRKSRC} && { \
	./openvpn --config sample-config-files/loopback-server & \
	./openvpn --config sample-config-files/loopback-client ; \
	wait ; })
a50 2
	${INSTALL_SCRIPT} ${FILESDIR}/openvpn.sh.sample \
		${PREFIX}/etc/rc.d/openvpn.sh.sample
d62 1
@


1.13
log
@- Backout latest commit, it needs a repocopy due to API change.

Noticed by:	Matthias Andree <matthias.andree@@gmx.de>
@
text
@d27 8
d60 1
a60 1
.include <bsd.port.mk>
@


1.12
log
@- Bump lzo lib version.
- Bump PORTREVISION.
@
text
@d10 1
a10 1
PORTREVISION=	2
d17 1
a17 1
LIB_DEPENDS=	lzo.2:${PORTSDIR}/archivers/lzo
@


1.11
log
@Plug socket (file descriptor) leak.

PR:		ports/81267
Submitted by:	Jaroslav Klaus via maintainer
@
text
@d10 1
a10 1
PORTREVISION=	1
d17 1
a17 1
LIB_DEPENDS=	lzo.1:${PORTSDIR}/archivers/lzo
@


1.10
log
@Update to 2.0

PR:		ports/80082
Submitted by:	Matthias Andree <matthias.andree@@gmx.de> (maintainer)
Approved by:	adamw (mentor, implicit)
@
text
@d10 1
@


1.9
log
@Add CONFLICTS with openvpn-devel

PR:		ports/71337
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	1.6.0
d11 1
a11 3
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
		http://osdn.dl.sourceforge.net/sourceforge/${PORTNAME}/
MASTER_SITE_SUBDIR=	${PORTNAME}
a17 2
CONFLICTS=	openvpn-devel-*

d22 1
a22 2
		--with-lzo-headers=${LOCALBASE}/include \
		--prefix=${PREFIX}
d26 10
d40 1
a40 1
	@@${MKDIR} ${DOCSDIR}
d43 1
a43 5
	@@${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
.endfor
.for dirs in easy-rsa sample-config-files sample-scripts
	@@${MKDIR} ${DOCSDIR}/${dirs}
	@@${INSTALL_DATA} ${WRKSRC}/${dirs}/* ${DOCSDIR}/${dirs}
d45 4
a48 1
	@@${CAT} ${PKGMESSAGE}
@


1.8
log
@Update to latest stable version.

PR:		ports/66473
Submitted by: 	Matthias Andree (maintainer)
@
text
@d20 2
@


1.7
log
@- Support for TCP as the tunnel transport was added
- Change maintainer email

PR:		59543
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	1.5.0
@


1.6
log
@updates the OpenVPN port from 1.4.0 to 1.4.2.

PR:		54597
Submitted by:	Matthias Andree <matthias.andree@@gmx.de>
@
text
@d9 1
a9 1
PORTVERSION=	1.4.2
d11 2
a12 1
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
d15 1
a15 1
MAINTAINER=	matthias.andree@@web.de
@


1.5
log
@upgrade to 1.4.0

PR:		51956
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	1.4.0
d23 2
a24 1
		--with-lzo-headers=${LOCALBASE}/include
@


1.4
log
@De-pkg-comment.
@
text
@d9 1
a9 1
PORTVERSION=	1.3.2
d21 1
d23 1
a23 2
		--with-lzo-headers=${LOCALBASE}/include \
		--program-transform-name="s/x/x/"
@


1.3
log
@* Upgrade to 1.3.2.
* Add init script.

PR:		44436
Submitted by:	maintainer
@
text
@d15 1
@


1.2
log
@upgrade to 1.3.0

PR:		40424
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	1.3.0
d27 2
@


1.1
log
@Add new port openvpn: Secure IP/Ethernet tunnel daemon

PR:		ports/39750
Submitted by:	Matthias Andree <matthias.andree@@web.de>
@
text
@d9 1
a9 1
PORTVERSION=	1.2.1
d37 1
@

