2015-03-04 08:41:04 +01:00
|
|
|
PORTNAME= greylite
|
|
|
|
PORTVERSION= 2.3
|
2019-01-13 21:58:36 +01:00
|
|
|
PORTREVISION= 5
|
2015-03-04 08:41:04 +01:00
|
|
|
CATEGORIES= mail
|
2022-11-12 20:04:28 +01:00
|
|
|
MASTER_SITES= https://github.com/OlliL/greylite/releases/download/v${PORTVERSION}/
|
2015-03-04 08:41:04 +01:00
|
|
|
|
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
|
|
|
COMMENT= Modified greylisting for qmail and for any other MDA
|
2022-11-12 20:04:28 +01:00
|
|
|
WWW= https://github.com/OlliL/greylite/
|
2015-03-04 08:41:04 +01:00
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS= tcpserver:sysutils/ucspi-tcp
|
2015-03-04 08:41:04 +01:00
|
|
|
|
2016-01-10 17:44:24 +01:00
|
|
|
USES= sqlite tar:bzip2
|
2015-03-04 08:41:04 +01:00
|
|
|
PLIST_FILES= bin/greylite \
|
|
|
|
man/man8/greylite.8.gz
|
2020-12-12 20:32:14 +01:00
|
|
|
DNSBLENV_PLIST_FILES= bin/dnsblenv
|
|
|
|
UCSPI2SOCKET_PLIST_FILES= bin/ucspi2socket
|
2015-03-04 08:41:04 +01:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2019-01-13 21:58:36 +01:00
|
|
|
OPTIONS_DEFINE= DNSBLENV UCSPI2SOCKET
|
|
|
|
OPTIONS_DEFAULT= DNSBLENV UCSPI2SOCKET
|
2015-03-04 08:41:04 +01:00
|
|
|
DNSBLENV_DESC= Module for interfacing with DNS blacklists
|
|
|
|
UCSPI2SOCKET_DESC= Module for using greylite as SMTP proxy
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDNSBLENV}
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS+= libcares.so:dns/c-ares
|
2015-03-04 08:41:04 +01:00
|
|
|
MAKE_ARGS+= WITH_DNSBLENV=yep
|
|
|
|
PLIST_SUB+= DNSBLENV=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DNSBLENV="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MUCSPI2SOCKET}
|
|
|
|
MAKE_ARGS+= WITH_UCSPI2SOCKET=yep
|
|
|
|
PLIST_SUB+= UCSPI2SOCKET=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= UCSPI2SOCKET="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${CP} ${WRKSRC}/Makefile.bsdmake ${WRKSRC}/Makefile
|
|
|
|
${REINPLACE_CMD} -e 's|PREFIX\?=.*|PREFIX=${STAGEDIR}${PREFIX}|g' \
|
2015-03-05 20:10:18 +01:00
|
|
|
-e 's,logmsg.c logmsg.h ucspi2socket.c,logmsg.o ucspi2socket.c,' \
|
2015-03-04 08:41:04 +01:00
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|