Index: head/mail/greylite/Makefile =================================================================== --- head/mail/greylite/Makefile (revision 557862) +++ head/mail/greylite/Makefile (revision 557863) @@ -1,53 +1,53 @@ # Created by: Mij # $FreeBSD$ PORTNAME= greylite PORTVERSION= 2.3 PORTREVISION= 5 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:sysutils/ucspi-tcp USES= sqlite tar:bzip2 PLIST_FILES= bin/greylite \ - %%DNSBLENV%%bin/dnsblenv \ - %%UCSPI2SOCKET%%bin/ucspi2socket \ man/man8/greylite.8.gz +DNSBLENV_PLIST_FILES= bin/dnsblenv +UCSPI2SOCKET_PLIST_FILES= bin/ucspi2socket SUB_FILES= pkg-message OPTIONS_DEFINE= DNSBLENV UCSPI2SOCKET OPTIONS_DEFAULT= DNSBLENV UCSPI2SOCKET DNSBLENV_DESC= Module for interfacing with DNS blacklists UCSPI2SOCKET_DESC= Module for using greylite as SMTP proxy .include .if ${PORT_OPTIONS:MDNSBLENV} LIB_DEPENDS+= libcares.so: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 Index: head/mail/greylite/files/patch-logmsg.c =================================================================== --- head/mail/greylite/files/patch-logmsg.c (nonexistent) +++ head/mail/greylite/files/patch-logmsg.c (revision 557863) @@ -0,0 +1,11 @@ +--- logmsg.c.orig 2020-12-12 20:08:57.283326000 +0000 ++++ logmsg.c 2020-12-12 20:09:24.496799000 +0000 +@@ -11,6 +11,8 @@ + char logmsg_msgbuf[LOGMSG_BUFLEN]; + int logmsg_inclpid; /* true iff process ID has to be prefixed to log msgs */ + pid_t logmsg_mypid; /* if log_prefixpid, then set to the PID of the process */ ++int loglevel; /* threshold for log messages relevance */ ++char *logprefix; + + + int logmsg_init(const char *prefix) { Property changes on: head/mail/greylite/files/patch-logmsg.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/mail/greylite/files/patch-logmsg.h =================================================================== --- head/mail/greylite/files/patch-logmsg.h (nonexistent) +++ head/mail/greylite/files/patch-logmsg.h (revision 557863) @@ -0,0 +1,13 @@ +--- logmsg.h.orig 2020-12-12 20:08:48.656485000 +0000 ++++ logmsg.h 2020-12-12 20:09:08.664699000 +0000 +@@ -15,8 +15,8 @@ + #define LOG_DEBUG 7 /* debug-level messages */ + + +-int loglevel; /* threshold for log messages relevance */ +-char *logprefix; ++extern int loglevel; /* threshold for log messages relevance */ ++extern char *logprefix; + + int logmsg_init(const char *prefix); + int logmsg(int prio, char *fmt, ...); Property changes on: head/mail/greylite/files/patch-logmsg.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property