aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix-policyd-weight/Makefile
blob: 225faf7c7df9bf7044b6b0788909e167827c2e1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: Robert Felber <robtone@ek-muc.de>
# $FreeBSD$

PORTNAME=   policyd-weight
PORTVERSION=    0.1.15.1
PORTREVISION=   2
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
# rfc-ignorant: all entrieys will be marked as deprecated starting on 2012-09-30
    @${REINPLACE_CMD} -e '/DSBL_ORG/d' -e '/IPv6_RBL/d' -e '/rfc-ignorant/d' \
        -e '/IX_MANITU/ s/,$$//' -e '/AHBL/ 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>