diff options
author | nbm <nbm@FreeBSD.org> | 2002-05-09 03:18:05 +0800 |
---|---|---|
committer | nbm <nbm@FreeBSD.org> | 2002-05-09 03:18:05 +0800 |
commit | 9f3fbae7c1084786d98277af679d7eee55ad34af (patch) | |
tree | 30309e9095ae1cc9e506fcdf9cb0ecf27aa44b2b /mail | |
parent | ee8cf4385cfd448295f11a32feb26b6b91799eef (diff) | |
download | freebsd-ports-gnome-9f3fbae7c1084786d98277af679d7eee55ad34af.tar.gz freebsd-ports-gnome-9f3fbae7c1084786d98277af679d7eee55ad34af.tar.zst freebsd-ports-gnome-9f3fbae7c1084786d98277af679d7eee55ad34af.zip |
Add LDAP support options for courier-imap
PR: 36920
Submitted by: Scott Lampert <scott@francisscott.net>
Reviewed by: Jaco Engelbrecht <bje@serendipity.org.za>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/courier-imap/Makefile | 23 | ||||
-rw-r--r-- | mail/courier-imap/pkg-plist | 2 |
2 files changed, 23 insertions, 2 deletions
diff --git a/mail/courier-imap/Makefile b/mail/courier-imap/Makefile index 70b75f5ba198..fdbf8beb07b7 100644 --- a/mail/courier-imap/Makefile +++ b/mail/courier-imap/Makefile @@ -25,6 +25,8 @@ USE_GMAKE= YES # WITH_VPOPMAIL: Build in vpopmail support # WITH_MYSQL: Build in mysql support # WITH_POSTGRESQL: Build in postgresql support +# WITH_LDAP: Build in ldap support with openldap 2.x +# WITH_LDAP1: Build in ldap support with openldap 1.x # .if !defined(WITHOUT_OPENSSL) @@ -34,8 +36,7 @@ PLIST_SUB= OPENSSLFLAG= PLIST_SUB= OPENSSLFLAG="@comment " .endif -CONFIGURE_ARGS= --without-authldap --with-authldaprc=filename \ - --without-authshadow \ +CONFIGURE_ARGS= --without-authshadow \ --without-authcram \ --sysconfdir=${PREFIX}/etc/courier-imap \ --with-userdb=${PREFIX}/etc/userdb \ @@ -54,6 +55,24 @@ CONFIGURE_ARGS+= \ BUILD_DEPENDS+= ${VPOPMAILDIR}/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail .endif +.if !defined(WITH_LDAP) && !defined(WITH_LDAP1) +CONFIGURE_ARGS+= \ + --without-authldap +PLIST_SUB+= LDAPFLAG="@comment " +.else +CONFIGURE_ARGS+= \ + --with-authldap +PLIST_SUB+= LDAPFLAG="" + +.if defined(WITH_LDAP) +LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap2 \ + lber.2:${PORTSDIR}/net/openldap2 +.else +LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap \ + lber.1:${PORTSDIR}/net/openldap +.endif +.endif + .if !defined(WITH_MYSQL) CONFIGURE_ARGS+= \ --without-authmysql diff --git a/mail/courier-imap/pkg-plist b/mail/courier-imap/pkg-plist index 53cbf4e9229b..622e0d8fb339 100644 --- a/mail/courier-imap/pkg-plist +++ b/mail/courier-imap/pkg-plist @@ -5,6 +5,7 @@ bin/pop3d etc/courier-imap/authdaemonrc.dist %%MYSQLFLAG%%etc/courier-imap/authmysqlrc.dist %%PGSQLFLAG%%etc/courier-imap/authpgsqlrc.dist +%%LDAPFLAG%%etc/courier-imap/authldaprc.dist etc/courier-imap/imapd-ssl.dist etc/courier-imap/imapd.cnf.dist etc/courier-imap/imapd.dist @@ -18,6 +19,7 @@ libexec/courier-imap/authlib/authdaemon libexec/courier-imap/authlib/authdaemond %%MYSQLFLAG%%libexec/courier-imap/authlib/authdaemond.mysql %%PGSQLFLAG%%libexec/courier-imap/authlib/authdaemond.pgsql +%%LDAPFLAG%%libexec/courier-imap/authlib/authdaemond.ldap libexec/courier-imap/authlib/authdaemond.plain libexec/courier-imap/couriertcpd libexec/courier-imap/deliverquota |