2007-09-07 04:47:13 +02:00
|
|
|
# New ports collection makefile for: openvpn-auth-ldap
|
|
|
|
# Date created: 06 June 2007
|
|
|
|
# Whom: Nick Barkas <snb@threerings.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= openvpn-auth-ldap
|
|
|
|
PORTVERSION= 2.0.3
|
2011-02-25 02:32:17 +01:00
|
|
|
PORTREVISION= 3
|
2007-09-07 04:47:13 +02:00
|
|
|
CATEGORIES= security
|
2009-11-17 12:30:03 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
2007-09-07 04:47:13 +02:00
|
|
|
DISTNAME= auth-ldap-${PORTVERSION}
|
|
|
|
|
2009-07-24 12:27:08 +02:00
|
|
|
MAINTAINER= snb@FreeBSD.org
|
2007-09-07 04:47:13 +02:00
|
|
|
COMMENT= LDAP authentication plugin for OpenVPN
|
|
|
|
|
|
|
|
BUILD_DEPENDS= re2c:${PORTSDIR}/devel/re2c \
|
|
|
|
${NONEXISTENT}:${PORTSDIR}/security/openvpn:extract
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
OPENVPN_WRKSRC= `cd ${PORTSDIR}/security/openvpn; make -V WRKSRC`
|
|
|
|
CONFIGURE_ARGS+= --with-openldap=${LOCALBASE} \
|
|
|
|
--with-openvpn=${OPENVPN_WRKSRC}
|
|
|
|
|
|
|
|
PORTDOCS= README
|
2010-08-14 15:24:23 +02:00
|
|
|
PORTEXAMPLES= auth-ldap.conf
|
2007-09-07 04:47:13 +02:00
|
|
|
PLIST_FILES= lib/openvpn-auth-ldap.so
|
|
|
|
|
2010-11-19 23:30:53 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/xz:${PORTSDIR}/archivers/xz
|
|
|
|
.endif
|
|
|
|
|
2011-05-02 00:53:36 +02:00
|
|
|
.if ${OSVERSION} >= 900000
|
|
|
|
BROKEN= does not configure on FreeBSD 9.X
|
|
|
|
.endif
|
|
|
|
|
2007-09-07 04:47:13 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
2010-08-14 15:24:23 +02:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/auth-ldap.conf ${EXAMPLESDIR}
|
|
|
|
.endif
|
2007-09-07 04:47:13 +02:00
|
|
|
|
2010-11-19 23:30:53 +01:00
|
|
|
.include <bsd.port.post.mk>
|