mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
add kronolith
Kronolith is the Horde calendar application PR: 32712 Submitted by: Thierry Thomas <thierry@thomas.as>
This commit is contained in:
parent
dc6bced68e
commit
8a9110aa33
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51438
@ -22,6 +22,7 @@
|
||||
SUBDIR += kdepim
|
||||
SUBDIR += kmymoney2
|
||||
SUBDIR += kproject
|
||||
SUBDIR += kronolith
|
||||
SUBDIR += logjam
|
||||
SUBDIR += loserjabber
|
||||
SUBDIR += mhc
|
||||
|
95
deskutils/horde-kronolith/Makefile
Normal file
95
deskutils/horde-kronolith/Makefile
Normal file
@ -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>
|
1
deskutils/horde-kronolith/distinfo
Normal file
1
deskutils/horde-kronolith/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (kronolith-0.0.3.011209.tar.gz) = a5fed26d6011c226fce9feaa75809f94
|
31
deskutils/horde-kronolith/files/httpd.conf.kronolith
Normal file
31
deskutils/horde-kronolith/files/httpd.conf.kronolith
Normal file
@ -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 ================
|
||||
|
15
deskutils/horde-kronolith/files/patch-aa
Normal file
15
deskutils/horde-kronolith/files/patch-aa
Normal file
@ -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%%';
|
||||
|
||||
|
||||
/**
|
1
deskutils/horde-kronolith/pkg-comment
Normal file
1
deskutils/horde-kronolith/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Kronolith is the Horde calendar application
|
11
deskutils/horde-kronolith/pkg-descr
Normal file
11
deskutils/horde-kronolith/pkg-descr
Normal file
@ -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/
|
22
deskutils/horde-kronolith/pkg-message
Normal file
22
deskutils/horde-kronolith/pkg-message
Normal file
@ -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.
|
||||
************************************************************************
|
160
deskutils/horde-kronolith/pkg-plist
Normal file
160
deskutils/horde-kronolith/pkg-plist
Normal file
@ -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
|
95
deskutils/horde4-kronolith/Makefile
Normal file
95
deskutils/horde4-kronolith/Makefile
Normal file
@ -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>
|
1
deskutils/horde4-kronolith/distinfo
Normal file
1
deskutils/horde4-kronolith/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (kronolith-0.0.3.011209.tar.gz) = a5fed26d6011c226fce9feaa75809f94
|
31
deskutils/horde4-kronolith/files/httpd.conf.kronolith
Normal file
31
deskutils/horde4-kronolith/files/httpd.conf.kronolith
Normal file
@ -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 ================
|
||||
|
15
deskutils/horde4-kronolith/files/patch-aa
Normal file
15
deskutils/horde4-kronolith/files/patch-aa
Normal file
@ -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%%';
|
||||
|
||||
|
||||
/**
|
1
deskutils/horde4-kronolith/pkg-comment
Normal file
1
deskutils/horde4-kronolith/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Kronolith is the Horde calendar application
|
11
deskutils/horde4-kronolith/pkg-descr
Normal file
11
deskutils/horde4-kronolith/pkg-descr
Normal file
@ -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/
|
22
deskutils/horde4-kronolith/pkg-message
Normal file
22
deskutils/horde4-kronolith/pkg-message
Normal file
@ -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.
|
||||
************************************************************************
|
160
deskutils/horde4-kronolith/pkg-plist
Normal file
160
deskutils/horde4-kronolith/pkg-plist
Normal file
@ -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
|
95
deskutils/kronolith/Makefile
Normal file
95
deskutils/kronolith/Makefile
Normal file
@ -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>
|
1
deskutils/kronolith/distinfo
Normal file
1
deskutils/kronolith/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (kronolith-0.0.3.011209.tar.gz) = a5fed26d6011c226fce9feaa75809f94
|
31
deskutils/kronolith/files/httpd.conf.kronolith
Normal file
31
deskutils/kronolith/files/httpd.conf.kronolith
Normal file
@ -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 ================
|
||||
|
15
deskutils/kronolith/files/patch-aa
Normal file
15
deskutils/kronolith/files/patch-aa
Normal file
@ -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%%';
|
||||
|
||||
|
||||
/**
|
1
deskutils/kronolith/pkg-comment
Normal file
1
deskutils/kronolith/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Kronolith is the Horde calendar application
|
11
deskutils/kronolith/pkg-descr
Normal file
11
deskutils/kronolith/pkg-descr
Normal file
@ -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/
|
22
deskutils/kronolith/pkg-message
Normal file
22
deskutils/kronolith/pkg-message
Normal file
@ -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.
|
||||
************************************************************************
|
160
deskutils/kronolith/pkg-plist
Normal file
160
deskutils/kronolith/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user