summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/greylite/Makefile4
-rw-r--r--mail/greylite/files/patch-logmsg.c11
-rw-r--r--mail/greylite/files/patch-logmsg.h13
3 files changed, 26 insertions, 2 deletions
diff --git a/mail/greylite/Makefile b/mail/greylite/Makefile
index ab893f5d453d..aa604b1c594d 100644
--- a/mail/greylite/Makefile
+++ b/mail/greylite/Makefile
@@ -16,9 +16,9 @@ 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
diff --git a/mail/greylite/files/patch-logmsg.c b/mail/greylite/files/patch-logmsg.c
new file mode 100644
index 000000000000..9363a7faeaa3
--- /dev/null
+++ b/mail/greylite/files/patch-logmsg.c
@@ -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) {
diff --git a/mail/greylite/files/patch-logmsg.h b/mail/greylite/files/patch-logmsg.h
new file mode 100644
index 000000000000..c81adbffc53c
--- /dev/null
+++ b/mail/greylite/files/patch-logmsg.h
@@ -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, ...);