Load quickappoint-0.1+svn20051119 into debian/quickappoint/trunk.
authorgregor herrmann <gregoa@debian.org>
Sat, 25 Feb 2006 17:48:46 +0000 (17:48 -0000)
committergregor herrmann <gregoa@debian.org>
Sat, 25 Feb 2006 17:48:46 +0000 (17:48 -0000)
18 files changed:
debian/README.Debian [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/config [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/install [new file with mode: 0644]
debian/lintian.overrides [new file with mode: 0644]
debian/patches/00list [new file with mode: 0644]
debian/patches/options.dpatch [new file with mode: 0755]
debian/patches/pgsql.dpatch [new file with mode: 0755]
debian/postinst [new file with mode: 0644]
debian/postrm [new file with mode: 0644]
debian/prerm [new file with mode: 0644]
debian/quickappoint.1 [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..f8227cf
--- /dev/null
@@ -0,0 +1,11 @@
+quickappoint for Debian
+-----------------------
+
+* Don't forget to install postgresql.
+* Change at least the projecturl in /etc/quickappoint/options.php
+* Go to http://$projecturl to log in
+* There's an admin user with username "quick" and password "appoint".
+  Use it - and change the password immediately!
+
+
+ -- gregor herrmann <gregor+debian@comodo.priv.at>, Fri, 18 Nov 2005 17:38:30 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..adbb4c9
--- /dev/null
@@ -0,0 +1,26 @@
+quickappoint (0.1+svn20051119-4) unstable; urgency=low
+
+  * Added homepage to debian/control.
+
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Sun, 25 Dec 2005 14:31:15 +0100
+
+quickappoint (0.1+svn20051119-3) unstable; urgency=low
+
+  * Changed "projecturl" in /etc/quickappoint/options.conf
+
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Sun, 20 Nov 2005 23:27:29 +0100
+
+quickappoint (0.1+svn20051119-2) unstable; urgency=low
+
+  * Changed Architecture from "any" to "all".
+  * Added dpatch to Build-Depends.
+  * Changed Build-Depends to Build-Depends-Indep.
+
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Sun, 20 Nov 2005 15:35:36 +0100
+
+quickappoint (0.1+svn20051119-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Sat, 19 Nov 2005 13:16:59 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/debian/config b/debian/config
new file mode 100644 (file)
index 0000000..cb179c4
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/config.pgsql 
+
+dbc_go quickappoint $@
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..d6a74cf
--- /dev/null
@@ -0,0 +1,19 @@
+Source: quickappoint
+Section: web
+Priority: optional
+Maintainer: gregor herrmann <gregor+debian@comodo.priv.at>
+Build-Depends-Indep: debhelper (>= 4.0.0), dpatch
+Standards-Version: 3.6.2
+
+Package: quickappoint
+Architecture: all
+Depends: php4, php4-pgsql, postgresql, dbconfig-common, debconf (>= 0.5) | debconf-2.0
+Description: tool for managing common appointments
+ Quickappoint is a web application written in PHP4 and using
+ postgresql as a database backend.
+ .
+ It's objective is to assist a group of people to determine 
+ dates for common appointments.
+ .
+  Homepage: http://www.toastfreeware.priv.at/
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..e9143de
--- /dev/null
@@ -0,0 +1,17 @@
+This package was debianized by gregor herrmann <gregor+debian@comodo.priv.at> on
+Fri, 18 Nov 2005 17:38:30 +0100.
+
+It was written by toastfreeware - http://www.toastfreeware.priv.at/
+
+Copyright:
+Toastfreeware (c) 2005
+
+License:
+
+    This program 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.
+                
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..9d077ae
--- /dev/null
@@ -0,0 +1,5 @@
+var/www/quickappoint
+etc/quickappoint
+usr/share/doc/quickappoint
+usr/share/dbconfig-common/data/quickappoint/install-dbadmin
+usr/share/lintian/overrides
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..77dc40a
--- /dev/null
@@ -0,0 +1,3 @@
+doc/dump.sql
+doc/quickappoint.xls
+doc/quickappoint.txt
diff --git a/debian/install b/debian/install
new file mode 100644 (file)
index 0000000..3ab477c
--- /dev/null
@@ -0,0 +1,6 @@
+*php var/www/quickappoint
+cgi-bin var/www/quickappoint
+css var/www/quickappoint
+lib var/www/quickappoint
+locale var/www/quickappoint
+etc/options.php etc/quickappoint
diff --git a/debian/lintian.overrides b/debian/lintian.overrides
new file mode 100644 (file)
index 0000000..543c2a7
--- /dev/null
@@ -0,0 +1 @@
+quickappoint binary: no-debconf-templates
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644 (file)
index 0000000..dc45da5
--- /dev/null
@@ -0,0 +1,2 @@
+pgsql
+options
diff --git a/debian/patches/options.dpatch b/debian/patches/options.dpatch
new file mode 100755 (executable)
index 0000000..c394dfc
--- /dev/null
@@ -0,0 +1,66 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## options.dpatch by  <gregor+debian@comodo.priv.at>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad quickappoint-0.1+svn20051119~/etc/options.php quickappoint-0.1+svn20051119/etc/options.php
+--- quickappoint-0.1+svn20051119~/etc/options.php      2005-11-20 23:25:42.000000000 +0100
++++ quickappoint-0.1+svn20051119/etc/options.php       2005-11-20 23:27:20.000000000 +0100
+@@ -1,32 +1,30 @@
+ <?php
++/*
++CHANGE SETTINGS HERE:
++You may want to change at least the projecturl, the other
++settings have reasonable defaults.
++*/
++
+ // Server settings
+ $project_options = array(
+-      'projecturl' => 'http://www.toastfreeware.priv.at/quickappoint/',
++      'projecturl' => 'http://localhost/quickappoint/',
+       'locale' => '' // use empty string for system default or something like 'de_AT@euro'
+ );
+ // Database settings
+ $db_options = array(
+-      'host' => 'colleen.colgarra.priv.at',
++      'host' => 'localhost',
+       'db' => 'quickappoint',
+       'user' => 'quickappoint',
+       'pass' => 'quickappoint'
+ );
++/*
++DON'T CHANGE ANYTHING HERE.
++*/
+-// -------------
+-// Local options for testing and developing on local machines below:
+-
+-$local = !ereg('toastfreeware', $_SERVER['HTTP_HOST']);
+-
+-if ($local) {
+-      $project_options['projecturl'] = 'http://localhost/~philipp/quickappoint/';
+-}
+-
+-
+-// -------------
+ // Further options (derived)
+ // Pages where the user doesn't require a login
+ $unrestricted_pages = array(
+diff -urNad quickappoint-0.1+svn20051119~/lib/prepend.php quickappoint-0.1+svn20051119/lib/prepend.php
+--- quickappoint-0.1+svn20051119~/lib/prepend.php      2005-11-20 23:25:42.000000000 +0100
++++ quickappoint-0.1+svn20051119/lib/prepend.php       2005-11-20 23:25:43.000000000 +0100
+@@ -3,7 +3,7 @@
+ error_reporting(E_ALL);
+ session_start();
+-require_once(dirname(__FILE__) . '/../etc/options.php');
++require_once('/etc/quickappoint/options.php');
+ // check server settings: magic quotes gpc
diff --git a/debian/patches/pgsql.dpatch b/debian/patches/pgsql.dpatch
new file mode 100755 (executable)
index 0000000..2b77dbb
--- /dev/null
@@ -0,0 +1,49 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## pgsql.dpatch by  <gregor+debian@comodo.priv.at>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad quickappoint-0.1+svn20051119~/doc/dump.sql quickappoint-0.1+svn20051119/doc/dump.sql
+--- quickappoint-0.1+svn20051119~/doc/dump.sql 2005-11-20 00:19:30.000000000 +0100
++++ quickappoint-0.1+svn20051119/doc/dump.sql  2005-11-20 00:23:03.000000000 +0100
+@@ -8,24 +8,6 @@
+ SET search_path = public, pg_catalog;
+ --
+--- TOC entry 20 (OID 52099)
+--- Name: plpgsql_call_handler(); Type: FUNC PROCEDURAL LANGUAGE; Schema: public; Owner: philipp
+---
+-
+-CREATE FUNCTION plpgsql_call_handler() RETURNS language_handler
+-    AS '$libdir/plpgsql', 'plpgsql_call_handler'
+-    LANGUAGE c;
+-
+-
+---
+--- TOC entry 18 (OID 52100)
+--- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: public; Owner: 
+---
+-
+-CREATE TRUSTED PROCEDURAL LANGUAGE plpgsql HANDLER plpgsql_call_handler;
+-
+-
+---
+ -- TOC entry 5 (OID 21697)
+ -- Name: person; Type: TABLE; Schema: public; Owner: gregoa
+ --
+@@ -262,3 +244,13 @@
+ COMMENT ON COLUMN permission.manageperson IS 'if true, the person may add or remove persons for this appointment.';
++-- additional SQL commands
++ALTER USER quickappoint PASSWORD 'quickappoint';
++GRANT ALL ON DATABASE quickappoint TO quickappoint;
++GRANT USAGE ON SCHEMA public TO quickappoint;
++GRANT ALL ON TABLE appointment TO quickappoint;
++GRANT ALL ON TABLE person TO quickappoint;
++GRANT ALL ON TABLE permission TO quickappoint;
++GRANT ALL ON TABLE proposal TO quickappoint;
++GRANT ALL ON TABLE response TO quickappoint;
++INSERT INTO person VALUES (1, 'quick', '7d8e1de4afe448799eca785ed3c42095', 'Local Quickappoint Admin', NULL, true, true, '');
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..f02a6db
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/postinst.pgsql 
+dbc_go quickappoint $@
+
+#DEBHELPER#
diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..4f25d45
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/postrm.pgsql 
+dbc_go quickappoint $@
+
+#DEBHELPER#
diff --git a/debian/prerm b/debian/prerm
new file mode 100644 (file)
index 0000000..9eb91b7
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/prerm.pgsql 
+dbc_go quickappoint $@
+
+#DEBHELPER#
diff --git a/debian/quickappoint.1 b/debian/quickappoint.1
new file mode 100644 (file)
index 0000000..000de1a
--- /dev/null
@@ -0,0 +1,20 @@
+.TH QUICKAPPOINT 1 "November 18, 2005"
+.SH NAME
+quickappoint \- webapplication for finding common appointments
+.SH SYNOPSIS
+.B quickappoint - open in your browser
+.SH DESCRIPTION
+This manual page documents briefly the
+.B quickappoint
+application.
+.PP
+\fBquickappoint\fP is an application for managing common appointments.
+.SH BACKGROUND
+It uses php4 and postgresql.
+.SH SEE ALSO
+/usr/share/doc/quickappoint
+.SH AUTHOR
+quickappoint was written by Toastfreeware <toast@toastfreeware.priv.at>
+.PP
+This manual page was written by gregor herrmann <gregor.herrmann@comodo.priv.at>,
+for the Debian project (but may be used by others).
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..eb661f5
--- /dev/null
@@ -0,0 +1,101 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+configure: configure-stamp
+configure-stamp: patch
+       dh_testdir
+       # Add here commands to configure the package.
+
+       touch configure-stamp
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+       dh_testdir
+
+       # Add here commands to compile the package.
+
+       touch build-stamp
+
+clean: unpatch
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       # Add here commands to clean up after the build process.
+
+       dh_clean 
+
+patch: patch-stamp
+patch-stamp:
+                dpatch apply-all
+#               dpatch call-all -a=pkg-info >patch-stamp
+                touch patch-stamp
+
+
+unpatch:
+                dpatch deapply-all
+                rm -rf patch-stamp debian/patched
+
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+
+       # Add here commands to install the package into debian/quickappoint.
+
+       # Lintian overrides
+       install -m 644 $(CURDIR)/debian/lintian.overrides \
+                                       $(CURDIR)/debian/quickappoint/usr/share/lintian/overrides/quickappoint
+       # Database
+       install -m 644 $(CURDIR)/doc/dump.sql \
+                                       $(CURDIR)/debian/quickappoint/usr/share/dbconfig-common/data/quickappoint/install-dbadmin/pgsql
+
+# 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
+#      dh_installexamples
+       dh_install
+#      dh_installmenu
+       dh_installdebconf       
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+       dh_installman
+#      dh_link
+#      dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_python
+#      dh_makeshlibs
+       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