head	1.15;
access;
symbols
	RELEASE_8_3_0:1.9
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.4
	RELEASE_8_2_0:1.4
	RELEASE_6_EOL:1.3;
locks; strict;
comment	@# @;


1.15
date	2012.12.23.04.41.12;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.11.17.06.01.09;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.10.11.20.11.26;	author bdrewery;	state Exp;
branches;
next	1.12;

1.12
date	2012.10.01.15.01.14;	author bdrewery;	state Exp;
branches;
next	1.11;

1.11
date	2012.09.28.18.43.30;	author bdrewery;	state Exp;
branches;
next	1.10;

1.10
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.9;

1.9
date	2011.09.03.07.55.31;	author dougb;	state Exp;
branches;
next	1.8;

1.8
date	2011.08.07.17.23.39;	author pav;	state Exp;
branches;
next	1.7;

1.7
date	2011.07.25.20.03.44;	author mandree;	state Exp;
branches;
next	1.6;

1.6
date	2011.03.27.06.19.45;	author dhn;	state Exp;
branches;
next	1.5;

1.5
date	2011.03.04.19.59.51;	author jpaetzel;	state Exp;
branches;
next	1.4;

1.4
date	2010.12.03.20.42.41;	author jpaetzel;	state Exp;
branches;
next	1.3;

1.3
date	2010.09.08.14.43.09;	author jpaetzel;	state Exp;
branches;
next	1.2;

1.2
date	2010.08.17.18.10.42;	author jpaetzel;	state Exp;
branches;
next	1.1;

1.1
date	2010.08.14.15.48.51;	author jpaetzel;	state Exp;
branches;
next	;


desc
@@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309413
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309413 | beech | 2012-12-23 04:23:31 +0000 (Sun, 23 Dec 2012) | 5 lines
## SVN ##
## SVN ## - Update to 2.3_rc2
## SVN ##
## SVN ## PR:		ports/174518
## SVN ## Submitted by:	Eric F Crist <ecrist@@secure-computing.net> (maintainer)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Eric F Crist <ecrist@@secure-computing.net>
# $FreeBSD: head/security/openvpn-beta/Makefile 309413 2012-12-23 04:23:31Z beech $

PORTNAME=	openvpn
DISTVERSION=	2.3_rc2
CATEGORIES=	security net
MASTER_SITES=	http://swupdate.openvpn.net/community/releases/
PKGNAMESUFFIX=	-beta

MAINTAINER=	ecrist@@secure-computing.net
COMMENT=	Secure IP/Ethernet tunnel daemon

LICENSE=	GPLv2

CONFLICTS_INSTALL=	openvpn-[0-9]* openvpn-beta-[0-9]*

USE_XZ=		yes

GNU_CONFIGURE=	yes
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
INSTALL_TARGET=	install mandir=${MANPREFIX}/man

LIB_DEPENDS+=	lzo2:${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

.include <bsd.port.options.mk>

.ifdef (LOG_OPENVPN)
CFLAGS+=	-DLOG_OPENVPN=${LOG_OPENVPN}
.endif

.if ${PORT_OPTIONS:MPOLARSSL}
LIB_DEPENDS+=		polarssl:${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+=	pkcs11-helper:${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>
@


1.14
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/security/openvpn-beta/Makefile 305740 2012-10-11 20:11:26Z bdrewery $
d5 1
a5 1
DISTVERSION=	2.3_beta1
a8 1
PORTREVISION=	1
@


1.13
log
@SVN rev 305740 on 2012-10-11 20:11:26Z by bdrewery

- Properly install symlinks for auth-pam and down-root plugins [1]
- Fix pkg-message description of locations of these plugins [1]
- Fix plist for nonexistent DOCSDIR/openvpn

PR:		ports/172598 [1]
Submitted by:	Eric F Crist <ecrist@@secure-computing.net> (maintainer) [1]
Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.12
log
@SVN rev 305132 on 2012-10-01 15:01:14Z by bdrewery

- Fix header to proper format

Reported by:	danfe
@
text
@d9 1
d94 3
a96 4
	${INSTALL_LIB} ${WRKSRC}/src/plugins/down-root/.libs/openvpn-plugin-down-root.so ${PREFIX}/lib/
	${INSTALL_LIB} ${WRKSRC}/src/plugins/auth-pam/.libs/openvpn-plugin-auth-pam.so ${PREFIX}/lib/
	${LN} -s ${WRKSRC}/src/plugins/down-root/.libs/openvpn-plugin-down-root.so ${PREFIX}/lib/openvpn-down-root.so
	${LN} -s ${WRKSRC}/src/plugins/down-root/.libs/openvpn-plugin-auth-pam.so ${PREFIX}/lib/openvpn-auth-pam.so
@


1.11
log
@SVN rev 305006 on 2012-09-28 18:43:30Z by bdrewery

- Update to 2.3-beta1 [1]
- Add LICENSE [1]
- Convert to new options framework
- Remove ABI versions from LIB_DEPENDS
- Update to new header

PR:		ports/171738 [1]
Submitted by:	Eric F Crist <ecrist@@secure-computing.net> (maintainer) [1]
@
text
@d1 1
a1 1
# Created By: Eric F Crist <ecrist@@secure-computing.net>
@


1.10
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
@d1 1
a1 4
# New ports collection makefile for:	openvpn
# Date created:		2010-08-13
# Whom:			Eric F Crist <ecrist@@secure-computing.net>
#
d5 1
a5 1
DISTVERSION=	2.2-RC2
d13 1
a13 4
# ecrist will update the -beta port as soon as there are formal
# upstream test releases derived from openvpn-devel; in the meanwhile,
# move users to -devel.
IGNORE=	use openvpn-devel instead for now, there are currently no formal -betas.
d15 1
a15 1
CONFLICTS=	openvpn-devel-[0-9]* openvpn-2.0*
d18 1
d20 2
a21 4
USE_OPENSSL=	yes
CONFIGURE_ARGS=	--with-lzo-lib=${LOCALBASE}/lib \
		--with-lzo-headers=${LOCALBASE}/include \
		--disable-depr-random-resolv
d24 2
d28 4
a31 2
OPTIONS=	PW_SAVE "Interactive passwords may be read from a file" off \
		PKCS11  "Use security/pkcs11-helper" off
d36 1
a36 3
LIB_DEPENDS+=	lzo2.2:${PORTSDIR}/archivers/lzo2

SUB_FILES=	pkg-message pkg-req
d43 1
a43 1
.include <bsd.port.pre.mk>
d49 8
d69 1
a69 1
.if defined(WITH_PW_SAVE)
d73 2
a74 2
.if defined(WITH_PKCS11)
LIB_DEPENDS+=	pkcs11-helper.1:${PORTSDIR}/security/pkcs11-helper
d84 2
a85 2
	cd ${WRKSRC}/plugin/down-root && ${MAKE}
	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
a90 3
pre-install:
	PKG_PREFIX=${PREFIX} ${SH} ${PKGREQ} ${PKGNAME} INSTALL

d93 4
a96 2
	${INSTALL_PROGRAM} ${WRKSRC}/plugin/down-root/openvpn-down-root.so ${PREFIX}/lib/
	${INSTALL_PROGRAM} ${WRKSRC}/plugin/auth-pam/openvpn-auth-pam.so ${PREFIX}/lib/
a98 2
	${INSTALL_DATA} ${WRKSRC}/plugin/down-root/README ${DOCSDIR}/README.openvpn-down-root
	${INSTALL_DATA} ${WRKSRC}/plugin/auth-pam/README ${DOCSDIR}/README.openvpn-auth-pam
d103 2
a104 7
.for dir in easy-rsa easy-rsa/1.0 easy-rsa/2.0 sample-config-files
	${MKDIR} ${DOCSDIR}/${dir}
	${FIND} ${WRKSRC}/${dir}/ -maxdepth 1 -type f -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} \;
d111 1
a111 1
.include <bsd.port.post.mk>
@


1.9
log
@Add EXPIRATION to ports marked DEPRECATED that do not already have it. [1]
Date set to 2011-09-30 since that's > 1 month in all cases. Feel free to
change it to something more appropriate.

Change DEPRECATED to IGNORE for security/openvpn-beta to better fit the
intention.

Problem pointed out by:	linimon [1]
@
text
@d36 1
a36 1
USE_RC_SUBR=	openvpn.sh
@


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

Reported by:	pointyhat
@
text
@d19 1
a19 1
DEPRECATED=	use openvpn-devel instead for now, there are currently no formal -betas.
@


1.7
log
@Move LICENSE= up into a block of its own to silence portlint.

Remove the lzo/lzo2 version switch now that we only have lzo2.

Mark temporarily DEPRECATED while there are no formal test releases by the
upstream.

Approved by: ecrist@@secure-computing.net (maintainer)
@
text
@d44 4
@


1.6
log
@- Update to RC2

PR:		ports/155951
Submitted by:	Eric F Crist <ecrist@@secure-computing.net> (maintainer)
@
text
@d16 5
d39 2
a61 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.5
log
@Update to RC

PR:	ports/155271
Submitted by:	Eric F Crist <ecrist@@secure-computing.net>
Sponsored by:	ClaimLynx, Inc
@
text
@d8 1
a8 1
DISTVERSION=	2.2-RC
@


1.4
log
@Update to latest version

PR:	ports/152811
Submitted by:	Eric F Crist <ecrist@@secure-computing.net>
Sponsored by:	ClaimLynx, Inc
@
text
@d8 1
a8 1
DISTVERSION=	2.2-beta5
d18 1
@


1.3
log
@Update to 2.2-beta3

PR:	ports/150386
Submitted by:	Eric F Crist <ecrist@@secure-computing.net>
@
text
@d8 1
a8 1
DISTVERSION=	2.2-beta3
d10 1
a10 1
MASTER_SITES=	http://build.openvpn.net/downloads/releases/
@


1.2
log
@Update to beta2

PR:	ports/149744
Submitted by:	Eric F Crist <ecrist@@secure-computing.net>
@
text
@d8 1
a8 1
DISTVERSION=	2.2-beta2
d16 1
a16 1
CONFLICTS=	openvpn-devel-[0-9]* openvpn-2.0* openvpn-beta-[0-9]*
@


1.1
log
@Add openvpn-beta , secure IP/Ethernet tunnel daemon.

PR:		ports/149620
Submitted by:	Eric F Crist <ecrist at secure-computing.net>
@
text
@d8 1
a8 1
DISTVERSION=	2.2-beta1
d16 1
a16 1
CONFLICTS=	openvpn-*
@

