2007-06-06 16:38:53 +00:00
|
|
|
# New ports collection makefile for: spamd
|
|
|
|
# Date created: 04 April 2007
|
2003-09-29 23:01:21 +00:00
|
|
|
# Whom: Max Laier <max@love2party.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= spamd
|
2011-06-04 21:51:59 +00:00
|
|
|
PORTVERSION= 4.9.1
|
2003-09-29 23:01:21 +00:00
|
|
|
CATEGORIES= mail
|
2007-06-06 16:38:53 +00:00
|
|
|
MASTER_SITES= BERLIOS
|
|
|
|
MASTER_SITE_SUBDIR=freebsdspamd
|
2003-09-29 23:01:21 +00:00
|
|
|
|
2010-10-31 22:10:52 +00:00
|
|
|
MAINTAINER= ohauer@FreeBSD.org
|
2003-09-29 23:01:21 +00:00
|
|
|
COMMENT= Traps spammers with a very slow smtp-login and return 4xx error
|
|
|
|
|
2010-10-31 22:10:52 +00:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2007-06-06 16:38:53 +00:00
|
|
|
USE_RC_SUBR?= obspamd obspamlogd
|
2003-09-29 23:01:21 +00:00
|
|
|
|
2011-06-04 21:51:59 +00:00
|
|
|
USERS= _spamd
|
|
|
|
GROUPS= _spamd
|
2004-07-18 22:54:29 +00:00
|
|
|
|
2004-04-03 16:42:37 +00:00
|
|
|
MAN5= spamd.conf.5
|
|
|
|
MAN8= spamd.8 spamd-setup.8 spamdb.8 spamlogd.8
|
2009-07-23 12:52:44 +00:00
|
|
|
PORTDOCS= ipfw-spamd.txt spamdb.txt
|
2003-09-29 23:01:21 +00:00
|
|
|
|
2011-06-04 21:51:59 +00:00
|
|
|
PLIST_DIRSTRY= %%ETCDIR%%
|
|
|
|
PLIST_FILES= %%ETCDIR%%/spamd.conf.sample \
|
|
|
|
libexec/spamlogd \
|
2009-07-23 12:52:44 +00:00
|
|
|
sbin/spamd-setup \
|
2011-06-04 21:51:59 +00:00
|
|
|
sbin/spamdb
|
2003-09-29 23:01:21 +00:00
|
|
|
|
2011-06-04 21:51:59 +00:00
|
|
|
PLIST_SUB= SPAMDUSER=${USERS} \
|
|
|
|
SPAMDGROUP=${GROUPS}
|
2007-06-06 16:38:53 +00:00
|
|
|
|
2009-07-23 12:52:44 +00:00
|
|
|
# If you are a CPANEL user the this option is for you!
|
|
|
|
# CPANEL sends periodic a 'kill -TERM spamd' to the SpamAssassin spamd, and
|
|
|
|
# this kills also the OpenBSD spamd daemon.
|
|
|
|
# With this option spamd will be installed as obspamd, and the rc script will
|
|
|
|
# be adjusted. Man page and pid file will not be renamed!
|
|
|
|
.if !defined(CPANEL)
|
|
|
|
PLIST_FILES+= libexec/spamd
|
|
|
|
PLIST_SUB+= SPAMDBIN=spamd
|
|
|
|
.else
|
|
|
|
PLIST_FILES+= libexec/obspamd
|
|
|
|
PLIST_SUB+= SPAMDBIN=obspamd
|
|
|
|
.endif
|
|
|
|
|
2007-06-06 16:38:53 +00:00
|
|
|
SUB_FILES= pkg-install \
|
|
|
|
pkg-message
|
|
|
|
|
|
|
|
SUB_LIST= PREFIX=${PREFIX} \
|
|
|
|
${PLIST_SUB}
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL
|
|
|
|
|
2004-04-03 16:42:37 +00:00
|
|
|
do-install:
|
2009-07-23 12:52:44 +00:00
|
|
|
.if !defined(CPANEL)
|
2010-10-31 22:10:52 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/spamd/spamd ${PREFIX}/libexec
|
2009-07-23 12:52:44 +00:00
|
|
|
.else
|
2010-10-31 22:10:52 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/spamd/spamd ${PREFIX}/libexec/obspamd
|
2009-07-23 12:52:44 +00:00
|
|
|
.endif
|
2010-10-31 22:10:52 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/spamlogd/spamlogd ${PREFIX}/libexec
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/spamd-setup/spamd-setup ${PREFIX}/sbin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/spamdb/spamdb ${PREFIX}/sbin
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/etc/spamd.conf.5 ${PREFIX}/man/man5
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/spamd/spamd.8 ${PREFIX}/man/man8
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 ${PREFIX}/man/man8
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 ${PREFIX}/man/man8
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 ${PREFIX}/man/man8
|
2011-06-04 21:51:59 +00:00
|
|
|
@${INSTALL} -d ${ETCDIR}
|
|
|
|
@${INSTALL_DATA} -m 644 ${WRKSRC}/etc/spamd.conf ${ETCDIR}/spamd.conf.sample
|
|
|
|
|
2007-06-06 16:38:53 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/ipfw-spamd.txt ${DOCSDIR}/
|
2009-07-23 12:52:44 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/spamdb.txt ${DOCSDIR}/
|
2007-06-06 16:38:53 +00:00
|
|
|
.endif
|
2003-09-29 23:01:21 +00:00
|
|
|
|
2010-10-31 22:10:52 +00:00
|
|
|
post-install:
|
2011-06-04 21:51:59 +00:00
|
|
|
@${SH} ${PKGINSTALL} ${DISTNAME} POST-INSTALL
|
2010-10-31 22:10:52 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2009-07-23 12:52:44 +00:00
|
|
|
.include <bsd.port.mk>
|