2013-01-26 17:34:39 +01:00
|
|
|
# Created by: ache
|
2005-05-22 15:39:11 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dk-milter
|
2009-02-14 19:49:28 +01:00
|
|
|
PORTVERSION= 1.0.2
|
2005-05-22 15:39:11 +02:00
|
|
|
CATEGORIES= mail
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/DomainKeys%20Milter/${PORTVERSION}
|
2005-05-22 15:39:11 +02:00
|
|
|
|
2006-12-03 19:33:01 +01:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2005-05-22 15:39:11 +02:00
|
|
|
COMMENT= Domainkeys milter for Sendmail
|
|
|
|
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= milter-dk
|
2007-06-02 16:46:41 +02:00
|
|
|
USE_OPENSSL= yes
|
2006-01-15 10:11:04 +01:00
|
|
|
|
2009-07-27 09:32:38 +02:00
|
|
|
.if !defined(BUILDING_INDEX)
|
2007-04-11 18:29:26 +02:00
|
|
|
IPCCHECK!= ipcrm -q 0 2>&1 || true
|
|
|
|
.if ${IPCCHECK:Mimplemented}
|
|
|
|
IGNORE= your system does not support sysvipc
|
|
|
|
.endif
|
2009-07-27 09:32:38 +02:00
|
|
|
.endif
|
2007-04-11 18:29:26 +02:00
|
|
|
|
2006-10-01 17:08:24 +02:00
|
|
|
.if defined(WITH_POSTFIX_MILTER) || defined(WITH_POSTFIX) || defined(WITH_POSTFIX_CURRENT)
|
2007-06-15 13:33:01 +02:00
|
|
|
WITH_SENDMAIL_BASE= yes
|
2006-09-25 19:44:40 +02:00
|
|
|
PKGMESSAGE= pkg-message.postfix
|
2006-10-01 17:08:24 +02:00
|
|
|
|
|
|
|
.if defined(WITH_POSTFIX_CURRENT)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current
|
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix
|
|
|
|
.endif
|
2006-09-25 19:44:40 +02:00
|
|
|
.endif
|
|
|
|
|
2005-05-22 15:39:11 +02:00
|
|
|
WCONF= ${WRKSRC}/devtools/Site
|
|
|
|
MAN8= dk-filter.8
|
|
|
|
DOCSFILES= FEATURES INSTALL KNOWNBUGS LICENSE README RELEASE_NOTES \
|
2007-06-02 16:46:41 +02:00
|
|
|
rfc4870.txt dk-filter/autorespond.csh
|
2005-05-22 15:39:11 +02:00
|
|
|
|
|
|
|
SITE+= ${FILESDIR}/site.config.m4
|
2007-06-02 16:46:41 +02:00
|
|
|
SITE_SUB+= -e "s|%%PREFIX%%|${PREFIX}|g" \
|
|
|
|
-e "s|%%LOCALBASE%%|${LOCALBASE}|g"
|
2005-05-22 15:39:11 +02:00
|
|
|
|
2014-07-15 18:14:15 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2005-05-22 15:39:11 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-03-17 20:11:20 +01:00
|
|
|
WITHOUT_MILTER_CFLAGS= yes
|
2007-06-15 13:33:01 +02:00
|
|
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
|
|
|
|
|
|
|
SITE+= ${WRKSRC}/site.config.m4.dist
|
|
|
|
.if defined(WITH_SENDMAIL_PORT)
|
|
|
|
SITE+= ${FILESDIR}/site.config.m4.milter
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SENDMAIL_STATIC_MILTER)
|
|
|
|
SITE_SUB+= -e '\|-static|s|%%STATIC%%||g'
|
|
|
|
.else
|
|
|
|
SITE_SUB+= -e '\|-static|s|%%STATIC%%|dnl |g'
|
|
|
|
.endif
|
|
|
|
|
2012-08-06 01:19:36 +02:00
|
|
|
SUB_LIST= "RC_SCRIPT=${PREFIX}/etc/rc.d/${USE_RC_SUBR}"
|
2006-10-01 17:08:24 +02:00
|
|
|
|
2007-06-02 16:46:41 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
SITE_SUB+= -e '\|confOPTIMIZE.*-g|s/^dnl //g'
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_ARLIB)
|
|
|
|
SITE_SUB+= -e '\|bld_USE_ARLIB|s/^dnl //g'
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_POPAUTH) && !defined(WITHOUT_POPAUTH)
|
|
|
|
SITE_SUB+= -e '/-DPOPAUTH/s/^dnl //g'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_POPAUTH)
|
2008-03-17 20:11:20 +01:00
|
|
|
. if defined(WITH_BDB_BASE)
|
|
|
|
IGNORE= does not work with base bdb
|
|
|
|
SITE_SUB+= -e 's|%%BDB%%|dnl |g'
|
|
|
|
. else
|
2007-06-02 16:46:41 +02:00
|
|
|
USE_BDB= 41+
|
2008-03-17 20:11:20 +01:00
|
|
|
INVALID_BDB_VER= 2 40
|
2007-06-02 16:46:41 +02:00
|
|
|
SITE_SUB+= -e 's|%%BDB%%||g' \
|
|
|
|
-e "s|%%BDB_LIB_DIR%%|${BDB_LIB_DIR}|g" \
|
|
|
|
-e "s|%%BDB_INCLUDE_DIR%%|${BDB_INCLUDE_DIR}|g" \
|
|
|
|
-e "s|%%BDB_LIB_NAME%%|${BDB_LIB_NAME}|g"
|
2008-03-17 20:11:20 +01:00
|
|
|
. endif
|
2007-06-02 16:46:41 +02:00
|
|
|
.else
|
|
|
|
SITE_SUB+= -e 's|%%BDB%%|dnl |g'
|
|
|
|
.endif
|
2010-01-16 10:00:34 +01:00
|
|
|
.if defined(WITH_OPENSSL_BASE)
|
2007-06-02 16:46:41 +02:00
|
|
|
SITE_SUB+= -e 's|%%OPENSSL%%|dnl |g'
|
|
|
|
.else
|
|
|
|
SITE_SUB+= -e 's|%%OPENSSL%%||g' \
|
|
|
|
-e "s|%%OPENSSLINC%%|${OPENSSLINC}|g" \
|
|
|
|
-e "s|%%OPENSSLLIB%%|${OPENSSLLIB}|g"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "${.CURDIR}/Makefile.features"
|
2005-05-22 15:39:11 +02:00
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \
|
|
|
|
-e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \
|
|
|
|
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
2005-07-13 21:51:49 +02:00
|
|
|
-e "s|\`-O'|\`${CFLAGS}'|g" \
|
2005-05-22 15:39:11 +02:00
|
|
|
${WRKSRC}/devtools/OS/FreeBSD
|
2007-06-02 16:46:41 +02:00
|
|
|
${SED} ${SITE_SUB} -e '\|^dnl |d' -e '/^dnl$$/d' \
|
2005-05-22 15:39:11 +02:00
|
|
|
${SITE} > ${WCONF}/site.config.m4
|
|
|
|
|
|
|
|
post-install:
|
2007-06-02 16:46:41 +02:00
|
|
|
.if !defined(WITH_DEBUG)
|
2013-11-16 21:11:28 +01:00
|
|
|
-${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/dk-filter
|
2007-06-02 16:46:41 +02:00
|
|
|
.endif
|
2005-05-22 15:39:11 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/dk-filter/gentxt.csh \
|
2013-11-16 21:11:28 +01:00
|
|
|
${STAGEDIR}${PREFIX}/sbin/gentxt-dk
|
2005-05-22 15:39:11 +02:00
|
|
|
.for i in ${MAN8}
|
2014-03-04 07:51:37 +01:00
|
|
|
@${RM} -f ${STAGEDIR}${PREFIX}/man/cat8/${i} \
|
|
|
|
${STAGEDIR}${PREFIX}/man/cat8/${i}.gz
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/*/${i} ${STAGEDIR}${PREFIX}/man/man8/
|
2005-05-22 15:39:11 +02:00
|
|
|
.endfor
|
2013-11-16 21:11:28 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2005-05-22 15:39:11 +02:00
|
|
|
.for i in ${DOCSFILES}
|
2013-11-16 21:11:28 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
|
2005-05-22 15:39:11 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|