summaryrefslogtreecommitdiff
path: root/time/cal
diff options
context:
space:
mode:
authorwiz <wiz>2000-12-17 23:32:09 +0000
committerwiz <wiz>2000-12-17 23:32:09 +0000
commitf3dbb331710de97891f6bc15c8ea68d932fbd614 (patch)
tree73288b5bb97270ccddd92731e20bbfff8858d306 /time/cal
parent87e1841f0d76da5d8d052223a20708380cdef9d8 (diff)
downloadpkgsrc-f3dbb331710de97891f6bc15c8ea68d932fbd614.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')
-rw-r--r--time/cal/Makefile23
-rw-r--r--time/cal/files/md53
-rw-r--r--time/cal/files/patch-sum4
-rw-r--r--time/cal/patches/patch-aa17
-rw-r--r--time/cal/patches/patch-ab37
-rw-r--r--time/cal/pkg/COMMENT1
-rw-r--r--time/cal/pkg/DESCR38
-rw-r--r--time/cal/pkg/PLIST6
8 files changed, 129 insertions, 0 deletions
diff --git a/time/cal/Makefile b/time/cal/Makefile
new file mode 100644
index 00000000000..68653f82b4f
--- /dev/null
+++ b/time/cal/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/12/17 23:32:09 wiz Exp $
+# FreeBSD Id: Makefile,v 1.5 1997/05/12 06:33:23 max Exp
+#
+
+DISTNAME= cal-3.5
+CATEGORIES= time
+MASTER_SITES= ${MASTER_SITE_SUNSITE:=utils/shell/}
+
+MAINTAINER= packages@netbsd.org
+
+WRKSRC= ${WRKDIR}/cal-3.5/source
+MAKEFILE= makefile.unx
+ALL_TARGET= cal
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/cal ${PREFIX}/bin/cal
+ ${INSTALL_MAN} ${WRKSRC}/cal.1 ${PREFIX}/man/man1/cal.1
+ @${MKDIR} ${PREFIX}/etc/cal
+ @${CHMOD} 0755 ${PREFIX}/etc/cal
+ if [ ! -f ${PREFIX}/etc/cal/calcol ]; then ${INSTALL_DATA} ${WRKDIR}/cal-3.5/cal.col ${PREFIX}/etc/cal/calcol; fi
+ if [ ! -f ${PREFIX}/etc/cal/caldat ]; then ${INSTALL_DATA} ${WRKDIR}/cal-3.5/cal.dat ${PREFIX}/etc/cal/caldat; fi
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/time/cal/files/md5 b/time/cal/files/md5
new file mode 100644
index 00000000000..d7b48652b2e
--- /dev/null
+++ b/time/cal/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/12/17 23:32:09 wiz Exp $
+
+MD5 (cal-3.5.tar.gz) = e947731574da1731bccbe35ad2769a99
diff --git a/time/cal/files/patch-sum b/time/cal/files/patch-sum
new file mode 100644
index 00000000000..986155d9a07
--- /dev/null
+++ b/time/cal/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/12/17 23:32:09 wiz Exp $
+
+MD5 (patch-aa) = 53f6dac90c7025c8e9bf3eccfb163d91
+MD5 (patch-ab) = c844d192312abfd2f8ef91e9d3ba5129
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);
+ }
diff --git a/time/cal/pkg/COMMENT b/time/cal/pkg/COMMENT
new file mode 100644
index 00000000000..a09124a2daa
--- /dev/null
+++ b/time/cal/pkg/COMMENT
@@ -0,0 +1 @@
+Enhanced color version of standard calendar utility
diff --git a/time/cal/pkg/DESCR b/time/cal/pkg/DESCR
new file mode 100644
index 00000000000..7df81b92dff
--- /dev/null
+++ b/time/cal/pkg/DESCR
@@ -0,0 +1,38 @@
+CAL is a nicely-enhanced version of the unix `cal' command.
+Features:
+
+ * Hilights today's date when displaying a monthly calendar.
+
+ * Displays an optional user-definable list of `special day'
+ descriptions (like appointments) to the right of the monthly
+ calendar display. Cal can be set optionally to ignore appointments
+ older than the current day. Next month's appointments are shown if
+ there is room to do so. Multiple appointment data files may also
+ be specified on the commandline.
+
+ * You can specify your own appointment and color definition files on the
+ commandline, or use the defaults.
+
+ * Date descriptions can display "years since" a given year, useful for
+ birthdays and anniversaries.
+
+ * Completely configurable colors -- eight separate color attributes.
+
+ * No ANSI driver needed for colors, and the output may be redirected
+ anywhere, just like the unix version. However, ANSI color control may
+ be enabled (e.g. for unix) with a #define in the source code.
+
+ * Commandline-compatible with unix `cal' command, but with several
+ enhanced switch settings.
+
+Requests, bug reports, suggestions, donations, proposals for
+contract work, and so forth may be sent to:
+
+ Attn: Alex Matulich
+ Unicorn Research Corporation
+ 4621 N. Landmark Drive
+ Orlando, FL 32817-1235
+ USA
+ 407-657-4974 FAX 407-657-6149
+
+or send e-mail to matulich_a@seaa.navsea.navy.mil.
diff --git a/time/cal/pkg/PLIST b/time/cal/pkg/PLIST
new file mode 100644
index 00000000000..bed1f2d57bf
--- /dev/null
+++ b/time/cal/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/12/17 23:32:10 wiz Exp $
+bin/cal
+etc/cal/calcol
+etc/cal/caldat
+@dirrm etc/cal
+man/man1/cal.1.gz