1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/mail/greyfix/Makefile
Mathieu Arnold f037e39601 USE_BDB cleanup.
- USE_BDB=4x+ -> USES=bdb.
- USE_BDB=yes -> USES=bdb.
- USE_BDB=xx  -> USES=bdb:xx.

Other modernisations when I see them.

PR:		209183
Sponsored by:	Absolight
2016-08-08 13:46:50 +00:00

33 lines
869 B
Makefile

# Created by: Keith Gaughan <k@stereochro.me>
# $FreeBSD$
PORTNAME= greyfix
PORTVERSION= 0.4.0
PORTREVISION= 1
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
USES= 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>