From 3e48e0246ddd7176bb7a6d75b754be9d64930f58 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Tue, 1 May 2001 12:10:05 +0000 Subject: - Option to add LDAP Support - Cleanup dublicate labels - Allow to build a package manually. Submitted by: phantom@ark.cris.net (Alexey Zelkin) --- mail/sendmail-old/Makefile | 19 +++++++++++-------- mail/sendmail-old/files/site.config.m4.ldap | 5 +++++ 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 mail/sendmail-old/files/site.config.m4.ldap (limited to 'mail/sendmail-old') diff --git a/mail/sendmail-old/Makefile b/mail/sendmail-old/Makefile index 2572f957af7d..398c22bfe85c 100644 --- a/mail/sendmail-old/Makefile +++ b/mail/sendmail-old/Makefile @@ -13,7 +13,9 @@ DISTNAME= ${PORTNAME}.${PORTVERSION} MAINTAINER= dirk.meyer@dinoex.sub.org +.if defined(BATCH) NO_PACKAGE= "sendmail included in base system" +.endif WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} WCONF= ${WRKSRC}/devtools/Site @@ -25,6 +27,7 @@ PLIST= ${WRKDIR}/.PLIST.more # SENDMAIL_WITH_SASL=YES # SENDMAIL_WITH_SFIO=YES # SENDMAIL_WITH_MILTER=YES +# SENDMAIL_WITH_LDAP=YES .if defined(SENDMAIL_WITH_TLS) USE_OPENSSL= yes @@ -35,6 +38,10 @@ BUILD_DEPENDS= ${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl .if defined(SENDMAIL_WITH_SFIO) BUILD_DEPENDS= ${LOCALBASE}/lib/libsfio.a:${PORTSDIR}/devel/sfio .endif +.if defined(SENDMAIL_WITH_LDAP) +LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2 +LIB_DEPENDS+= lber.2:${PORTSDIR}/net/openldap2 +.endif .if exists(${DESTDIR}/etc/mail/mailer.conf) pre-configure: @@ -59,6 +66,10 @@ pre-configure: ${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \ ${FILESDIR}/site.config.m4.ssl >> ${WCONF}/site.config.m4 .endif +.if defined(SENDMAIL_WITH_LDAP) + ${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \ + ${FILESDIR}/site.config.m4.ldap >> ${WCONF}/site.config.m4 +.endif .if exists(${FILESDIR}/site.config.m4.local) ${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \ ${FILESDIR}/site.config.m4.local >> ${WCONF}/site.config.m4 @@ -143,12 +154,4 @@ mailer.conf: ${MV} ${DESTDIR}/etc/mail/mailer.conf.new ${DESTDIR}/etc/mail/mailer.conf .endif -.if defined(SENDMAIL_WITH_MILTER) -post-configure: - ${CAT} ${FILESDIR}/site.config.m4.milter >>${WCONF}/site.config.m4 - -post-build: - ( cd ${WRKSRC}/libmilter && ${MAKE} ) -.endif - .include diff --git a/mail/sendmail-old/files/site.config.m4.ldap b/mail/sendmail-old/files/site.config.m4.ldap new file mode 100644 index 000000000000..c03a8749c808 --- /dev/null +++ b/mail/sendmail-old/files/site.config.m4.ldap @@ -0,0 +1,5 @@ +APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib') +APPENDDEF(`conf_sendmail_ENVDEF', `-I%%LOCALBASE%%/include') +APPENDDEF(`conf_sendmail_ENVDEF', `-DLDAPMAP') +APPENDDEF(`conf_sendmail_LIBS', `-lldap') +APPENDDEF(`conf_sendmail_LIBS', `-llber') -- cgit v1.2.3