summaryrefslogtreecommitdiff
path: root/time/cal/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-12-17 23:32:09 +0000
committerwiz <wiz@pkgsrc.org>2000-12-17 23:32:09 +0000
commitdf7948804e18401baeb9f3f2ca9b7ded3f4f66c7 (patch)
tree73288b5bb97270ccddd92731e20bbfff8858d306 /time/cal/patches
parent389033175de2a6d1922929cf5b7598f2da56932a (diff)
downloadpkgsrc-df7948804e18401baeb9f3f2ca9b7ded3f4f66c7.tar.gz
New category: time. Move many packages here:
misc/cal, misc/cardboard-schedule, misc/ical, misc/plan, misc/py-mxDateTime, misc/remind, sysutils/logtime, and 19 more from x11.
Diffstat (limited to 'time/cal/patches')
-rw-r--r--time/cal/patches/patch-aa17
-rw-r--r--time/cal/patches/patch-ab37
2 files changed, 54 insertions, 0 deletions
diff --git a/time/cal/patches/patch-aa b/time/cal/patches/patch-aa
new file mode 100644
index 00000000000..b60ee237228
--- /dev/null
+++ b/time/cal/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/12/17 23:32:09 wiz Exp $
+
+*** makefile.unx.orig Tue Mar 5 06:36:27 1996
+--- makefile.unx Mon May 12 15:23:42 1997
+***************
+*** 10,15 ****
+--- 10,19 ----
+ CC=gcc
+ CFLAGS=-O -Wall -DUNIX -DUSE_REMINDER
+
++ .ifdef PREFIX
++ CFLAGS+=-DPREFIX="\"${PREFIX}\""
++ .endif
++
+ BINDIR=/usr/bin
+ MANDIR=/usr/man
+
diff --git a/time/cal/patches/patch-ab b/time/cal/patches/patch-ab
new file mode 100644
index 00000000000..538f453a3b7
--- /dev/null
+++ b/time/cal/patches/patch-ab
@@ -0,0 +1,37 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/12/17 23:32:10 wiz Exp $
+
+--- cal.c.orig Thu Jul 11 21:36:33 1996
++++ cal.c Thu Oct 23 14:37:49 1997
+@@ -122,6 +122,7 @@
+ #include <ctype.h>
+ #include <string.h>
+ #include <sys/types.h>
++#include <sys/param.h> /*NetBSD*/
+
+ #ifndef max
+ #define max(a,b) (((a)>(b))?(a):(b))
+@@ -130,6 +131,10 @@
+ /* Note: Other unix systems may require this next re-define to work. */
+ /* I believe that SCO is one such system. Please send in any fixes */
+ /* needed to get your system running. */
++#if (defined(BSD) && BSD >= 199306)
++#define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
++#endif
++
+ #ifdef __linux__ /* Make linux compatible with stricmp() */
+ #define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
+ #endif
+@@ -1401,8 +1406,12 @@
+ strcpy(str, ".");
+ strcpy(str, file);
+ if ((fp = fopen(str, mode)) == NULL) {
+- /* If still not found then look in a lib directory */
++ /* If still not found then look in config directory */
++#ifdef PREFIX
++ strcpy(str, PREFIX "/etc/cal/");
++#else
+ strcpy(str, "/usr/lib/");
++#endif
+ strcat(str,file);
+ fp = fopen(str, mode);
+ }