aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsergei <sergei@FreeBSD.org>2005-04-26 21:25:18 +0800
committersergei <sergei@FreeBSD.org>2005-04-26 21:25:18 +0800
commit77ebffe5b8cc6fb92a5ff86f770dc4b3e7a2383f (patch)
tree45e640090c542f8e4dfde5199aff5e5ae2edc3eb
parent47e21fc7c4390b8f3f9283d794f4fbda063649e1 (diff)
downloadfreebsd-ports-graphics-77ebffe5b8cc6fb92a5ff86f770dc4b3e7a2383f.tar.gz
freebsd-ports-graphics-77ebffe5b8cc6fb92a5ff86f770dc4b3e7a2383f.tar.zst
freebsd-ports-graphics-77ebffe5b8cc6fb92a5ff86f770dc4b3e7a2383f.zip
- Add patch to work around the problem where maildrop exits with
"flock() failed" error when an attempting to route messages to /dev/null. Patch is submitted upstream. - Bump PORTREVISION PR: ports/80106 Submitted by: David Lay <dsl@webize.com.au>
-rw-r--r--mail/maildrop/Makefile2
-rw-r--r--mail/maildrop/files/patch-filelock.C11
2 files changed, 12 insertions, 1 deletions
diff --git a/mail/maildrop/Makefile b/mail/maildrop/Makefile
index e9bb820b88d..25de11834c7 100644
--- a/mail/maildrop/Makefile
+++ b/mail/maildrop/Makefile
@@ -17,7 +17,7 @@
PORTNAME= maildrop
PORTVERSION= 1.8.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= courier
diff --git a/mail/maildrop/files/patch-filelock.C b/mail/maildrop/files/patch-filelock.C
new file mode 100644
index 00000000000..2ade3735cf9
--- /dev/null
+++ b/mail/maildrop/files/patch-filelock.C
@@ -0,0 +1,11 @@
+--- maildrop/filelock.C.orig Sat Apr 29 03:17:45 2000
++++ maildrop/filelock.C Fri Apr 15 13:09:25 2005
+@@ -64,7 +64,7 @@
+ // you're writing to a device file, you know what you're doing.
+
+ if (fstat(fd, &stat_buf) >= 0 && (
+- S_ISREG(stat_buf.st_mode) || S_ISDIR(stat_buf.st_mode)))
++ S_ISCHR(stat_buf.st_mode) || S_ISBLK(stat_buf.st_mode)))
+ {
+ return;
+ }