aboutsummaryrefslogtreecommitdiff
path: root/ftp/proftpd
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>2000-11-24 22:40:01 +0000
committerMichael Haro <mharo@FreeBSD.org>2000-11-24 22:40:01 +0000
commit9793f4b2af70927e885f9b994b5a3332afe22921 (patch)
tree0590ffc117c8f0db8133426399f648cc848138af /ftp/proftpd
parent9b37bbbcc5a641f65ae976831a15ad83bddf6dd3 (diff)
downloadports-9793f4b2af70927e885f9b994b5a3332afe22921.tar.gz
ports-9793f4b2af70927e885f9b994b5a3332afe22921.zip
Notes
Diffstat (limited to 'ftp/proftpd')
-rw-r--r--ftp/proftpd/Makefile18
-rw-r--r--ftp/proftpd/distinfo1
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