1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/mail/greyfix/Makefile
2021-04-06 16:31:07 +02:00

32 lines
857 B
Makefile

# Created by: Keith Gaughan <k@stereochro.me>
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>