aboutsummaryrefslogtreecommitdiffstats
path: root/mail/greyfix/Makefile
blob: 6cf65cdf4708849db44fcf56ca8245948b55cd44 (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
# Created by: Keith Gaughan <k@stereochro.me>
# $FreeBSD$

PORTNAME=   greyfix
PORTVERSION=    0.3.9
CATEGORIES= mail
MASTER_SITES=   http://www.kim-minh.com/pub/greyfix/

MAINTAINER= k@stereochro.me
COMMENT=    A greylisting policy daemon for Postfix

SUB_FILES=  pkg-message

USE_BDB=    yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-berkeleydb-libdir=${BDB_LIB_DIR} \
        --with-berkeleydb-includedir=${BDB_INCLUDE_DIR} \
        --localstatedir=/var

NO_STAGE=   yes
post-patch:
    @${REINPLACE_CMD} 's|-ldb|-l${BDB_LIB_NAME}|g' ${WRKSRC}/configure
    @${REINPLACE_CMD} 's|$$(localstatedir)/lib|$$(localstatedir)/db|' ${WRKSRC}/Makefile.in

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/greyfix ${PREFIX}/sbin
    @${INSTALL} -o nobody -m 700 -d /var/db/greyfix

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>