mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 10:26:28 -04:00
and chase base GCC changes (Objective-C no longer build in 9+, uses port), and make a few other changes, to fix the build. [1] While here: - support staging - strip installed .so file unless under WITH_DEBUG regime - convert NOPORTEXAMPLES to optionsNG, too PR: ports/175692 Submitted by: snb@ (maintainer) [1]
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# Created by: Nick Barkas <snb@threerings.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openvpn-auth-ldap
|
|
PORTVERSION= 2.0.3
|
|
PORTREVISION= 4
|
|
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}/include \
|
|
--with-objc-runtime=GNU
|
|
|
|
PORTDOCS= README
|
|
PORTEXAMPLES= auth-ldap.conf
|
|
PLIST_FILES= lib/openvpn-auth-ldap.so
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/xz:${PORTSDIR}/archivers/xz
|
|
.endif
|
|
|
|
.if ${OSVERSION} >= 900000
|
|
# Use gcc from ports because Objective C support no longer included in base
|
|
USE_GCC= yes
|
|
CONFIGURE_ENV+= OBJC="${CC}"
|
|
.endif
|
|
|
|
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.mk>
|