[pkg-horde] [COMMIT lionel nag--sid--2--patch-1] Import nag2 2.0.3-1

Lionel Elie Mamane lmamane at costa.debian.org
Sat Dec 24 17:30:04 UTC 2005


A/ debian/patches/.arch-ids
A/ debian
A/ debian/.arch-ids
A/ debian/patches
A  debian/.arch-ids/control.id
A  debian/.arch-ids/docs.id
A  debian/patches/01_nag_tasklist.dpatch
A  debian/.arch-ids/README.Debian.id
A  debian/rules
A  debian/watch
A  debian/.arch-ids/rules.id
A  debian/control
A  debian/.arch-ids/changelog.id
A  debian/.arch-ids/compat.id
A  {arch}/nag/nag--sid/nag--sid--2/pkg-horde-hackers at lists.alioth.debian.org--2006/patch-log/patch-1
A  debian/.arch-ids/dirs.id
A  debian/changelog
A  debian/.arch-ids/copyright.id
A  debian/copyright
A  debian/compat
A  debian/patches/.arch-ids/=id
A  debian/.arch-ids/=id
A  debian/.arch-ids/examples.id
A  debian/examples
A  debian/patches/.arch-ids/01_nag_tasklist.dpatch.id
A  debian/dirs
A  debian/.arch-ids/watch.id
A  debian/docs
A  debian/README.Debian

--- /dev/null
+++ debian/.arch-ids/control.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2391.0


--- /dev/null
+++ debian/.arch-ids/docs.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2394.0


--- /dev/null
+++ debian/patches/01_nag_tasklist.dpatch
@@ -0,0 +1,50 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_nag_tasklist.dpatch by Jose Carlos Medeiros <debian at psabs.com.br>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: More information in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=309009
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch ${2:+-d $2}}"
+
+if [ $# -lt 1 ]; then
+  echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+  exit 1
+fi
+
+case "$1" in
+  -patch) patch $patch_opts -p1 < $0;;
+  -unpatch) patch $patch_opts -p1 -R < $0;;
+  *)
+    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+    exit 1;;
+esac
+
+exit 0
+
+ at DPATCH@
+diff -Nru nag2-2.0.1/lib/base.php.orig nag2-2.0.1/lib/base.php
+--- nag2-2.0.1/lib/base.php.orig	2005-07-07 14:47:25.894526600 -0300
++++ nag2-2.0.1/lib/base.php	2005-07-07 14:47:56.102934224 -0300
+@@ -59,14 +59,13 @@
+ $GLOBALS['display_tasklists'] = @unserialize($GLOBALS['prefs']->getValue('display_tasklists'));
+ if (!$GLOBALS['display_tasklists']) {
+     $GLOBALS['display_tasklists'] = array();
+-} else {
+-    if (($d_task = Util::getFormData('display_tasklist')) !== null) {
+-        if (in_array($d_task, $GLOBALS['display_tasklists'])) {
+-            $key = array_search($d_task, $GLOBALS['display_tasklists']);
+-            unset($GLOBALS['display_tasklists'][$key]);
+-        } else {
+-            $GLOBALS['display_tasklists'][] = $d_task;
+-        }
++}
++if (($d_task = Util::getFormData('display_tasklist')) !== null) {
++    if (in_array($d_task, $GLOBALS['display_tasklists'])) {
++        $key = array_search($d_task, $GLOBALS['display_tasklists']);
++        unset($GLOBALS['display_tasklists'][$key]);
++    } else {
++        $GLOBALS['display_tasklists'][] = $d_task;
+     }
+ }
+ 


--- /dev/null
+++ debian/.arch-ids/README.Debian.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2388.0


--- /dev/null
+++ debian/rules
@@ -0,0 +1,99 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# List all Files and directories here that should not be copied
+COPY_EXCLUDE=^(configure-stamp|build-stamp|patch-stamp|config|COPYING|debian|docs|po|README|scripts)$
+PACKAGE = nag2
+
+# Include dpatch stuff.
+include /usr/share/dpatch/dpatch.make
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	touch configure-stamp
+
+build: build-stamp
+
+build-stamp: configure-stamp patch
+	dh_testdir
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	dh_clean build-stamp configure-stamp
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/nag2.
+	#### copy files ####
+	for i in $$(ls -1 | egrep -v "$(COPY_EXCLUDE)"); do \
+		echo install $$i ; \
+		cp -a $$i debian/nag2/usr/share/horde3/nag ; \
+	done
+
+	#### copy configuration files ####
+	for i in config/*.dist; do \
+		NAME=etc/horde/nag2/$$(basename $$i ".dist"); \
+		cp -a $$i debian/nag2/$$NAME; \
+	done
+	cp config/conf.xml debian/nag2/etc/horde/nag2/
+	touch debian/nag2/etc/horde/nag2/conf.php
+	#chown www-data:root debian/nag2/etc/horde/nag2/conf.php
+	dh_link etc/horde/nag2 usr/share/horde3/nag/config
+
+	#### create htaccess  to restrict acess by web ####
+	echo "Deny from all" > debian/nag2/etc/horde/nag2/.htaccess
+
+	#### change made for program run with no problems ###
+	# change HORDE_BASE  in php files
+	# change /usr/local/bin/php to /usr/bin/php
+	# change NAG_BASE in php files
+	dh_installexamples
+	for i in $$(find debian/nag2 -name "*.php*"); do \
+		cat $$i | \
+		sed -e "s/define('HORDE_BASE'.*;/define\('HORDE_BASE', '\/usr\/share\/horde3'\);/" |\
+		sed -e "s/define('NAG_BASE'.*;/define\('NAG_BASE', '\/usr\/share\/horde3\/nag'\);/" |\
+		sed -e "s/\/usr\/local\/bin/\/usr\/bin/" > $$i.rew; \
+		cat $$i.rew > $$i; \
+		rm -f $$i.rew; \
+	done
+
+	#### change permissions of scripts ####
+	for i in $$(find debian/nag2/usr/share/horde3/nag -type f | \
+		xargs grep '^#!\/' |cut -d: -f1); do \
+		chmod u+x $$i; \
+	done
+	#### end ####
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs -XINSTALL
+	mv debian/nag2/usr/share/doc/nag2/CHANGES \
+		debian/nag2/usr/share/doc/nag2/changelog
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms 
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure


--- /dev/null
+++ debian/watch
@@ -0,0 +1,2 @@
+version=2
+http://ftp.horde.org/pub/nag/nag-h3-([\d\.]*)\.tar\.gz


--- /dev/null
+++ debian/.arch-ids/rules.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2398.0


--- /dev/null
+++ debian/control
@@ -0,0 +1,17 @@
+Source: nag2
+Section: web
+Priority: optional
+Maintainer: Jose Carlos Medeiros <debian at psabs.com.br>
+Uploaders: Ola Lundqvist <opal at debian.org>
+Build-Depends-Indep: debhelper (>= 4.0.0), dpatch (>= 2.0.10)
+Standards-Version: 3.6.2
+
+Package: nag2
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, horde3
+Recommends: php4-mysql | php4-pgsql, locales
+Suggests: php4-cli | php4-cgi, kronolith2
+Description: task list component for Horde Framework
+ Nag is the Horde task list application.  It stores todo items, things due
+ later this week, etc.  It is very similar in functionality to the Palm ToDo
+ application.


--- /dev/null
+++ debian/.arch-ids/changelog.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2389.0


--- /dev/null
+++ debian/.arch-ids/compat.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2390.0


--- /dev/null
+++ {arch}/nag/nag--sid/nag--sid--2/pkg-horde-hackers at lists.alioth.debian.org--2006/patch-log/patch-1
@@ -0,0 +1,29 @@
+Revision: nag--sid--2--patch-1
+Archive: pkg-horde-hackers at lists.alioth.debian.org--2006
+Creator: Lionel Elie Mamane <lionel at mamane.lu>
+Date: Sat Dec 24 18:27:02 CET 2005
+Standard-date: 2005-12-24 17:27:02 GMT
+New-files: debian/.arch-ids/=id
+    debian/.arch-ids/README.Debian.id
+    debian/.arch-ids/changelog.id
+    debian/.arch-ids/compat.id debian/.arch-ids/control.id
+    debian/.arch-ids/copyright.id debian/.arch-ids/dirs.id
+    debian/.arch-ids/docs.id debian/.arch-ids/examples.id
+    debian/.arch-ids/rules.id debian/.arch-ids/watch.id
+    debian/README.Debian debian/changelog debian/compat
+    debian/control debian/copyright debian/dirs debian/docs
+    debian/examples
+    debian/patches/.arch-ids/01_nag_tasklist.dpatch.id
+    debian/patches/.arch-ids/=id
+    debian/patches/01_nag_tasklist.dpatch debian/rules
+    debian/watch
+New-directories: debian debian/.arch-ids debian/patches
+    debian/patches/.arch-ids
+New-patches: pkg-horde-hackers at lists.alioth.debian.org--2006/nag--sid--2--patch-1
+Summary: Import nag2 2.0.3-1
+Keywords: 
+
+Imported nag2-2.0.3
+into pkg-horde-hackers at lists.alioth.debian.org--2006/nag--sid--2
+
+


--- /dev/null
+++ debian/.arch-ids/dirs.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2393.0


--- /dev/null
+++ debian/changelog
@@ -0,0 +1,41 @@
+nag2 (2.0.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * Updated package to Standards-Version 3.6.2.
+  * Updated address of FSF in debian/copyright file.
+
+ -- Jose Carlos Medeiros <debian at psabs.com.br>  Tue, 18 Oct 2005 12:23:09 -0200
+
+nag2 (2.0.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Deleted "01_nag_tasklist" from 00list. This patch was implemmented in new
+    upstream.
+
+ -- Jose Carlos Medeiros <debian at psabs.com.br>  Fri,  5 Aug 2005 10:37:26 -0300
+
+nag2 (2.0.1-2) unstable; urgency=low
+
+  * Added dpatch in Build-Depends-Indep.
+  * Added patches/nag_tasklist.dpatch file (thanks to Christopher Sacca
+    <csacca at thecsl.org>). (closes: #309009)
+  * Changed rules and README.Debian No longer provides config.bak file.
+  * Added locales as recommended.
+  * Moved dh_installexamples to "install" rule in rules file. Now
+    examples/* files are changed like others.
+
+ -- Jose Carlos Medeiros <debian at psabs.com.br>  Fri, 29 Jul 2005 10:32:51 -0300
+
+nag2 (2.0.1-1) unstable; urgency=low
+
+  * Initial upload of this package, closes: #303118.
+  * Made Ola Lundqvist co maintainer.
+
+ -- Jose Carlos Medeiros <debian at psabs.com.br>  Tue, 19 Apr 2005 19:50:52 -0300
+
+nag2 (2.0.1-0) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Jose Carlos Medeiros <debian at psabs.com.br>  Wed, 23 Feb 2005 15:31:48 -0300
+


--- /dev/null
+++ debian/.arch-ids/copyright.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2392.0


--- /dev/null
+++ debian/copyright
@@ -0,0 +1,28 @@
+This package was debianized by Jose Carlos Medeiros <debian at psabs.com.br> on
+Wed, 23 Feb 2005 15:31:48 -0300.
+
+It was downloaded from
+        http://ftp.horde.org/pub/horde/
+
+Copyright Holder:
+        See /usr/share/doc/nag2/CREDITS
+
+License:
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+


--- /dev/null
+++ debian/compat
@@ -0,0 +1,1 @@
+4


--- /dev/null
+++ debian/patches/.arch-ids/=id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2396.0


--- /dev/null
+++ debian/.arch-ids/=id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2387.0


--- /dev/null
+++ debian/.arch-ids/examples.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2395.0


--- /dev/null
+++ debian/examples
@@ -0,0 +1,3 @@
+config/
+po/
+scripts/


--- /dev/null
+++ debian/patches/.arch-ids/01_nag_tasklist.dpatch.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2397.0


--- /dev/null
+++ debian/dirs
@@ -0,0 +1,2 @@
+usr/share/horde3/nag
+etc/horde/nag2


--- /dev/null
+++ debian/.arch-ids/watch.id
@@ -0,0 +1,1 @@
+Lionel Elie Mamane <lionel at mamane.lu> Sat Dec 24 18:27:00 2005 2399.0


--- /dev/null
+++ debian/docs
@@ -0,0 +1,2 @@
+README
+docs/*


--- /dev/null
+++ debian/README.Debian
@@ -0,0 +1,87 @@
+nag2 for Debian
+---------------
+
+To configure this package use the horde3 web configuration. To let
+it write to the configuration files you have to change of conf.php
+file in /etc/horde/nag2 to owned by www-data.
+You need to create /etc/horde/nag2/conf.php.bak file and change
+owner to www-data or change owner of /etc/horde/nag2 to www-data.
+
+If you do not do that you have to cut from the web configuration
+program and paste into the config file yourself.
+
+The reason why this is not the default option is, that allow writing
+to configuration files without any authentication is a big
+security hole.
+
+.....................................................................
+
+Some notes from upstream INSTALL document follow here:
+
+Prerequisites
+=============
+
+To function properly, Nag requires the following:
+
+1. SQL support in PHP *or* a configured DataTree driver.
+
+   Nag will store its data in either an SQL database or the Horde DataTree
+   driver.  If you use SQL, build PHP with whichever SQL driver you require.
+
+
+Configuring Nag
+===============
+
+1. Configuring Horde for Nag
+
+   a. Configuring a DataTree backend
+
+      Nag requires a permanent ``DataTree`` backend in Horde to manage
+      tasklists and to add tasks to tasklists.  If you didn't setup a DataTree
+      backend yet, go to the configuration interface, select Horde from the
+      list of applications and select a driver different than ``None`` on the
+      ``DataTree System`` tab.  Make sure that you ran the necessary scripts
+      to create a storage backend for the DataTree system, e.g. one of the
+      ``create.*.sql`` or ``horde_datatree.*.sql`` SQL scripts in
+      ``horde/scripts/sql/``.  You should have done this already during the
+      installation of Horde.
+
+2. Creating the database table
+
+   The specific steps to create the Nag database table depend on which
+   database you've chosen to use.  If you've chosen to use the Horde DataTree
+   driver, skip this step.
+
+   First, look in ``scripts/drivers/sql/`` to see if a script already exists
+   for your database type.  If so, you should be able to simply execute that
+   script as superuser in your database.  (Note that executing the script as
+   the "horde" user will probably fail when granting privileges.)
+
+   If such a script does not exist, you'll need to build your own, using the
+   file nag.sql as a starting point.  If you need assistance in creating
+   databases, you may wish to let us know on the Nag mailing list.
+
+3. Configuring Nag
+
+   You must login to Horde as a Horde Administrator to finish the
+   configuration of Nag.  Use the Horde ``Administration`` menu item to get to
+   the administration page, and then click on the ``Configuration`` icon to
+   get the configuration page.  Select ``Tasks`` from the selection list of
+   applications.  Fill in or change any configuration values as needed.  When
+   done click on ``Generate Tasks Configuration`` to generate the ``conf.php``
+   file.  If your web server doesn't have write permissions to the Nag
+   configuration directory or file, it will not be able to write the file.  In
+   this case, go back to ``Configuration`` and choose one of the other methods
+   to create the configuration file ``nag/config/conf.php``.
+
+4. Testing Nag
+
+   Use Nag to create, modify, and delete todos. Test at least the following:
+
+   - Creating a new todo item
+   - Modifying a todo item
+   - Completing a todo item
+   - Deleting a todo item
+
+
+ -- Jose Carlos Medeiros <debian at psabs.com.br>, Wed, 23 Feb 2005 15:31:48 -0300




More information about the pkg-horde-hackers mailing list