diff options
author | dinoex <dinoex@FreeBSD.org> | 2001-10-08 23:37:43 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2001-10-08 23:37:43 +0800 |
commit | 9af857bf0a8752a1e1dfb0905c33eb33addfeae5 (patch) | |
tree | e70f6c1e0dbdca0e81eb9548e3204b30a8bb20d6 /mail/sendmail812/Makefile | |
parent | 03ff9767cfd49b9cb75ffa1fc73176496469943b (diff) | |
download | freebsd-ports-gnome-9af857bf0a8752a1e1dfb0905c33eb33addfeae5.tar.gz freebsd-ports-gnome-9af857bf0a8752a1e1dfb0905c33eb33addfeae5.tar.zst freebsd-ports-gnome-9af857bf0a8752a1e1dfb0905c33eb33addfeae5.zip |
- Option MILTER fixed.
- Allow to build without milter-support
Diffstat (limited to 'mail/sendmail812/Makefile')
-rw-r--r-- | mail/sendmail812/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/sendmail812/Makefile b/mail/sendmail812/Makefile index 8fd45982f281..d300f18dcf57 100644 --- a/mail/sendmail812/Makefile +++ b/mail/sendmail812/Makefile @@ -69,6 +69,9 @@ SITE+= ${FILESDIR}/site.config.m4.sasl .if defined(SENDMAIL_WITH_LDAP) SITE+= ${FILESDIR}/site.config.m4.ldap .endif +.if defined(SENDMAIL_WITH_MILTER) +SITE+= ${FILESDIR}/site.config.m4.milter +.endif .if exists(${FILESDIR}/site.config.m4.local) SITE+= ${FILESDIR}/site.config.m4.local .endif @@ -89,12 +92,16 @@ do-configure: ${SED} -e "s=%%PREFIX%%=${PREFIX}=" -e "s=%%LOCALBASE%%=${LOCALBASE}=" \ ${SITE} > ${WCONF}/site.config.m4 +.if defined(SENDMAIL_WITH_MILTER) post-build: ( cd ${WRKSRC}/libmilter && ${MAKE} ) +.endif pre-install: @${CAT} ${PKGDIR}/pkg-plist >${PLIST} +.if defined(SENDMAIL_WITH_MILTER) @${CAT} ${FILESDIR}/pkg-milter >>${PLIST} +.endif if ! pw groupshow smmsp; then pw groupadd smmsp -g 90; fi if ! pw usershow smmsp; then pw useradd smmsp -g smmsp -u 90 \ -h - -d /nonexistent -s /nonexistent -c "Sendmail Queue"; fi @@ -116,6 +123,7 @@ pre-install: post-install: ( cd ${WRKSRC}/mail.local && ${MAKE} force-install ) ( cd ${WRKSRC}/rmail && ${MAKE} force-install ) +.if defined(SENDMAIL_WITH_MILTER) ${MKDIR} ${PREFIX}/include/libmilter ${INSTALL_DATA} ${WRKSRC}/include/libmilter/mfapi.h \ ${PREFIX}/include/libmilter/ @@ -125,6 +133,7 @@ post-install: ${INSTALL_DATA} \ ${WRKSRC}/obj.`${WRKSRC}/devtools/bin/Build -A`/libsmutil/libsmutil.a \ ${PREFIX}/lib/ +.endif ${INSTALL_DATA} ${WRKSRC}/sm-client.sh \ ${PREFIX}/etc/rc.d/sm-client.sh.sample ${CHOWN} smmsp:smmsp /var/spool/clientmqueue @@ -154,9 +163,11 @@ post-install: ${PREFIX}/share/doc/sendmail/MAIL.LOCAL ${INSTALL_DATA} ${WRKSRC}/smrsh/README \ ${PREFIX}/share/doc/sendmail/SMRSH +.if defined(SENDMAIL_WITH_MILTER) ${INSTALL_DATA} ${WRKSRC}/libmilter/README \ ${PREFIX}/share/doc/sendmail/MILTER .endif +.endif .if exists(${DESTDIR}/etc/mail/mailer.conf) @${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE} |