freebsd-ports/mail/postfix-policyd-sf/Makefile
Mathieu Arnold e1bfdfbe56 Add DOCS options to ports that should have one.
Also various fixes related to said option.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
2018-09-10 13:14:50 +00:00

51 lines
1.4 KiB
Makefile

# Created by: Xavier Beaudouin <kiwi@oav.net>
# $FreeBSD$
PORTNAME= policyd
PORTVERSION= 1.82
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= SF/${PORTNAME}/1.x%20%28Old%20Stable%29/v${PORTVERSION} \
ftp://ftp.oav.net/pkg_freebsd/distfiles/
PKGNAMEPREFIX= postfix-
PKGNAMESUFFIX= -sf
MAINTAINER= mat@FreeBSD.org
COMMENT= Anti-spam plugin for Postfix (written in C)
USE_MYSQL= yes
USES= gmake
USE_RC_SUBR= policyd
REALNAME= ${PKGNAME:C/-${PORTVERSION}.*//}
SUB_LIST+= REALNAME=${REALNAME}
ALL_TARGET= linux
DOCS= ChangeLog ChangeLog.1 README LICENSE TODO DATABASE.mysql \
doc/whitelist.sql doc/support.txt doc/blacklist_helo.sql
PORTDOCS= ${DOCS:C/.*\///}
PLIST_FILES= sbin/${REALNAME}-cleanup \
sbin/${REALNAME}-stats \
sbin/${REALNAME} \
etc/${REALNAME}.conf.sample
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's,policyd.pid,postfix-policyd-sf.pid,' \
${WRKSRC}/policyd.conf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cleanup ${STAGEDIR}${PREFIX}/sbin/${REALNAME}-cleanup
${INSTALL_PROGRAM} ${WRKSRC}/stats ${STAGEDIR}${PREFIX}/sbin/${REALNAME}-stats
${INSTALL_PROGRAM} ${WRKSRC}/policyd ${STAGEDIR}${PREFIX}/sbin/${REALNAME}
${INSTALL_DATA} ${WRKSRC}/policyd.conf ${STAGEDIR}${PREFIX}/etc/${REALNAME}.conf.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>