blob: d8f0858f5182c804b937f3f698253392a406aff7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Created by: Nick Barkas <snb@threerings.net>
# $FreeBSD$
PORTNAME= openvpn-auth-ldap
PORTVERSION= 2.0.3
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTNAME= auth-ldap-${PORTVERSION}
MAINTAINER= snb@FreeBSD.org
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
PORTEXAMPLES= auth-ldap.conf
PLIST_FILES= lib/openvpn-auth-ldap.so
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505
BUILD_DEPENDS+= ${LOCALBASE}/bin/xz:${PORTSDIR}/archivers/xz
.endif
.if ${OSVERSION} >= 900000
BROKEN= does not configure on FreeBSD 9.X
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/auth-ldap.conf ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>
|