mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
# Created by: Mij <mij@bitchx.it>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= greylite
|
|
PORTVERSION= 2.3
|
|
PORTREVISION= 4
|
|
CATEGORIES= mail
|
|
MASTER_SITES= LOCAL/oliver
|
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
|
COMMENT= Modified greylisting for qmail and for any other MDA
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
RUN_DEPENDS= tcpserver:${PORTSDIR}/sysutils/ucspi-tcp
|
|
|
|
USES= tar:bzip2
|
|
USE_SQLITE= 3
|
|
PLIST_FILES= bin/greylite \
|
|
%%DNSBLENV%%bin/dnsblenv \
|
|
%%UCSPI2SOCKET%%bin/ucspi2socket \
|
|
man/man8/greylite.8.gz
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
OPTIONS_DEFINE= GEOIP DNSBLENV UCSPI2SOCKET
|
|
OPTIONS_DEFAULT= GEOIP DNSBLENV UCSPI2SOCKET
|
|
GEOIP_DESC= Support for GeoIP in suspicion rules
|
|
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:MGEOIP}
|
|
LIB_DEPENDS+= libGeoIP.so:${PORTSDIR}/net/GeoIP
|
|
MAKE_ARGS+= WITH_GEOIP=yep
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDNSBLENV}
|
|
LIB_DEPENDS+= libcares.so:${PORTSDIR}/dns/c-ares
|
|
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' \
|
|
-e 's,logmsg.c logmsg.h ucspi2socket.c,logmsg.o ucspi2socket.c,' \
|
|
${WRKSRC}/Makefile
|
|
|
|
.include <bsd.port.post.mk>
|