blob: 1cb20112f620553d3bef122ca9a5304d1a088ab5 (
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
49
50
51
52
53
54
55
56
57
58
|
PORTNAME= openvpn-auth-ldap
PORTVERSION= 2.0.4
PORTREVISION= 3
DISTVERSIONPREFIX= auth-ldap-
CATEGORIES= security net-vpn
MAINTAINER= zi@FreeBSD.org
COMMENT= LDAP authentication plugin for OpenVPN
WWW= https://github.com/threerings/openvpn-auth-ldap
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= re2c:devel/re2c \
check>=0:devel/check \
libobjc2>=0:lang/libobjc2 \
${LOCALBASE}/include/openvpn-plugin.h:security/openvpn
# this port doesn't require ssl itself, but OpenLDAP needs it
# and https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235776
# appears to document issues on some systems when --with-openssl
# is missing.
USES= autoreconf ldap objc ssl tar:xz
USE_GITHUB= yes
GH_ACCOUNT= threerings
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-openldap=${LOCALBASE} \
--with-openvpn=${LOCALBASE}/include \
--with-objc-runtime=GNU \
--with-openssl=${OPENSSLBASE}
PORTDOCS= README
PORTEXAMPLES= auth-ldap.conf
PLIST_FILES= lib/openvpn-auth-ldap.so
OBJCFLAGS+= -L${LOCALBASE}/lib -I${LOCALBASE}/include -fPIC
CFLAGS+= -fPIC -fcommon
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
CONFIGURE_ENV+= OBJC="${CC}"
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/openvpn-auth-ldap.so
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/auth-ldap.conf ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.pre.mk>
CC+= ${DEBUG_FLAGS}
.include <bsd.port.post.mk>
|