summaryrefslogtreecommitdiff
path: root/mail/greyfix/Makefile
blob: bc0c126fc947ed31da84722c4f2471e135214cee (plain)
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
# New ports collection makefile for:	greyfix
# Date created:				2011-05-14
# Whom:					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

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>