aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/proftpd
diff options
context:
space:
mode:
authormharo <mharo@FreeBSD.org>2000-11-25 06:40:01 +0800
committermharo <mharo@FreeBSD.org>2000-11-25 06:40:01 +0800
commit83907b786d69c90932c1a8fa6d5b4fb916cc90b1 (patch)
tree7669975fef877509ec049c37a9dace43cf8ee282 /ftp/proftpd
parent55ef1f4e3f4e116603b941c34e88088e6d69c720 (diff)
downloadfreebsd-ports-gnome-83907b786d69c90932c1a8fa6d5b4fb916cc90b1.tar.gz
freebsd-ports-gnome-83907b786d69c90932c1a8fa6d5b4fb916cc90b1.tar.zst
freebsd-ports-gnome-83907b786d69c90932c1a8fa6d5b4fb916cc90b1.zip
LDAP support for proftpd
PR: 19812 Submitted by: Jimmy Olgeni <Jimmy Olgeni <olgeni@uli.it>>
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