diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2002-03-30 11:09:01 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2002-03-30 11:09:01 +0000 |
commit | 0eeb6d5984f4535fa7dae0897799ee7a12afeeee (patch) | |
tree | eeef866a33c81cebdd3f1f049e7ff2f118579cd0 /deskutils/mcal | |
parent | 6c375d5787ea28b7f2ad24b8706d6b3df2ead700 (diff) | |
download | ports-0eeb6d5984f4535fa7dae0897799ee7a12afeeee.tar.gz ports-0eeb6d5984f4535fa7dae0897799ee7a12afeeee.zip |
Notes
Diffstat (limited to 'deskutils/mcal')
-rw-r--r-- | deskutils/mcal/Makefile | 27 | ||||
-rw-r--r-- | deskutils/mcal/distinfo | 1 | ||||
-rw-r--r-- | deskutils/mcal/files/patch-aa | 34 | ||||
-rw-r--r-- | deskutils/mcal/files/patch-ab | 67 | ||||
-rw-r--r-- | deskutils/mcal/pkg-comment | 1 | ||||
-rw-r--r-- | deskutils/mcal/pkg-descr | 5 | ||||
-rw-r--r-- | deskutils/mcal/pkg-plist | 3 |
7 files changed, 138 insertions, 0 deletions
diff --git a/deskutils/mcal/Makefile b/deskutils/mcal/Makefile new file mode 100644 index 000000000000..ca2ff3595ea4 --- /dev/null +++ b/deskutils/mcal/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: mcal +# Date created: Mon Oct 15 14:13:23 GMT 2001 +# Whom: thierry@pompo.net +# +# $FreeBSD$ +# + +PORTNAME= mcal +PORTVERSION= 0.3 +CATEGORIES= deskutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= libmcal + +MAINTAINER= thierry@pompo.net + +LIB_DEPENDS= mcal.0:${PORTSDIR}/misc/libmcal + +WRKSRC= ${WRKDIR}/${PORTNAME} + +post-install: + @${ECHO} "*****************************************************************************" + @${ECHO} "" + @${ECHO} " mcal has been installed in ${PREFIX}/mcal." + @${ECHO} "" + @${ECHO} "*****************************************************************************" + +.include <bsd.port.mk> diff --git a/deskutils/mcal/distinfo b/deskutils/mcal/distinfo new file mode 100644 index 000000000000..c55d9409de47 --- /dev/null +++ b/deskutils/mcal/distinfo @@ -0,0 +1 @@ +MD5 (mcal-0.3.tar.gz) = 06e7a54ce84752194ce4b6f93fca67d6 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"); diff --git a/deskutils/mcal/pkg-comment b/deskutils/mcal/pkg-comment new file mode 100644 index 000000000000..92ddd0d2dd28 --- /dev/null +++ b/deskutils/mcal/pkg-comment @@ -0,0 +1 @@ +A libmcal powered cal replacement diff --git a/deskutils/mcal/pkg-descr b/deskutils/mcal/pkg-descr new file mode 100644 index 000000000000..3aa74f7be12a --- /dev/null +++ b/deskutils/mcal/pkg-descr @@ -0,0 +1,5 @@ +Mcal is a program based on the libmcal library that can create your +calendar and appointment either via mstore or ICAP protocol drivers. +You may display these calendars with gmcal (see deskutils/gmcal). + +WWW: http://mcal.chek.com/ diff --git a/deskutils/mcal/pkg-plist b/deskutils/mcal/pkg-plist new file mode 100644 index 000000000000..8a141ca2d02b --- /dev/null +++ b/deskutils/mcal/pkg-plist @@ -0,0 +1,3 @@ +mcal/mcal +mcal/LICENSE +@dirrm mcal |