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
|
|
|
|
PORTVERSION= v0.9
|
|
|
|
PORTREVISION= 1
|
|
|
|
PORTEPOCH= 1
|
|
|
|
CATEGORIES= mail ipv6
|
2012-03-05 00:01:08 +01:00
|
|
|
EXTRACT_SUFX=
|
2009-02-12 01:41:34 +01:00
|
|
|
|
2014-05-18 05:16:28 +02:00
|
|
|
MAINTAINER= bapt@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
|
|
|
|
2012-03-05 00:01:08 +01:00
|
|
|
USE_OPENSSL= yes
|
2009-02-12 01:41:34 +01:00
|
|
|
|
2013-09-16 15:44:26 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_COMMIT= 2bb8bcb
|
|
|
|
GH_ACCOUNT= corecode
|
|
|
|
GH_TAGNAME= ${GH_COMMIT}
|
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}
|
|
|
|
|
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
|
|
|
|
|
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>
|
|
|
|
|
2013-09-16 15:44:26 +02:00
|
|
|
.if ${OSVERSION} < 900000
|
2014-05-18 03:53:30 +02:00
|
|
|
EXTRA_PATCHES= ${.CURDIR:H:H}/mail/dma/files/extrapatch-8-spool.c
|
|
|
|
.else
|
|
|
|
EXTRA_PATCHES= ${.CURDIR:H:H}/mail/dma/files/extrapatch-else-spool.c
|
2013-09-16 15:44:26 +02:00
|
|
|
.endif
|
|
|
|
|
2012-03-05 00:01:08 +01:00
|
|
|
pre-patch:
|
|
|
|
@${MKDIR} ${WRKSRC}/dma ${WRKSRC}/dma-mbox-create
|
|
|
|
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.dist
|
2010-08-30 13:22:50 +02:00
|
|
|
|
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
|
2013-09-16 15:44:26 +02:00
|
|
|
.if ${OSVERSION} < 1000013
|
|
|
|
@${REINPLACE_CMD} -e 's,^YFLAGS.*,,' ${WRKSRC}/dma/Makefile
|
|
|
|
.endif
|
2009-02-12 01:41:34 +01:00
|
|
|
|
|
|
|
do-install:
|
2014-09-02 15:09:11 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dma/dma ${STAGEDIR}/${PREFIX}/libexec
|
|
|
|
${INSTALL_PROGRAM} \
|
2014-05-18 03:53:30 +02:00
|
|
|
${WRKSRC}/dma-mbox-create/dma-mbox-create ${STAGEDIR}/${PREFIX}/libexec
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/dma.8 ${STAGEDIR}/${PREFIX}/man/man8/
|
|
|
|
${MKDIR} ${STAGEDIR}/${PREFIX}/etc/dma
|
2012-03-05 00:01:08 +01:00
|
|
|
.for i in ${CONFFILES}
|
2014-09-04 21:26:24 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}/${PREFIX}/etc/dma/${i}.sample
|
2009-02-12 01:41:34 +01:00
|
|
|
.endfor
|
2014-09-02 15:09:11 +02:00
|
|
|
${MKDIR} ${STAGEDIR}/var/spool/dma
|
2009-02-12 01:41:34 +01:00
|
|
|
|
2010-08-30 13:22:50 +02:00
|
|
|
.include <bsd.port.post.mk>
|