aboutsummaryrefslogtreecommitdiff
path: root/deskutils/mcal/files
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-03-30 11:09:01 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-03-30 11:09:01 +0000
commit0eeb6d5984f4535fa7dae0897799ee7a12afeeee (patch)
treeeeef866a33c81cebdd3f1f049e7ff2f118579cd0 /deskutils/mcal/files
parent6c375d5787ea28b7f2ad24b8706d6b3df2ead700 (diff)
downloadports-0eeb6d5984f4535fa7dae0897799ee7a12afeeee.tar.gz
ports-0eeb6d5984f4535fa7dae0897799ee7a12afeeee.zip
Notes
Diffstat (limited to 'deskutils/mcal/files')
-rw-r--r--deskutils/mcal/files/patch-aa34
-rw-r--r--deskutils/mcal/files/patch-ab67
2 files changed, 101 insertions, 0 deletions
diff --git a/deskutils/mcal/files/patch-aa b/deskutils/mcal/files/patch-aa
new file mode 100644
index 000000000000..dac031d88dfb
--- /dev/null
+++ b/deskutils/mcal/files/patch-aa
@@ -0,0 +1,34 @@
+--- Makefile.orig Thu Dec 2 09:02:04 1999
++++ Makefile Tue Oct 23 23:59:32 2001
+@@ -1,21 +1,23 @@
+ # $Id: Makefile,v 1.1.1.1 1999/12/02 08:02:04 zircote Exp $
+-CC=gcc
+-FLEX=flex
+-INCLUDE=-I../libmcal
+-CFLAGS=-O0 -Wall -g $(INCLUDE)
++INCLUDE=-I$(LOCALBASE)/include/mcal
+
+ LIBCAL=mcal
+-LIBDIR=../libmcal
+-
++LIBDIR=$(LOCALBASE)/lib
++DESTDIR=$(LOCALBASE)/mcal
+
+ all: mcal
+
+ mcal: mcal.o
+- gcc -Wall -g -o mcal mcal.o -L$(LIBDIR) -l$(LIBCAL) -lcrypt
++ $(CC) $(CFLAGS) -o mcal mcal.o -L$(LIBDIR) -l$(LIBCAL) -lcrypt
+
+ mcal.o: mcal.c
+- gcc -Wall -c $(INCLUDE) -g mcal.c
++ $(CC) $(CFLAGS) -c $(INCLUDE) mcal.c
+
+ clean:
+ rm -f *.o mcal
+
++install: all
++ strip mcal
++ mkdir -p $(DESTDIR)
++ install -m 755 -o 0 -g 0 mcal $(DESTDIR)
++ install -m 644 -o 0 -g 0 LICENSE $(DESTDIR)
diff --git a/deskutils/mcal/files/patch-ab b/deskutils/mcal/files/patch-ab
new file mode 100644
index 000000000000..e5698d725624
--- /dev/null
+++ b/deskutils/mcal/files/patch-ab
@@ -0,0 +1,67 @@
+--- mcal.c.orig Mon Mar 27 06:06:04 2000
++++ mcal.c Tue Oct 23 23:41:33 2001
+@@ -35,7 +35,15 @@
+
+ #include <stdlib.h>
+ #include <stdio.h>
++
++#if HAVE_GETOPT_H
+ #include <getopt.h>
++#else
++extern int getopt();
++extern char *optarg;
++extern int optind;
++#endif
++
+ #include <unistd.h>
+ #include <string.h>
+ #include <pwd.h>
+@@ -44,7 +52,7 @@
+
+ #define REVON "\033[7m"
+ #define REVOFF "\033[27m"
+-#define MCAL_VER "0.3"
++#define MCAL_VER "0.3-FreeBSD"
+
+ CALSTREAM *stream;
+ int events[13][32];
+@@ -75,20 +83,7 @@
+
+ while (1)
+ {
+- int option_index = 0;
+- static struct option long_options[] =
+- {
+- {"folder", 1, 0, 'f'},
+- {"user", 0, 0, 'u'},
+- {"password", 0, 0, 'p'},
+- {"store", 0, 0, 's'},
+- {"version", 0, 0, 'v'},
+- {"help", 0, 0, 'h'},
+- {0, 0, 0, 0}
+- };
+-
+- c = getopt_long (argc, argv, "f:upsvh",
+- long_options, &option_index);
++ c = getopt (argc, argv, "f:upsvh");
+ if (c == -1)
+ break;
+
+@@ -109,7 +104,7 @@
+ case 'v':
+ printf("MCAL Version %s\n",MCAL_VER);
+ printf("\tLicensed Under GPL\n");
+- printf("\thttp://mcal.chek.com\n");
++ printf("\thttp://mcal.chek.com/\n");
+ printf("\tMark Musone musone@edgeglobal.com\n\n");
+ exit(0);
+ break;
+@@ -118,7 +113,7 @@
+ printf("\t-f foldername\n");
+ printf("\tuse calendar from specified folder or server.\n");
+ printf("\tfolder names can be standard calendar folders:\n");
+- printf("\t{servername/protocol}foldername\n\n");
++ printf("\t{servername/protocol}foldername - e.g.: -f {/mstore}\n\n");
+ printf("\t-u prompt for a username. uses current username if flag not set\n");
+ printf("\t-p dont prompt for a password. sends a blank password if flag set\n");
+ printf("\t-s store event in the given YYYYMMDD\n");