2013-09-16 15:44:26 +02:00
|
|
|
# Created by: Daniel Roethlisberger <daniel@roe.ch>
|
2009-02-12 01:41:34 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-09-02 15:09:11 +02:00
|
|
|
PORTNAME= dma
|
2016-02-14 15:55:10 +01:00
|
|
|
PORTVERSION= 0.11
|
2016-08-20 18:39:51 +02:00
|
|
|
PORTREVISION= 1
|
2016-02-14 15:55:10 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2014-09-02 15:09:11 +02:00
|
|
|
PORTEPOCH= 1
|
|
|
|
CATEGORIES= mail ipv6
|
2009-02-12 01:41:34 +01:00
|
|
|
|
2014-12-29 23:47:59 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2009-02-12 01:41:34 +01:00
|
|
|
COMMENT= DragonFly Mail Agent, a small MTA for local/outbound mail
|
|
|
|
|
2014-05-18 03:53:30 +02:00
|
|
|
LICENSE= BSD3CLAUSE
|
2010-08-11 11:51:48 +02:00
|
|
|
|
2017-03-15 15:45:30 +01:00
|
|
|
USES= uidfix ssl
|
2009-02-12 01:41:34 +01:00
|
|
|
|
2013-09-16 15:44:26 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= corecode
|
2012-03-05 00:01:08 +01:00
|
|
|
|
2016-02-14 15:55:10 +01:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/bsd
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/bsd
|
2012-03-05 00:01:08 +01:00
|
|
|
CFLAGS+= -I${OPENSSLINC} \
|
|
|
|
-DCONF_PATH='\"${PREFIX}/etc/dma\"' \
|
|
|
|
-DDMA_ROOT_USER='\"mailnull\"' \
|
|
|
|
-DDMA_GROUP='\"mail\"'
|
2009-02-12 01:41:34 +01:00
|
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
|
|
|
2016-02-14 15:55:10 +01:00
|
|
|
MAKE_ENV= __MAKE_CONF=/dev/null SRCCONF=/dev/null NO_WERROR=defined \
|
|
|
|
MANDIR=${MANDIRS}/man
|
2014-12-30 08:44:41 +01:00
|
|
|
|
2010-10-27 09:59:52 +02:00
|
|
|
USE_RC_SUBR= dma_flushq
|
2009-02-12 01:41:34 +01:00
|
|
|
SUB_FILES= pkg-message
|
2016-08-20 18:39:51 +02:00
|
|
|
EXTRA_PATCHES= ${FILESDIR}/fix-security-hole.patch:-p1
|
2009-02-12 01:41:34 +01:00
|
|
|
|
2012-03-05 00:01:08 +01:00
|
|
|
# Allow subports to extend.
|
|
|
|
CONFFILES+= dma.conf auth.conf
|
|
|
|
|
2010-08-30 13:22:50 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2015-10-08 03:51:27 +02:00
|
|
|
# 11.x has dma imported into base and /var/spool/dma added to mtree
|
2017-01-13 10:19:30 +01:00
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100009
|
2015-10-08 03:51:27 +02:00
|
|
|
PLIST_SUB+= VARDIR=""
|
2014-05-18 03:53:30 +02:00
|
|
|
.else
|
2015-10-08 03:51:27 +02:00
|
|
|
PLIST_SUB+= VARDIR="@comment "
|
2013-09-16 15:44:26 +02:00
|
|
|
.endif
|
|
|
|
|
2009-02-12 01:41:34 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,/etc/dma,${PREFIX}/etc/dma,g' \
|
2012-03-05 00:01:08 +01:00
|
|
|
${WRKSRC}/dma.8
|
2009-02-12 01:41:34 +01:00
|
|
|
@${REINPLACE_CMD} -e 's, /etc/dma, ${PREFIX}/etc/dma,g' \
|
2010-08-11 11:51:48 +02:00
|
|
|
${WRKSRC}/dma.conf
|
2016-02-14 15:55:10 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^MK_MAN/d' -e 's/^NOMAN/NO_MAN/' \
|
|
|
|
${WRKSRC}/bsd/dma-mbox-create/Makefile
|
2009-02-12 01:41:34 +01:00
|
|
|
|
2016-02-14 15:55:10 +01:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
2014-09-02 15:09:11 +02:00
|
|
|
${MKDIR} ${STAGEDIR}/var/spool/dma
|
2016-02-14 15:55:10 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/dma.conf ${STAGEDIR}${ETCDIR}/dma.conf.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/auth.conf ${STAGEDIR}${ETCDIR}/auth.conf.sample
|
2009-02-12 01:41:34 +01:00
|
|
|
|
2010-08-30 13:22:50 +02:00
|
|
|
.include <bsd.port.post.mk>
|