summaryrefslogtreecommitdiff
path: root/mail/deliver/patches
diff options
context:
space:
mode:
authorwiz <wiz>2004-05-28 01:09:01 +0000
committerwiz <wiz>2004-05-28 01:09:01 +0000
commitbdd76609d7f85e73a3856c77564c2de10e929a22 (patch)
treeceadd96df58198751b499ae2711f86ef95a452ae /mail/deliver/patches
parente1cc590b1f03b5e0efef05be0df2ad10d74431f6 (diff)
downloadpkgsrc-bdd76609d7f85e73a3856c77564c2de10e929a22.tar.gz
Add patches from Jim Bernard to make this build on -current and fix
a problem with basename(); bump PKGREVISION. Closes PR 20978 and PR 25733 by Jim Bernard.
Diffstat (limited to 'mail/deliver/patches')
-rw-r--r--mail/deliver/patches/patch-af18
-rw-r--r--mail/deliver/patches/patch-ai13
-rw-r--r--mail/deliver/patches/patch-aj92
-rw-r--r--mail/deliver/patches/patch-ak13
-rw-r--r--mail/deliver/patches/patch-al26
5 files changed, 156 insertions, 6 deletions
diff --git a/mail/deliver/patches/patch-af b/mail/deliver/patches/patch-af
index aab0535623e..f6654334d77 100644
--- a/mail/deliver/patches/patch-af
+++ b/mail/deliver/patches/patch-af
@@ -1,8 +1,8 @@
-$NetBSD: patch-af,v 1.2 2003/07/02 11:32:36 jmmv Exp $
+$NetBSD: patch-af,v 1.3 2004/05/28 01:09:01 wiz Exp $
---- /dev/null Sat Jan 29 20:16:40 2000
-+++ conf/os-netbsd.h Sat Jan 29 20:47:21 2000
-@@ -0,0 +1,27 @@
+--- /dev/null 2003-03-15 16:33:11.000000000 -0700
++++ conf/os-netbsd.h
+@@ -0,0 +1,33 @@
+/*
+ * Deliver configuration for NetBSD.
+ *
@@ -15,7 +15,7 @@ $NetBSD: patch-af,v 1.2 2003/07/02 11:32:36 jmmv Exp $
+/* Then again... */
+
+#undef SAFEPATH
-+#define SAFEPATH "/bin:/usr/bin:@PREFIX@/bin" /* Safe dirs for PATH */
++#define SAFEPATH "/bin:/usr/bin:@PREFIX@/bin" /* Safe dirs for PATH */
+
+#undef SYSV_USRMAIL /* Mailboxes in /usr/mail, as per SysV */
+#define MBX_DIR "/var/mail"
@@ -23,7 +23,13 @@ $NetBSD: patch-af,v 1.2 2003/07/02 11:32:36 jmmv Exp $
+#undef HAS_TIMEZONE /* Has global variable timezone (SVID) */
+#define HAS_MKTIME /* Has mktime() */
+
-+#define HAS_BASENAME /* Has basename() */
++/* We avoid defining HAS_BASENAME because NetBSD's basename(3), as of
++ * revision 1.5 of basename.c (October 17, 2002), returns a pointer to
++ * a copy of the base name in static storage, and uses of basename in
++ * the code are incompatible with that behavior. So we rely instead on
++ * the basename replacement included here.
++ */
++#undef HAS_BASENAME /* Has basename() */
+#define HAS_LONGNAMES /* Long filenames (>14) supported */
+
+/* Note that we don't define HAS_USLEEP, since deliver wants to use it
diff --git a/mail/deliver/patches/patch-ai b/mail/deliver/patches/patch-ai
new file mode 100644
index 00000000000..25347c93f44
--- /dev/null
+++ b/mail/deliver/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1 2004/05/28 01:09:01 wiz Exp $
+
+--- deliver.h.orig 1999-12-01 19:16:21.000000000 -0700
++++ deliver.h 2004-05-27 10:47:11.000000000 -0600
+@@ -97,7 +97,7 @@
+ extern char *eff_group; /* Name of effective gid */
+ extern char *real_group; /* Name of real gid */
+
+-extern FILE *log; /* File to log deliveries */
++extern FILE *logfile; /* File to log deliveries */
+ extern char *t_logfile; /* Temporary file for log */
+ extern char *f_logfile; /* Final file for log */
+
diff --git a/mail/deliver/patches/patch-aj b/mail/deliver/patches/patch-aj
new file mode 100644
index 00000000000..dc3274a455c
--- /dev/null
+++ b/mail/deliver/patches/patch-aj
@@ -0,0 +1,92 @@
+$NetBSD: patch-aj,v 1.1 2004/05/28 01:09:01 wiz Exp $
+
+--- log.c.orig 1999-12-01 19:16:21.000000000 -0700
++++ log.c 2004-05-27 10:54:45.000000000 -0600
+@@ -58,7 +58,7 @@
+ if (!dryrun && exists(f_logfile))
+ {
+ t_logfile = tempfile();
+- if ((log = ftcreate(t_logfile)) == NULL)
++ if ((logfile = ftcreate(t_logfile)) == NULL)
+ syserr("can't create %s", t_logfile);
+ }
+ #endif
+@@ -85,17 +85,17 @@
+ void
+ savelogs()
+ {
+- if (!log && !errlog)
++ if (!logfile && !errlog)
+ return;
+
+ /* If temporary logs contain anything, append them to real logs. */
+
+- if (logsize(log) || logsize(errlog))
++ if (logsize(logfile) || logsize(errlog))
+ {
+ if (log_lock() == 0)
+ {
+ if (t_logfile)
+- applog(&log, f_logfile);
++ applog(&logfile, f_logfile);
+ errdone();
+ if (t_errlogfile)
+ applog(&errlog, f_errlogfile);
+@@ -201,27 +201,27 @@
+ {
+ int a;
+
+- if (!log)
++ if (!logfile)
+ return;
+
+- logstart(log);
++ logstart(logfile);
+
+ if (local_sender)
+- (void) fprintf(log, "local sender: %s\n", local_sender);
++ (void) fprintf(logfile, "local sender: %s\n", local_sender);
+ if (orig_sender)
+- (void) fprintf(log, "original sender: %s\n", orig_sender);
++ (void) fprintf(logfile, "original sender: %s\n", orig_sender);
+ if (boxdelivery)
+- (void) fprintf(log, "mailbox%s:", (ac > 1) ? "es" : "");
++ (void) fprintf(logfile, "mailbox%s:", (ac > 1) ? "es" : "");
+ else
+- (void) fprintf(log, "destination%s:", (ac > 1) ? "s" : "");
++ (void) fprintf(logfile, "destination%s:", (ac > 1) ? "s" : "");
+ for (a = 0; a < ac; ++a)
+- (void) fprintf(log, " \"%s\"", av[a]);
+- (void) fputc('\n', log);
++ (void) fprintf(logfile, " \"%s\"", av[a]);
++ (void) fputc('\n', logfile);
+
+ logstate("delivered", ST_DONE);
+ logstate("failed", ST_ERROR);
+
+- logdone(log);
++ logdone(logfile);
+ }
+
+ /*----------------------------------------------------------------------
+@@ -244,15 +244,15 @@
+ continue;
+
+ if (++dcount == 1)
+- (void) fprintf(log, "%s:", desc);
+- (void) fprintf(log, " %s", d->d_name);
++ (void) fprintf(logfile, "%s:", desc);
++ (void) fprintf(logfile, " %s", d->d_name);
+ if (d->d_class == CL_MBOX)
+- (void) fprintf(log, ":%s", d->d_param);
++ (void) fprintf(logfile, ":%s", d->d_param);
+ else if (d->d_class == CL_PROG)
+- (void) fprintf(log, "|\"%s\"", d->d_param);
++ (void) fprintf(logfile, "|\"%s\"", d->d_param);
+ }
+ if (dcount)
+- (void) fputc('\n', log);
++ (void) fputc('\n', logfile);
+ }
+
+ /*----------------------------------------------------------------------
diff --git a/mail/deliver/patches/patch-ak b/mail/deliver/patches/patch-ak
new file mode 100644
index 00000000000..4b1395f7d96
--- /dev/null
+++ b/mail/deliver/patches/patch-ak
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1 2004/05/28 01:09:01 wiz Exp $
+
+--- main.c.orig 1999-12-01 19:49:22.000000000 -0700
++++ main.c 2004-05-27 10:58:17.000000000 -0600
+@@ -123,7 +123,7 @@
+ char *eff_group = NULL;
+ char *real_group = NULL;
+
+-FILE *log = NULL;
++FILE *logfile = NULL;
+ char *t_logfile = NULL;
+ char *f_logfile = NULL;
+
diff --git a/mail/deliver/patches/patch-al b/mail/deliver/patches/patch-al
new file mode 100644
index 00000000000..987768d9620
--- /dev/null
+++ b/mail/deliver/patches/patch-al
@@ -0,0 +1,26 @@
+$NetBSD: patch-al,v 1.1 2004/05/28 01:09:01 wiz Exp $
+
+--- procs.c.orig 1999-12-01 19:16:21.000000000 -0700
++++ procs.c 2004-05-27 11:00:23.000000000 -0600
+@@ -173,8 +173,8 @@
+
+ (void) fflush(stdout);
+ (void) fflush(stderr);
+- if (log)
+- (void) fflush(log);
++ if (logfile)
++ (void) fflush(logfile);
+ if (errlog)
+ (void) fflush(errlog);
+
+@@ -396,8 +396,8 @@
+ (void) await_child();
+ (void) fflush(stdout);
+ (void) fflush(stderr);
+- if (log)
+- (void) fflush(log);
++ if (logfile)
++ (void) fflush(logfile);
+ if (errlog)
+ (void) fflush(errlog);
+