aboutsummaryrefslogtreecommitdiffstats
path: root/mail/milter-greylist/Makefile
blob: f14c6fa4b8ced0b4e902e35b32619074a734c866 (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
52
53
# New ports collection makefile for:    milter-greylist
# Date created:             27 Apr 2004
# Whom:                 Cyril Guibourg
#
# $FreeBSD$
#

PORTNAME=   milter-greylist
PORTVERSION=    1.5.3
CATEGORIES= mail
MASTER_SITES=   ftp://ftp.espci.fr/pub/milter-greylist/
EXTRACT_SUFX=   .tgz

MAINTAINER= aragorn+ports@teaser.fr
COMMENT=    Easy-to-use greylist milter for sendmail

MAN5=       greylist.conf.5
MAN8=       milter-greylist.8

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=    --with-user=smmsp

ALL_TARGET= milter-greylist

USE_RC_SUBR=    yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}

post-extract:
    @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
        ${FILESDIR}/milter-greylist.sh > ${WRKSRC}/milter-greylist.sh

do-install:
    @${MKDIR} ${PREFIX}/etc/mail
    @${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/bin
    @${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5
    @${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8
    @${INSTALL_DATA} ${WRKSRC}/greylist.conf \
            ${PREFIX}/etc/mail/greylist.conf.sample
    @${INSTALL_SCRIPT} ${WRKSRC}/milter-greylist.sh ${PREFIX}/etc/rc.d/

post-install:
    @${MKDIR} /var/milter-greylist /var/db/milter-greylist
    @${CHOWN} smmsp /var/milter-greylist /var/db/milter-greylist
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/greylist.conf ${EXAMPLESDIR}
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>