diff options
Diffstat (limited to 'mail/dk-milter/Makefile')
-rw-r--r-- | mail/dk-milter/Makefile | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/mail/dk-milter/Makefile b/mail/dk-milter/Makefile new file mode 100644 index 000000000000..91cd72fcf3b4 --- /dev/null +++ b/mail/dk-milter/Makefile @@ -0,0 +1,76 @@ +# New ports collection makefile for: dk-milter +# Date created: 22 May 2005 +# Whom: ache +# +# $FreeBSD$ +# + +PORTNAME= dk-milter +PORTVERSION= 0.3.0 +CATEGORIES= mail +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= dk-milter + +MAINTAINER= ache@FreeBSD.org +COMMENT= Domainkeys milter for Sendmail + +.if !defined(SENDMAIL_MILTER_IN_BASE) +.if defined(SENDMAIL_WITH_SHARED_MILTER) +LIB_DEPENDS+= milter.3:${PORTSDIR}/mail/${SENDMAIL_MILTER_PORT} +.else +BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/${SENDMAIL_MILTER_PORT} +.endif +.endif + +SENDMAIL_MILTER_PORT?= sendmail +USE_REINPLACE= yes +WCONF= ${WRKSRC}/devtools/Site +MAN8= dk-filter.8 +DOCSFILES= FEATURES INSTALL KNOWNBUGS LICENSE README RELEASE_NOTES \ + dk-filter/autorespond.csh + +SITE+= ${FILESDIR}/site.config.m4 +.if !defined(SENDMAIL_MILTER_IN_BASE) +SITE+= ${FILESDIR}/site.config.m4.milter +.endif + +.include <bsd.port.pre.mk> + +.if defined(SENDMAIL_WITHOUT_MILTER) +pre-fetch: + @${ECHO_MSG} + @${ECHO_MSG} You must unset variable SENDMAIL_WITHOUT_MILTER, + @${ECHO_MSG} and rebuild sendmail in the ports + @${FALSE} +.endif + +pre-configure: + @${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/milter-dk.sh \ + > ${WRKSRC}/milter-dk.sh + ${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \ + -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \ + -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/devtools/OS/FreeBSD + ${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \ + -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ + ${SITE} > ${WCONF}/site.config.m4 + +post-install: + -${STRIP_CMD} ${PREFIX}/libexec/dk-filter + ${INSTALL_SCRIPT} ${WRKSRC}/dk-filter/gentxt.csh \ + ${PREFIX}/sbin/gentxt + ${INSTALL_DATA} ${WRKSRC}/milter-dk.sh \ + ${PREFIX}/etc/rc.d/milter-dk.sh.sample +.for i in ${MAN8} + @${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz + ${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8/ +.endfor +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for i in ${DOCSFILES} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/ +.endfor +.endif + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> |