3f627ab4ce
* Bump the LLVM revision used for GNUstep to 7, the minimum to support the new ABI. * GNUstep-back does not work with lld, so mark it to use Gold (BFD LD doesn't seem able to link Objective-C things). * Turn off some annoying debug logs in GNUstep back, which generate several messages per second when you move the mouse. These should never have been enabled in a release build anyway. * Downgrade Cenon to 4.0.2. This was the last version to actually work with GNUstep (the later ones use XCode >= 5 .xib files, which GNUstep can't parse). * Update gorm to git head. The current release doesn't work with the new Objective-C ABI, but -head has the patches to fix it. * Update PikoPixel and add it to the gnustep-app meta-package. * Update the three core GNUstep packages to the latest release. * Update gnumail and pantomime to the latest release and fix a linking error with the new ABI. * Update GNUstep FTP to the latest version. Reviewed by: bapt (previous version)
75 lines
2.1 KiB
Makefile
75 lines
2.1 KiB
Makefile
# Created by: Nick Barkas <snb@threerings.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openvpn-auth-ldap
|
|
PORTVERSION= 2.0.4.0.s1379
|
|
PORTREVISION= 3
|
|
CATEGORIES= security
|
|
MASTER_SITES= LOCAL/mandree # figure out proper GitHub commit and use that.
|
|
# https://github.com/threerings/openvpn-auth-ldap/
|
|
DISTNAME= auth-ldap-${PORTVERSION}
|
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
|
COMMENT= LDAP authentication plugin for OpenVPN
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
BUILD_DEPENDS= re2c:devel/re2c \
|
|
check>=0:devel/check \
|
|
${LOCALBASE}/include/openvpn-plugin.h:security/openvpn
|
|
|
|
USES= autoreconf objc tar:xz
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_OPENLDAP= yes
|
|
CONFIGURE_ARGS+= --with-openldap=${LOCALBASE} \
|
|
--with-openvpn=${LOCALBASE}/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
|
|
# Note that googlecode.com is gone. Apparently someone exported the code
|
|
# to Github: https://github.com/threerings/openvpn-auth-ldap/
|
|
build-tarball: ${DISTFILES}
|
|
${DISTFILES}:
|
|
${RM} -r ${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} ${DISTFILES} ; exit 1 ; }
|
|
|
|
upload-tarball: build-tarball
|
|
scp ${DISTFILES} freefall.freebsd.org:public_distfiles/
|
|
|
|
.include <bsd.port.post.mk>
|