summaryrefslogtreecommitdiff
path: root/deskutils/nag
diff options
context:
space:
mode:
authorSADA Kenji <sada@FreeBSD.org>2002-05-18 00:22:48 +0000
committerSADA Kenji <sada@FreeBSD.org>2002-05-18 00:22:48 +0000
commit2209bc25ca1c3962b01c226c45bc295310776091 (patch)
tree563ca1a0f0e71aa80b50a48f5aeed67df0faa082 /deskutils/nag
parenthonor CFLAGS. (diff)
Add new port: deskutils/nag - Horde's task list manager.
PR: ports/36908 Submitted by: Thierry Thomas <thierry@pompo.net>
Notes
Notes: svn path=/head/; revision=59355
Diffstat (limited to 'deskutils/nag')
-rw-r--r--deskutils/nag/Makefile67
-rw-r--r--deskutils/nag/distinfo1
-rw-r--r--deskutils/nag/files/httpd.conf.nag31
-rw-r--r--deskutils/nag/files/patch-aa8
-rw-r--r--deskutils/nag/files/patch-ab21
-rw-r--r--deskutils/nag/pkg-comment1
-rw-r--r--deskutils/nag/pkg-descr3
-rw-r--r--deskutils/nag/pkg-message21
-rw-r--r--deskutils/nag/pkg-plist139
9 files changed, 292 insertions, 0 deletions
diff --git a/deskutils/nag/Makefile b/deskutils/nag/Makefile
new file mode 100644
index 000000000000..38813be2dd96
--- /dev/null
+++ b/deskutils/nag/Makefile
@@ -0,0 +1,67 @@
+# Ports collection makefile for: Nag
+# Date created: Sun Dec 14, 2001
+# Whom: Thierry Thomas (<thierry@pompo.net>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= nag
+PORTVERSION= 1.0
+CATEGORIES= deskutils www
+MASTER_SITES= ftp://ftp.horde.org/pub/nag/tarballs/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-RC2
+
+MAINTAINER= thierry@pompo.net
+
+RUN_DEPENDS= ${LOCALBASE}/www/horde/imp/index.php:${PORTSDIR}/mail/imp3
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+NO_BUILD= yes
+PLIST_SUB= HORDEDIR=${LHORDEDIR} NAGDIR=${LNAGDIR}
+
+DOCS= COPYING README docs/CHANGES docs/CREDITS docs/INSTALL \
+ docs/TODO
+CONFFILE= conf.php html.php menu.php motd.php prefs.php
+SUB_DIRS= config graphics lib locale po scripts templates
+
+LHORDEDIR?= www/horde
+LNAGDIR?= ${LHORDEDIR}/nag
+
+HORDEDIR= ${PREFIX}/${LHORDEDIR}
+NAGDIR= ${PREFIX}/${LNAGDIR}
+CONFDIR= ${NAGDIR}/config
+
+HORDE_INC= ${LOCALBASE}/etc/horde
+
+do-install:
+ @${MKDIR} ${NAGDIR}
+.for REP in ${SUB_DIRS}
+ @${CP} -Rp ${WRKSRC}/${REP} ${NAGDIR}
+.endfor
+ @${CP} -p ${WRKSRC}/*.php ${NAGDIR}
+.for FILE in ${CONFFILE}
+ @if [ ! -f ${CONFDIR}/${FILE} ]; then \
+ ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
+ fi
+.endfor
+ @${CHOWN} -R www:www ${NAGDIR}
+ @${CHMOD} -R o-rwx ${CONFDIR}
+ @${CP} -p ${FILESDIR}/httpd.conf.nag ${HORDE_INC}
+ @${PERL} -pi -e "s:/home/httpd/html/horde/nag:${NAGDIR}:g" \
+ ${HORDE_INC}/httpd.conf.nag
+ @${PERL} -pi -e "s://UNCOMMENTWHENINSTNAG::" ${HORDEDIR}/config/registry.php
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+
+post-install:
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE} | \
+ ${SED} -e "s:%%NAGDIR%%:${NAGDIR}:g;s:%%PORTSDIR%%:${PORTSDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g;s:%%HORDEDIR%%:${HORDEDIR}:"
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/deskutils/nag/distinfo b/deskutils/nag/distinfo
new file mode 100644
index 000000000000..a28fa9af0330
--- /dev/null
+++ b/deskutils/nag/distinfo
@@ -0,0 +1 @@
+MD5 (nag-1.0-RC2.tar.gz) = 176a2bb44bcc469425d7ca70109ea879
diff --git a/deskutils/nag/files/httpd.conf.nag b/deskutils/nag/files/httpd.conf.nag
new file mode 100644
index 000000000000..c5279c8245fa
--- /dev/null
+++ b/deskutils/nag/files/httpd.conf.nag
@@ -0,0 +1,31 @@
+# This is included in Apache's httpd.conf for Nag
+#
+# For security, don't serve pages from the Nag configuration and
+# library directories.
+#
+<Directory "/home/httpd/html/horde/nag/config">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/nag/lib">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/nag/locale">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/nag/po">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/nag/scripts">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/nag/templates">
+ order deny,allow
+ deny from all
+</Directory>
+# End of Nag configuration ================
+
diff --git a/deskutils/nag/files/patch-aa b/deskutils/nag/files/patch-aa
new file mode 100644
index 000000000000..2ee4d373ca48
--- /dev/null
+++ b/deskutils/nag/files/patch-aa
@@ -0,0 +1,8 @@
+--- scripts/drivers/nag_tasks.sql.orig Tue Dec 11 14:47:41 2001
++++ scripts/drivers/nag_tasks.sql Sat Dec 15 00:42:13 2001
+@@ -13,4 +13,4 @@
+ primary key (task_owner, task_id)
+ );
+
+-grant select, insert, update, delete on nag_tasks to horde;
++grant select, insert, update, delete on nag_tasks to hordemgr;
diff --git a/deskutils/nag/files/patch-ab b/deskutils/nag/files/patch-ab
new file mode 100644
index 000000000000..26192dede93d
--- /dev/null
+++ b/deskutils/nag/files/patch-ab
@@ -0,0 +1,21 @@
+--- config/conf.php.dist.orig Tue Mar 12 18:07:16 2002
++++ config/conf.php.dist Mon Apr 8 23:08:04 2002
+@@ -42,12 +42,12 @@
+ // Below is an example configuration for an sql driver, in this case
+ // MySQL.
+ $conf['storage']['params'] = array();
+-// $conf['storage']['params']['phptype'] = 'mysql';
+-// $conf['storage']['params']['hostspec'] = 'localhost';
+-// $conf['storage']['params']['username'] = 'horde';
+-// $conf['storage']['params']['password'] = '*****';
+-// $conf['storage']['params']['database'] = 'horde';
+-// $conf['storage']['params']['table'] = 'nag_tasks';
++$conf['storage']['params']['phptype'] = 'mysql';
++$conf['storage']['params']['hostspec'] = 'localhost';
++$conf['storage']['params']['username'] = 'hordemgr';
++$conf['storage']['params']['password'] = 'hordemgr';
++$conf['storage']['params']['database'] = 'horde';
++$conf['storage']['params']['table'] = 'nag_tasks';
+
+
+ /**
diff --git a/deskutils/nag/pkg-comment b/deskutils/nag/pkg-comment
new file mode 100644
index 000000000000..6dc29bafb4e5
--- /dev/null
+++ b/deskutils/nag/pkg-comment
@@ -0,0 +1 @@
+Nag is a simple, multiuser task list manager
diff --git a/deskutils/nag/pkg-descr b/deskutils/nag/pkg-descr
new file mode 100644
index 000000000000..6eeeb953967c
--- /dev/null
+++ b/deskutils/nag/pkg-descr
@@ -0,0 +1,3 @@
+Nag is the Horde task list manager.
+
+WWW: http://horde.org/nag/
diff --git a/deskutils/nag/pkg-message b/deskutils/nag/pkg-message
new file mode 100644
index 000000000000..82fde213db7b
--- /dev/null
+++ b/deskutils/nag/pkg-message
@@ -0,0 +1,21 @@
+************************************************************************
+Nag has been installed in %%NAGDIR%% with your blank
+configuration files.
+
+Horde and IMP must be configured; if not, see:
+- %%PORTSDIR%%/www/horde2/pkg-message
+- %%PORTSDIR%%/mail/imp3/pkg-message
+
+Then, you have to create the table nag_tasks, from the SQL script
+%%NAGDIR%%/scripts/drivers/nag_tasks.sql.
+For example, if your database is MySQL, you may run
+mysql --user=hordemgr --password=yourpass horde < nag_tasks.sql
+(If you run another database server, see
+ %%HORDEDIR%%/scripts/db/README
+ for more explanations.)
+
+Finally, you may have to tune the configuration files located in
+%%CONFDIR%%/, specially the files conf.php.
+
+To protect your configuration files, you have to restart Apache.
+************************************************************************
diff --git a/deskutils/nag/pkg-plist b/deskutils/nag/pkg-plist
new file mode 100644
index 000000000000..26d8b393427e
--- /dev/null
+++ b/deskutils/nag/pkg-plist
@@ -0,0 +1,139 @@
+%%PORTDOCS%%share/doc/nag/CHANGES
+%%PORTDOCS%%share/doc/nag/COPYING
+%%PORTDOCS%%share/doc/nag/CREDITS
+%%PORTDOCS%%share/doc/nag/INSTALL
+%%PORTDOCS%%share/doc/nag/README
+%%PORTDOCS%%share/doc/nag/TODO
+%%NAGDIR%%/config/conf.php
+%%NAGDIR%%/config/conf.php.dist
+%%NAGDIR%%/config/conf.php.dist.orig
+%%NAGDIR%%/config/html.php
+%%NAGDIR%%/config/html.php.dist
+%%NAGDIR%%/config/menu.php
+%%NAGDIR%%/config/menu.php.dist
+%%NAGDIR%%/config/motd.php
+%%NAGDIR%%/config/motd.php.dist
+%%NAGDIR%%/config/prefs.php
+%%NAGDIR%%/config/prefs.php.dist
+%%NAGDIR%%/graphics/add.gif
+%%NAGDIR%%/graphics/checkbox.gif
+%%NAGDIR%%/graphics/complete.gif
+%%NAGDIR%%/graphics/down.gif
+%%NAGDIR%%/graphics/list.gif
+%%NAGDIR%%/graphics/nag.gif
+%%NAGDIR%%/graphics/note.gif
+%%NAGDIR%%/graphics/refresh.gif
+%%NAGDIR%%/graphics/search.gif
+%%NAGDIR%%/graphics/up.gif
+%%NAGDIR%%/index.php
+%%NAGDIR%%/lib/Driver.php
+%%NAGDIR%%/lib/Driver/sql.php
+%%NAGDIR%%/lib/Nag.php
+%%NAGDIR%%/lib/api.php
+%%NAGDIR%%/lib/base.php
+%%NAGDIR%%/lib/constants.php
+%%NAGDIR%%/lib/version.php
+%%NAGDIR%%/list.php
+%%NAGDIR%%/locale/cs_CZ/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/de_DE/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/en_US/help.xml
+%%NAGDIR%%/locale/es_ES/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/fi_FI/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/fr_FR/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/it_IT/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/nl_NL/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/pt_BR/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/ru_RU/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/ru_RU.KOI8-R/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/sv_SE/LC_MESSAGES/nag.mo
+%%NAGDIR%%/locale/zh_TW/LC_MESSAGES/nag.mo
+%%NAGDIR%%/menu.php
+%%NAGDIR%%/po/Makefile
+%%NAGDIR%%/po/README
+%%NAGDIR%%/po/cs_CZ.po
+%%NAGDIR%%/po/de_DE.po
+%%NAGDIR%%/po/es_ES.po
+%%NAGDIR%%/po/extract.pl
+%%NAGDIR%%/po/fi_FI.po
+%%NAGDIR%%/po/fr_FR.po
+%%NAGDIR%%/po/it_IT.po
+%%NAGDIR%%/po/nl_NL.po
+%%NAGDIR%%/po/pt_BR.po
+%%NAGDIR%%/po/ru_RU.po
+%%NAGDIR%%/po/ru_RU.KOI8-R.po
+%%NAGDIR%%/po/sv_SE.po
+%%NAGDIR%%/po/zh_TW.po
+%%NAGDIR%%/po/shtool
+%%NAGDIR%%/po/xgettext.sh
+%%NAGDIR%%/prefs.php
+%%NAGDIR%%/scripts/drivers/nag_tasks.sql
+%%NAGDIR%%/scripts/drivers/nag_tasks.sql.orig
+%%NAGDIR%%/search.php
+%%NAGDIR%%/task.php
+%%NAGDIR%%/templates/common-footer.inc
+%%NAGDIR%%/templates/common-header.inc
+%%NAGDIR%%/templates/index/css.inc
+%%NAGDIR%%/templates/index/notconfigured.inc
+%%NAGDIR%%/templates/list/actions.inc
+%%NAGDIR%%/templates/list/empty.inc
+%%NAGDIR%%/templates/list/footer.inc
+%%NAGDIR%%/templates/list/header.inc
+%%NAGDIR%%/templates/list/javascript.inc
+%%NAGDIR%%/templates/list/task_footers.inc
+%%NAGDIR%%/templates/list/task_headers.inc
+%%NAGDIR%%/templates/list/task_summaries.inc
+%%NAGDIR%%/templates/menu/menu.inc
+%%NAGDIR%%/templates/search/begin.inc
+%%NAGDIR%%/templates/search/end.inc
+%%NAGDIR%%/templates/search/search.inc
+%%NAGDIR%%/templates/task/begin.inc
+%%NAGDIR%%/templates/task/end.inc
+%%NAGDIR%%/templates/task/task.inc
+%%NAGDIR%%/templates/view/description.inc
+%%NAGDIR%%/templates/view/headers.inc
+%%NAGDIR%%/templates/view/navbar.inc
+%%NAGDIR%%/templates/view/no-task.inc
+%%NAGDIR%%/view.php
+@dirrm %%NAGDIR%%/config
+@dirrm %%NAGDIR%%/graphics
+@dirrm %%NAGDIR%%/lib/Driver
+@dirrm %%NAGDIR%%/lib
+@dirrm %%NAGDIR%%/locale/cs_CZ/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/cs_CZ
+@dirrm %%NAGDIR%%/locale/de_DE/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/de_DE
+@dirrm %%NAGDIR%%/locale/en_US
+@dirrm %%NAGDIR%%/locale/es_ES/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/es_ES
+@dirrm %%NAGDIR%%/locale/fi_FI/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/fi_FI
+@dirrm %%NAGDIR%%/locale/fr_FR/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/fr_FR
+@dirrm %%NAGDIR%%/locale/it_IT/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/it_IT
+@dirrm %%NAGDIR%%/locale/nl_NL/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/nl_NL
+@dirrm %%NAGDIR%%/locale/pt_BR/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/pt_BR
+@dirrm %%NAGDIR%%/locale/ru_RU/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/ru_RU
+@dirrm %%NAGDIR%%/locale/ru_RU.KOI8-R/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/ru_RU.KOI8-R
+@dirrm %%NAGDIR%%/locale/sv_SE/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/sv_SE
+@dirrm %%NAGDIR%%/locale/zh_TW/LC_MESSAGES
+@dirrm %%NAGDIR%%/locale/zh_TW
+@dirrm %%NAGDIR%%/locale
+@dirrm %%NAGDIR%%/po
+@dirrm %%NAGDIR%%/scripts/drivers
+@dirrm %%NAGDIR%%/scripts
+@dirrm %%NAGDIR%%/templates/index
+@dirrm %%NAGDIR%%/templates/list
+@dirrm %%NAGDIR%%/templates/menu
+@dirrm %%NAGDIR%%/templates/search
+@dirrm %%NAGDIR%%/templates/task
+@dirrm %%NAGDIR%%/templates/view
+@dirrm %%NAGDIR%%/templates
+@dirrm %%NAGDIR%%
+etc/horde/httpd.conf.nag
+%%PORTDOCS%%@dirrm share/doc/nag