Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2001 00:44:27 +0200 (CEST)
From:      Thierry Thomas <thierry@thomas.as>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31461: New ports: deskutils/mcal & gmcal - a libmcal powered cal replacement
Message-ID:  <20011023224427.69F4C7515@graf.pompo.net>

next in thread | raw e-mail | index | archive | help

>Number:         31461
>Category:       ports
>Synopsis:       New ports: deskutils/mcal & gmcal - a libmcal powered cal replacement
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 23 15:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Sat Sep 22 10:41:40 CEST 2001 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386


	
>Description:
	mcal & gmcal use the libmcal library (see PR ports/31416 ) to access calendars that can be stored in many different formats.

	They are mostly samples and how-to use the MCAL library.

>How-To-Repeat:
	Run the following archives.
	N.B.: the PR ports/31416 should be previously committed.

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/deskutils/mcal
#	/usr/ports/deskutils/mcal/files
#	/usr/ports/deskutils/mcal/files/patch-aa
#	/usr/ports/deskutils/mcal/files/patch-ab
#	/usr/ports/deskutils/mcal/Makefile
#	/usr/ports/deskutils/mcal/pkg-descr
#	/usr/ports/deskutils/mcal/pkg-comment
#	/usr/ports/deskutils/mcal/distinfo
#	/usr/ports/deskutils/mcal/pkg-plist
#
echo c - /usr/ports/deskutils/mcal
mkdir -p /usr/ports/deskutils/mcal > /dev/null 2>&1
echo c - /usr/ports/deskutils/mcal/files
mkdir -p /usr/ports/deskutils/mcal/files > /dev/null 2>&1
echo x - /usr/ports/deskutils/mcal/files/patch-aa
sed 's/^X//' >/usr/ports/deskutils/mcal/files/patch-aa << 'END-of-/usr/ports/deskutils/mcal/files/patch-aa'
X--- Makefile.orig	Thu Dec  2 09:02:04 1999
X+++ Makefile	Tue Oct 23 23:59:32 2001
X@@ -1,21 +1,23 @@
X # $Id: Makefile,v 1.1.1.1 1999/12/02 08:02:04 zircote Exp $
X-CC=gcc
X-FLEX=flex
X-INCLUDE=-I../libmcal
X-CFLAGS=-O0 -Wall -g $(INCLUDE)
X+INCLUDE=-I$(LOCALBASE)/include/mcal
X 
X LIBCAL=mcal
X-LIBDIR=../libmcal
X-
X+LIBDIR=$(LOCALBASE)/lib
X+DESTDIR=$(LOCALBASE)/mcal
X 
X all: mcal 
X 
X mcal: mcal.o 
X-	gcc -Wall -g -o mcal mcal.o -L$(LIBDIR) -l$(LIBCAL) -lcrypt
X+	$(CC) $(CFLAGS) -o mcal mcal.o -L$(LIBDIR) -l$(LIBCAL) -lcrypt
X 
X mcal.o: mcal.c
X-	gcc -Wall -c $(INCLUDE) -g mcal.c 
X+	$(CC) $(CFLAGS) -c $(INCLUDE) mcal.c 
X 
X clean:
X 	rm -f *.o mcal 
X 
X+install: all
X+	strip mcal
X+	mkdir -p $(DESTDIR)
X+	install -m 755 -o 0 -g 0 mcal $(DESTDIR)
X+	install -m 644 -o 0 -g 0 LICENSE $(DESTDIR)
END-of-/usr/ports/deskutils/mcal/files/patch-aa
echo x - /usr/ports/deskutils/mcal/files/patch-ab
sed 's/^X//' >/usr/ports/deskutils/mcal/files/patch-ab << 'END-of-/usr/ports/deskutils/mcal/files/patch-ab'
X--- mcal.c.orig	Mon Mar 27 06:06:04 2000
X+++ mcal.c	Tue Oct 23 23:41:33 2001
X@@ -35,7 +35,15 @@
X 
X #include <stdlib.h>
X #include <stdio.h>
X+
X+#if HAVE_GETOPT_H
X #include <getopt.h>
X+#else
X+extern int	getopt();
X+extern char	*optarg;
X+extern int	optind;
X+#endif
X+
X #include <unistd.h>
X #include <string.h>
X #include <pwd.h>
X@@ -44,7 +52,7 @@
X 
X #define REVON "\033[7m"
X #define REVOFF "\033[27m"
X-#define MCAL_VER "0.3"
X+#define MCAL_VER "0.3-FreeBSD"
X 
X CALSTREAM *stream;
X int events[13][32];
X@@ -75,20 +83,7 @@
X 
X   while (1)
X     {
X-      int option_index = 0;
X-      static struct option long_options[] =
X-      {
X-	{"folder", 1, 0, 'f'},
X-	{"user", 0, 0, 'u'},
X-	{"password", 0, 0, 'p'},
X-	{"store", 0, 0, 's'},
X-	{"version", 0, 0, 'v'},
X-	{"help", 0, 0, 'h'},
X-	{0, 0, 0, 0}
X-      };
X-
X-      c = getopt_long (argc, argv, "f:upsvh",
X-		       long_options, &option_index);
X+      c = getopt (argc, argv, "f:upsvh");
X       if (c == -1)
X 	break;
X 
X@@ -109,7 +104,7 @@
X 	   case 'v':
X 	 printf("MCAL Version %s\n",MCAL_VER);
X 	 printf("\tLicensed Under GPL\n");
X-	 printf("\thttp://mcal.chek.com\n");
X+	 printf("\thttp://mcal.chek.com/\n");
X 	 printf("\tMark Musone musone@edgeglobal.com\n\n");
X  	 exit(0);
X 	 break;
X@@ -118,7 +113,7 @@
X 	 printf("\t-f foldername\n");
X 	 printf("\tuse calendar from specified folder or server.\n");
X 	 printf("\tfolder names can be standard calendar folders:\n");
X-	 printf("\t{servername/protocol}foldername\n\n");
X+	 printf("\t{servername/protocol}foldername - e.g.: -f {/mstore}\n\n");
X 	 printf("\t-u prompt for a username. uses current username if flag not set\n");
X 	 printf("\t-p dont prompt for a password. sends a blank password if flag set\n");
X 	 printf("\t-s store event in the given YYYYMMDD\n");
END-of-/usr/ports/deskutils/mcal/files/patch-ab
echo x - /usr/ports/deskutils/mcal/Makefile
sed 's/^X//' >/usr/ports/deskutils/mcal/Makefile << 'END-of-/usr/ports/deskutils/mcal/Makefile'
X# New ports collection makefile for:	mcal
X# Date created:		Mon Oct 15 14:13:23 GMT 2001
X# Whom:			thierry@thomas.as
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mcal
XPORTVERSION=	0.3
XCATEGORIES=	deskutils
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	libmcal
X
XMAINTAINER=	thierry@thomas.as
X
XLIB_DEPENDS=	mcal.0:${PORTSDIR}/misc/libmcal
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
Xpost-install:
X	@${ECHO} "*****************************************************************************"
X	@${ECHO} ""
X	@${ECHO} " mcal has been installed in ${PREFIX}/mcal."
X	@${ECHO} ""
X	@${ECHO} "*****************************************************************************"
X
X.include <bsd.port.mk>
END-of-/usr/ports/deskutils/mcal/Makefile
echo x - /usr/ports/deskutils/mcal/pkg-descr
sed 's/^X//' >/usr/ports/deskutils/mcal/pkg-descr << 'END-of-/usr/ports/deskutils/mcal/pkg-descr'
XMcal is a program based on the libmcal library that can create your
Xcalendar and appointment either via mstore or ICAP protocol drivers.
XYou may display these calendars with gmcal (see deskutils/gmcal).
X
XWWW: http://mcal.chek.com/
END-of-/usr/ports/deskutils/mcal/pkg-descr
echo x - /usr/ports/deskutils/mcal/pkg-comment
sed 's/^X//' >/usr/ports/deskutils/mcal/pkg-comment << 'END-of-/usr/ports/deskutils/mcal/pkg-comment'
XA libmcal powered cal replacement
END-of-/usr/ports/deskutils/mcal/pkg-comment
echo x - /usr/ports/deskutils/mcal/distinfo
sed 's/^X//' >/usr/ports/deskutils/mcal/distinfo << 'END-of-/usr/ports/deskutils/mcal/distinfo'
XMD5 (mcal-0.3.tar.gz) = 06e7a54ce84752194ce4b6f93fca67d6
END-of-/usr/ports/deskutils/mcal/distinfo
echo x - /usr/ports/deskutils/mcal/pkg-plist
sed 's/^X//' >/usr/ports/deskutils/mcal/pkg-plist << 'END-of-/usr/ports/deskutils/mcal/pkg-plist'
Xmcal/mcal
Xmcal/LICENSE
X@dirrm mcal
END-of-/usr/ports/deskutils/mcal/pkg-plist
exit


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/deskutils/gmcal
#	/usr/ports/deskutils/gmcal/Makefile
#	/usr/ports/deskutils/gmcal/pkg-descr
#	/usr/ports/deskutils/gmcal/pkg-comment
#	/usr/ports/deskutils/gmcal/distinfo
#	/usr/ports/deskutils/gmcal/files
#	/usr/ports/deskutils/gmcal/files/patch-aa
#	/usr/ports/deskutils/gmcal/files/patch-ab
#	/usr/ports/deskutils/gmcal/pkg-plist
#
echo c - /usr/ports/deskutils/gmcal
mkdir -p /usr/ports/deskutils/gmcal > /dev/null 2>&1
echo x - /usr/ports/deskutils/gmcal/Makefile
sed 's/^X//' >/usr/ports/deskutils/gmcal/Makefile << 'END-of-/usr/ports/deskutils/gmcal/Makefile'
X# New ports collection makefile for:	gmcal
X# Date created:		Mon Oct 15 09:09:46 GMT 2001
X# Whom:			thierry@thomas.as
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gmcal
XPORTVERSION=	0.0.1
XCATEGORIES=	deskutils
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	libmcal
X
XMAINTAINER=	thierry@thomas.as
X
XLIB_DEPENDS=	mcal.0:${PORTSDIR}/misc/libmcal
XRUN_DEPENDS=	${PREFIX}/mcal/mcal:${PORTSDIR}/deskutils/mcal
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XUSE_GTK=	yes
X
XSTRIP=		/usr/bin/strip
X
Xpost-extract:
X	${CHMOD} a-x ${WRKSRC}/*
X
Xpost-build:
X	${STRIP} ${WRKSRC}/gmcal
X
Xdo-install:
X	${CP} ${WRKSRC}/gmcal ${PREFIX}/mcal
X
Xpost-install:
X	@${ECHO} "*****************************************************************************"
X	@${ECHO} ""
X	@${ECHO} " gmcal has been installed in ${PREFIX}/mcal."
X	@${ECHO} ""
X	@${ECHO} "*****************************************************************************"
X
X.include <bsd.port.mk>
END-of-/usr/ports/deskutils/gmcal/Makefile
echo x - /usr/ports/deskutils/gmcal/pkg-descr
sed 's/^X//' >/usr/ports/deskutils/gmcal/pkg-descr << 'END-of-/usr/ports/deskutils/gmcal/pkg-descr'
XThis is a very early release of a GTK+ app that can display your
Xcalendar and appointment either via mstore or ICAP protocol drivers.
XYou may create these calendars with mcal (see deskutils/mcal).
X
XThe use of this should only be considered for testing and development.
XIt still has much work left before it is a stable production application.
X
XWWW: http://mcal.chek.com/
END-of-/usr/ports/deskutils/gmcal/pkg-descr
echo x - /usr/ports/deskutils/gmcal/pkg-comment
sed 's/^X//' >/usr/ports/deskutils/gmcal/pkg-comment << 'END-of-/usr/ports/deskutils/gmcal/pkg-comment'
XGMCAL is a GTK+ frontend for the libmcal package
END-of-/usr/ports/deskutils/gmcal/pkg-comment
echo x - /usr/ports/deskutils/gmcal/distinfo
sed 's/^X//' >/usr/ports/deskutils/gmcal/distinfo << 'END-of-/usr/ports/deskutils/gmcal/distinfo'
XMD5 (gmcal-0.0.1.tar.gz) = 9ed12226ec83512a0fe64af05eafd3d1
END-of-/usr/ports/deskutils/gmcal/distinfo
echo c - /usr/ports/deskutils/gmcal/files
mkdir -p /usr/ports/deskutils/gmcal/files > /dev/null 2>&1
echo x - /usr/ports/deskutils/gmcal/files/patch-aa
sed 's/^X//' >/usr/ports/deskutils/gmcal/files/patch-aa << 'END-of-/usr/ports/deskutils/gmcal/files/patch-aa'
X--- Makefile.orig	Fri Dec 17 17:59:16 1999
X+++ Makefile	Mon Oct 15 22:59:33 2001
X@@ -1,7 +1,11 @@
X # 	$Id: Makefile,v 1.1.1.1 1999/12/02 08:00:57 zircote Exp $
X 
X+INCLUDE=-I$(LOCALBASE)/include/mcal -I/usr/include/rpcsvc/
X+
X+all: gmcal
X+
X gmcal: gmcal.c 
X-	gcc -I../libmcal -Wall -g gmcal.c -o gmcal -L../libmcal -lmcal -lcrypt `gtk-config --cflags` `gtk-config --libs`
X+	$(CC) $(INCLUDE) $(CFLAGS) gmcal.c -o gmcal -L$(LOCALBASE)/lib -lmcal -lcrypt `$(GTK_CONFIG) --cflags` `$(GTK_CONFIG) --libs`
X clean: 
X 	rm gmcal
X 	
END-of-/usr/ports/deskutils/gmcal/files/patch-aa
echo x - /usr/ports/deskutils/gmcal/files/patch-ab
sed 's/^X//' >/usr/ports/deskutils/gmcal/files/patch-ab << 'END-of-/usr/ports/deskutils/gmcal/files/patch-ab'
X--- gmcal.c.orig	Fri Dec 17 17:59:16 1999
X+++ gmcal.c	Mon Oct 15 23:56:27 2001
X@@ -8,9 +8,15 @@
X 
X #include <string.h>
X #include <pwd.h>
X+#if HAVE_GETOPT_H
X #include <getopt.h>
X+#else
X+extern	int	getopt();
X+extern	char	*optarg;
X+extern	int	optind;
X+#endif
X+
X 
X-#include <malloc.h>
X #include <gtk/gtk.h>
X #include <gtk/gtkcalendar.h>
X #include <mcal.h>
X@@ -177,15 +183,8 @@
X     while (1)
X 	    {
X 	      int option_index = 0;
X-	      static struct option long_options[] =
X-	      {
X-			{"version", 0, 0, 'v'},
X-			{"help", 0, 0, 'h'},
X-			{0, 0, 0, 0}
X-      	  };
X 
X-        c = getopt_long (argc, argv, ":hv",
X-  		       long_options, &option_index);
X+        c = getopt (argc, argv, ":hv");
X         if (c == -1)
X   	break;
X 
END-of-/usr/ports/deskutils/gmcal/files/patch-ab
echo x - /usr/ports/deskutils/gmcal/pkg-plist
sed 's/^X//' >/usr/ports/deskutils/gmcal/pkg-plist << 'END-of-/usr/ports/deskutils/gmcal/pkg-plist'
Xmcal/gmcal
END-of-/usr/ports/deskutils/gmcal/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011023224427.69F4C7515>