1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/mail/spamd/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

79 lines
2.3 KiB
Makefile

# Created by: Max Laier <max@love2party.net>
# $FreeBSD$
PORTNAME= spamd
PORTVERSION= 4.9.1
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= SF/freebsdspamd/spamd
MAINTAINER= ohauer@FreeBSD.org
COMMENT= Traps spammers with a very slow smtp-login and return 4xx error
LICENSE= BSD2CLAUSE
USE_RC_SUBR?= obspamd obspamlogd
USERS= _spamd
GROUPS= _spamd
PORTDOCS= ipfw-spamd.txt spamdb.txt
PLIST_FILES= %%ETCDIR%%/spamd.conf.sample \
libexec/spamlogd \
sbin/spamd-setup \
sbin/spamdb \
man/man5/spamd.conf.5.gz \
man/man8/spamd-setup.8.gz \
man/man8/spamd.8.gz \
man/man8/spamdb.8.gz \
man/man8/spamlogd.8.gz
PLIST_SUB= SPAMDUSER=${USERS} \
SPAMDGROUP=${GROUPS}
# 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
SUB_FILES= pkg-install \
pkg-message
SUB_LIST= PREFIX=${PREFIX} \
${PLIST_SUB}
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
do-install:
.if !defined(CPANEL)
${INSTALL_PROGRAM} ${WRKSRC}/spamd/spamd ${STAGEDIR}${PREFIX}/libexec
.else
${INSTALL_PROGRAM} ${WRKSRC}/spamd/spamd ${STAGEDIR}${PREFIX}/libexec/obspamd
.endif
${INSTALL_PROGRAM} ${WRKSRC}/spamlogd/spamlogd ${STAGEDIR}${PREFIX}/libexec
${INSTALL_PROGRAM} ${WRKSRC}/spamd-setup/spamd-setup ${STAGEDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/spamdb/spamdb ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/etc/spamd.conf.5 ${STAGEDIR}${PREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/spamd/spamd.8 ${STAGEDIR}${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 ${STAGEDIR}${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 ${STAGEDIR}${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 ${STAGEDIR}${PREFIX}/man/man8
${INSTALL} -d ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/spamd.conf ${STAGEDIR}${ETCDIR}/spamd.conf.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>