diff options
Diffstat (limited to 'mail/sendmail/Makefile')
-rw-r--r-- | mail/sendmail/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile index 2572f957af7d..398c22bfe85c 100644 --- a/mail/sendmail/Makefile +++ b/mail/sendmail/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 <bsd.port.mk> |