aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/sendmail-old/Makefile41
-rw-r--r--mail/sendmail-old/distinfo1
-rw-r--r--mail/sendmail/Makefile41
-rw-r--r--mail/sendmail/distinfo1
-rw-r--r--mail/sendmail811/Makefile41
-rw-r--r--mail/sendmail811/distinfo1
-rw-r--r--mail/sendmail812/Makefile41
-rw-r--r--mail/sendmail812/distinfo1
8 files changed, 148 insertions, 20 deletions
diff --git a/mail/sendmail-old/Makefile b/mail/sendmail-old/Makefile
index 4596b661f3c1..7472ed82ad0d 100644
--- a/mail/sendmail-old/Makefile
+++ b/mail/sendmail-old/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-old/distinfo b/mail/sendmail-old/distinfo
index 24a6ea15cce1..3da28918a51b 100644
--- a/mail/sendmail-old/distinfo
+++ b/mail/sendmail-old/distinfo
@@ -1 +1,2 @@
MD5 (sendmail.8.11.2.tar.gz) = eee46aa3a3215e02c1aa7f1c49c5e99c
+MD5 (vbsfilter-1.3.c) = da70a84416927d0ba0a0c4e69cc4532e
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 4596b661f3c1..7472ed82ad0d 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 24a6ea15cce1..3da28918a51b 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
diff --git a/mail/sendmail811/Makefile b/mail/sendmail811/Makefile
index 4596b661f3c1..7472ed82ad0d 100644
--- a/mail/sendmail811/Makefile
+++ b/mail/sendmail811/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/sendmail811/distinfo b/mail/sendmail811/distinfo
index 24a6ea15cce1..3da28918a51b 100644
--- a/mail/sendmail811/distinfo
+++ b/mail/sendmail811/distinfo
@@ -1 +1,2 @@
MD5 (sendmail.8.11.2.tar.gz) = eee46aa3a3215e02c1aa7f1c49c5e99c
+MD5 (vbsfilter-1.3.c) = da70a84416927d0ba0a0c4e69cc4532e
diff --git a/mail/sendmail812/Makefile b/mail/sendmail812/Makefile
index 4596b661f3c1..7472ed82ad0d 100644
--- a/mail/sendmail812/Makefile
+++ b/mail/sendmail812/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/sendmail812/distinfo b/mail/sendmail812/distinfo
index 24a6ea15cce1..3da28918a51b 100644
--- a/mail/sendmail812/distinfo
+++ b/mail/sendmail812/distinfo
@@ -1 +1,2 @@
MD5 (sendmail.8.11.2.tar.gz) = eee46aa3a3215e02c1aa7f1c49c5e99c
+MD5 (vbsfilter-1.3.c) = da70a84416927d0ba0a0c4e69cc4532e