freebsd-ports/mail/dma/Makefile

70 lines
1.7 KiB
Makefile
Raw Normal View History

# Created by: Daniel Roethlisberger <daniel@roe.ch>
# $FreeBSD$
PORTNAME= dma
PORTVERSION= v0.9
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
EXTRACT_SUFX=
2014-12-29 23:47:59 +01:00
MAINTAINER= ports@FreeBSD.org
COMMENT= DragonFly Mail Agent, a small MTA for local/outbound mail
LICENSE= BSD3CLAUSE
USE_OPENSSL= yes
USE_GITHUB= yes
GH_ACCOUNT= corecode
GH_TAGNAME= 2bb8bcb
CFLAGS+= -I${OPENSSLINC} \
-DCONF_PATH='\"${PREFIX}/etc/dma\"' \
-DDMA_ROOT_USER='\"mailnull\"' \
-DDMA_GROUP='\"mail\"'
LDFLAGS+= -L${OPENSSLLIB}
2015-03-26 15:33:34 +01:00
MAKE_ENV= __MAKE_CONF=/dev/null SRCCONF=/dev/null NO_WERROR=defined
USE_RC_SUBR= dma_flushq
SUB_FILES= pkg-message
# Allow subports to extend.
CONFFILES+= dma.conf auth.conf
.include <bsd.port.pre.mk>
# 11.x has dma imported into base and /var/spool/dma added to mtree
.if ${OSVERSION} < 1100009
PLIST_SUB+= VARDIR=""
.else
PLIST_SUB+= VARDIR="@comment "
.endif
pre-patch:
@${MKDIR} ${WRKSRC}/dma ${WRKSRC}/dma-mbox-create
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.dist
post-patch:
@${REINPLACE_CMD} -e 's,/etc/dma,${PREFIX}/etc/dma,g' \
${WRKSRC}/dma.8
@${REINPLACE_CMD} -e 's, /etc/dma, ${PREFIX}/etc/dma,g' \
${WRKSRC}/dma.conf
.if ${OSVERSION} < 1000013
@${REINPLACE_CMD} -e 's,^YFLAGS.*,,' ${WRKSRC}/dma/Makefile
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dma/dma ${STAGEDIR}/${PREFIX}/libexec
${INSTALL_PROGRAM} \
${WRKSRC}/dma-mbox-create/dma-mbox-create ${STAGEDIR}/${PREFIX}/libexec
${INSTALL_MAN} ${WRKSRC}/dma.8 ${STAGEDIR}/${PREFIX}/man/man8/
${MKDIR} ${STAGEDIR}/${PREFIX}/etc/dma
.for i in ${CONFFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}/${PREFIX}/etc/dma/${i}.sample
.endfor
${MKDIR} ${STAGEDIR}/var/spool/dma
.include <bsd.port.post.mk>