c477d047fc
configuration run simultaneously; e.g. different key with different selector, or domain for dkim-milter. This update enables multiple instantiation. PR: ports/91894 Submitted by: Hirohisa Yamaguchi (maintainer)
83 lines
2.1 KiB
Makefile
83 lines
2.1 KiB
Makefile
# New ports collection makefile for: dkim-milter
|
|
# Date created: 10 Jan 2006
|
|
# Whom: Hirohisa Yamaguchi <umq@ueo.co.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dkim-milter
|
|
PORTVERSION= 0.2.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= umq@ueo.co.jp
|
|
COMMENT= Domainkeys milter for Sendmail
|
|
|
|
USE_SUBR= yes
|
|
USE_RC_SUBR= milter-dkim.sh
|
|
|
|
.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
|
|
SUB_FILES= milter-dkim.sh
|
|
WCONF= ${WRKSRC}/devtools/Site
|
|
MAN8= dkim-filter.8
|
|
PLIST_FILES= libexec/dkim-filter sbin/gentxt
|
|
PORTDOCS= FEATURES INSTALL KNOWNBUGS LICENSE README RELEASE_NOTES \
|
|
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
|
|
|
|
post-extract:
|
|
@${CP} ${WRKSRC}/dkim-filter/autorespond.csh ${WRKSRC}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \
|
|
-e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \
|
|
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
-e "s|\`-O'|\`${CFLAGS}'|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/dkim-filter
|
|
${INSTALL_SCRIPT} ${WRKSRC}/dkim-filter/gentxt.csh \
|
|
${PREFIX}/sbin/gentxt
|
|
.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 f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|