COMMENT = LDAP authentication plugin for OpenVPN 2.x VERSION = 2.0.4 REVISION = 2 GH_ACCOUNT = threerings GH_PROJECT = openvpn-auth-ldap GH_TAGNAME = auth-ldap-${VERSION} PKGNAME = openvpn-${GH_TAGNAME} CATEGORIES = net security HOMEPAGE = https://github.com/threerings/openvpn-auth-ldap # BSD PERMIT_PACKAGE = Yes WANTLIB = ${COMPILER_LIBCXX} lber ldap MODULES = x11/gnustep MODGNUSTEP_NEEDS_GUI = No RUN_DEPENDS = net/openvpn LIB_DEPENDS = databases/openldap BUILD_DEPENDS = ${RUN_DEPENDS} \ devel/re2c SEPARATE_BUILD = Yes AUTOCONF_VERSION = 2.69 CONFIGURE_STYLE = autoconf MAKE_FILE = Makefile .include .if ${PROPERTIES:Mclang} LDFLAGS += -lc++abi -lpthread .endif CONFIGURE_ARGS = --with-openldap=${LOCALBASE} \ --with-openvpn=${LOCALBASE}/include/openvpn \ CC="${CC}" \ LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}" \ LD="${CC}" CXX=${CXX} OBJCPP="${CC} -E" OBJC=${CC} CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include \ -I${LOCALBASE}/include/gnustep" SAMPLES_DIR = ${PREFIX}/share/examples/openvpn-auth-ldap post-install: ${INSTALL_DATA_DIR} ${SAMPLES_DIR} ${INSTALL_DATA} ${WRKSRC}/auth-ldap.conf ${SAMPLES_DIR}/auth-ldap.conf do-test: cd ${WRKBUILD}/tests && ${MAKE} test .include