1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/mail/spamdyke/Makefile
2013-07-05 12:46:45 +00:00

62 lines
1.6 KiB
Makefile

# Created by: Peter Kieser <peter@kieser.ca>
# $FreeBSD$
PORTNAME= spamdyke
PORTVERSION= 4.3.1
CATEGORIES= mail
MASTER_SITES= http://www.spamdyke.org/releases/
EXTRACT_SUFX= .tgz
MAINTAINER= bdrewery@FreeBSD.org
COMMENT= Qmail filter for monitoring and intercepting SMTP connections
LICENSE= GPLv2
RUN_DEPENDS= ${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp
WRKSRC= ${WRKDIR}/${DISTNAME}/spamdyke
USES= qmail
GNU_CONFIGURE= yes
ALL_TARGET= spamdyke
USE_GCC= any
OPTIONS_DEFINE= TLS DEBUG DEBUG_EXCESSIVE DOCS
OPTIONS_DEFAULT= TLS
DEBUG_DESC= Enable debugging output
DEBUG_EXCESSIVE_DESC= Enable excessive debugging output
TLS_CONFIGURE_ENABLE= tls
DEBUG_CONFIGURE_ENABLE= debug-output
DEBUG_EXCESSIVE_CONFIGURE_ENABLE= excessive-output
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= Changelog.txt FAQ.html GNUGPL.txt INSTALL.txt \
README.html README_ip_file_format.html \
README_rdns_directory_format.html README_rdns_file_format.html \
UPGRADING.txt UPGRADING_version_3_to_version_4.txt
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKDIR}/${DISTNAME}/documentation && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/documentation/spamdyke.conf.example ${PREFIX}/etc
@if [ ! -f ${PREFIX}/etc/spamdyke.conf ]; then \
${CP} -p ${PREFIX}/etc/spamdyke.conf.example ${PREFIX}/etc/spamdyke.conf; \
fi
post-patch:
@${REINPLACE_CMD} -e 's#^CFLAGS :=.*#CFLAGS = ${CFLAGS}#' ${WRKSRC}/Makefile.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/spamdyke ${PREFIX}/bin
.include <bsd.port.mk>