freebsd-ports/mail/greyfix/Makefile
Danilo Egea Gondolfo a08565f4a0 - Update from 0.3.9 to 0.4.0
- Update MASTER_SITES
- Install the man page

PR:		ports/188319
Submitted by:	Keith Gaughan <k@stereochro.me>
2014-06-14 20:54:43 +00:00

31 lines
851 B
Makefile

# Created by: Keith Gaughan <k@stereochro.me>
# $FreeBSD$
PORTNAME= greyfix
PORTVERSION= 0.4.0
CATEGORIES= mail
MASTER_SITES= http://www.kim-minh.com/pub/greyfix/ \
http://stereochro.me/distfiles/
MAINTAINER= k@stereochro.me
COMMENT= Greylisting policy daemon for Postfix
SUB_FILES= pkg-message
USE_BDB= 5+
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:
@${MKDIR} ${STAGEDIR}/var/db/greyfix
${INSTALL_PROGRAM} ${WRKSRC}/greyfix ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${FILESDIR}/greyfix.8 ${STAGEDIR}${MAN1PREFIX}/man/man8/
.include <bsd.port.mk>