Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  9 Apr 2002 00:50:59 +0200 (CEST)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/36908: New port: deskutils/nag - Horde's task list manager.
Message-ID:  <20020408225059.44E91750D@graf.pompo.net>

next in thread | raw e-mail | index | archive | help

>Number:         36908
>Category:       ports
>Synopsis:       New port: deskutils/nag - Horde's task list manager.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 08 16:00:15 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Mar 9 11:54:44 CET 2002 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386


	
>Description:
	Nag is a web-based task list manager.

	N.B.: this PR supersedes PR ports/32883.

>How-To-Repeat:
	N/A.

>Fix:

	Pre-requisite: this patch must be applied after PR ports/36906.

	Then, 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/deskutils/nag
#	/usr/ports/deskutils/nag/files
#	/usr/ports/deskutils/nag/files/patch-aa
#	/usr/ports/deskutils/nag/files/httpd.conf.nag
#	/usr/ports/deskutils/nag/files/patch-ab
#	/usr/ports/deskutils/nag/pkg-plist
#	/usr/ports/deskutils/nag/pkg-message
#	/usr/ports/deskutils/nag/pkg-descr
#	/usr/ports/deskutils/nag/pkg-comment
#	/usr/ports/deskutils/nag/distinfo
#	/usr/ports/deskutils/nag/Makefile
#
echo c - /usr/ports/deskutils/nag
mkdir -p /usr/ports/deskutils/nag > /dev/null 2>&1
echo c - /usr/ports/deskutils/nag/files
mkdir -p /usr/ports/deskutils/nag/files > /dev/null 2>&1
echo x - /usr/ports/deskutils/nag/files/patch-aa
sed 's/^X//' >/usr/ports/deskutils/nag/files/patch-aa << 'END-of-/usr/ports/deskutils/nag/files/patch-aa'
X--- scripts/drivers/nag_tasks.sql.orig	Tue Dec 11 14:47:41 2001
X+++ scripts/drivers/nag_tasks.sql	Sat Dec 15 00:42:13 2001
X@@ -13,4 +13,4 @@
X 	primary key (task_owner, task_id)
X );
X 
X-grant select, insert, update, delete on nag_tasks to horde;
X+grant select, insert, update, delete on nag_tasks to hordemgr;
END-of-/usr/ports/deskutils/nag/files/patch-aa
echo x - /usr/ports/deskutils/nag/files/httpd.conf.nag
sed 's/^X//' >/usr/ports/deskutils/nag/files/httpd.conf.nag << 'END-of-/usr/ports/deskutils/nag/files/httpd.conf.nag'
X# This is included in Apache's httpd.conf for Nag
X#
X# For security, don't serve pages from the Nag configuration and
X# library directories.
X#
X<Directory "/home/httpd/html/horde/nag/config">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/nag/lib">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/nag/locale">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/nag/po">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/nag/scripts">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/nag/templates">
X    order deny,allow
X    deny from all
X</Directory>
X# End of Nag configuration ================
X
END-of-/usr/ports/deskutils/nag/files/httpd.conf.nag
echo x - /usr/ports/deskutils/nag/files/patch-ab
sed 's/^X//' >/usr/ports/deskutils/nag/files/patch-ab << 'END-of-/usr/ports/deskutils/nag/files/patch-ab'
X--- config/conf.php.dist.orig	Tue Mar 12 18:07:16 2002
X+++ config/conf.php.dist	Mon Apr  8 23:08:04 2002
X@@ -42,12 +42,12 @@
X // Below is an example configuration for an sql driver, in this case
X // MySQL.
X $conf['storage']['params'] = array();
X-// $conf['storage']['params']['phptype'] = 'mysql';
X-// $conf['storage']['params']['hostspec'] = 'localhost';
X-// $conf['storage']['params']['username'] = 'horde';
X-// $conf['storage']['params']['password'] = '*****';
X-// $conf['storage']['params']['database'] = 'horde';
X-// $conf['storage']['params']['table'] = 'nag_tasks';
X+$conf['storage']['params']['phptype'] = 'mysql';
X+$conf['storage']['params']['hostspec'] = 'localhost';
X+$conf['storage']['params']['username'] = 'hordemgr';
X+$conf['storage']['params']['password'] = 'hordemgr';
X+$conf['storage']['params']['database'] = 'horde';
X+$conf['storage']['params']['table'] = 'nag_tasks';
X 
X 
X /**
END-of-/usr/ports/deskutils/nag/files/patch-ab
echo x - /usr/ports/deskutils/nag/pkg-plist
sed 's/^X//' >/usr/ports/deskutils/nag/pkg-plist << 'END-of-/usr/ports/deskutils/nag/pkg-plist'
X%%PORTDOCS%%share/doc/nag/CHANGES
X%%PORTDOCS%%share/doc/nag/COPYING
X%%PORTDOCS%%share/doc/nag/CREDITS
X%%PORTDOCS%%share/doc/nag/INSTALL
X%%PORTDOCS%%share/doc/nag/README
X%%PORTDOCS%%share/doc/nag/ROADMAP
X%%PORTDOCS%%share/doc/nag/TODO
X%%NAGDIR%%/config/conf.php
X%%NAGDIR%%/config/conf.php.dist
X%%NAGDIR%%/config/conf.php.dist.orig
X%%NAGDIR%%/config/html.php
X%%NAGDIR%%/config/html.php.dist
X%%NAGDIR%%/config/menu.php
X%%NAGDIR%%/config/menu.php.dist
X%%NAGDIR%%/config/motd.php
X%%NAGDIR%%/config/motd.php.dist
X%%NAGDIR%%/config/prefs.php
X%%NAGDIR%%/config/prefs.php.dist
X%%NAGDIR%%/graphics/add.gif
X%%NAGDIR%%/graphics/checkbox.gif
X%%NAGDIR%%/graphics/down.gif
X%%NAGDIR%%/graphics/high.gif
X%%NAGDIR%%/graphics/list.gif
X%%NAGDIR%%/graphics/low.gif
X%%NAGDIR%%/graphics/nag.gif
X%%NAGDIR%%/graphics/note.gif
X%%NAGDIR%%/graphics/refresh.gif
X%%NAGDIR%%/graphics/search.gif
X%%NAGDIR%%/graphics/up.gif
X%%NAGDIR%%/index.php
X%%NAGDIR%%/lib/Driver.php
X%%NAGDIR%%/lib/Driver/sql.php
X%%NAGDIR%%/lib/Nag.php
X%%NAGDIR%%/lib/api.php
X%%NAGDIR%%/lib/base.php
X%%NAGDIR%%/lib/constants.php
X%%NAGDIR%%/lib/version.php
X%%NAGDIR%%/list.php
X%%NAGDIR%%/locale/cs_CZ/LC_MESSAGES/nag.mo
X%%NAGDIR%%/locale/de_DE/LC_MESSAGES/nag.mo
X%%NAGDIR%%/locale/en_US/help.xml
X%%NAGDIR%%/locale/es_ES/LC_MESSAGES/nag.mo
X%%NAGDIR%%/locale/fr_FR/LC_MESSAGES/nag.mo
X%%NAGDIR%%/locale/it_IT/LC_MESSAGES/nag.mo
X%%NAGDIR%%/locale/nl_NL/LC_MESSAGES/nag.mo
X%%NAGDIR%%/locale/pt_BR/LC_MESSAGES/nag.mo
X%%NAGDIR%%/locale/ru_RU/LC_MESSAGES/nag.mo
X%%NAGDIR%%/locale/ru_RU.KOI8-R/LC_MESSAGES/nag.mo
X%%NAGDIR%%/locale/sv_SE/LC_MESSAGES/nag.mo
X%%NAGDIR%%/locale/zh_TW/LC_MESSAGES/nag.mo
X%%NAGDIR%%/menu.php
X%%NAGDIR%%/po/Makefile
X%%NAGDIR%%/po/README
X%%NAGDIR%%/po/cs_CZ.po
X%%NAGDIR%%/po/de_DE.po
X%%NAGDIR%%/po/es_ES.po
X%%NAGDIR%%/po/extract.pl
X%%NAGDIR%%/po/fr_FR.po
X%%NAGDIR%%/po/it_IT.po
X%%NAGDIR%%/po/nl_NL.po
X%%NAGDIR%%/po/pt_BR.po
X%%NAGDIR%%/po/ru_RU.po
X%%NAGDIR%%/po/ru_RU.KOI8-R.po
X%%NAGDIR%%/po/sv_SE.po
X%%NAGDIR%%/po/zh_TW.po
X%%NAGDIR%%/po/shtool
X%%NAGDIR%%/po/xgettext.sh
X%%NAGDIR%%/prefs.php
X%%NAGDIR%%/scripts/drivers/nag_tasks.sql
X%%NAGDIR%%/scripts/drivers/nag_tasks.sql.orig
X%%NAGDIR%%/search.php
X%%NAGDIR%%/task.php
X%%NAGDIR%%/templates/common-footer.inc
X%%NAGDIR%%/templates/common-header.inc
X%%NAGDIR%%/templates/index/css.inc
X%%NAGDIR%%/templates/index/notconfigured.inc
X%%NAGDIR%%/templates/list/actions.inc
X%%NAGDIR%%/templates/list/empty.inc
X%%NAGDIR%%/templates/list/footer.inc
X%%NAGDIR%%/templates/list/header.inc
X%%NAGDIR%%/templates/list/javascript.inc
X%%NAGDIR%%/templates/list/task_footers.inc
X%%NAGDIR%%/templates/list/task_headers.inc
X%%NAGDIR%%/templates/list/task_summaries.inc
X%%NAGDIR%%/templates/menu/menu.inc
X%%NAGDIR%%/templates/search/begin.inc
X%%NAGDIR%%/templates/search/end.inc
X%%NAGDIR%%/templates/search/search.inc
X%%NAGDIR%%/templates/task/begin.inc
X%%NAGDIR%%/templates/task/end.inc
X%%NAGDIR%%/templates/task/task.inc
X%%NAGDIR%%/templates/view/description.inc
X%%NAGDIR%%/templates/view/headers.inc
X%%NAGDIR%%/templates/view/navbar.inc
X%%NAGDIR%%/templates/view/no-task.inc
X%%NAGDIR%%/view.php
X@dirrm %%NAGDIR%%/config
X@dirrm %%NAGDIR%%/graphics
X@dirrm %%NAGDIR%%/lib/Driver
X@dirrm %%NAGDIR%%/lib
X@dirrm %%NAGDIR%%/locale/cs_CZ/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/cs_CZ
X@dirrm %%NAGDIR%%/locale/de_DE/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/de_DE
X@dirrm %%NAGDIR%%/locale/en_US
X@dirrm %%NAGDIR%%/locale/es_ES/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/es_ES
X@dirrm %%NAGDIR%%/locale/fr_FR/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/fr_FR
X@dirrm %%NAGDIR%%/locale/it_IT/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/it_IT
X@dirrm %%NAGDIR%%/locale/nl_NL/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/nl_NL
X@dirrm %%NAGDIR%%/locale/pt_BR/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/pt_BR
X@dirrm %%NAGDIR%%/locale/ru_RU/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/ru_RU
X@dirrm %%NAGDIR%%/locale/ru_RU.KOI8-R/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/ru_RU.KOI8-R
X@dirrm %%NAGDIR%%/locale/sv_SE/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/sv_SE
X@dirrm %%NAGDIR%%/locale/zh_TW/LC_MESSAGES
X@dirrm %%NAGDIR%%/locale/zh_TW
X@dirrm %%NAGDIR%%/locale
X@dirrm %%NAGDIR%%/po
X@dirrm %%NAGDIR%%/scripts/drivers
X@dirrm %%NAGDIR%%/scripts
X@dirrm %%NAGDIR%%/templates/index
X@dirrm %%NAGDIR%%/templates/list
X@dirrm %%NAGDIR%%/templates/menu
X@dirrm %%NAGDIR%%/templates/search
X@dirrm %%NAGDIR%%/templates/task
X@dirrm %%NAGDIR%%/templates/view
X@dirrm %%NAGDIR%%/templates
X@dirrm %%NAGDIR%%
Xetc/horde/httpd.conf.nag
X%%PORTDOCS%%@dirrm share/doc/nag
END-of-/usr/ports/deskutils/nag/pkg-plist
echo x - /usr/ports/deskutils/nag/pkg-message
sed 's/^X//' >/usr/ports/deskutils/nag/pkg-message << 'END-of-/usr/ports/deskutils/nag/pkg-message'
X************************************************************************
XNag has been installed in %%NAGDIR%% with your blank
Xconfiguration files.
X
XHorde and IMP must be configured; if not, see:
X- %%PORTSDIR%%/www/horde2/pkg-message
X- %%PORTSDIR%%/mail/imp3/pkg-message
X
XThen, you have to create the table nag_tasks, from the SQL script
X%%NAGDIR%%/scripts/drivers/nag_tasks.sql.
XFor example, if your database is MySQL, you may run
Xmysql --user=hordemgr --password=yourpass horde < nag_tasks.sql
X(If you run another database server, see
X %%HORDEDIR%%/scripts/db/README
X for more explanations.)
X
XFinally, 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/nag/pkg-message
echo x - /usr/ports/deskutils/nag/pkg-descr
sed 's/^X//' >/usr/ports/deskutils/nag/pkg-descr << 'END-of-/usr/ports/deskutils/nag/pkg-descr'
XNag is the Horde task list manager.
X
XWWW: http://horde.org/nag/
END-of-/usr/ports/deskutils/nag/pkg-descr
echo x - /usr/ports/deskutils/nag/pkg-comment
sed 's/^X//' >/usr/ports/deskutils/nag/pkg-comment << 'END-of-/usr/ports/deskutils/nag/pkg-comment'
XNag is a simple, multiuser task list manager
END-of-/usr/ports/deskutils/nag/pkg-comment
echo x - /usr/ports/deskutils/nag/distinfo
sed 's/^X//' >/usr/ports/deskutils/nag/distinfo << 'END-of-/usr/ports/deskutils/nag/distinfo'
XMD5 (nag-1.0-RC1.tar.gz) = cf2e6224a62e787208886156c1868e9e
END-of-/usr/ports/deskutils/nag/distinfo
echo x - /usr/ports/deskutils/nag/Makefile
sed 's/^X//' >/usr/ports/deskutils/nag/Makefile << 'END-of-/usr/ports/deskutils/nag/Makefile'
X# Ports collection makefile for:  Nag
X# Date created:			  Sun Dec 14, 2001
X# Whom:				  Thierry Thomas (<thierry@pompo.net>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	nag
XPORTVERSION=	1.0
XCATEGORIES=	deskutils www
XMASTER_SITES=	ftp://ftp.horde.org/pub/nag/tarballs/
XDISTNAME=	${PORTNAME}-${PORTVERSION}-RC1
X
XMAINTAINER=	thierry@pompo.net
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XRUN_DEPENDS=	${LOCALBASE}/www/horde/imp/index.php:${PORTSDIR}/mail/imp3
X
XNO_BUILD=	yes
X
XDOCS=		COPYING README docs/CHANGES docs/CREDITS docs/INSTALL \
X		docs/ROADMAP docs/TODO
XCONFFILE=	conf.php html.php menu.php motd.php prefs.php
XSUB_DIRS=	config graphics lib locale po scripts templates
X
XLHORDEDIR?=	www/horde
XLNAGDIR?=	${LHORDEDIR}/nag
X
XPLIST_SUB=	HORDEDIR=${LHORDEDIR} NAGDIR=${LNAGDIR}
X
XHORDEDIR=	${PREFIX}/${LHORDEDIR}
XNAGDIR=		${PREFIX}/${LNAGDIR}
XCONFDIR=	${NAGDIR}/config
X
XHORDE_INC=	${LOCALBASE}/etc/horde
X
Xdo-install:
X	@${MKDIR}  ${NAGDIR}
X.for REP in ${SUB_DIRS}
X	@${CP} -Rp ${WRKSRC}/${REP} ${NAGDIR}
X.endfor
X	@${CP} -p  ${WRKSRC}/*.php ${NAGDIR}
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 ${NAGDIR}
X	@${CHMOD} -R o-rwx ${CONFDIR}
X	@${CP} -p ${FILESDIR}/httpd.conf.nag ${HORDE_INC}
X	@${PERL} -pi -e "s:/home/httpd/html/horde/nag:${NAGDIR}:g" \
X		${HORDE_INC}/httpd.conf.nag
X	@${PERL} -pi -e "s://UNCOMMENTWHENINSTNAG::" ${HORDEDIR}/config/registry.php
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:%%NAGDIR%%:${NAGDIR}:g;s:%%PORTSDIR%%:${PORTSDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g;s:%%HORDEDIR%%:${HORDEDIR}:"
X	@${ECHO_MSG}
X
X.include <bsd.port.mk>
END-of-/usr/ports/deskutils/nag/Makefile
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?20020408225059.44E91750D>