mnemo2 (2.2.3+debian0-1) debian-dir only changes

Summary

 debian/README.Debian   |   84 +++++++++++++++++++++++++++++++
 debian/changelog       |  129 +++++++++++++++++++++++++++++++++++++++++++++++++
 debian/compat          |    1 
 debian/control         |   20 +++++++
 debian/copyright       |   64 ++++++++++++++++++++++++
 debian/dirs            |    2 
 debian/docs            |    2 
 debian/examples        |    3 +
 debian/links           |    1 
 debian/mnemo2.postinst |   22 ++++++++
 debian/mnemo2.prerm    |   22 ++++++++
 debian/rules           |  120 +++++++++++++++++++++++++++++++++++++++++++++
 debian/watch           |    3 +
 13 files changed, 473 insertions(+)

    
download this patch

Patch contents

--- mnemo2-2.2.3+debian0.orig/debian/examples
+++ mnemo2-2.2.3+debian0/debian/examples
@@ -0,0 +1,3 @@
+config/
+po/
+scripts/
--- mnemo2-2.2.3+debian0.orig/debian/compat
+++ mnemo2-2.2.3+debian0/debian/compat
@@ -0,0 +1 @@
+5
--- mnemo2-2.2.3+debian0.orig/debian/control
+++ mnemo2-2.2.3+debian0/debian/control
@@ -0,0 +1,20 @@
+Source: mnemo2
+Section: web
+Priority: optional
+Maintainer: Horde Maintainers <pkg-horde-hackers@lists.alioth.debian.org>
+Uploaders: Ola Lundqvist <opal@debian.org>, Lionel Elie Mamane <lmamane@debian.org>, Gregory Colpart <reg@debian.org>, Mathieu Parent <sathieu@debian.org>
+Build-Depends: debhelper (>= 5)
+Vcs-Git: git://git.debian.org/pkg-horde/mnemo2.git
+Vcs-Browser: http://git.debian.org/?p=pkg-horde/mnemo2.git
+Standards-Version: 3.8.3
+Homepage: http://www.horde.org/mnemo/
+
+Package: mnemo2
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, horde3
+Recommends: php5-mysql | php5-pgsql
+Description: notes/memos component for Horde Framework
+ Mnemo is the Horde notes and memos application.  It lets users keep free-text
+ notes and other bits of information which doesn't fit as a contact, a todo
+ item, an event, etc.  It is very similar in functionality to the Palm Memo
+ application.
--- mnemo2-2.2.3+debian0.orig/debian/watch
+++ mnemo2-2.2.3+debian0/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\+debian\d$// \
+  http://ftp.horde.org/pub/mnemo/mnemo-h3-([\d\.]*)\.tar\.gz
--- mnemo2-2.2.3+debian0.orig/debian/mnemo2.postinst
+++ mnemo2-2.2.3+debian0/debian/mnemo2.postinst
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    configure)
+        update-alternatives --install /usr/share/horde3/mnemo/config mnemo2-config /etc/horde/mnemo2 1
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
--- mnemo2-2.2.3+debian0.orig/debian/README.Debian
+++ mnemo2-2.2.3+debian0/debian/README.Debian
@@ -0,0 +1,84 @@
+mnemo2 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/mnemo2 to owned by www-data.
+You need to create /etc/horde/mnemo2/conf.php.bak file and change
+owner to www-data or change owner of /etc/horde/mnemo2 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, Mnemo requires the following:
+
+1. SQL support in PHP.
+
+   Mnemo stores its data in an SQL database.  Build PHP with whichever SQL
+   driver you require; 
+
+
+Configuring Mnemo
+=================
+
+1. Configuring Horde for Mnemo
+
+   a. Configuring a DataTree backend
+
+      Mnemo requires a permanent ``DataTree`` backend in Horde to manage
+      notepads and to add notes to notepads.  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 Mnemo database table depend on which
+   database you've chosen to use.
+
+   First, look in ``scripts/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 mnemo.sql as a starting point.  If you need assistance in creating
+   databases, you may wish to let us know on the Mnemo mailing list.
+
+3. Configuring Mnemo
+
+   You must login to Horde as a Horde Administrator to finish the
+   configuration of Mnemo.  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 ``Notes`` from the selection list of
+   applications.  Fill in or change any configuration values as needed.  When
+   done click on ``Generate Notes Configuration`` to generate the ``conf.php``
+   file.  If your web server doesn't have write permissions to the Mnemo
+   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 ``mnemo/config/conf.php``.
+
+4. Testing Mnemo
+
+   Use Mnemo to create, modify, and delete notes. Test at least the following:
+
+   - Creating a new memo
+   - Modifying a memo
+   - Deleting a memo
+
+ -- Jose Carlos Medeiros <debian@psabs.com.br>, Wed, 23 Feb 2005 15:04:53 -0300
--- mnemo2-2.2.3+debian0.orig/debian/docs
+++ mnemo2-2.2.3+debian0/debian/docs
@@ -0,0 +1,2 @@
+README
+docs/*
--- mnemo2-2.2.3+debian0.orig/debian/copyright
+++ mnemo2-2.2.3+debian0/debian/copyright
@@ -0,0 +1,64 @@
+This package was debianized by Jose Carlos Medeiros <debian@psabs.com.br> on
+Wed, 23 Feb 2005 15:04:53 -0300.
+
+It was downloaded from
+        http://ftp.horde.org/pub/mnemo/
+
+Copyright:
+
+Upstream Authors: Chuck Hagenbuch <chuck@horde.org>, Jan Schneider
+<jan@horde.org>. See all authors in /usr/share/doc/mnemo2/CREDITS
+
+Copyright 2001-2008 The Horde Project (http://www.horde.org/)
+
+
+License: Mnemo s licenced under ASL license.
+
+Version 1.0
+
+Copyright (c) 2002-2005 The Horde Project. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+3. The end-user documentation included with the redistribution, if
+any, must include the following acknowledgment:
+
+   "This product includes software developed by the Horde Project
+    (http://www.horde.org/)."
+
+Alternately, this acknowledgment may appear in the software itself, if
+and wherever such third-party acknowledgments normally appear.
+
+4. The names "Horde", "The Horde Project", and "Mnemo" must not be
+used to endorse or promote products derived from this software without
+prior written permission. For written permission, please contact
+core@horde.org.
+
+5. Products derived from this software may not be called "Horde" or
+"Mnemo", nor may "Horde" or "Mnemo" appear in their name, without
+prior written permission of the Horde Project.
+
+THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE HORDE PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the Horde Project. For more information on
+the Horde Project, please see <http://www.horde.org/>.
--- mnemo2-2.2.3+debian0.orig/debian/dirs
+++ mnemo2-2.2.3+debian0/debian/dirs
@@ -0,0 +1,2 @@
+usr/share/horde3/mnemo
+etc/horde/mnemo2
--- mnemo2-2.2.3+debian0.orig/debian/mnemo2.prerm
+++ mnemo2-2.2.3+debian0/debian/mnemo2.prerm
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    remove)
+        update-alternatives --remove mnemo2-config /etc/horde/mnemo2
+    ;;
+
+    upgrade|deconfigure|failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
--- mnemo2-2.2.3+debian0.orig/debian/changelog
+++ mnemo2-2.2.3+debian0/debian/changelog
@@ -0,0 +1,129 @@
+mnemo2 (2.2.3+debian0-1) unstable; urgency=low
+
+  * New upstream release. 
+  * Added a check in debian/rules to make sure that external libs are not
+    in the orig.tar.gz
+  * Replace config symlink by update-alternatives to allow configuration
+    packages
+  * Added me to uploaders 
+  * Update to standards version 3.8.3, no required changes. 
+
+ -- Mathieu Parent <sathieu@debian.org>  Mon, 21 Dec 2009 18:50:28 +0100
+
+mnemo2 (2.2.1-1) unstable; urgency=low
+
+  * New upstream release. 
+  * Change Gregory Colpart's email address in debian/control file. 
+  * Update Vcs-* in debian/control. 
+  * Update to standards version 3.8.1, no further required changes. 
+
+ -- Gregory Colpart <reg@debian.org>  Sun, 24 May 2009 17:31:49 +0200
+
+mnemo2 (2.2-2) unstable; urgency=low
+
+  * Change a broken path to prefs.php file. (Closes: #496712)
+
+ -- Gregory Colpart (evolix) <reg@evolix.fr>  Mon, 01 Sep 2008 01:43:41 +0200
+
+mnemo2 (2.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * The main changes compared to the previous version: support for saving
+    notes as PDF files, support for encrypted notes, inline search of the note
+    list, WCAG 1.0 Priority 2/Section 508 accessibility guidelines compliance,
+    full Kolab webclient support, all notepads are now shown in a collapsible
+    panel with easy access to managing your notepads and choosing which notes
+    to view.
+  * No more need to copy CREDITS file in debian/rules. 
+  * Update to standards version 3.8.0, no further required changes. 
+  * Link prototype.js file with libjs-scriptaculous package. 
+  * Improvements in debian/copyright file. 
+
+ -- Gregory Colpart (evolix) <reg@evolix.fr>  Sun, 20 Jul 2008 03:26:42 +0200
+
+mnemo2 (2.1.2-1) unstable; urgency=high
+
+  * New upstream release.
+  * Use now Vcs-* fields in debian/control.
+  * Update to standards version 3.7.3, no further required changes.
+  * Bump debhelper compat level to 5.
+  * Add Homepage field.
+  * Put the CREDITS file where the online help viewer expects it (See
+    #357377).
+  * Fix confusion between binary-arch and binary-indep in rules.
+  * Fix error in README.Debian about sql scripts' path.
+
+ -- Gregory Colpart (evolix) <reg@evolix.fr>  Tue, 19 Feb 2008 01:18:53 +0100
+
+mnemo2 (2.1.1-2) unstable; urgency=low
+
+  * Remove locales from Recommends field (now in horde3 recommends).
+  * Transition to PHP5 for Recommends field. (Closes: #432241)
+  * Added XS-VCS-* fields in debian/control.
+  * Clean arch files in debian/rules. 
+
+ -- Gregory Colpart (evolix) <reg@evolix.fr>  Mon, 27 Aug 2007 03:48:16 +0200
+
+mnemo2 (2.1.1-1) unstable; urgency=low
+
+  * New upstream version.
+  * Bump up Standards-Version.
+
+ -- Lionel Elie Mamane <lmamane@debian.org>  Sun,  5 Nov 2006 12:33:14 +0100
+
+mnemo2 (2.1-2) UNRELEASED; urgency=low
+
+  * Put debhelper in Build-Depends, not B-D-Indep.
+
+ -- Lionel Elie Mamane <lmamane@debian.org>  Fri, 16 Jun 2006 11:18:49 +0200
+
+mnemo2 (2.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Jose Carlos Medeiros <jose@psabs.com.br>  Tue,  7 Mar 2006 18:03:14 -0300
+
+mnemo2 (2.0.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * This release solved "Several Cross-Site-Scripting vulnerabilities"
+    (CVE-2005-4192). (closes: #342944)
+  * Set Maintainer to Debian Horde Team.
+
+ -- Jose Carlos Medeiros <debian@psabs.com.br>  Tue, 13 Dec 2005 12:36:18 -0200
+
+mnemo2 (2.0.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Updated package to Standards-Version 3.6.2.
+
+ -- Jose Carlos Medeiros <debian@psabs.com.br>  Fri, 14 Oct 2005 15:07:56 -0300
+
+mnemo2 (2.0.1-3) unstable; urgency=low
+
+  * Added locales as recommended.
+  * Moved dh_installexamples to "install" rule in rules file. Now
+    examples/* files are changed like others.
+
+ -- Jose Carlos Medeiros <debian@psabs.com.br>  Fri,  5 Aug 2005 11:32:04 -0300
+
+mnemo2 (2.0.1-2) unstable; urgency=low
+
+  * Changed rules and README.Debian No longer provides config.bak file.
+    (closes: #308154)
+
+ -- Jose Carlos Medeiros <debian@psabs.com.br>  Fri, 29 Jul 2005 10:29:21 -0300
+
+mnemo2 (2.0.1-1) unstable; urgency=low
+
+  * Initial upload of this package, closes: #303117.
+  * Made Ola Lundqvist co maintainer.
+
+ -- Jose Carlos Medeiros <debian@psabs.com.br>  Tue, 19 Apr 2005 20:02:14 -0300
+
+mnemo2 (2.0.1-0) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Jose Carlos Medeiros <debian@psabs.com.br>  Wed, 23 Feb 2005 15:04:53 -0300
+
--- mnemo2-2.2.3+debian0.orig/debian/rules
+++ mnemo2-2.2.3+debian0/debian/rules
@@ -0,0 +1,120 @@
+#!/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|config|debian|docs|LICENSE|po|README|scripts|\{arch\})$
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	touch configure-stamp
+
+build: check-external-libs build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+	touch build-stamp
+
+clean:
+	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/mnemo2.
+	#### copy files ####
+	for i in $$(ls -1 | egrep -v "$(COPY_EXCLUDE)"); do \
+		echo install $$i ; \
+		cp -a $$i debian/mnemo2/usr/share/horde3/mnemo ; \
+	done
+
+	#### copy configuration files
+	for i in config/*.dist; do \
+		NAME=etc/horde/mnemo2/$$(basename $$i ".dist"); \
+		cp -a $$i debian/mnemo2/$$NAME; \
+	done
+	cp config/conf.xml debian/mnemo2/etc/horde/mnemo2/
+	touch debian/mnemo2/etc/horde/mnemo2/conf.php
+	#chown www-data:root debian/mnemo2/etc/horde/mnemo2/conf.php
+	#### kronolith expects configuration in config subdir, an update-alternatives
+	#### symlink is created in maintainer's scripts to comply with FHS
+
+	#### change made for program run with no problems ###
+	cat config/prefs.php.dist | \
+		sed -e "8,10s@require_once dirname(__FILE__) . '/../lib/Mnemo.php';@require_once '/usr/share/horde3/mnemo/lib/Mnemo.php';@" > \
+		debian/mnemo2/etc/horde/mnemo2/prefs.php
+
+	#### create htaccess  to restrict acess by web ####
+	echo "Deny from all" > debian/mnemo2/etc/horde/mnemo2/.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 MNEMO_BASE in php files
+	dh_installexamples
+	for i in $$(find debian/mnemo2 -name "*.php*"); do \
+		cat $$i | \
+		sed -e "s/define('HORDE_BASE'.*;/define\('HORDE_BASE', '\/usr\/share\/horde3'\);/" |\
+		sed -e "s/define('MNEMO_BASE'.*;/define\('MNEMO_BASE', '\/usr\/share\/horde3\/mnemo'\);/" |\
+		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/mnemo2/usr/share/horde3/mnemo -type f | \
+		xargs grep '^#!\/' |cut -d: -f1); do \
+		chmod u+x $$i; \
+	done
+	#### end ####
+
+	#### CREDITS file accessible to help viewer ####
+	#mkdir -m 755 debian/mnemo2/usr/share/horde3/mnemo/docs
+	#cp -a docs/CREDITS debian/mnemo2/usr/share/horde3/mnemo/docs/
+
+	#### Remove javascript source files
+	rm -rf debian/mnemo2/usr/share/horde3/mnemo/js/src/
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# We have nothing to do by default.
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs docs/CHANGES
+	dh_installdocs -XINSTALL -Xdocs/CHANGES
+	-find debian/mnemo2 -depth -name ".arch-ids" -exec rm -Rf {} \;
+#	mv debian/mnemo2/usr/share/doc/mnemo2/CHANGES \
+#		debian/mnemo2/usr/share/doc/mnemo2/changelog
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+
+check-external-libs:
+	if [ -e js/prototype.js ] || [ -e js/src/prototype.js ]; then \
+	      echo ""; \
+	      echo " **                                  **"; \
+	      echo " **  tar contains external files!    **"; \
+	      echo " **                                  **"; \
+	      echo ""; \
+	      exit 1; \
+	  fi
+
+.PHONY: build clean binary-indep binary-arch binary install configure
--- mnemo2-2.2.3+debian0.orig/debian/links
+++ mnemo2-2.2.3+debian0/debian/links
@@ -0,0 +1 @@
+/usr/share/javascript/scriptaculous/prototype.js    /usr/share/horde3/mnemo/js/prototype.js