Date: Sat, 29 Dec 2001 23:35:44 +0100 (CET) From: Thierry Thomas <thierry@thomas.as> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/33312: New port: www/jonah - a portal and content collection system Message-ID: <20011229223544.E20017656@graf.pompo.net>
next in thread | raw e-mail | index | archive | help
>Number: 33312 >Category: ports >Synopsis: New port: www/jonah - a portal and content collection system >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: Sat Dec 29 14:50:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Thierry Thomas >Release: FreeBSD 4.5-PRERELEASE i386 >Organization: Kabbale Eros >Environment: System: FreeBSD graf.pompo.net 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #0: Thu Dec 27 11:39:31 CET 2001 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386 >Description: Jonah is the Horde content and display manager. It has been designed to manage a portal-like site using RDF, RSS and Syndicated XML backend content. >How-To-Repeat: Pre-requisite: PR ports/33172 must be committed. >Fix: Execute the following shar file: # 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/www/jonah # /usr/ports/www/jonah/files # /usr/ports/www/jonah/files/patch-cli-backend.php # /usr/ports/www/jonah/files/httpd.conf.jonah # /usr/ports/www/jonah/files/patch-channels.php.dist # /usr/ports/www/jonah/pkg-plist # /usr/ports/www/jonah/pkg-message # /usr/ports/www/jonah/pkg-comment # /usr/ports/www/jonah/distinfo # /usr/ports/www/jonah/Makefile # /usr/ports/www/jonah/pkg-descr # echo c - /usr/ports/www/jonah mkdir -p /usr/ports/www/jonah > /dev/null 2>&1 echo c - /usr/ports/www/jonah/files mkdir -p /usr/ports/www/jonah/files > /dev/null 2>&1 echo x - /usr/ports/www/jonah/files/patch-cli-backend.php sed 's/^X//' >/usr/ports/www/jonah/files/patch-cli-backend.php << 'END-of-/usr/ports/www/jonah/files/patch-cli-backend.php' X--- cli-backend.php.orig Thu Dec 13 04:45:44 2001 X+++ cli-backend.php Wed Dec 26 22:56:35 2001 X@@ -2,7 +2,7 @@ X <?php X // $Horde: jonah/cli-backend.php,v 1.3 2001/12/13 03:45:44 chuck Exp $ X X-define('JONAH_BASE', dirname(__FILE__)); X+define('JONAH_BASE', %%JONAHDIR%%); X @require_once JONAH_BASE . '/lib/base.php'; X X // This shouldn't be callable via the web. END-of-/usr/ports/www/jonah/files/patch-cli-backend.php echo x - /usr/ports/www/jonah/files/httpd.conf.jonah sed 's/^X//' >/usr/ports/www/jonah/files/httpd.conf.jonah << 'END-of-/usr/ports/www/jonah/files/httpd.conf.jonah' X# This is included in Apache's httpd.conf for Jonah X# X# For security, don't serve pages from the Jonah configuration and X# library directories. X# X<Directory "/home/httpd/html/horde/jonah/config"> X order deny,allow X deny from all X</Directory> X<Directory "/home/httpd/html/horde/jonah/lib"> X order deny,allow X deny from all X</Directory> X<Directory "/home/httpd/html/horde/jonah/templates"> X order deny,allow X deny from all X</Directory> X# End of Jonah configuration ================ X END-of-/usr/ports/www/jonah/files/httpd.conf.jonah echo x - /usr/ports/www/jonah/files/patch-channels.php.dist sed 's/^X//' >/usr/ports/www/jonah/files/patch-channels.php.dist << 'END-of-/usr/ports/www/jonah/files/patch-channels.php.dist' X--- config/channels.php.dist.orig Thu Dec 13 06:13:10 2001 X+++ config/channels.php.dist Sat Dec 29 23:02:38 2001 X@@ -131,6 +131,12 @@ X 'url' => 'http://www.telepolis.de/news.rdf', X 'img' => 'heise.gif'), X X+ 'freebsddiary' => array('name' => 'FreeBSD diary', X+ 'url' => 'http://www.freebsddiary.org/news.php'), X+ X+ 'bsdtoday' => array('name' => 'BSD today', X+ 'url' => 'http://www.bsdtoday.com/backend/bt.rdf'), X+ X 'zend' => array('name' => 'Zend', X 'url' => 'http://www.zend.com/rss.php')); X END-of-/usr/ports/www/jonah/files/patch-channels.php.dist echo x - /usr/ports/www/jonah/pkg-plist sed 's/^X//' >/usr/ports/www/jonah/pkg-plist << 'END-of-/usr/ports/www/jonah/pkg-plist' X%%PORTDOCS%%share/doc/jonah/CHANGES X%%PORTDOCS%%share/doc/jonah/COPYING X%%PORTDOCS%%share/doc/jonah/CREDITS X%%PORTDOCS%%share/doc/jonah/HELP X%%PORTDOCS%%share/doc/jonah/INSTALL X%%PORTDOCS%%share/doc/jonah/README X%%JONAHDIR%%/backend.php X%%JONAHDIR%%/channels.php X%%JONAHDIR%%/config/channels.php X%%JONAHDIR%%/config/channels.php.dist X%%JONAHDIR%%/config/channels.php.dist.orig X%%JONAHDIR%%/config/conf.php X%%JONAHDIR%%/config/conf.php.dist X%%JONAHDIR%%/config/html.php X%%JONAHDIR%%/config/html.php.dist X%%JONAHDIR%%/graphics/channels/DominoPowerRSSLogo.gif X%%JONAHDIR%%/graphics/channels/OSOlogotext.gif X%%JONAHDIR%%/graphics/channels/PythonPowered.gif X%%JONAHDIR%%/graphics/channels/WindowsCEPowerRSSLogo.gif X%%JONAHDIR%%/graphics/channels/button.jpg X%%JONAHDIR%%/graphics/channels/fm.mini.jpg X%%JONAHDIR%%/graphics/channels/gildot.gif X%%JONAHDIR%%/graphics/channels/gnome-logo-icon.gif X%%JONAHDIR%%/graphics/channels/kdedotnews_88x31.gif X%%JONAHDIR%%/graphics/channels/linuxplanet.gif X%%JONAHDIR%%/graphics/channels/mail-archive.gif X%%JONAHDIR%%/graphics/channels/moreover.gif X%%JONAHDIR%%/graphics/channels/motleyfool.gif X%%JONAHDIR%%/graphics/channels/mynetscape88.gif X%%JONAHDIR%%/graphics/channels/netcenterb.gif X%%JONAHDIR%%/graphics/channels/perl-news-small.gif X%%JONAHDIR%%/graphics/channels/salon.gif X%%JONAHDIR%%/graphics/channels/securityfocus.gif X%%JONAHDIR%%/graphics/channels/segvnowsjr.gif X%%JONAHDIR%%/graphics/channels/slashdotlg.gif X%%JONAHDIR%%/graphics/channels/userfriendly.gif X%%JONAHDIR%%/graphics/channels/wide_open_logo_sm.gif X%%JONAHDIR%%/graphics/jonah.gif X%%JONAHDIR%%/graphics/jonah_whale.gif X%%JONAHDIR%%/index.php X%%JONAHDIR%%/lib/Headlines.php X%%JONAHDIR%%/lib/Jonah.php X%%JONAHDIR%%/lib/base.php X%%JONAHDIR%%/lib/htmlgen.php X%%JONAHDIR%%/lib/version.php X%%JONAHDIR%%/templates/backend/menu.inc X%%JONAHDIR%%/templates/channels/bottom.inc X%%JONAHDIR%%/templates/channels/channels.inc X%%JONAHDIR%%/templates/channels/header.inc X%%JONAHDIR%%/templates/channels/top.inc X%%JONAHDIR%%/templates/common-footer.inc X%%JONAHDIR%%/templates/common-header.inc X%%JONAHDIR%%/templates/index/css.inc X%%JONAHDIR%%/templates/index/notconfigured.inc X%%JONAHDIR%%/test.php Xbin/cli-backend.php Xetc/horde/httpd.conf.jonah X@dirrm %%JONAHDIR%%/config X@dirrm %%JONAHDIR%%/graphics/channels X@dirrm %%JONAHDIR%%/graphics X@dirrm %%JONAHDIR%%/lib X@dirrm %%JONAHDIR%%/templates/backend X@dirrm %%JONAHDIR%%/templates/channels X@dirrm %%JONAHDIR%%/templates/index X@dirrm %%JONAHDIR%%/templates X@dirrm %%JONAHDIR%% X%%PORTDOCS%%@dirrm share/doc/jonah END-of-/usr/ports/www/jonah/pkg-plist echo x - /usr/ports/www/jonah/pkg-message sed 's/^X//' >/usr/ports/www/jonah/pkg-message << 'END-of-/usr/ports/www/jonah/pkg-message' X************************************************************************ XJonah has been installed in %%JONAHDIR%% with your blank Xconfiguration files. X XHorde must be configured; if not, see: X- %%PORTSDIR%%/www/horde-devel/pkg-message X XThen, you may have to tune the configuration files located in X%%CONFDIR%%/, specially the files conf.php. XCheck in %%PREFIX%%/www/horde/config/horde.php that 'admin' is Xtreated as an administrator. X XFinally, beeing root, you must run %%PREFIX%%/bin/cli-backend.php Xto fetch the headlines. You might add an entry in your crontab to Xrefresh them (hourly, for example). X XThen go to <URL:http://localhost/horde/> and click on the newspaper Xto see the channels. X XThere is a test script at <URL:http://localhost/horde/jonah/test.php>. X XTo protect your configuration files, you have to restart Apache. X************************************************************************ END-of-/usr/ports/www/jonah/pkg-message echo x - /usr/ports/www/jonah/pkg-comment sed 's/^X//' >/usr/ports/www/jonah/pkg-comment << 'END-of-/usr/ports/www/jonah/pkg-comment' XJonah is a portal and content collection system END-of-/usr/ports/www/jonah/pkg-comment echo x - /usr/ports/www/jonah/distinfo sed 's/^X//' >/usr/ports/www/jonah/distinfo << 'END-of-/usr/ports/www/jonah/distinfo' XMD5 (jonah-0.0.3.011217.tar.gz) = b5a0b00eb05eea9dc45f248b275b05bc END-of-/usr/ports/www/jonah/distinfo echo x - /usr/ports/www/jonah/Makefile sed 's/^X//' >/usr/ports/www/jonah/Makefile << 'END-of-/usr/ports/www/jonah/Makefile' X# Ports collection makefile for: Jonah X# Date created: Mon Dec 17, 2001 X# Whom: Thierry Thomas (<thierry@thomas.as>) X# X# $FreeBSD$ X# X XPORTNAME= jonah XPORTVERSION= 0.0.3.011217 XCATEGORIES= www XMASTER_SITES= http://pompo.net/horde/jonah/ X XMAINTAINER= thierry@thomas.as X XRUN_DEPENDS= ${LOCALBASE}/www/horde/index.php:${PORTSDIR}/www/horde-devel \ X ${LOCALBASE}/bin/php:${PORTSDIR}/lang/php4 X XNO_BUILD= yes X XDOCS= COPYING README docs/CHANGES docs/CREDITS docs/HELP \ X docs/INSTALL XCONFFILE= channels.php conf.php html.php X XLHORDEDIR?= www/horde XLJONAHDIR?= ${LHORDEDIR}/jonah XRSS_HTML?= /var/jonah XPHPSADIR?= ${LOCALBASE}/etc/php.standalone X XPLIST_SUB= HORDEDIR=${LHORDEDIR} JONAHDIR=${LJONAHDIR} X XHORDEDIR= ${PREFIX}/${LHORDEDIR} XJONAHDIR= ${PREFIX}/${LJONAHDIR} XCONFDIR= ${JONAHDIR}/config X XHORDE_INC= ${LOCALBASE}/etc/horde XHORDE_CNF= ${HORDEDIR}/config/horde.php XPHPSA_INI= ${PHPSADIR}/php.ini X Xpre-install: X @if ! ${LDCONFIG} -r | ${GREP} -q -e "expat.2"; then \ X ${ECHO_MSG} "" ; \ X ${ECHO_MSG} "Please configure PHP with XML support." ; \ X ${ECHO_MSG} "" ; \ X ${FALSE} ; \ X fi X Xdo-install: X @${MKDIR} ${JONAHDIR} X @${CP} -Rp ${WRKSRC}/config ${WRKSRC}/graphics ${WRKSRC}/lib ${JONAHDIR} X @${CP} -Rp ${WRKSRC}/templates ${JONAHDIR} X @${CP} -p ${WRKSRC}/*.php ${JONAHDIR} X @${MV} ${JONAHDIR}/cli-backend.php ${PREFIX}/bin X.for FILE in ${CONFFILE} X @if [ ! -f ${CONFDIR}/${FILE} ]; then \ X ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \ X fi X.endfor X @${PERL} -pi -e "s:/var/jonah:${RSS_HTML}:" ${CONFDIR}/conf.php X @${PERL} -pi -e "s:%%JONAHDIR%%:'${JONAHDIR}':" \ X ${PREFIX}/bin/cli-backend.php X @${CHOWN} -R www:www ${JONAHDIR} X @${CHMOD} -R o-rwx ${CONFDIR} X @${CP} -p ${FILESDIR}/httpd.conf.jonah ${HORDE_INC} X @${PERL} -pi -e "s:/home/httpd/html/horde/jonah:${JONAHDIR}:g" \ X ${HORDE_INC}/httpd.conf.jonah X @${PERL} -pi -e "s://UNCOMMENTWHENINSTJONAH::" \ X ${HORDEDIR}/config/registry.php X @${MKDIR} ${RSS_HTML}/html ${RSS_HTML}/rss X @${CHOWN} -R root:www ${RSS_HTML} X @if ${GREP} -q -e "conf\['auth'\]\['admins'\] = array()" ${HORDE_CNF} ; then \ X ${ECHO_MSG} "===> Defining admin in ${HORDE_CNF}" ; \ X ${PERL} -pi -e "s:admins'] = array\(\):admins'] = array('admin'):" ${HORDE_CNF} ; \ X fi X @if [ ! -f ${PHPSA_INI} ]; then \ X ${ECHO_MSG} "===> Creating ${PHPSA_INI} for PHP standalone" ; \ X ${CP} ${PHPSA_INI}-dist ${PHPSA_INI} ; \ X fi X @if ! ${GREP} -q -e '^include_path' ${PHPSA_INI} ; then \ X ${ECHO_MSG} "===> Configuring ${PHPSA_INI} for PHP standalone" ; \ X ${CP} -p ${PHPSA_INI} ${PHPSA_INI}.beforeJonah ; \ X ${PERL} -pi -e 's!;include_path = ".:/php/includes"!include_path = "${LOCALBASE}/include/php:.:${LOCALBASE}/lib/php"!' ${PHPSA_INI} ; \ X fi 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 @${ECHO_MSG} X @${CAT} ${PKGMESSAGE} | \ X ${SED} -e "s:%%JONAHDIR%%:${JONAHDIR}:g;s:%%PORTSDIR%%:${PORTSDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g;s:%%PREFIX%%:${PREFIX}:" X @${ECHO_MSG} X X.include <bsd.port.mk> END-of-/usr/ports/www/jonah/Makefile echo x - /usr/ports/www/jonah/pkg-descr sed 's/^X//' >/usr/ports/www/jonah/pkg-descr << 'END-of-/usr/ports/www/jonah/pkg-descr' XJonah is the Horde content and display manager. X XIt has been designed to manage a portal-like site using RDF, RSS and XSyndicated XML backend content. It is still in the development stage. X XWWW: http://horde.org/jonah/ END-of-/usr/ports/www/jonah/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011229223544.E20017656>