summaryrefslogtreecommitdiff
path: root/misc/cal
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cal')
-rw-r--r--misc/cal/Makefile29
-rw-r--r--misc/cal/files/md51
-rw-r--r--misc/cal/patches/patch-aa15
-rw-r--r--misc/cal/patches/patch-ab38
-rw-r--r--misc/cal/pkg/COMMENT1
-rw-r--r--misc/cal/pkg/DESCR38
-rw-r--r--misc/cal/pkg/PLIST4
7 files changed, 126 insertions, 0 deletions
diff --git a/misc/cal/Makefile b/misc/cal/Makefile
new file mode 100644
index 00000000000..f28ae2e810e
--- /dev/null
+++ b/misc/cal/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: cal
+# Version required: 3.5
+# Date created: 2 April 1997
+# Whom: Andrey Zakhvatov <andy@icc.surw.chel.su>
+#
+# $Id: Makefile,v 1.1.1.1 1997/10/11 21:54:03 hubertf Exp $
+#
+
+DISTNAME= cal-3.5
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= utils/shell
+
+MAINTAINER= andy@icc.surw.chel.su
+
+WRKSRC= ${WRKDIR}/cal-3.5/source
+MAKEFILE= makefile.unx
+ALL_TARGET= cal
+MAN1= cal.1
+
+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 <bsd.port.mk>
diff --git a/misc/cal/files/md5 b/misc/cal/files/md5
new file mode 100644
index 00000000000..7633bf9ab99
--- /dev/null
+++ b/misc/cal/files/md5
@@ -0,0 +1 @@
+MD5 (cal-3.5.tar.gz) = e947731574da1731bccbe35ad2769a99
diff --git a/misc/cal/patches/patch-aa b/misc/cal/patches/patch-aa
new file mode 100644
index 00000000000..c4e647ffac8
--- /dev/null
+++ b/misc/cal/patches/patch-aa
@@ -0,0 +1,15 @@
+*** 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/misc/cal/patches/patch-ab b/misc/cal/patches/patch-ab
new file mode 100644
index 00000000000..88ce105c56f
--- /dev/null
+++ b/misc/cal/patches/patch-ab
@@ -0,0 +1,38 @@
+*** cal.c.orig Fri Jul 12 04:36:33 1996
+--- cal.c Mon May 12 15:23:51 1997
+***************
+*** 130,135 ****
+--- 130,139 ----
+ /* 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. */
++ #ifdef __FreeBSD__ /* Make FreeBSD compatible with stricmp() */
++ #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,1408 ****
+ strcpy(str, ".");
+ strcpy(str, file);
+ if ((fp = fopen(str, mode)) == NULL) {
+! /* If still not found then look in a lib directory */
+ strcpy(str, "/usr/lib/");
+ strcat(str,file);
+ fp = fopen(str, mode);
+ }
+--- 1405,1416 ----
+ strcpy(str, ".");
+ strcpy(str, file);
+ if ((fp = fopen(str, mode)) == NULL) {
+! /* 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/misc/cal/pkg/COMMENT b/misc/cal/pkg/COMMENT
new file mode 100644
index 00000000000..a09124a2daa
--- /dev/null
+++ b/misc/cal/pkg/COMMENT
@@ -0,0 +1 @@
+Enhanced color version of standard calendar utility
diff --git a/misc/cal/pkg/DESCR b/misc/cal/pkg/DESCR
new file mode 100644
index 00000000000..7df81b92dff
--- /dev/null
+++ b/misc/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/misc/cal/pkg/PLIST b/misc/cal/pkg/PLIST
new file mode 100644
index 00000000000..e8345df9f60
--- /dev/null
+++ b/misc/cal/pkg/PLIST
@@ -0,0 +1,4 @@
+bin/cal
+etc/cal/calcol
+etc/cal/caldat
+man/man1/cal.1.gz