summaryrefslogtreecommitdiff
path: root/mail/sendmail812/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2001-03-10 20:49:42 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2001-03-10 20:49:42 +0000
commitbe24244bf1e0972b540f600e18b84dc866d2cc2c (patch)
treee3d25f972b8eb25b07e173612f23bd4813366f3b /mail/sendmail812/Makefile
parentFix typo. (diff)
- Update to new release 8.11.3
- filters has been removed, will reappear in a seperate port - install additional headers and libs for SENDMAIL_WITH_MILTER=yes - pkh-commed reduced to make portlint happy Reviewed by: gshapiro
Diffstat (limited to 'mail/sendmail812/Makefile')
-rw-r--r--mail/sendmail812/Makefile43
1 files changed, 21 insertions, 22 deletions
diff --git a/mail/sendmail812/Makefile b/mail/sendmail812/Makefile
index 7472ed82ad0d..07e4ffa8bb08 100644
--- a/mail/sendmail812/Makefile
+++ b/mail/sendmail812/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= sendmail
-PORTVERSION= 8.11.2
+PORTVERSION= 8.11.3
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/
DISTNAME= ${PORTNAME}.${PORTVERSION}
@@ -61,8 +61,7 @@ MAN8= sendmail.8 mailstats.8 makemap.8 praliases.8 smrsh.8 \
pre-install:
@${CAT} ${PKGDIR}/pkg-plist >${PLIST}
.if defined(SENDMAIL_WITH_MILTER)
- @${ECHO} "libexec/sample" >>${PLIST}
- @${ECHO} "libexec/vbsfilter-1.3" >>${PLIST}
+ @${CAT} ${FILESDIR}/pkg-milter >${PLIST}
.endif
.if !defined(NOPORTDOCS)
@cd ${WRKSRC} && find cf -type f | \
@@ -72,11 +71,30 @@ pre-install:
@${ECHO} "@dirrm share/sendmail" >>${PLIST}
.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
+
# We want mail.local and rmail for our system.
# the build install catmans only, we have to fix this.
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/
+ ${INSTALL_DATA} \
+ ${WRKSRC}/obj.`${WRKSRC}/devtools/bin/Build -A`/libmilter/libmilter.a \
+ ${PREFIX}/lib/
+ ${INSTALL_DATA} \
+ ${WRKSRC}/obj.`${WRKSRC}/devtools/bin/Build -A`/libsmutil/libsmutil.a \
+ ${PREFIX}/lib/
+.endif
.for i in ${MAN8}
@${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8
@@ -94,10 +112,6 @@ 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}
@@ -112,26 +126,11 @@ 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>