# Created by: gahr
# $FreeBSD: head/mail/opensmtpd-extras-table-redis/Makefile 434427 2017-02-20 02:57:04Z jbeich $

PKGNAMESUFFIX=	-table-redis
PORTREVISION=	2

COMMENT=	Redis table support for OpenSMTPD

LIB_DEPENDS=	libhiredis.so:databases/hiredis

PLIST_FILES=	libexec/opensmtpd/table-redis \
			man/man5/table-redis.5.gz

CONFIGURE_ARGS+=	--with-table-redis
CONFIGURE_ENV=	REDIS_CONFIG=${LOCALBASE}/bin/pkgconf
CFLAGS+=	-I${LOCALBASE}/include/hiredis

USES=		pkgconfig

MASTERDIR=	${.CURDIR}/../opensmtpd-extras
SLAVE_PORT=	yes

.include "${MASTERDIR}/Makefile"
