2013-09-16 13:44:26 +00:00
|
|
|
# Created by: Daniel Roethlisberger <daniel@roe.ch>
|
2009-02-12 00:41:34 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2012-03-04 23:01:08 +00:00
|
|
|
PORTNAME= dma
|
2013-09-16 13:44:26 +00:00
|
|
|
PORTVERSION= v0.9
|
2012-03-04 23:01:08 +00:00
|
|
|
PORTEPOCH= 1
|
|
|
|
CATEGORIES= mail ipv6
|
|
|
|
EXTRACT_SUFX=
|
2009-02-12 00:41:34 +00:00
|
|
|
|
2013-09-22 14:36:55 +00:00
|
|
|
MAINTAINER= bzeeb+freebsd+ports@zabbadoz.net
|
2009-02-12 00:41:34 +00:00
|
|
|
COMMENT= DragonFly Mail Agent, a small MTA for local/outbound mail
|
|
|
|
|
2010-08-11 09:51:48 +00:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2012-03-04 23:01:08 +00:00
|
|
|
USE_OPENSSL= yes
|
2009-02-12 00:41:34 +00:00
|
|
|
|
|
|
|
MAN8= dma.8
|
|
|
|
|
2013-09-16 13:44:26 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_COMMIT= 2bb8bcb
|
|
|
|
GH_ACCOUNT= corecode
|
|
|
|
GH_TAGNAME= ${GH_COMMIT}
|
2012-03-04 23:01:08 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I${OPENSSLINC} \
|
|
|
|
-DCONF_PATH='\"${PREFIX}/etc/dma\"' \
|
|
|
|
-DDMA_ROOT_USER='\"mailnull\"' \
|
|
|
|
-DDMA_GROUP='\"mail\"'
|
2009-02-12 00:41:34 +00:00
|
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
|
|
|
2010-10-27 07:59:52 +00:00
|
|
|
USE_RC_SUBR= dma_flushq
|
2009-02-12 00:41:34 +00:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2012-03-04 23:01:08 +00:00
|
|
|
# Allow subports to extend.
|
|
|
|
CONFFILES+= dma.conf auth.conf
|
|
|
|
|
2013-09-20 19:59:12 +00:00
|
|
|
NO_STAGE= yes
|
2010-08-30 11:22:50 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-09-16 13:44:26 +00:00
|
|
|
.if ${OSVERSION} < 900000
|
|
|
|
IGNORE= Does not build in 8.x
|
|
|
|
.endif
|
|
|
|
|
2012-03-04 23:01:08 +00:00
|
|
|
pre-patch:
|
|
|
|
@${MKDIR} ${WRKSRC}/dma ${WRKSRC}/dma-mbox-create
|
|
|
|
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.dist
|
2010-08-30 11:22:50 +00:00
|
|
|
|
2009-02-12 00:41:34 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,/etc/dma,${PREFIX}/etc/dma,g' \
|
2012-03-04 23:01:08 +00:00
|
|
|
${WRKSRC}/dma.8
|
2009-02-12 00:41:34 +00:00
|
|
|
@${REINPLACE_CMD} -e 's, /etc/dma, ${PREFIX}/etc/dma,g' \
|
2010-08-11 09:51:48 +00:00
|
|
|
${WRKSRC}/dma.conf
|
2013-09-16 13:44:26 +00:00
|
|
|
.if ${OSVERSION} < 1000013
|
|
|
|
@${REINPLACE_CMD} -e 's,^YFLAGS.*,,' ${WRKSRC}/dma/Makefile
|
|
|
|
.endif
|
2009-02-12 00:41:34 +00:00
|
|
|
|
|
|
|
do-install:
|
2012-03-04 23:01:08 +00:00
|
|
|
${INSTALL} -o root -g mail -m 2555 ${WRKSRC}/dma/dma ${PREFIX}/libexec
|
|
|
|
${INSTALL} -o root -g mail -m 4550 \
|
|
|
|
${WRKSRC}/dma-mbox-create/dma-mbox-create ${PREFIX}/libexec
|
2010-08-11 09:51:48 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/dma.8 ${PREFIX}/man/man8/
|
2009-02-12 00:41:34 +00:00
|
|
|
${MKDIR} ${PREFIX}/etc/dma
|
2012-03-04 23:01:08 +00:00
|
|
|
.for i in ${CONFFILES}
|
2010-08-11 09:51:48 +00:00
|
|
|
${INSTALL_DATA} -m 0644 ${WRKSRC}/${i} ${PREFIX}/etc/dma/${i}.sample
|
2009-02-12 00:41:34 +00:00
|
|
|
.endfor
|
2012-03-04 23:01:08 +00:00
|
|
|
${CHMOD} o-r ${PREFIX}/etc/dma/auth.conf.sample
|
|
|
|
.for i in ${CONFFILES}
|
2009-02-12 00:41:34 +00:00
|
|
|
if [ ! -f ${PREFIX}/etc/dma/${i} ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/dma/${i}.sample \
|
|
|
|
${PREFIX}/etc/dma/${i} ; \
|
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
${INSTALL} -d -o root -g mail -m 770 /var/spool/dma
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2010-08-30 11:22:50 +00:00
|
|
|
.include <bsd.port.post.mk>
|