1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

Add libmcal - a Modular Calendar Access Library

PR:		ports/31416
Submitted by:	Thierry Thomas <thierry@thomas.as>
This commit is contained in:
Dirk Froemberg 2001-11-24 15:19:53 +00:00
parent 0edd2a1588
commit fdb1fda9b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50477
8 changed files with 241 additions and 0 deletions

80
misc/libmcal/Makefile Normal file
View File

@ -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>

2
misc/libmcal/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (libmcal-0.6.tar.gz) = b56ff2c9e989d1018f143e0f40290e94
MD5 (mcaldrivers-0.8.tar.gz) = c9a005847d99585c0a7e46bb903ee9f4

View File

@ -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

View File

@ -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

View File

@ -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

1
misc/libmcal/pkg-comment Normal file
View File

@ -0,0 +1 @@
Modular Calendar Access Library

9
misc/libmcal/pkg-descr Normal file
View File

@ -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/

19
misc/libmcal/pkg-plist Normal file
View File

@ -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