summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-09-23 11:42:43 +0000
committerjlam <jlam@pkgsrc.org>2007-09-23 11:42:43 +0000
commited1597fb03574f11c0bde2289b72e59b23e048c9 (patch)
tree9483d6d62d4b896200c8bdd9f8cf72a2571b56be /mail
parentc99efd902aa5c543714b06d90a303692bd6096fa (diff)
downloadpkgsrc-ed1597fb03574f11c0bde2289b72e59b23e048c9.tar.gz
Don't hardcode the use of "99" as a file descriptor because it may
not be available. Instead, use (OPEN_MAX - 1) which uses the same "pick a high number" strategy as choosing "99", but is more likely to be available. This allows users with a soft limit of 64 open files to run courierfilter and courierldapaliasd. Bump the following PKGREVISIONs: mail/courier-mta --> 11 meta-pkgs/courier --> 7 net/couriertcpd --> 3
Diffstat (limited to 'mail')
-rw-r--r--mail/courier-mta/Makefile6
-rw-r--r--mail/courier-mta/distinfo3
-rw-r--r--mail/courier-mta/patches/patch-aw33
3 files changed, 38 insertions, 4 deletions
diff --git a/mail/courier-mta/Makefile b/mail/courier-mta/Makefile
index e28ac509923..d17ddc63a40 100644
--- a/mail/courier-mta/Makefile
+++ b/mail/courier-mta/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.20 2007/09/23 01:24:55 jlam Exp $
+# $NetBSD: Makefile,v 1.21 2007/09/23 11:42:44 jlam Exp $
DISTNAME= courier-${COURIER_VERSION}
PKGNAME= ${DISTNAME:S/-/-mta-/}
-PKGREVISION= 10
+PKGREVISION= 11
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
EXTRACT_SUFX= .tar.bz2
@@ -14,7 +14,7 @@ COMMENT= Courier mail transport agent
HOMEPAGE= http://www.courier-mta.org/
DEPENDS+= courier-maildir>=${COURIER_VERSION}:../../mail/courier-maildir
-DEPENDS+= couriertcpd>=${COURIER_VERSION}nb2:../../net/couriertcpd
+DEPENDS+= couriertcpd>=${COURIER_VERSION}nb3:../../net/couriertcpd
DEPENDS+= maildrop>=2.0.4:../../mail/maildrop
USE_TOOLS+= gmake openssl:run perl:run
diff --git a/mail/courier-mta/distinfo b/mail/courier-mta/distinfo
index 26a2a5eea5a..5694e4e584d 100644
--- a/mail/courier-mta/distinfo
+++ b/mail/courier-mta/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2007/09/17 15:28:04 jlam Exp $
+$NetBSD: distinfo,v 1.8 2007/09/23 11:42:44 jlam Exp $
SHA1 (courier-0.56.0.tar.bz2) = 536f24db9f33f8d93445c03dd4edb50c7ec2f6b2
RMD160 (courier-0.56.0.tar.bz2) = ce8e2d99f5b7baf500d748c18fbd126df8331398
@@ -23,3 +23,4 @@ SHA1 (patch-as) = 08bd540d92a3ef9db533a92b48c653ed2a256f9b
SHA1 (patch-at) = 7c93cabfe5b1164c6699111cd74e612af887881c
SHA1 (patch-au) = 794fdd49f7994689e4e4ee809293d2e67d9bc4c2
SHA1 (patch-av) = df4847bcf1127766f35cfecd65a293fa2bf7d6c9
+SHA1 (patch-aw) = a777a767893642b8425c70e8a7a791d6e2c77eb7
diff --git a/mail/courier-mta/patches/patch-aw b/mail/courier-mta/patches/patch-aw
new file mode 100644
index 00000000000..85d89f16ee9
--- /dev/null
+++ b/mail/courier-mta/patches/patch-aw
@@ -0,0 +1,33 @@
+$NetBSD: patch-aw,v 1.1 2007/09/23 11:42:44 jlam Exp $
+
+--- liblock/lockdaemon.c.orig 2007-05-04 23:04:41.000000000 -0400
++++ liblock/lockdaemon.c
+@@ -8,4 +8,5 @@
+ #include <stdio.h>
+ #include <signal.h>
++#include <limits.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -31,4 +32,8 @@
+ #endif
+
++#ifndef OPEN_MAX
++#define OPEN_MAX 64
++#endif
++
+ #define exit(_a_) _exit(_a_)
+
+@@ -146,5 +151,5 @@ int lockfd;
+ }
+
+- if (lockfd < 0 || dup2(lockfd, 99) != 99)
++ if (lockfd < 0 || dup2(lockfd, OPEN_MAX-1) != OPEN_MAX-1)
+ {
+ perror(lockfile);
+@@ -153,5 +158,5 @@ int lockfd;
+
+ close(lockfd);
+- lockfd=99;
++ lockfd=OPEN_MAX-1;
+
+ #ifdef FD_CLOEXEC