c887be3495
- fix dependency - remove SITE_PERL from *_DEPENDS - use ports framework to create polw user/group - take maintainer (agreed by old maintainer/author via PM) PR: ports/167213 Submitted by: ohauer Approved by: old maintainer
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# New ports collection makefile for: postfix-policyd-weight
|
|
# Date created: 25 Apr 2005
|
|
# Whom: Robert Felber <robtone@ek-muc.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= policyd-weight
|
|
PORTVERSION= 0.1.15.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.policyd-weight.org/releases/ \
|
|
LOCAL/ohauer
|
|
PKGNAMEPREFIX= postfix-
|
|
|
|
MAINTAINER= ohauer@FreeBSD.org
|
|
COMMENT= Weighted policy daemon for postfix
|
|
|
|
RUN_DEPENDS= p5-Net-DNS>0:${PORTSDIR}/dns/p5-Net-DNS \
|
|
p5-Net-IP>0:${PORTSDIR}/net-mgmt/p5-Net-IP
|
|
|
|
SUB_FILES= pkg-message
|
|
PLIST_FILES= bin/${PORTNAME} etc/${PORTNAME}.conf.sample
|
|
|
|
USERS= polw
|
|
GROUPS= polw
|
|
|
|
USE_RC_SUBR+= policyd-weight
|
|
USE_PERL5= yes
|
|
NO_BUILD= yes
|
|
|
|
MAN8+= policyd-weight.8
|
|
MAN5+= policyd-weight.conf.5
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
# really remove dead lists
|
|
# SFNET bug ID: 2765629, 3400804
|
|
@${REINPLACE_CMD} -e '/DSBL_ORG/d' -e '/IPv6_RBL/d' -e '/IX_MANITU/ s/,$$//' \
|
|
${WRKSRC}/policyd-weight ${WRKSRC}/policyd-weight.conf.sample
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${PREFIX}/etc/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man5/${MAN5} ${PREFIX}/man/man5/
|
|
${INSTALL_MAN} ${WRKSRC}/man/man8/${MAN8} ${PREFIX}/man/man8/
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|