head	1.6;
access;
symbols
	RELEASE_8_3_0:1.4
	RELEASE_9_0_0:1.4
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.1;
locks; strict;
comment	@# @;


1.6
date	2013.01.07.12.42.39;	author svnexp;	state Exp;
branches;
next	1.5;

1.5
date	2012.11.17.06.01.21;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2011.09.22.21.37.55;	author flo;	state Exp;
branches;
next	1.3;

1.3
date	2011.04.29.12.24.55;	author culot;	state Exp;
branches;
next	1.2;

1.2
date	2010.12.04.07.33.31;	author ade;	state Exp;
branches;
next	1.1;

1.1
date	2010.08.26.13.40.11;	author pav;	state Exp;
branches;
next	;


desc
@@


1.6
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310039
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310039 | tota | 2013-01-07 12:11:14 +0000 (Mon, 07 Jan 2013) | 9 lines
## SVN ##
## SVN ## - Update to 5.0.1
## SVN ## - Change maintainer address
## SVN ## - Trim Makefile header
## SVN ## - Convert to new options framework
## SVN ## - Cleanup
## SVN ##
## SVN ## PR:		ports/173860 (based on)
## SVN ## Submitted by:	Riaan Kruger (maintainer)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Riaan Kruger <riaank@@gmail.com>
# $FreeBSD: head/security/strongswan/Makefile 310039 2013-01-07 12:11:14Z tota $

PORTNAME=	strongswan
PORTVERSION=	5.0.1
CATEGORIES=	security
MASTER_SITES=	http://download.strongswan.org/ \
		http://download2.strongswan.org/

MAINTAINER=	strongswan@@nanoteq.com
COMMENT=	Open Source IKEv2 IPsec-based VPN solution

LIB_DEPENDS=	execinfo:${PORTSDIR}/devel/libexecinfo

USE_BZIP2=	yes
USE_OPENSSL=	yes
USE_AUTOTOOLS=	libtool
USE_RC_SUBR=	strongswan.sh
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

CONFIGURE_ARGS=	--enable-kernel-pfkey \
		--enable-kernel-pfroute  \
		--disable-kernel-netlink  \
		--disable-tools  \
		--disable-scripts  \
		--disable-gmp \
		--enable-openssl \
		--enable-eap-identity \
		--enable-eap-md5 \
		--enable-eap-tls \
		--enable-eap-mschapv2 \
		--enable-eap-peap \
		--enable-eap-ttls \
		--enable-md4 \
		--enable-blowfish \
		--enable-addrblock \
		--enable-whitelist \
		--with-group=wheel  \
		--with-lib-prefix=${PREFIX}

# Man pages with default install
MAN5=	ipsec.conf.5 ipsec.secrets.5 strongswan.conf.5
MAN8=	ipsec.8 _updown.8 _updown_espmark.8

OPTIONS_DEFINE=	CURL EAPAKA3GPP2 EAPSIMFILE IKEv1 LDAP MYSQL SQLITE
CURL_DESC=	Enable CURL to fetch CRL/OCSP
EAPAKA3GPP2_DESC=	Enable EAP AKA with 3gpp2 backend
EAPSIMFILE_DESC=	Enable EAP SIM with file backend
IKEv1_DESC=	Enable IKEv1 support (Experimental)

.include <bsd.port.options.mk>

# Extra options
.if ${PORT_OPTIONS:MCURL}
CONFIGURE_ARGS+=	--enable-curl
LIB_DEPENDS+=	curl:${PORTSDIR}/ftp/curl
PLIST_SUB+=	CURL=""
.else
PLIST_SUB+=	CURL="@@comment "
.endif

.if ${PORT_OPTIONS:MEAPSIMFILE}
CONFIGURE_ARGS+=	--enable-eap-sim --enable-eap-sim-file
PLIST_SUB+=	EAPSIMFILE=""
.else
PLIST_SUB+=	EAPSIMFILE="@@comment "
.endif

.if ${PORT_OPTIONS:MEAPAKA3GPP2}
CONFIGURE_ARGS+=	--enable-eap-aka --enable-eap-aka-3gpp2
LIB_DEPENDS+=	gmp:${PORTSDIR}/math/gmp
PLIST_SUB+=	EAPAKA3GPP2=""
.else
PLIST_SUB+=	EAPAKA3GPP2="@@comment "
.endif

.if ${PORT_OPTIONS:MEAPSIMFILE} || ${PORT_OPTIONS:MEAPAKA3GPP2}
PLIST_SUB+=SIMAKA=""
.else
PLIST_SUB+=SIMAKA="@@comment "
.endif

.if ${PORT_OPTIONS:MIKEv1}
PLIST_SUB+=	IKEv1=""
.else
CONFIGURE_ARGS+=	--disable-ikev1
PLIST_SUB+=	IKEv1="@@comment "
.endif

.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP=	yes
CONFIGURE_ARGS+=	--enable-ldap
PLIST_SUB+=	LDAP=""
.else
PLIST_SUB+=	LDAP="@@comment "
.endif

.if ${PORT_OPTIONS:MMYSQL}
CONFIGURE_ARGS+=	--enable-mysql
USE_MYSQL=	yes
PLIST_SUB+=	MYSQL=""
.else
PLIST_SUB+=	MYSQL="@@comment "
.endif

.if ${PORT_OPTIONS:MSQLITE}
CONFIGURE_ARGS+=	--enable-sqlite
LIB_DEPENDS+=	sqlite3:${PORTSDIR}/databases/sqlite3
PLIST_SUB+=	SQLITE=""
.else
PLIST_SUB+=	SQLITE="@@comment "
.endif

.if ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MSQLITE}
CONFIGURE_ARGS+=	--enable-attr-sql --enable-sql
PLIST_SUB+=	SQL=""
.else
PLIST_SUB+=	SQL="@@comment "
.endif

.include <bsd.port.pre.mk>

# Requires FreeBSD 8 and above to work
.if ${OSVERSION} < 800000
IGNORE=		requires at least FreeBSD 8.X
.endif

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


1.5
log
@Switch exporter over
@
text
@d1 2
a2 5
# New ports collection makefile for:	strongswan
# Date created:				30 May 2010
# Whom:					<riaank@@gmail.com>
#
# $FreeBSD: head/security/strongswan/Makefile 300897 2012-07-14 14:29:18Z beat $
d5 1
a5 1
PORTVERSION=	4.5.3
d10 1
a10 1
MAINTAINER=	riaank@@gmail.com
d13 1
a13 5
OPTIONS=	SQLITE		"Enable SQLite" off \
		MYSQL		"Enable MySQL" off \
		CURL		"Enable CURL to fetch CRL/OCSP" off \
		EAPAKA3GPP2	"Enable EAP AKA with 3gpp2 backend" off \
		EAPSIMFILE	"Enable EAP SIM with filebased backend" off
a14 1
USE_RC_SUBR=	strongswan
d16 1
d18 1
a19 1
USE_OPENSSL=	yes
a26 1
		--disable-pluto  \
d33 2
a42 3
MAN3=	anyaddr.3 atoaddr.3 atoasr.3 atoul.3 goodmask.3 initaddr.3 \
	initsubnet.3 portof.3 rangetosubnet.3 sameaddr.3 subnetof.3 \
	ttoaddr.3 ttodata.3 ttosa.3 ttoul.3
d46 31
a76 1
.include <bsd.port.pre.mk>
d78 4
a81 3
# Requires FreeBSD 8 and above to work
.if ${OSVERSION} < 800000
IGNORE=		requires at least FreeBSD 8.X
d84 2
a85 5
# Extra options
.if defined(WITH_SQLITE) || defined (WITH_MYSQL)
CONFIGURE_ARGS+=	--enable-attr-sql
CONFIGURE_ARGS+=	--enable-sql
PLIST_SUB+=	SQL=""
d87 2
a88 1
PLIST_SUB+=	SQL="@@comment "
d91 4
a94 4
.if defined(WITH_SQLITE)
CONFIGURE_ARGS+=	--enable-sqlite
LIB_DEPENDS += sqlite3.8:${PORTSDIR}/databases/sqlite3
PLIST_SUB+=	SQLITE=""
d96 1
a96 1
PLIST_SUB+=	SQLITE="@@comment "
d99 1
a99 1
.if defined(WITH_MYSQL)
d107 4
a110 4
.if defined(WITH_CURL)
CONFIGURE_ARGS+=	--enable-curl
LIB_DEPENDS+=	curl.6:${PORTSDIR}/ftp/curl
PLIST_SUB+=	CURL=""
d112 1
a112 1
PLIST_SUB+=	CURL="@@comment "
d115 3
a117 4
.if defined(WITH_EAPSIMFILE)
CONFIGURE_ARGS+=	--enable-eap-sim
CONFIGURE_ARGS+=	--enable-eap-sim-file
PLIST_SUB+=	EAPSIMFILE=""
d119 1
a119 1
PLIST_SUB+=	EAPSIMFILE="@@comment "
d122 5
a126 8
.if defined(WITH_EAPAKA3GPP2)
CONFIGURE_ARGS+=	--enable-eap-aka
CONFIGURE_ARGS+=	--enable-eap-aka-3gpp2
CONFIGURE_ARGS+=	--enable-gmp
LIB_DEPENDS+=	gmp.10:${PORTSDIR}/math/gmp
PLIST_SUB+=	EAPAKA3GPP2=""
.else
PLIST_SUB+=	EAPAKA3GPP2="@@comment "
@


1.4
log
@update to 4.5.3

PR:		ports/160401
Submitted by:	Riaan Kruger <riaank@@gmail.com> maintainer
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.3
log
@- Update to 4.5.1 [1]
- Pet portlint(1) (change spaces into tabs and reformat IGNORE message)

PR:		ports/156711 [1]
Submitted by:	Riaan Kruger <riaank@@gmail.com> (maintainer)
@
text
@d8 1
a8 1
PORTVERSION=	4.5.1
d14 1
a14 1
COMMENT=	Open Source IPSec-based VPN solution
d16 5
a20 2
LIB_DEPENDS=	vstr:${PORTSDIR}/devel/vstr \
				gmp.10:${PORTSDIR}/math/gmp
d22 1
a23 1

d26 1
d28 1
d35 10
a45 2
		--enable-gmp \
		--enable-vstr \
d48 6
a53 6
MAN3=		anyaddr.3 atoaddr.3 atoasr.3 atoul.3 goodmask.3 \
		initaddr.3 initsubnet.3 portof.3 rangetosubnet.3 \
		sameaddr.3 subnetof.3 ttoaddr.3 ttodata.3 \
		ttosa.3 ttoul.3
MAN5=		ipsec.conf.5 ipsec.secrets.5 strongswan.conf.5
MAN8=		ipsec.8 _updown.8 _updown_espmark.8
d57 1
d62 51
@


1.2
log
@Sync to new bsd.autotools.mk
@
text
@d8 1
a8 1
PORTVERSION=	4.4.0
d17 1
a17 1
		gmp.10:${PORTSDIR}/math/gmp
a26 1
		--enable-vstr  \
d31 2
d35 3
a37 3
MAN3=		anyaddr.3 atoaddr.3 atoasr.3 atosa.3 atoul.3 goodmask.3 \
		initaddr.3 initsubnet.3 keyblobtoid.3 portof.3 prng.3 \
		rangetosubnet.3 sameaddr.3 subnetof.3 ttoaddr.3 ttodata.3 \
d39 2
a40 2
MAN5=		ipsec.conf.5
MAN8=		ipsec.8 starter.8 _copyright.8 _updown.8 _updown_espmark.8
@


1.1
log
@Strongswan is an open source IPsec-based VPN solution.
Strongswan for FreeBSD supports IKEv2 but NOT IKEv1.

WWW: http://www.strongswan.org

PR:		ports/147431
Submitted by:	Riaan Kruger <riaank@@gmail.com>
@
text
@d21 1
a21 1
USE_AUTOTOOLS=	libtool:22
@

