summaryrefslogtreecommitdiff
path: root/deskutils/horde4-kronolith
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-12-13 03:38:17 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-12-13 03:38:17 +0000
commit8a9110aa3324a8328cc7d9270da2f85d5e5f1861 (patch)
tree4b086c7063b9ebaaf19396c7b244e68f3399953e /deskutils/horde4-kronolith
parentadd stuffit (diff)
add kronolith
Kronolith is the Horde calendar application PR: 32712 Submitted by: Thierry Thomas <thierry@thomas.as>
Notes
Notes: svn path=/head/; revision=51438
Diffstat (limited to 'deskutils/horde4-kronolith')
-rw-r--r--deskutils/horde4-kronolith/Makefile95
-rw-r--r--deskutils/horde4-kronolith/distinfo1
-rw-r--r--deskutils/horde4-kronolith/files/httpd.conf.kronolith31
-rw-r--r--deskutils/horde4-kronolith/files/patch-aa15
-rw-r--r--deskutils/horde4-kronolith/pkg-comment1
-rw-r--r--deskutils/horde4-kronolith/pkg-descr11
-rw-r--r--deskutils/horde4-kronolith/pkg-message22
-rw-r--r--deskutils/horde4-kronolith/pkg-plist160
8 files changed, 336 insertions, 0 deletions
diff --git a/deskutils/horde4-kronolith/Makefile b/deskutils/horde4-kronolith/Makefile
new file mode 100644
index 000000000000..41ebd8a46071
--- /dev/null
+++ b/deskutils/horde4-kronolith/Makefile
@@ -0,0 +1,95 @@
+# Ports collection makefile for: Kronolith
+# Date created: Sun Dec 02, 2001
+# Whom: Thierry Thomas (<thierry@thomas.as>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= kronolith
+PORTVERSION= 0.0.3.011209
+CATEGORIES= deskutils www
+MASTER_SITES= http://pompo.net/horde/kronolith/
+
+MAINTAINER= thierry@thomas.as
+
+RUN_DEPENDS= ${LOCALBASE}/www/horde/imp/index.php:${PORTSDIR}/mail/imp-devel
+
+NO_BUILD= yes
+
+DOCS= COPYING README docs/CHANGES docs/CREDITS docs/INSTALL
+CONFFILE= conf.php html.php keywords.php menu.php prefs.php
+
+LHORDEDIR?= www/horde
+LKRONOLITHDIR?= ${LHORDEDIR}/kronolith
+
+PLIST_SUB= HORDEDIR=${LHORDEDIR} KRONOLITHDIR=${LKRONOLITHDIR}
+
+HORDEDIR= ${PREFIX}/${LHORDEDIR}
+KRONOLITHDIR= ${PREFIX}/${LKRONOLITHDIR}
+CONFDIR= ${KRONOLITHDIR}/config
+VAR_CAL= /var/calendar
+
+HORDE_INC= ${LOCALBASE}/etc/horde
+
+pre-install:
+ @if ! ${LDCONFIG} -r | ${GREP} -q -e "mcal.0" ; then \
+ ${ECHO_MSG} "" ; \
+ ${ECHO_MSG} "Please configure PHP and Horde with MCAL support enabled." ; \
+ ${ECHO_MSG} "" ; \
+ ${FALSE} ; \
+ fi
+
+do-install:
+ @${MKDIR} ${KRONOLITHDIR}
+ @${CP} -Rp ${WRKSRC}/config ${WRKSRC}/graphics ${WRKSRC}/lib ${KRONOLITHDIR}
+ @${CP} -Rp ${WRKSRC}/locale ${WRKSRC}/po ${WRKSRC}/templates ${KRONOLITHDIR}
+ @${CP} -p ${WRKSRC}/*.php ${KRONOLITHDIR}
+ @${MKDIR} ${KRONOLITHDIR}/scripts
+ @${CP} -p ${WRKSRC}/docs/kronolith.sql ${KRONOLITHDIR}/scripts
+.for FILE in ${CONFFILE}
+ @if [ ! -f ${CONFDIR}/${FILE} ]; then \
+ ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
+ fi
+.endfor
+ @${CHOWN} -R www:www ${KRONOLITHDIR}
+ @${CHMOD} -R o-rwx ${CONFDIR}
+ @${CP} -p ${FILESDIR}/httpd.conf.kronolith ${HORDE_INC}
+ @${PERL} -pi -e "s:/home/httpd/html/horde/kronolith:${KRONOLITHDIR}:g" \
+ ${HORDE_INC}/httpd.conf.kronolith
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+
+post-install:
+ @if [ ! -d ${VAR_CAL} ]; then \
+ ${ECHO_MSG} "===> Creating ${VAR_CAL}" ; \
+ ${MKDIR} ${VAR_CAL} ; \
+ ${CHMOD} 1777 ${VAR_CAL} ; \
+ fi
+.if !defined(BATCH)
+ @if [ ! -f ${LOCALBASE}/etc/mpasswd ] ; then \
+ ${ECHO_MSG} "===> Creating ${LOCALBASE}/etc/mpasswd" ; \
+ ${ECHO} -n "Please enter a password for www's calendar: " ; \
+ (read PASSCAL; \
+ ${LOCALBASE}/bin/htpasswd -bc ${LOCALBASE}/etc/mpasswd www $${PASSCAL}; \
+ ${PERL} -pi -e "s:%%PASSCAL%%:$${PASSCAL}:" ${CONFDIR}/conf.php) \
+ elif ! ${GREP} -q -e "^www" ${LOCALBASE}/etc/mpasswd ; then \
+ ${ECHO_MSG} "===> Adding www into ${LOCALBASE}/etc/mpasswd" ; \
+ ${ECHO} -n "Please enter a password for www's calendar: " ; \
+ (read PASSCAL; \
+ ${LOCALBASE}/bin/htpasswd -b ${LOCALBASE}/etc/mpasswd www $${PASSCAL} ; \
+ ${PERL} -pi -e "s:%%PASSCAL%%:$${PASSCAL}:" ${CONFDIR}/conf.php) \
+ else \
+ ${PERL} -pi -e "s:%%PASSCAL%%:www_cal_password:" ${CONFDIR}/conf.php ; \
+ fi
+.endif
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE} | \
+ ${SED} -e "s:%%KRONOLITHDIR%%:${KRONOLITHDIR}:g;s:%%PORTSDIR%%:${PORTSDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g;s:%%LOCALBASE%%:${LOCALBASE}:"
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/deskutils/horde4-kronolith/distinfo b/deskutils/horde4-kronolith/distinfo
new file mode 100644
index 000000000000..ebbb973b836d
--- /dev/null
+++ b/deskutils/horde4-kronolith/distinfo
@@ -0,0 +1 @@
+MD5 (kronolith-0.0.3.011209.tar.gz) = a5fed26d6011c226fce9feaa75809f94
diff --git a/deskutils/horde4-kronolith/files/httpd.conf.kronolith b/deskutils/horde4-kronolith/files/httpd.conf.kronolith
new file mode 100644
index 000000000000..a3748ea4e996
--- /dev/null
+++ b/deskutils/horde4-kronolith/files/httpd.conf.kronolith
@@ -0,0 +1,31 @@
+# This is included in Apache's httpd.conf for Kronolith
+#
+# For security, don't serve pages from the Kronolith configuration and
+# library directories.
+#
+<Directory "/home/httpd/html/horde/kronolith/config">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/kronolith/lib">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/kronolith/locale">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/kronolith/po">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/kronolith/scripts">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/kronolith/templates">
+ order deny,allow
+ deny from all
+</Directory>
+# End of Kronolith configuration ================
+
diff --git a/deskutils/horde4-kronolith/files/patch-aa b/deskutils/horde4-kronolith/files/patch-aa
new file mode 100644
index 000000000000..b1fd780ad002
--- /dev/null
+++ b/deskutils/horde4-kronolith/files/patch-aa
@@ -0,0 +1,15 @@
+--- config/conf.php.dist.orig Fri Sep 28 23:36:52 2001
++++ config/conf.php.dist Sun Dec 9 22:46:55 2001
+@@ -29,10 +29,10 @@
+
+ // The mstore driver requires a username that is in /etc/mpasswd in
+ // order to access local calendars.
+-$conf['calendar']['params']['username'] = '';
++$conf['calendar']['params']['username'] = 'www';
+
+ // This is the password of the user defined above.
+-$conf['calendar']['params']['password'] = '';
++$conf['calendar']['params']['password'] = '%%PASSCAL%%';
+
+
+ /**
diff --git a/deskutils/horde4-kronolith/pkg-comment b/deskutils/horde4-kronolith/pkg-comment
new file mode 100644
index 000000000000..126235108bde
--- /dev/null
+++ b/deskutils/horde4-kronolith/pkg-comment
@@ -0,0 +1 @@
+Kronolith is the Horde calendar application
diff --git a/deskutils/horde4-kronolith/pkg-descr b/deskutils/horde4-kronolith/pkg-descr
new file mode 100644
index 000000000000..e0b09f28cca7
--- /dev/null
+++ b/deskutils/horde4-kronolith/pkg-descr
@@ -0,0 +1,11 @@
+Kronolith is the Horde calendar application. It is currently in the
+development stages, and makes heavy use of the Horde framework to
+provide integration with other applications.
+
+Right now, Kronolith implements a solid, stand-alone calendar system,
+allowing repeating events, all-day events, custom fields, keywords,
+and managing multiple users through Horde Authentication. The calendar
+API that Kronolith uses is abstracted such that it could work with any
+backend, but right now it uses the MCAL calendar library for a backend.
+
+WWW: http://horde.org/kronolith/
diff --git a/deskutils/horde4-kronolith/pkg-message b/deskutils/horde4-kronolith/pkg-message
new file mode 100644
index 000000000000..6f4bb616cc71
--- /dev/null
+++ b/deskutils/horde4-kronolith/pkg-message
@@ -0,0 +1,22 @@
+************************************************************************
+Kronolith has been installed in %%KRONOLITHDIR%% with your blank
+configuration files.
+
+Horde and IMP must be configured; if not, see:
+- %%PORTSDIR%%/www/horde-devel/pkg-message
+- %%PORTSDIR%%/mail/imp-devel/pkg-message
+
+libmcal must be configured with the driver mstore for the user www:
+
+- mkdir /var/calendar
+- chmod 1777 /var/calendar
+- htpasswd -c %%LOCALBASE%%/etc/mpasswd www
+
+(this port has tried to make it for you, perhaps you'll just have to
+check - see %%PORTSDIR%%/misc/libmcal/pkg-message)
+
+Then, you may have to tune the configuration files located in
+%%CONFDIR%%/, specially the files conf.php.
+
+To protect your configuration files, you have to restart Apache.
+************************************************************************
diff --git a/deskutils/horde4-kronolith/pkg-plist b/deskutils/horde4-kronolith/pkg-plist
new file mode 100644
index 000000000000..2227cd89a78f
--- /dev/null
+++ b/deskutils/horde4-kronolith/pkg-plist
@@ -0,0 +1,160 @@
+%%PORTDOCS%%share/doc/kronolith/CHANGES
+%%PORTDOCS%%share/doc/kronolith/COPYING
+%%PORTDOCS%%share/doc/kronolith/CREDITS
+%%PORTDOCS%%share/doc/kronolith/INSTALL
+%%PORTDOCS%%share/doc/kronolith/README
+%%KRONOLITHDIR%%/addevent.php
+%%KRONOLITHDIR%%/addeventaction.php
+%%KRONOLITHDIR%%/config/conf.php
+%%KRONOLITHDIR%%/config/conf.php.dist
+%%KRONOLITHDIR%%/config/conf.php.dist.orig
+%%KRONOLITHDIR%%/config/html.php
+%%KRONOLITHDIR%%/config/html.php.dist
+%%KRONOLITHDIR%%/config/keywords.php
+%%KRONOLITHDIR%%/config/keywords.php.dist
+%%KRONOLITHDIR%%/config/menu.php
+%%KRONOLITHDIR%%/config/menu.php.dist
+%%KRONOLITHDIR%%/config/prefs.php
+%%KRONOLITHDIR%%/config/prefs.php.dist
+%%KRONOLITHDIR%%/data.php
+%%KRONOLITHDIR%%/day.php
+%%KRONOLITHDIR%%/delevent.php
+%%KRONOLITHDIR%%/editevent.php
+%%KRONOLITHDIR%%/editeventaction.php
+%%KRONOLITHDIR%%/graphics/alarm.gif
+%%KRONOLITHDIR%%/graphics/alarm_small.gif
+%%KRONOLITHDIR%%/graphics/bullet.gif
+%%KRONOLITHDIR%%/graphics/clear.gif
+%%KRONOLITHDIR%%/graphics/dayview.gif
+%%KRONOLITHDIR%%/graphics/delete.gif
+%%KRONOLITHDIR%%/graphics/edit.gif
+%%KRONOLITHDIR%%/graphics/event.gif
+%%KRONOLITHDIR%%/graphics/goto.gif
+%%KRONOLITHDIR%%/graphics/kronolith.gif
+%%KRONOLITHDIR%%/graphics/monthview.gif
+%%KRONOLITHDIR%%/graphics/new.gif
+%%KRONOLITHDIR%%/graphics/next.gif
+%%KRONOLITHDIR%%/graphics/prev.gif
+%%KRONOLITHDIR%%/graphics/recur.gif
+%%KRONOLITHDIR%%/graphics/today.gif
+%%KRONOLITHDIR%%/graphics/weekview.gif
+%%KRONOLITHDIR%%/graphics/workweekview.gif
+%%KRONOLITHDIR%%/index.php
+%%KRONOLITHDIR%%/lib/Day.php
+%%KRONOLITHDIR%%/lib/DayView.php
+%%KRONOLITHDIR%%/lib/Driver.php
+%%KRONOLITHDIR%%/lib/Driver/mcal.php
+%%KRONOLITHDIR%%/lib/Driver/sql.php
+%%KRONOLITHDIR%%/lib/Event.php
+%%KRONOLITHDIR%%/lib/Kronolith.php
+%%KRONOLITHDIR%%/lib/Month.php
+%%KRONOLITHDIR%%/lib/MonthView.php
+%%KRONOLITHDIR%%/lib/WeekView.php
+%%KRONOLITHDIR%%/lib/api.php
+%%KRONOLITHDIR%%/lib/base.php
+%%KRONOLITHDIR%%/lib/version.php
+%%KRONOLITHDIR%%/locale/cs_CZ/LC_MESSAGES/kronolith.mo
+%%KRONOLITHDIR%%/locale/de_DE/LC_MESSAGES/kronolith.mo
+%%KRONOLITHDIR%%/locale/el_GR/LC_MESSAGES/kronolith.mo
+%%KRONOLITHDIR%%/locale/es_ES/LC_MESSAGES/kronolith.mo
+%%KRONOLITHDIR%%/locale/fr_FR/LC_MESSAGES/kronolith.mo
+%%KRONOLITHDIR%%/locale/it_IT/LC_MESSAGES/kronolith.mo
+%%KRONOLITHDIR%%/locale/nl_NL/LC_MESSAGES/kronolith.mo
+%%KRONOLITHDIR%%/locale/pt_BR/LC_MESSAGES/kronolith.mo
+%%KRONOLITHDIR%%/locale/ru_win/LC_MESSAGES/kronolith.mo
+%%KRONOLITHDIR%%/locale/zh_TW/LC_MESSAGES/kronolith.mo
+%%KRONOLITHDIR%%/menu.php
+%%KRONOLITHDIR%%/mini_month.php
+%%KRONOLITHDIR%%/month.php
+%%KRONOLITHDIR%%/po/Makefile
+%%KRONOLITHDIR%%/po/README
+%%KRONOLITHDIR%%/po/cs_CZ.po
+%%KRONOLITHDIR%%/po/de_DE.po
+%%KRONOLITHDIR%%/po/el_GR.po
+%%KRONOLITHDIR%%/po/es_ES.po
+%%KRONOLITHDIR%%/po/extract.pl
+%%KRONOLITHDIR%%/po/fr_FR.po
+%%KRONOLITHDIR%%/po/it_IT.po
+%%KRONOLITHDIR%%/po/nl_NL.po
+%%KRONOLITHDIR%%/po/pt_BR.po
+%%KRONOLITHDIR%%/po/ru_win.po
+%%KRONOLITHDIR%%/po/shtool
+%%KRONOLITHDIR%%/po/xgettext.sh
+%%KRONOLITHDIR%%/po/zh_TW.po
+%%KRONOLITHDIR%%/prefs.php
+%%KRONOLITHDIR%%/scripts/kronolith.sql
+%%KRONOLITHDIR%%/status.php
+%%KRONOLITHDIR%%/templates/common-footer.inc
+%%KRONOLITHDIR%%/templates/common-header.inc
+%%KRONOLITHDIR%%/templates/data/export.inc
+%%KRONOLITHDIR%%/templates/data/import.inc
+%%KRONOLITHDIR%%/templates/day/all_day.inc
+%%KRONOLITHDIR%%/templates/day/foot.inc
+%%KRONOLITHDIR%%/templates/day/head.inc
+%%KRONOLITHDIR%%/templates/day/row.inc
+%%KRONOLITHDIR%%/templates/day/row_half.inc
+%%KRONOLITHDIR%%/templates/edit/edit.inc
+%%KRONOLITHDIR%%/templates/edit/javascript.inc
+%%KRONOLITHDIR%%/templates/index/css.inc
+%%KRONOLITHDIR%%/templates/index/index.inc
+%%KRONOLITHDIR%%/templates/index/notconfigured.inc
+%%KRONOLITHDIR%%/templates/javascript/delete.inc
+%%KRONOLITHDIR%%/templates/menu/goto.inc
+%%KRONOLITHDIR%%/templates/menu/menu.inc
+%%KRONOLITHDIR%%/templates/month/head.inc
+%%KRONOLITHDIR%%/templates/month_begin_week.inc
+%%KRONOLITHDIR%%/templates/month_day.inc
+%%KRONOLITHDIR%%/templates/month_end_week.inc
+%%KRONOLITHDIR%%/templates/month_foot.inc
+%%KRONOLITHDIR%%/templates/month_head.inc
+%%KRONOLITHDIR%%/templates/week/head.inc
+%%KRONOLITHDIR%%/week.php
+%%KRONOLITHDIR%%/workweek.php
+@dirrm %%KRONOLITHDIR%%/config
+@dirrm %%KRONOLITHDIR%%/graphics/alerts
+@dirrm %%KRONOLITHDIR%%/graphics
+@dirrm %%KRONOLITHDIR%%/lib/Driver
+@dirrm %%KRONOLITHDIR%%/lib/scripts
+@dirrm %%KRONOLITHDIR%%/lib
+@dirrm %%KRONOLITHDIR%%/locale/cs_CZ/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/cs_CZ
+@dirrm %%KRONOLITHDIR%%/locale/de/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/de
+@dirrm %%KRONOLITHDIR%%/locale/de_DE/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/de_DE
+@dirrm %%KRONOLITHDIR%%/locale/el_GR/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/el_GR
+@dirrm %%KRONOLITHDIR%%/locale/en
+@dirrm %%KRONOLITHDIR%%/locale/es_ES/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/es_ES
+@dirrm %%KRONOLITHDIR%%/locale/fr_FR/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/fr_FR
+@dirrm %%KRONOLITHDIR%%/locale/it_IT/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/it_IT
+@dirrm %%KRONOLITHDIR%%/locale/local
+@dirrm %%KRONOLITHDIR%%/locale/nl/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/nl
+@dirrm %%KRONOLITHDIR%%/locale/nl_NL/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/nl_NL
+@dirrm %%KRONOLITHDIR%%/locale/pt_BR/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/pt_BR
+@dirrm %%KRONOLITHDIR%%/locale/ru_win/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/ru_win
+@dirrm %%KRONOLITHDIR%%/locale/zh_TW/LC_MESSAGES
+@dirrm %%KRONOLITHDIR%%/locale/zh_TW
+@dirrm %%KRONOLITHDIR%%/locale
+@dirrm %%KRONOLITHDIR%%/po
+@dirrm %%KRONOLITHDIR%%/scripts
+@dirrm %%KRONOLITHDIR%%/templates/data
+@dirrm %%KRONOLITHDIR%%/templates/day
+@dirrm %%KRONOLITHDIR%%/templates/edit
+@dirrm %%KRONOLITHDIR%%/templates/index
+@dirrm %%KRONOLITHDIR%%/templates/javascript
+@dirrm %%KRONOLITHDIR%%/templates/login
+@dirrm %%KRONOLITHDIR%%/templates/menu
+@dirrm %%KRONOLITHDIR%%/templates/month
+@dirrm %%KRONOLITHDIR%%/templates/week
+@dirrm %%KRONOLITHDIR%%/templates
+@dirrm %%KRONOLITHDIR%%
+etc/horde/httpd.conf.kronolith
+%%PORTDOCS%%@dirrm share/doc/kronolith