freebsd-ports/security/openvpn-auth-ldap/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

75 lines
2 KiB
Makefile

# Created by: Nick Barkas <snb@threerings.net>
# $FreeBSD$
PORTNAME= openvpn-auth-ldap
PORTVERSION= 2.0.4.0.s1379
PORTREVISION= 1
CATEGORIES= security
#MASTER_SITES= GOOGLE_CODE
MASTER_SITES= LOCAL/mandree
DISTNAME= auth-ldap-${PORTVERSION}
MAINTAINER= mandree@FreeBSD.org
COMMENT= LDAP authentication plugin for OpenVPN
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= re2c:${PORTSDIR}/devel/re2c \
${NONEXISTENT}:${PORTSDIR}/security/openvpn:extract \
libcheck>=0:${PORTSDIR}/devel/libcheck
USES= objc tar:xz
GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf autoheader
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
OBJCFLAGS+= -L${LOCALBASE}/lib -I${LOCALBASE}/include -fPIC
CFLAGS+= -fPIC
MAKE_JOBS_UNSAFE=yes # work around missing deps in src/Makefile[.in]
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
CONFIGURE_ENV+= OBJC="${CC}"
post-patch:
${REINPLACE_CMD} 's|-export-dynamic|-Wl,-export-dynamic|' ${WRKSRC}/configure.ac
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}
# this is a local target to build a tarball from SVN
# and another target to upload it
build-tarball: ${DISTFILES}
${DISTFILES}:
${RM} -rf ${WRKSRC}
svn export -r${PORTVERSION:E:C/^s//} \
http://openvpn-auth-ldap.googlecode.com/svn/trunk/ ${WRKSRC}
tar -C ${WRKSRC}/.. -cvf - ${WRKSRC:T} | ${XZ_CMD} -vvc >${DISTFILES} || \
{ ${RM} -f ${DISTFILES} ; exit 1 ; }
upload-tarball: build-tarball
scp ${DISTFILES} freefall.freebsd.org:public_distfiles/
.include <bsd.port.post.mk>