diff options
author | dinoex <dinoex@FreeBSD.org> | 2001-05-01 20:10:05 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2001-05-01 20:10:05 +0800 |
commit | d1cbcb297209affb23826a594c9da99fba8519cd (patch) | |
tree | 54259b1b568113013bc6117f68b39b3af6726b3f /mail/sendmail811 | |
parent | a957b44eefa1ae1030e3a22942f2c5b423dfcf3c (diff) | |
download | freebsd-ports-gnome-d1cbcb297209affb23826a594c9da99fba8519cd.tar.gz freebsd-ports-gnome-d1cbcb297209affb23826a594c9da99fba8519cd.tar.zst freebsd-ports-gnome-d1cbcb297209affb23826a594c9da99fba8519cd.zip |
- Option to add LDAP Support
- Cleanup dublicate labels
- Allow to build a package manually.
Submitted by: phantom@ark.cris.net (Alexey Zelkin)
Diffstat (limited to 'mail/sendmail811')
-rw-r--r-- | mail/sendmail811/Makefile | 19 | ||||
-rw-r--r-- | mail/sendmail811/files/site.config.m4.ldap | 5 |
2 files changed, 16 insertions, 8 deletions
diff --git a/mail/sendmail811/Makefile b/mail/sendmail811/Makefile index 2572f957af7d..398c22bfe85c 100644 --- a/mail/sendmail811/Makefile +++ b/mail/sendmail811/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> diff --git a/mail/sendmail811/files/site.config.m4.ldap b/mail/sendmail811/files/site.config.m4.ldap new file mode 100644 index 000000000000..c03a8749c808 --- /dev/null +++ b/mail/sendmail811/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') |