Date: Mon, 5 Jul 2004 15:28:16 -0300 (BRT) From: Marcio Luciano Donada <mdonada@slchapeco.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: roam@FreeBSD.org Subject: ports/68707: [PATCH] mail/vpopmail: Add option to use vpopmail with LDAP Message-ID: <200407051828.i65ISGVq001901@ldap.dummy.net> Resent-Message-ID: <200407051830.i65IUSEu049732@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 68707 >Category: ports >Synopsis: [PATCH] mail/vpopmail: Add option to use vpopmail with LDAP >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 05 18:30:28 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Marcio Luciano Donada >Release: FreeBSD 5.1-RELEASE i386 >Organization: >Environment: System: FreeBSD ldap.dummy.net 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT >Description: Add option to use vpopmail with LDAP basead in the link: http://www.maid.ne.jp/~yy/patches/ports-vpopmail-ldap-20040604.diff Port maintainer (roam@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.50 >How-To-Repeat: >Fix: --- vpopmail-5.4.3_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/mail/vpopmail.bak/Makefile /usr/ports/mail/vpopmail/Makefile --- /usr/ports/mail/vpopmail.bak/Makefile Tue May 25 06:19:41 2004 +++ /usr/ports/mail/vpopmail/Makefile Mon Jul 5 14:05:53 2004 @@ -127,6 +127,18 @@ SPAM_THRESHOLD?=15 LOGLEVEL?= y +.if defined(WITH_LDAP) +USE_OPENLDAP_VER= 21 +.if defined(WITH_LDAP_SASL) +WANT_OPENLDAP_SASL= yes +.endif +CONFIGURE_ARGS+= --enable-auth-module=ldap +LDAP_FILES= ${WRKSRC}/README.ldap \ + ${WRKSRC}/ldap/qmailUser.schema \ + ${WRKSRC}/ldap/slapd.conf \ + ${WRKSRC}/ldap/vpopmail.ldif +.endif + .if defined(WITH_MYSQL) USE_MYSQL= yes CONFIGURE_ARGS+= --enable-auth-module=mysql \ @@ -323,6 +335,12 @@ .endif ${MKDIR} ${VCFGDIR} +.if defined(WITH_LDAP) +PLIST:= ${WRKDIR}/PLIST +pre-install: + @${CAT} ${PKGDIR}/pkg-plist.ldap ${PKGDIR}/pkg-plist > ${PLIST} +.endif + post-install: ${MKDIR} ${PREFIX}/vpopmail/etc if [ ! -e "${PREFIX}/vpopmail/etc/tcp.smtp" ]; then \ @@ -347,6 +365,10 @@ ${ECHO_CMD} "Now you should add the following options to your spamd.sh startup file:" ${ECHO_CMD} "-v -u vpopmail" ${ECHO_CMD} "***********************************************************************" +.endif +.if defined(WITH_LDAP) + ${MKDIR} ${PREFIX}/vpopmail/ldap + ${INSTALL_DATA} ${LDAP_FILES} ${PREFIX}/vpopmail/ldap .endif .include <bsd.port.post.mk> diff -ruN --exclude=CVS /usr/ports/mail/vpopmail.bak/files/patch-ldap-configure /usr/ports/mail/vpopmail/files/patch-ldap-configure --- /usr/ports/mail/vpopmail.bak/files/patch-ldap-configure Wed Dec 31 21:00:00 1969 +++ /usr/ports/mail/vpopmail/files/patch-ldap-configure Mon Jul 5 14:05:53 2004 @@ -0,0 +1,11 @@ +--- configure.orig Thu Jun 3 15:06:53 2004 ++++ configure Thu Jun 3 15:07:48 2004 +@@ -5985,7 +5985,7 @@ + #define USE_LDAP $USE_LDAP + _ACEOF + +- auth_libs="-L/usr/local/lib -lldap -llber -lresolv" ++ auth_libs="-L/usr/local/lib -lldap -llber" + + auth_inc="-I/usr/local/include" + diff -ruN --exclude=CVS /usr/ports/mail/vpopmail.bak/pkg-plist.ldap /usr/ports/mail/vpopmail/pkg-plist.ldap --- /usr/ports/mail/vpopmail.bak/pkg-plist.ldap Wed Dec 31 21:00:00 1969 +++ /usr/ports/mail/vpopmail/pkg-plist.ldap Mon Jul 5 14:05:53 2004 @@ -0,0 +1,5 @@ +vpopmail/ldap/README.ldap +vpopmail/ldap/qmailUser.schema +vpopmail/ldap/slapd.conf +vpopmail/ldap/vpopmail.ldif +@dirrm vpopmail/ldap --- vpopmail-5.4.3_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407051828.i65ISGVq001901>