summaryrefslogtreecommitdiffstats
path: root/mail/sendmail
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2001-03-10 06:09:04 +0000
committerdinoex <dinoex@FreeBSD.org>2001-03-10 06:09:04 +0000
commitb8fc26e72ca98f18646504e1aa62a46906db6a17 (patch)
tree7fcb9e54c3295cec7d7cc600cc1e697be59a3cd8 /mail/sendmail
parent85095f12ba58934d0de3d81ccc5136186cd871e6 (diff)
downloadFreeBSD-ports-b8fc26e72ca98f18646504e1aa62a46906db6a17.zip
FreeBSD-ports-b8fc26e72ca98f18646504e1aa62a46906db6a17.tar.gz
Clean up bulding messages
SENDMAIL_WITH_MILTER support sample filter is build. GPL attachmentfilter ist build.
Diffstat (limited to 'mail/sendmail')
-rw-r--r--mail/sendmail/Makefile41
-rw-r--r--mail/sendmail/distinfo1
2 files changed, 37 insertions, 5 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 4596b66..7472ed8 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/Makefile
@@ -59,13 +59,17 @@ MAN8= sendmail.8 mailstats.8 makemap.8 praliases.8 smrsh.8 \
mail.local.8 rmail.8
pre-install:
- ${CAT} ${PKGDIR}/pkg-plist >${PLIST}
+ @${CAT} ${PKGDIR}/pkg-plist >${PLIST}
+.if defined(SENDMAIL_WITH_MILTER)
+ @${ECHO} "libexec/sample" >>${PLIST}
+ @${ECHO} "libexec/vbsfilter-1.3" >>${PLIST}
+.endif
.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && find cf -type f | \
+ @cd ${WRKSRC} && find cf -type f | \
${AWK} '{print "share/sendmail/" $$1}' >>${PLIST}
- cd ${WRKSRC} && find -d cf -type d | \
+ @cd ${WRKSRC} && find -d cf -type d | \
${AWK} '{print "@dirrm share/sendmail/" $$1}' >>${PLIST}
- ${ECHO} "@dirrm share/sendmail" >>${PLIST}
+ @${ECHO} "@dirrm share/sendmail" >>${PLIST}
.endif
# We want mail.local and rmail for our system.
@@ -90,11 +94,15 @@ post-install:
@cd ${WRKSRC}; ${TAR} cf - cf |\
(cd ${PREFIX}/share/sendmail; ${TAR} xf -)
.endif
+.if defined(SENDMAIL_WITH_MILTER)
+ ${INSTALL_PROGRAM} ${WRKSRC}/sample ${PREFIX}/libexec
+ ${INSTALL_PROGRAM} ${WRKSRC}/vbsfilter-1.3 ${PREFIX}/libexec
+.endif
.if exists(${DESTDIR}/etc/mail/mailer.conf)
@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE}
mailer.conf:
- ${SED} \
+ @${SED} \
-e "s=^sendmail[ ]*/.*$$=sendmail ${SENDMAIL}=" \
-e "s=^send-mail[ ]*/.*$$=send-mail ${SENDMAIL}=" \
-e "s=^mailq[ ]*/.*$$=mailq ${SENDMAIL}=" \
@@ -103,4 +111,27 @@ mailer.conf:
${MV} ${DESTDIR}/etc/mail/mailer.conf.new ${DESTDIR}/etc/mail/mailer.conf
.endif
+.if defined(SENDMAIL_WITH_MILTER)
+MASTER_SITES+= http://aeschi.ch.eu.org/milter/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} vbsfilter-1.3.c
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+post-extract:
+ @${CP} ${_DISTDIR}vbsfilter-1.3.c ${WRKSRC}
+ @${SED} -e '1,184d' -e '417,419d' ${WRKSRC}/libmilter/README \
+ > ${WRKSRC}/sample.c
+
+post-patch:
+ @${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/vbsfilter-1.3.c.patch
+
+post-configure:
+ ${CAT} ${FILESDIR}/site.config.m4.milter >>${WCONF}/site.config.m4
+
+post-build:
+ ( cd ${WRKSRC}/libmilter && ${MAKE} )
+ ( cd ${WRKSRC} && \
+ ${MAKE} -f ${FILESDIR}/Makefile.milter SENDMAIL_SOURCE=${WRKSRC} \
+ SENDMAIL_OBJECT=${WRKSRC}/obj.`${WRKSRC}/devtools/bin/Build -A` )
+.endif
+
.include <bsd.port.mk>
diff --git a/mail/sendmail/distinfo b/mail/sendmail/distinfo
index 24a6ea1..3da2891 100644
--- a/mail/sendmail/distinfo
+++ b/mail/sendmail/distinfo
@@ -1 +1,2 @@
MD5 (sendmail.8.11.2.tar.gz) = eee46aa3a3215e02c1aa7f1c49c5e99c
+MD5 (vbsfilter-1.3.c) = da70a84416927d0ba0a0c4e69cc4532e
OpenPOWER on IntegriCloud