aboutsummaryrefslogtreecommitdiffstats
path: root/mail/dkimproxy/Makefile
blob: a17f5951311214fe562d01d44041ae024323c6ad (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
# Created by: Yoshisato YANAGISAWA
# $FreeBSD$

PORTNAME=   dkimproxy
PORTVERSION=    1.4.1
CATEGORIES= mail
MASTER_SITES=   SF

MAINTAINER= yanagisawa@csg.is.titech.ac.jp
COMMENT=    DKIM filter for Postfix

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  p5-Mail-DKIM>=0:${PORTSDIR}/mail/p5-Mail-DKIM \
        p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \
        p5-Error>=0:${PORTSDIR}/lang/p5-Error
RUN_DEPENDS:=   ${BUILD_DEPENDS}

GNU_CONFIGURE=  yes
USES=       perl5
USE_RC_SUBR=    dkimproxy_in dkimproxy_out

DKIMPROXYUSER=  dkimproxy
USERS=      ${DKIMPROXYUSER}
GROUPS=     ${DKIMPROXYUSER}

SUB_LIST+=  PERL=${PERL} \
        DKIMPROXYUSER=${DKIMPROXYUSER}

post-patch:
    @${GREP} -Ril 'perl' ${WRKDIR} | ${XARGS} ${REINPLACE_CMD} -i '' \
        -e 's|/usr/bin/perl|${PERL}|' -e 's|@PERL@|${PERL}|'

.include <bsd.port.mk>