diff options
Diffstat (limited to 'ftp/proftpd')
-rw-r--r-- | ftp/proftpd/Makefile | 18 | ||||
-rw-r--r-- | ftp/proftpd/distinfo | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ftp/proftpd/Makefile b/ftp/proftpd/Makefile index af80ecbf24ed..870d93c763b1 100644 --- a/ftp/proftpd/Makefile +++ b/ftp/proftpd/Makefile @@ -16,6 +16,12 @@ DISTNAME= ${PORTNAME}-1.2.0rc2 MAINTAINER= mharo@FreeBSD.org +.if defined(WITH_LDAP) +MASTER_SITES+= http://www.horde.net/~jwm/software/proftpd-ldap/ +MOD_LDAP= mod_ldap-2.6.1.tar.gz +DISTFILES= ${DISTNAME}.${EXTRACT_SUFX} ${MOD_LDAP} +.endif + MAN1= ftpcount.1 ftpwho.1 MAN5= xferlog.5 MAN8= proftpd.8 ftpshut.8 @@ -29,10 +35,22 @@ CONFIGURE_ARGS= --localstatedir=/var/run \ #allow user to override MODULES?= mod_ratio:mod_readme:mod_tar +.if defined(WITH_LDAP) +MODULES:=$(MODULES):mod_ldap +BUILD_DEPENDS+= ${LOCALBASE}/lib/libldap.a:${PORTSDIR}/net/openldap +CONFIGURE_ENV+= CFLAGS="-I/usr/local/include -g" LDFLAGS=-L/usr/local/lib +.endif + .if !empty(MODULES) CONFIGURE_ARGS+= --with-modules=${MODULES} .endif +.if defined(WITH_LDAP) +post-extract: + rm -rf ${WRKSRC}/contrib/mod_ldap.c + tar --to-stdout -xvz -f ${DISTDIR}/${MOD_LDAP} */mod_ldap.c > ${WRKSRC}/contrib/mod_ldap.c +.endif + pre-configure: @${ECHO_MSG} "==> Configuring with ${MODULES}" diff --git a/ftp/proftpd/distinfo b/ftp/proftpd/distinfo index 1fe1435cf139..a8e3849d8fdb 100644 --- a/ftp/proftpd/distinfo +++ b/ftp/proftpd/distinfo @@ -1 +1,2 @@ MD5 (proftpd-1.2.0rc2.tar.gz) = 13e48f0f4006738ffb9aa7c28ab0ae63 +MD5 (mod_ldap-2.6.1.tar.gz) = 0e866a3137641e20e546543ed1c91760 |