summaryrefslogtreecommitdiffstats
path: root/misc/libmcal
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2001-11-24 15:19:53 +0000
committerdirk <dirk@FreeBSD.org>2001-11-24 15:19:53 +0000
commitda76ca5cc5bf439cd4bce358a8c249ed1bb7b957 (patch)
treea0fcd5f6c1e0151d8babbbfdb2c495bce122a571 /misc/libmcal
parent38baac923b516dc8951c80aeb6b4d23f07ef1b02 (diff)
downloadFreeBSD-ports-da76ca5cc5bf439cd4bce358a8c249ed1bb7b957.zip
FreeBSD-ports-da76ca5cc5bf439cd4bce358a8c249ed1bb7b957.tar.gz
Add libmcal - a Modular Calendar Access Library
PR: ports/31416 Submitted by: Thierry Thomas <thierry@thomas.as>
Diffstat (limited to 'misc/libmcal')
-rw-r--r--misc/libmcal/Makefile80
-rw-r--r--misc/libmcal/distinfo2
-rw-r--r--misc/libmcal/files/patch-aa15
-rw-r--r--misc/libmcal/files/patch-ab32
-rw-r--r--misc/libmcal/files/patch-ac83
-rw-r--r--misc/libmcal/pkg-comment1
-rw-r--r--misc/libmcal/pkg-descr9
-rw-r--r--misc/libmcal/pkg-plist19
8 files changed, 241 insertions, 0 deletions
diff --git a/misc/libmcal/Makefile b/misc/libmcal/Makefile
new file mode 100644
index 0000000..795c511
--- /dev/null
+++ b/misc/libmcal/Makefile
@@ -0,0 +1,80 @@
+# New ports collection makefile for: libmcal
+# Date created: Sat Oct 13 08:45:04 GMT 2001
+# Whom: thierry@thomas.as
+#
+# $FreeBSD$
+#
+
+PORTNAME= libmcal
+PORTVERSION= 0.6
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} mcaldrivers-0.8.tar.gz
+
+MAINTAINER= thierry@thomas.as
+
+LIB_DEPENDS= ltdl.1:${PORTSDIR}/devel/libtool
+
+HAS_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_GMAKE= yes
+CONFIGURE_ARGS= --with-mstore --with-icap \
+ --prefix=${PREFIX} --exec-prefix=${PREFIX}
+INSTALLS_SHLIB= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+WRKSRCDRV= ${WRKDIR}/mcal-drivers
+
+DOCS= CHANGELOG FAQ-MCAL FEATURE-IMPLEMENTATION FUNCTION-REF.html \
+ HOW-TO-MCAL LICENSE README mstore/README.mstore
+
+post-extract:
+ ${CP} -pR ${WRKSRCDRV}/mstore ${WRKSRC}
+ ${CP} -pR ${WRKSRCDRV}/icap ${WRKSRC}
+ ${MV} ${WRKSRC}/mstore/Makefile ${WRKSRC}/mstore/Makefile.dist
+ ${MV} ${WRKSRC}/mstore/Makefile.FreeBSD ${WRKSRC}/mstore/Makefile
+ ${PERL} -pi -e "s:/etc/mpasswd:${PREFIX}/etc/mpasswd:" ${WRKSRC}/mstore/mstore.c
+ ${MV} ${WRKSRC}/icap/Makefile ${WRKSRC}/icap/Makefile.dist
+ ${MV} ${WRKSRC}/icap/Makefile.FreeBSD ${WRKSRC}/icap/Makefile
+ ${MV} ${WRKSRC}/configure ${WRKSRC}/configure.dist
+ ${MV} ${WRKSRC}/configure.FreeBSD ${WRKSRC}/configure
+ ${CHMOD} u+x ${WRKSRC}/configure
+ ${MV} ${WRKSRC}/mstore/README ${WRKSRC}/mstore/README.mstore
+
+pre-configure:
+ @${ECHO_MSG} "===> Building the driver mstore"
+ cd ${WRKSRC}/mstore ; \
+ ${MAKE}
+ @${ECHO_MSG} "===> Building the driver icap"
+ cd ${WRKSRC}/icap ; \
+ ${MAKE}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${PERL} -pi -e "s:/etc/mpasswd:${LOCALBASE}/etc/mpasswd:" ${WRKSRC}/FAQ-MCAL
+ ${PERL} -pi -e "s:/etc/mpasswd:${LOCALBASE}/etc/mpasswd:" ${WRKSRC}/mstore/README.mstore
+ ${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+ @${ECHO} "*****************************************************************************"
+ @${ECHO} " libmcap has been installed. In order to end its configuration,"
+ @${ECHO} " please enter the following commands:"
+ @${ECHO} ""
+ @${ECHO} " mkdir /var/calendar"
+ @${ECHO} " chmod 1777 /var/calendar"
+ @${ECHO} ""
+ @${ECHO} " To work with the mstore driver, using the Apache's htpasswd utility,"
+ @${ECHO} " you may create the mpasswd file with the command below:"
+ @${ECHO} ""
+ @${ECHO} " htpasswd -c ${LOCALBASE}/etc/mpasswd username"
+ @${ECHO} ""
+ @${ECHO} " To add or update this file you would execute as follows:"
+ @${ECHO} ""
+ @${ECHO} " htpasswd ${LOCALBASE}/etc/mpasswd username"
+ @${ECHO} "*****************************************************************************"
+
+.include <bsd.port.mk>
diff --git a/misc/libmcal/distinfo b/misc/libmcal/distinfo
new file mode 100644
index 0000000..5177364
--- /dev/null
+++ b/misc/libmcal/distinfo
@@ -0,0 +1,2 @@
+MD5 (libmcal-0.6.tar.gz) = b56ff2c9e989d1018f143e0f40290e94
+MD5 (mcaldrivers-0.8.tar.gz) = c9a005847d99585c0a7e46bb903ee9f4
diff --git a/misc/libmcal/files/patch-aa b/misc/libmcal/files/patch-aa
new file mode 100644
index 0000000..1f8c195
--- /dev/null
+++ b/misc/libmcal/files/patch-aa
@@ -0,0 +1,15 @@
+--- mstore/Makefile.orig Sat Feb 5 06:48:22 2000
++++ mstore/Makefile Mon Oct 15 12:05:54 2001
+@@ -1,9 +1,8 @@
+ # $Id: Makefile.FreeBSD,v 1.1 2000/02/05 05:48:22 mayo Exp $
+
+-CC=gcc
+-FLEX=flex
+-INCLUDE=-I..
+-CFLAGS=-O0 -Wall -g $(INCLUDE)
++FLEX=/usr/bin/flex
++INCLUDE=-I.. -I/usr/include/rpcsvc/
++CFLAGS+=-Wall $(INCLUDE)
+ ALLOBJS=mstore.o
+ TARGET=mstore_driver.o
+
diff --git a/misc/libmcal/files/patch-ab b/misc/libmcal/files/patch-ab
new file mode 100644
index 0000000..a8c0243
--- /dev/null
+++ b/misc/libmcal/files/patch-ab
@@ -0,0 +1,32 @@
+--- icap/Makefile.orig Sat Feb 5 06:50:57 2000
++++ icap/Makefile Tue Oct 16 22:54:11 2001
+@@ -1,10 +1,9 @@
+ #$Id: Makefile.FreeBSD,v 1.1 2000/02/05 05:50:57 mayo Exp $
+
+-CC=gcc
+-FLEX=flex
++FLEX=/usr/bin/flex
+ INCLUDE=-I..
+-CFLAGS=-O0 -Wall -g $(INCLUDE)
+-ALLOBJS=icap.o icaproutines.o lex.ical_yy.o lex.icap_yy.o
++CFLAGS+=-Wall $(INCLUDE)
++ALLOBJS=icap.o icaproutines.o lex.icap_yy.o
+ TARGET=icap_driver.o
+
+ all: $(TARGET)
+@@ -14,14 +13,11 @@
+ ld -r -o $(TARGET) $(ALLOBJS)
+ touch bootstrap.in
+
+-lex.ical_yy.c: icalscanner.lex
+- $(FLEX) icalscanner.lex
+-
+ lex.icap_yy.c: icapscanner.lex
+ $(FLEX) icapscanner.lex
+
+ clean:
+- rm -f $(ALLOBJS) $(TARGET) lex.ical_yy.c lex.icap_yy.c bootstrap.in
++ rm -f $(ALLOBJS) $(TARGET) lex.icap_yy.c bootstrap.in
+
+ dep: depend
+
diff --git a/misc/libmcal/files/patch-ac b/misc/libmcal/files/patch-ac
new file mode 100644
index 0000000..02c433b
--- /dev/null
+++ b/misc/libmcal/files/patch-ac
@@ -0,0 +1,83 @@
+--- Makefile.in.orig Tue Jan 25 04:08:10 2000
++++ Makefile.in Sun Oct 21 23:22:16 2001
+@@ -1,45 +1,63 @@
+-# $Id: Makefile.in,v 1.2 2000/01/25 03:08:10 markie Exp $
+-
+-CC=gcc
+-FLEX=flex
++# $Id: Makefile.in,v 1.5 2001/07/03 16:03:19 rufustfirefly Exp $
+
++FLEX=/usr/bin/flex
+
+ @BOOTSTRAP@
+
+ INCLUDE=@DRIVER_INCDIR@ ${OTHERINCDIR} -I.
+
+-CFLAGS=-O0 -Wall -g ${INCLUDE}
++CFLAGS+=-Wall ${INCLUDE} ${OTHER_CFLAGS} -D_REENTRANT
+
+ LIBOBJS=mcal.o datetime.o lex.ical_yy.o icalroutines.o cal_misc.o $(DRIVER_LIBS)
+ ALLOBJS=${LIBOBJS} tester.o
+ OTHERLIBS=${OTHERLIBS}
+ OTHERLIBDIR=${OTHERLIBDIR}
+
++SHLIBLDFLAGS=-shared
++REV=0.6
++
+ LIBCAL=libmcal.a
++LIBCAL_SO=libmcal.so
+
+-all: libmcal.a
++all: $(LIBCAL) $(LIBCAL_SO).$(REV)
+
+-install: libmcal.a
+- mkdir /usr/local/mcal
+- mkdir /usr/local/mcal/lib
+- mkdir /usr/local/mcal/include
+- cp libmcal.a /usr/local/mcal/lib
+- cp mcal.h bool.h datetime.h drivers.h /usr/local/mcal/include
+-libmcal.a: $(LIBOBJS)
++install: all
++ mkdir -p ${DESTDIR}@prefix@/lib/
++ mkdir -p ${DESTDIR}@prefix@/include/mcal/
++ rm -f ${DESTDIR}@prefix@/lib/$(LIBCAL_SO)
++ install -m 755 -o 0 -g 0 $(LIBCAL) $(LIBCAL_SO).0 ${DESTDIR}@prefix@/lib
++ ln -s ${DESTDIR}@prefix@/lib/$(LIBCAL_SO).0 ${DESTDIR}@prefix@/lib/$(LIBCAL_SO)
++ install -m 644 -o 0 -g 0 \
++ mcal.h bool.h datetime.h drivers.h cal_misc.h icalroutines.h \
++ ${DESTDIR}@prefix@/include/mcal/
++ touch installed
++
++install-strip: installed
++ strip ${DESTDIR}@prefix@/lib/$(LIBCAL_SO).$(REV)
++ strip ${DESTDIR}@prefix@/lib/$(LIBCAL)
++
++$(LIBCAL): $(LIBOBJS)
+ rm -f $(LIBCAL)
+ ar r $(LIBCAL) $(LIBOBJS)
+
++$(LIBCAL_SO).$(REV): $(LIBOBJS)
++ rm -f $@
++ $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(LIBOBJS)
++ strip --strip-unneeded $@
++ rm -f $(LIBCAL_SO).0
++ ln -s $@ $(LIBCAL_SO).0
++
+ lex.ical_yy.c: icalscanner.lex
+ $(FLEX) $<
+
+-tester: tester.o libmcal.a
+- gcc -Wall -g -o tester tester.o $(LIBCAL) -lcrypt
++tester: tester.o $(LIBCAL)
++ $(CC) $(CFLAGS) -Wall -g -o tester tester.o $(LIBCAL) -lcrypt
+
+ clean:
+- rm -f *.o $(LIBCAL) tester
++ rm -f *.o *~ core $(LIBCAL) $(LIBCAL_SO) tester installed
+
+ distclean: clean
+- rm -f config.cache config.status config.log Makefile drivers.c drivers.h bootstrap.in
++ rm -f config.cache config.status config.log Makefile drivers.c drivers.h bootstrap.in
+
+
+ dep: depend
diff --git a/misc/libmcal/pkg-comment b/misc/libmcal/pkg-comment
new file mode 100644
index 0000000..41e407b
--- /dev/null
+++ b/misc/libmcal/pkg-comment
@@ -0,0 +1 @@
+Modular Calendar Access Library
diff --git a/misc/libmcal/pkg-descr b/misc/libmcal/pkg-descr
new file mode 100644
index 0000000..726e922
--- /dev/null
+++ b/misc/libmcal/pkg-descr
@@ -0,0 +1,9 @@
+Mcal stands for Modular Calendar Access Library. libmcal is a C library
+for accessing calendars.
+
+It's written to be very modular, with pluggable drivers.
+One of the main drivers it handles is ICAP.
+
+You may configure mod_php to use it.
+
+WWW: http://mcal.chek.com/
diff --git a/misc/libmcal/pkg-plist b/misc/libmcal/pkg-plist
new file mode 100644
index 0000000..809c059
--- /dev/null
+++ b/misc/libmcal/pkg-plist
@@ -0,0 +1,19 @@
+include/mcal/bool.h
+include/mcal/cal_misc.h
+include/mcal/datetime.h
+include/mcal/drivers.h
+include/mcal/icalroutines.h
+include/mcal/mcal.h
+lib/libmcal.a
+lib/libmcal.so
+lib/libmcal.so.0
+@dirrm include/mcal
+%%PORTDOCS%%share/doc/libmcal/CHANGELOG
+%%PORTDOCS%%share/doc/libmcal/FAQ-MCAL
+%%PORTDOCS%%share/doc/libmcal/FEATURE-IMPLEMENTATION
+%%PORTDOCS%%share/doc/libmcal/FUNCTION-REF.html
+%%PORTDOCS%%share/doc/libmcal/HOW-TO-MCAL
+%%PORTDOCS%%share/doc/libmcal/LICENSE
+%%PORTDOCS%%share/doc/libmcal/README
+%%PORTDOCS%%share/doc/libmcal/README.mstore
+%%PORTDOCS%%@dirrm share/doc/libmcal
OpenPOWER on IntegriCloud