From owner-freebsd-ports Tue Dec 11 15:40:24 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4F1E837B419 for ; Tue, 11 Dec 2001 15:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBBNe1N33546; Tue, 11 Dec 2001 15:40:01 -0800 (PST) (envelope-from gnats) Received: from postfix2-1.free.fr (postfix2-1.free.fr [213.228.0.9]) by hub.freebsd.org (Postfix) with ESMTP id B387E37B416 for ; Tue, 11 Dec 2001 15:35:10 -0800 (PST) Received: from graf.pompo.net (lyon-2-a7-20-235.dial.proxad.net [62.147.20.235]) by postfix2-1.free.fr (Postfix) with ESMTP id 35D1916F for ; Wed, 12 Dec 2001 00:35:06 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 1001) id 6300C751D; Wed, 12 Dec 2001 00:35:52 +0100 (CET) Message-Id: <20011211233552.6300C751D@graf.pompo.net> Date: Wed, 12 Dec 2001 00:35:52 +0100 (CET) From: Thierry Thomas Reply-To: Thierry Thomas To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/32712: New port: kronolith, a web-based calendar application Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32712 >Category: ports >Synopsis: New port: kronolith, a web-based calendar application >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Dec 11 15:40:01 PST 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: Sun Nov 25 07:49:02 CET 2001 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386 >Description: 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. >How-To-Repeat: Pre-requisite: PR ports/32516 and PR ports/32711 must be committed. Then, execute the following shar file. >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/kronolith # /usr/ports/deskutils/kronolith/Makefile # /usr/ports/deskutils/kronolith/files # /usr/ports/deskutils/kronolith/files/httpd.conf.kronolith # /usr/ports/deskutils/kronolith/files/patch-aa # /usr/ports/deskutils/kronolith/pkg-plist # /usr/ports/deskutils/kronolith/pkg-message # /usr/ports/deskutils/kronolith/pkg-descr # /usr/ports/deskutils/kronolith/pkg-comment # /usr/ports/deskutils/kronolith/distinfo # /usr/ports/deskutils/kronolith/Makefile.orig # echo c - /usr/ports/deskutils/kronolith mkdir -p /usr/ports/deskutils/kronolith > /dev/null 2>&1 echo x - /usr/ports/deskutils/kronolith/Makefile sed 's/^X//' >/usr/ports/deskutils/kronolith/Makefile << 'END-of-/usr/ports/deskutils/kronolith/Makefile' X# Ports collection makefile for: Kronolith X# Date created: Sun Dec 02, 2001 X# Whom: Thierry Thomas () X# X# $FreeBSD$ X# X XPORTNAME= kronolith XPORTVERSION= 0.0.3.011209 XCATEGORIES= deskutils www XMASTER_SITES= http://pompo.net/horde/kronolith/ X XMAINTAINER= thierry@thomas.as X XRUN_DEPENDS= ${LOCALBASE}/www/horde/imp/index.php:${PORTSDIR}/mail/imp-devel X XNO_BUILD= yes X XDOCS= COPYING README docs/CHANGES docs/CREDITS docs/INSTALL XCONFFILE= conf.php html.php keywords.php menu.php prefs.php X XLHORDEDIR?= www/horde XLKRONOLITHDIR?= ${LHORDEDIR}/kronolith X XPLIST_SUB= HORDEDIR=${LHORDEDIR} KRONOLITHDIR=${LKRONOLITHDIR} X XHORDEDIR= ${PREFIX}/${LHORDEDIR} XKRONOLITHDIR= ${PREFIX}/${LKRONOLITHDIR} XCONFDIR= ${KRONOLITHDIR}/config XVAR_CAL= /var/calendar X XHORDE_INC= ${LOCALBASE}/etc/horde X Xpre-install: X @if ! ${LDCONFIG} -r | ${GREP} -q -e "mcal.0" ; then \ X ${ECHO_MSG} "" ; \ X ${ECHO_MSG} "Please configure PHP and Horde with MCAL support enabled." ; \ X ${ECHO_MSG} "" ; \ X ${FALSE} ; \ X fi X Xdo-install: X @${MKDIR} ${KRONOLITHDIR} X @${CP} -Rp ${WRKSRC}/config ${WRKSRC}/graphics ${WRKSRC}/lib ${KRONOLITHDIR} X @${CP} -Rp ${WRKSRC}/locale ${WRKSRC}/po ${WRKSRC}/templates ${KRONOLITHDIR} X @${CP} -p ${WRKSRC}/*.php ${KRONOLITHDIR} X @${MKDIR} -p ${KRONOLITHDIR}/scripts X @${CP} -p ${WRKSRC}/docs/kronolith.sql ${KRONOLITHDIR}/scripts X.for FILE in ${CONFFILE} X @if [ ! -f ${CONFDIR}/${FILE} ]; then \ X ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \ X fi X.endfor X @${CHOWN} -R www:www ${KRONOLITHDIR} X @${CHMOD} -R o-rwx ${CONFDIR} X @${CP} -p ${FILESDIR}/httpd.conf.kronolith ${HORDE_INC} X @${PERL} -pi -e "s:/home/httpd/html/horde/kronolith:${KRONOLITHDIR}:g" \ X ${HORDE_INC}/httpd.conf.kronolith X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.for FILE in ${DOCS} X @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} X.endfor X @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." X.endif X Xpost-install: X @if [ ! -d ${VAR_CAL} ]; then \ X ${ECHO_MSG} "===> Creating ${VAR_CAL}" ; \ X ${MKDIR} ${VAR_CAL} ; \ X ${CHMOD} 1777 ${VAR_CAL} ; \ X fi X.if !defined(BATCH) X @if [ ! -f ${LOCALBASE}/etc/mpasswd ] ; then \ X ${ECHO_MSG} "===> Creating ${LOCALBASE}/etc/mpasswd" ; \ X ${ECHO} -n "Please enter a password for www's calendar: " ; \ X (read PASSCAL; \ X ${LOCALBASE}/bin/htpasswd -bc ${LOCALBASE}/etc/mpasswd www $${PASSCAL}; \ X ${PERL} -pi -e "s:%%PASSCAL%%:$${PASSCAL}:" ${CONFDIR}/conf.php) \ X elif ! ${GREP} -q -e "^www" ${LOCALBASE}/etc/mpasswd ; then \ X ${ECHO_MSG} "===> Adding www into ${LOCALBASE}/etc/mpasswd" ; \ X ${ECHO} -n "Please enter a password for www's calendar: " ; \ X (read PASSCAL; \ X ${LOCALBASE}/bin/htpasswd -b ${LOCALBASE}/etc/mpasswd www $${PASSCAL} ; \ X ${PERL} -pi -e "s:%%PASSCAL%%:$${PASSCAL}:" ${CONFDIR}/conf.php) \ X else \ X ${PERL} -pi -e "s:%%PASSCAL%%:www_cal_password:" ${CONFDIR}/conf.php ; \ X fi X.endif X @${ECHO_MSG} X @${CAT} ${PKGMESSAGE} | \ X ${SED} -e "s:%%KRONOLITHDIR%%:${KRONOLITHDIR}:g;s:%%PORTSDIR%%:${PORTSDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g;s:%%LOCALBASE%%:${LOCALBASE}:" X @${ECHO_MSG} X X.include END-of-/usr/ports/deskutils/kronolith/Makefile echo c - /usr/ports/deskutils/kronolith/files mkdir -p /usr/ports/deskutils/kronolith/files > /dev/null 2>&1 echo x - /usr/ports/deskutils/kronolith/files/httpd.conf.kronolith sed 's/^X//' >/usr/ports/deskutils/kronolith/files/httpd.conf.kronolith << 'END-of-/usr/ports/deskutils/kronolith/files/httpd.conf.kronolith' X# This is included in Apache's httpd.conf for Kronolith X# X# For security, don't serve pages from the Kronolith configuration and X# library directories. X# X X order deny,allow X deny from all X X X order deny,allow X deny from all X X X order deny,allow X deny from all X X X order deny,allow X deny from all X X X order deny,allow X deny from all X X X order deny,allow X deny from all X X# End of Kronolith configuration ================ X END-of-/usr/ports/deskutils/kronolith/files/httpd.conf.kronolith echo x - /usr/ports/deskutils/kronolith/files/patch-aa sed 's/^X//' >/usr/ports/deskutils/kronolith/files/patch-aa << 'END-of-/usr/ports/deskutils/kronolith/files/patch-aa' X--- config/conf.php.dist.orig Fri Sep 28 23:36:52 2001 X+++ config/conf.php.dist Sun Dec 9 22:46:55 2001 X@@ -29,10 +29,10 @@ X X // The mstore driver requires a username that is in /etc/mpasswd in X // order to access local calendars. X-$conf['calendar']['params']['username'] = ''; X+$conf['calendar']['params']['username'] = 'www'; X X // This is the password of the user defined above. X-$conf['calendar']['params']['password'] = ''; X+$conf['calendar']['params']['password'] = '%%PASSCAL%%'; X X X /** END-of-/usr/ports/deskutils/kronolith/files/patch-aa echo x - /usr/ports/deskutils/kronolith/pkg-plist sed 's/^X//' >/usr/ports/deskutils/kronolith/pkg-plist << 'END-of-/usr/ports/deskutils/kronolith/pkg-plist' X%%PORTDOCS%%share/doc/kronolith/CHANGES X%%PORTDOCS%%share/doc/kronolith/COPYING X%%PORTDOCS%%share/doc/kronolith/CREDITS X%%PORTDOCS%%share/doc/kronolith/INSTALL X%%PORTDOCS%%share/doc/kronolith/README X%%KRONOLITHDIR%%/addevent.php X%%KRONOLITHDIR%%/addeventaction.php X%%KRONOLITHDIR%%/config/conf.php X%%KRONOLITHDIR%%/config/conf.php.dist X%%KRONOLITHDIR%%/config/conf.php.dist.orig X%%KRONOLITHDIR%%/config/html.php X%%KRONOLITHDIR%%/config/html.php.dist X%%KRONOLITHDIR%%/config/keywords.php X%%KRONOLITHDIR%%/config/keywords.php.dist X%%KRONOLITHDIR%%/config/menu.php X%%KRONOLITHDIR%%/config/menu.php.dist X%%KRONOLITHDIR%%/config/prefs.php X%%KRONOLITHDIR%%/config/prefs.php.dist X%%KRONOLITHDIR%%/data.php X%%KRONOLITHDIR%%/day.php X%%KRONOLITHDIR%%/delevent.php X%%KRONOLITHDIR%%/editevent.php X%%KRONOLITHDIR%%/editeventaction.php X%%KRONOLITHDIR%%/graphics/alarm.gif X%%KRONOLITHDIR%%/graphics/alarm_small.gif X%%KRONOLITHDIR%%/graphics/bullet.gif X%%KRONOLITHDIR%%/graphics/clear.gif X%%KRONOLITHDIR%%/graphics/dayview.gif X%%KRONOLITHDIR%%/graphics/delete.gif X%%KRONOLITHDIR%%/graphics/edit.gif X%%KRONOLITHDIR%%/graphics/event.gif X%%KRONOLITHDIR%%/graphics/goto.gif X%%KRONOLITHDIR%%/graphics/kronolith.gif X%%KRONOLITHDIR%%/graphics/monthview.gif X%%KRONOLITHDIR%%/graphics/new.gif X%%KRONOLITHDIR%%/graphics/next.gif X%%KRONOLITHDIR%%/graphics/prev.gif X%%KRONOLITHDIR%%/graphics/recur.gif X%%KRONOLITHDIR%%/graphics/today.gif X%%KRONOLITHDIR%%/graphics/weekview.gif X%%KRONOLITHDIR%%/graphics/workweekview.gif X%%KRONOLITHDIR%%/index.php X%%KRONOLITHDIR%%/lib/Day.php X%%KRONOLITHDIR%%/lib/DayView.php X%%KRONOLITHDIR%%/lib/Driver.php X%%KRONOLITHDIR%%/lib/Driver/mcal.php X%%KRONOLITHDIR%%/lib/Driver/sql.php X%%KRONOLITHDIR%%/lib/Event.php X%%KRONOLITHDIR%%/lib/Kronolith.php X%%KRONOLITHDIR%%/lib/Month.php X%%KRONOLITHDIR%%/lib/MonthView.php X%%KRONOLITHDIR%%/lib/WeekView.php X%%KRONOLITHDIR%%/lib/api.php X%%KRONOLITHDIR%%/lib/base.php X%%KRONOLITHDIR%%/lib/version.php X%%KRONOLITHDIR%%/locale/cs_CZ/LC_MESSAGES/kronolith.mo X%%KRONOLITHDIR%%/locale/de_DE/LC_MESSAGES/kronolith.mo X%%KRONOLITHDIR%%/locale/el_GR/LC_MESSAGES/kronolith.mo X%%KRONOLITHDIR%%/locale/es_ES/LC_MESSAGES/kronolith.mo X%%KRONOLITHDIR%%/locale/fr_FR/LC_MESSAGES/kronolith.mo X%%KRONOLITHDIR%%/locale/it_IT/LC_MESSAGES/kronolith.mo X%%KRONOLITHDIR%%/locale/nl_NL/LC_MESSAGES/kronolith.mo X%%KRONOLITHDIR%%/locale/pt_BR/LC_MESSAGES/kronolith.mo X%%KRONOLITHDIR%%/locale/ru_win/LC_MESSAGES/kronolith.mo X%%KRONOLITHDIR%%/locale/zh_TW/LC_MESSAGES/kronolith.mo X%%KRONOLITHDIR%%/menu.php X%%KRONOLITHDIR%%/mini_month.php X%%KRONOLITHDIR%%/month.php X%%KRONOLITHDIR%%/po/Makefile X%%KRONOLITHDIR%%/po/README X%%KRONOLITHDIR%%/po/cs_CZ.po X%%KRONOLITHDIR%%/po/de_DE.po X%%KRONOLITHDIR%%/po/el_GR.po X%%KRONOLITHDIR%%/po/es_ES.po X%%KRONOLITHDIR%%/po/extract.pl X%%KRONOLITHDIR%%/po/fr_FR.po X%%KRONOLITHDIR%%/po/it_IT.po X%%KRONOLITHDIR%%/po/nl_NL.po X%%KRONOLITHDIR%%/po/pt_BR.po X%%KRONOLITHDIR%%/po/ru_win.po X%%KRONOLITHDIR%%/po/shtool X%%KRONOLITHDIR%%/po/xgettext.sh X%%KRONOLITHDIR%%/po/zh_TW.po X%%KRONOLITHDIR%%/prefs.php X%%KRONOLITHDIR%%/scripts/kronolith.sql X%%KRONOLITHDIR%%/status.php X%%KRONOLITHDIR%%/templates/common-footer.inc X%%KRONOLITHDIR%%/templates/common-header.inc X%%KRONOLITHDIR%%/templates/data/export.inc X%%KRONOLITHDIR%%/templates/data/import.inc X%%KRONOLITHDIR%%/templates/day/all_day.inc X%%KRONOLITHDIR%%/templates/day/foot.inc X%%KRONOLITHDIR%%/templates/day/head.inc X%%KRONOLITHDIR%%/templates/day/row.inc X%%KRONOLITHDIR%%/templates/day/row_half.inc X%%KRONOLITHDIR%%/templates/edit/edit.inc X%%KRONOLITHDIR%%/templates/edit/javascript.inc X%%KRONOLITHDIR%%/templates/index/css.inc X%%KRONOLITHDIR%%/templates/index/index.inc X%%KRONOLITHDIR%%/templates/index/notconfigured.inc X%%KRONOLITHDIR%%/templates/javascript/delete.inc X%%KRONOLITHDIR%%/templates/menu/goto.inc X%%KRONOLITHDIR%%/templates/menu/menu.inc X%%KRONOLITHDIR%%/templates/month/head.inc X%%KRONOLITHDIR%%/templates/month_begin_week.inc X%%KRONOLITHDIR%%/templates/month_day.inc X%%KRONOLITHDIR%%/templates/month_end_week.inc X%%KRONOLITHDIR%%/templates/month_foot.inc X%%KRONOLITHDIR%%/templates/month_head.inc X%%KRONOLITHDIR%%/templates/week/head.inc X%%KRONOLITHDIR%%/week.php X%%KRONOLITHDIR%%/workweek.php X@dirrm %%KRONOLITHDIR%%/config X@dirrm %%KRONOLITHDIR%%/graphics/alerts X@dirrm %%KRONOLITHDIR%%/graphics X@dirrm %%KRONOLITHDIR%%/lib/Driver X@dirrm %%KRONOLITHDIR%%/lib/scripts X@dirrm %%KRONOLITHDIR%%/lib X@dirrm %%KRONOLITHDIR%%/locale/cs_CZ/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/cs_CZ X@dirrm %%KRONOLITHDIR%%/locale/de/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/de X@dirrm %%KRONOLITHDIR%%/locale/de_DE/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/de_DE X@dirrm %%KRONOLITHDIR%%/locale/el_GR/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/el_GR X@dirrm %%KRONOLITHDIR%%/locale/en X@dirrm %%KRONOLITHDIR%%/locale/es_ES/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/es_ES X@dirrm %%KRONOLITHDIR%%/locale/fr_FR/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/fr_FR X@dirrm %%KRONOLITHDIR%%/locale/it_IT/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/it_IT X@dirrm %%KRONOLITHDIR%%/locale/local X@dirrm %%KRONOLITHDIR%%/locale/nl/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/nl X@dirrm %%KRONOLITHDIR%%/locale/nl_NL/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/nl_NL X@dirrm %%KRONOLITHDIR%%/locale/pt_BR/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/pt_BR X@dirrm %%KRONOLITHDIR%%/locale/ru_win/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/ru_win X@dirrm %%KRONOLITHDIR%%/locale/zh_TW/LC_MESSAGES X@dirrm %%KRONOLITHDIR%%/locale/zh_TW X@dirrm %%KRONOLITHDIR%%/locale X@dirrm %%KRONOLITHDIR%%/po X@dirrm %%KRONOLITHDIR%%/scripts X@dirrm %%KRONOLITHDIR%%/templates/data X@dirrm %%KRONOLITHDIR%%/templates/day X@dirrm %%KRONOLITHDIR%%/templates/edit X@dirrm %%KRONOLITHDIR%%/templates/index X@dirrm %%KRONOLITHDIR%%/templates/javascript X@dirrm %%KRONOLITHDIR%%/templates/login X@dirrm %%KRONOLITHDIR%%/templates/menu X@dirrm %%KRONOLITHDIR%%/templates/month X@dirrm %%KRONOLITHDIR%%/templates/week X@dirrm %%KRONOLITHDIR%%/templates X@dirrm %%KRONOLITHDIR%% Xetc/horde/httpd.conf.kronolith X%%PORTDOCS%%@dirrm share/doc/kronolith END-of-/usr/ports/deskutils/kronolith/pkg-plist echo x - /usr/ports/deskutils/kronolith/pkg-message sed 's/^X//' >/usr/ports/deskutils/kronolith/pkg-message << 'END-of-/usr/ports/deskutils/kronolith/pkg-message' X************************************************************************ XKronolith has been installed in %%KRONOLITHDIR%% with your blank Xconfiguration files. X XHorde and IMP must be configured; if not, see: X- %%PORTSDIR%%/www/horde-devel/pkg-message X- %%PORTSDIR%%/mail/imp-devel/pkg-message X Xlibmcal must be configured with the driver mstore for the user www: X X- mkdir /var/calendar X- chmod 1777 /var/calendar X- htpasswd -c %%LOCALBASE%%/etc/mpasswd www X X(this port has tried to make it for you, perhaps you'll just have to Xcheck - see %%PORTSDIR%%/misc/libmcal/pkg-message) X XThen, you may have to tune the configuration files located in X%%CONFDIR%%/, specially the files conf.php. X XTo protect your configuration files, you have to restart Apache. X************************************************************************ END-of-/usr/ports/deskutils/kronolith/pkg-message echo x - /usr/ports/deskutils/kronolith/pkg-descr sed 's/^X//' >/usr/ports/deskutils/kronolith/pkg-descr << 'END-of-/usr/ports/deskutils/kronolith/pkg-descr' XKronolith is the Horde calendar application. It is currently in the Xdevelopment stages, and makes heavy use of the Horde framework to Xprovide integration with other applications. X XRight now, Kronolith implements a solid, stand-alone calendar system, Xallowing repeating events, all-day events, custom fields, keywords, Xand managing multiple users through Horde Authentication. The calendar XAPI that Kronolith uses is abstracted such that it could work with any Xbackend, but right now it uses the MCAL calendar library for a backend. X XWWW: http://horde.org/kronolith/ END-of-/usr/ports/deskutils/kronolith/pkg-descr echo x - /usr/ports/deskutils/kronolith/pkg-comment sed 's/^X//' >/usr/ports/deskutils/kronolith/pkg-comment << 'END-of-/usr/ports/deskutils/kronolith/pkg-comment' XKronolith is the Horde calendar application END-of-/usr/ports/deskutils/kronolith/pkg-comment echo x - /usr/ports/deskutils/kronolith/distinfo sed 's/^X//' >/usr/ports/deskutils/kronolith/distinfo << 'END-of-/usr/ports/deskutils/kronolith/distinfo' XMD5 (kronolith-0.0.3.011209.tar.gz) = a5fed26d6011c226fce9feaa75809f94 END-of-/usr/ports/deskutils/kronolith/distinfo echo x - /usr/ports/deskutils/kronolith/Makefile.orig sed 's/^X//' >/usr/ports/deskutils/kronolith/Makefile.orig << 'END-of-/usr/ports/deskutils/kronolith/Makefile.orig' X# Ports collection makefile for: Kronolith X# Date created: Sun Dec 02, 2001 X# Whom: Thierry Thomas () X# X# $FreeBSD$ X# X XPORTNAME= kronolith XPORTVERSION= 0.0.3.011209 XCATEGORIES= deskutils www XMASTER_SITES= http://pompo.net/horde/kronolith/ X XMAINTAINER= thierry@thomas.as X XRUN_DEPENDS= ${LOCALBASE}/www/horde/imp/index.php:${PORTSDIR}/mail/imp-devel X XNO_BUILD= yes X XDOCS= COPYING README docs/CHANGES docs/CREDITS docs/INSTALL XCONFFILE= conf.php html.php keywords.php menu.php prefs.php X XLHORDEDIR?= www/horde XLKRONOLITHDIR?= ${LHORDEDIR}/kronolith X XPLIST_SUB= HORDEDIR=${LHORDEDIR} KRONOLITHDIR=${LKRONOLITHDIR} X XHORDEDIR= ${PREFIX}/${LHORDEDIR} XKRONOLITHDIR= ${PREFIX}/${LKRONOLITHDIR} XCONFDIR= ${KRONOLITHDIR}/config XVAR_CAL= /var/calendar X XHORDE_INC= ${LOCALBASE}/etc/horde X Xpre-install: X @if ! ${LDCONFIG} -r | ${GREP} -q -e "mcal.0" ; then \ X ${ECHO_MSG} "" ; \ X ${ECHO_MSG} "Please configure PHP and Horde with MCAL support enabled." ; \ X ${ECHO_MSG} "" ; \ X ${FALSE} ; \ X fi X Xdo-install: X @${MKDIR} ${KRONOLITHDIR} X @${CP} -Rp ${WRKSRC}/config ${WRKSRC}/graphics ${WRKSRC}/lib ${KRONOLITHDIR} X @${CP} -Rp ${WRKSRC}/locale ${WRKSRC}/po ${WRKSRC}/templates ${KRONOLITHDIR} X @${CP} -p ${WRKSRC}/*.php ${KRONOLITHDIR} X @${MKDIR} -p ${KRONOLITHDIR}/scripts X @${CP} -p ${WRKSRC}/docs/kronolith.sql ${KRONOLITHDIR}/scripts X.for FILE in ${CONFFILE} X @if [ ! -f ${CONFDIR}/${FILE} ]; then \ X ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \ X fi X.endfor X @${CHOWN} -R www:www ${KRONOLITHDIR} X @${CHMOD} -R o-rwx ${CONFDIR} X @${CP} -p ${FILESDIR}/httpd.conf.kronolith ${HORDE_INC} X @${PERL} -pi -e "s:/home/httpd/html/horde/kronolith:${KRONOLITHDIR}:g" \ X ${HORDE_INC}/httpd.conf.kronolith X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.for FILE in ${DOCS} X @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} X.endfor X @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." X.endif X Xpost-install: X @if [ ! -d ${VAR_CAL} ]; then \ X ${ECHO_MSG} "===> Creating ${VAR_CAL}" ; \ X ${MKDIR} ${VAR_CAL} ; \ X ${CHMOD} 1777 ${VAR_CAL} ; \ X fi X @if [ ! -f ${VAR_CAL}/www ]; then \ X ${ECHO_MSG} "===> Adding ${VAR_CAL}/www" ; \ X ${TOUCH} ${VAR_CAL}/www ; \ X ${CHOWN} www:www ${VAR_CAL}/www ; \ X fi X.if !defined(BATCH) X @if [ ! -f ${LOCALBASE}/etc/mpasswd ] ; then \ X ${ECHO_MSG} "===> Creating ${LOCALBASE}/etc/mpasswd" ; \ X ${ECHO} -n "Please enter a password for www's calendar: " ; \ X (read PASSCAL; \ X ${LOCALBASE}/bin/htpasswd -bc ${LOCALBASE}/etc/mpasswd www $${PASSCAL}; \ X ${PERL} -pi -e "s:%%PASSCAL%%:$${PASSCAL}:" ${CONFDIR}/conf.php) \ X elif ! ${GREP} -q -e "^www" ${LOCALBASE}/etc/mpasswd ; then \ X ${ECHO_MSG} "===> Adding www into ${LOCALBASE}/etc/mpasswd" ; \ X ${ECHO} -n "Please enter a password for www's calendar: " ; \ X (read PASSCAL; \ X ${LOCALBASE}/bin/htpasswd -b ${LOCALBASE}/etc/mpasswd www $${PASSCAL} ; \ X ${PERL} -pi -e "s:%%PASSCAL%%:$${PASSCAL}:" ${CONFDIR}/conf.php) \ X else \ X ${PERL} -pi -e "s:%%PASSCAL%%:www_cal_password:" ${CONFDIR}/conf.php ; \ X fi X.endif X @${ECHO_MSG} X @${CAT} ${PKGMESSAGE} | \ X ${SED} -e "s:%%KRONOLITHDIR%%:${KRONOLITHDIR}:g;s:%%PORTSDIR%%:${PORTSDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g;s:%%LOCALBASE%%:${LOCALBASE}:" X @${ECHO_MSG} X X.include END-of-/usr/ports/deskutils/kronolith/Makefile.orig exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message