diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2001-03-10 06:09:04 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2001-03-10 06:09:04 +0000 |
commit | bd8f0fd12f13321ea66e870c1229c8f5341d80c6 (patch) | |
tree | f7ac25854a7749db5c72cd04aab37c287add7290 | |
parent | 62d4a1c8c46f589a46b865e4f170fcec6e4a5cee (diff) | |
download | ports-bd8f0fd12f13321ea66e870c1229c8f5341d80c6.tar.gz ports-bd8f0fd12f13321ea66e870c1229c8f5341d80c6.zip |
Clean up bulding messages
SENDMAIL_WITH_MILTER support
sample filter is build.
GPL attachmentfilter ist build.
Notes
Notes:
svn path=/head/; revision=39376
-rw-r--r-- | mail/sendmail-old/Makefile | 41 | ||||
-rw-r--r-- | mail/sendmail-old/distinfo | 1 | ||||
-rw-r--r-- | mail/sendmail/Makefile | 41 | ||||
-rw-r--r-- | mail/sendmail/distinfo | 1 | ||||
-rw-r--r-- | mail/sendmail811/Makefile | 41 | ||||
-rw-r--r-- | mail/sendmail811/distinfo | 1 | ||||
-rw-r--r-- | mail/sendmail812/Makefile | 41 | ||||
-rw-r--r-- | mail/sendmail812/distinfo | 1 |
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 |