1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/mail/avenger/Makefile
Pawel Pekala 9f7ab903b2 - Update to version 0.8.3
- Remove leading article from COMMENT
- Get database dependency through USE_BDB
- Support OptionsNG, add DOCS and SASL options
- Use port framework for user and group creation
- Make daemon binary look for config files in ETCDIR not /etc
- Install config files in ETCDIR and preserve them when modified
2013-03-08 22:27:59 +00:00

62 lines
1.4 KiB
Makefile

# Created by: dm
# $FreeBSD$
PORTNAME= avenger
PORTVERSION= 0.8.3
CATEGORIES= mail
MASTER_SITES= http://www.mailavenger.org/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= Anti-spam SMTP server
GNU_CONFIGURE= yes
USE_BDB= 43
USERS= ${PORTNAME}
GROUPS= ${USERS}
PORTDOCS= INSTALL INSTALL.html README NEWS
SUB_FILES= pkg-message
MAN1= aliascheck.1 avenger.1 dbutil.1 deliver.1 dotlock.1 \
edinplace.1 escape.1 macutil.1 mailexec.1 match.1 \
smtpdcheck.1 synos.1
MAN5= asmtpd.conf.5
MAN8= asmtpd.8 avenger.local.8
CONFIGURE_ENV= WFLAGS='-Wall'
CONFIGURE_ARGS= --with-db=${LOCALBASE} --with-etcdir=${ETCDIR}
OPTIONS_DEFINE= SASL
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSASL}
LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2
CONFIGURE_ARGS+= --enable-sasl
.endif
post-install:
${MKDIR} ${ETCDIR}
.for file in asmtpd.conf unknown
${INSTALL_DATA} ${WRKSRC}/etc/${file} ${ETCDIR}/${file}.sample
@if [ ! -f ${ETCDIR}/${file} ]; then \
${CP} -p ${ETCDIR}/${file}.sample ${ETCDIR}/${file} ; \
fi
.endfor
${INSTALL_DATA} ${WRKSRC}/etc/pf.os ${PREFIX}/share
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/etc/smtp-filter.pf ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/etc/avsendmail.m4 ${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>