[Pkg-voip-commits] r6676 - in /druid-pgsql/trunk/debian: ./ README.Debian changelog compat config control copyright dirs examples patches/ patches/series patches/sql_from_main_package patches/user_only_sql postinst postrm prerm rules watch.ex

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Thu Jan 15 18:21:12 UTC 2009


Author: tzafrir-guest
Date: Thu Jan 15 18:21:12 2009
New Revision: 6676

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=6676
Log:
[svn-inject] Applying Debian modifications to trunk

Added:
    druid-pgsql/trunk/debian/   (with props)
    druid-pgsql/trunk/debian/README.Debian
    druid-pgsql/trunk/debian/changelog
    druid-pgsql/trunk/debian/compat
    druid-pgsql/trunk/debian/config
    druid-pgsql/trunk/debian/control
    druid-pgsql/trunk/debian/copyright
    druid-pgsql/trunk/debian/dirs
    druid-pgsql/trunk/debian/examples
    druid-pgsql/trunk/debian/patches/
    druid-pgsql/trunk/debian/patches/series
    druid-pgsql/trunk/debian/patches/sql_from_main_package
    druid-pgsql/trunk/debian/patches/user_only_sql
    druid-pgsql/trunk/debian/postinst
    druid-pgsql/trunk/debian/postrm
    druid-pgsql/trunk/debian/prerm
    druid-pgsql/trunk/debian/rules   (with props)
    druid-pgsql/trunk/debian/watch.ex

Propchange: druid-pgsql/trunk/debian/
------------------------------------------------------------------------------
    mergeWithUpstream = 1

Added: druid-pgsql/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/README.Debian?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/README.Debian (added)
+++ druid-pgsql/trunk/debian/README.Debian Thu Jan 15 18:21:12 2009
@@ -1,0 +1,9 @@
+druid-pgsql for Debian
+----------------------
+
+TODO: find a way to force or whatever the db username to be 'asterisk'.
+
+This really should be part of the main druid package, but upstream has
+a separate package for it.
+
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Sun, 21 Dec 2008 11:28:59 +0200

Added: druid-pgsql/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/changelog?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/changelog (added)
+++ druid-pgsql/trunk/debian/changelog Thu Jan 15 18:21:12 2009
@@ -1,0 +1,6 @@
+druid-pgsql (2.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Sun, 21 Dec 2008 11:28:59 +0200
+

Added: druid-pgsql/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/compat?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/compat (added)
+++ druid-pgsql/trunk/debian/compat Thu Jan 15 18:21:12 2009
@@ -1,0 +1,1 @@
+7

Added: druid-pgsql/trunk/debian/config
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/config?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/config (added)
+++ druid-pgsql/trunk/debian/config Thu Jan 15 18:21:12 2009
@@ -1,0 +1,15 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+. /usr/share/debconf/confmodule
+
+dbc_dbuser="druid"
+dbc_dbname="druid"
+
+if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
+	. /usr/share/dbconfig-common/dpkg/config.pgsql 
+	dbc_authmethod_user="password"
+	dbc_go druid-pgsql $@
+fi

Added: druid-pgsql/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/control?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/control (added)
+++ druid-pgsql/trunk/debian/control Thu Jan 15 18:21:12 2009
@@ -1,0 +1,18 @@
+Source: druid-pgsql
+Section: comm
+Priority: extra
+Maintainer: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
+Build-Depends: debhelper (>= 7), quilt
+Standards-Version: 3.8.0
+Homepage: http://voiceroute.org
+
+Package: druid-pgsql
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, dbconfig-common, 
+ postgresql-client-8.3 | postgresql-client
+Recommends: postgresql-8.3 | postgresql
+Description: Database support for the Druid Asterisk-base PBX
+ Druid is a PBX software based on Asterisk. It saves its configuration
+ in a PostgreSQL databse. This package provides 
+ .
+ Sadly upstream put it in a separate package.

Added: druid-pgsql/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/copyright?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/copyright (added)
+++ druid-pgsql/trunk/debian/copyright Thu Jan 15 18:21:12 2009
@@ -1,0 +1,40 @@
+This package was debianized by Tzafrir Cohen <tzafrir.cohen at xorcom.com> on
+Sun, 21 Dec 2008 11:28:59 +0200.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s):
+
+    <put author's name and email here>
+    <likewise for another author>
+
+Copyright:
+
+    <Copyright (C) YYYY Name OfAuthor>
+    <likewise for another author>
+
+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'.
+
+The Debian packaging is (C) 2008, Tzafrir Cohen <tzafrir.cohen at xorcom.com> and
+is licensed under the GPL, see above.
+
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.

Added: druid-pgsql/trunk/debian/dirs
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/dirs?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/dirs (added)
+++ druid-pgsql/trunk/debian/dirs Thu Jan 15 18:21:12 2009
@@ -1,0 +1,2 @@
+etc/druid
+usr/share/dbconfig-common/data/druid-pgsql/install

Added: druid-pgsql/trunk/debian/examples
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/examples?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/examples (added)
+++ druid-pgsql/trunk/debian/examples Thu Jan 15 18:21:12 2009
@@ -1,0 +1,7 @@
+cdr_pgsql.conf
+druidpgsql-runonce
+odbc.ini
+pg_hba.conf
+postgresql.conf
+res_odbc.conf
+res_pgsql.conf

Added: druid-pgsql/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/patches/series?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/patches/series (added)
+++ druid-pgsql/trunk/debian/patches/series Thu Jan 15 18:21:12 2009
@@ -1,0 +1,2 @@
+user_only_sql
+sql_from_main_package

Added: druid-pgsql/trunk/debian/patches/sql_from_main_package
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/patches/sql_from_main_package?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/patches/sql_from_main_package (added)
+++ druid-pgsql/trunk/debian/patches/sql_from_main_package Thu Jan 15 18:21:12 2009
@@ -1,0 +1,168 @@
+--- /dev/null
++++ b/core_upgrade_php.sql
+@@ -0,0 +1,165 @@
++CREATE TABLE druid_users (
++  exten integer NOT NULL,
++  device character varying(50) NOT NULL,
++  pin character varying(20) NOT NULL,
++  fullname character varying(255),
++  email character varying(200),
++  cidnumber character varying(50),
++  mobile character varying(20),
++  faxsupport boolean,
++  monitor BOOLEAN,
++  accountcode varchar(100),
++  amaflags varchar(50),
++  stamp timestamp without time zone DEFAULT now(),
++  PRIMARY KEY (exten)
++);
++
++CREATE TABLE druid_routes (
++                  label character varying(200) NOT NULL,
++                  exten integer NOT NULL,
++                  cfto character varying(50) NOT NULL,
++                  cfnumber character varying(50) NULL,
++                  routetype character varying(50) NOT NULL,
++                  "time" character varying(100) DEFAULT '*'::character varying,
++                  weekdays character varying(100) DEFAULT '*'::character varying,
++                  days character varying(100) DEFAULT '*'::character varying,
++                  months character varying(100) DEFAULT '*'::character varying,
++                  timeout integer NOT NULL,
++                  mobilebridge boolean,
++                  stamp timestamp without time zone DEFAULT now(),
++                  PRIMARY KEY (label,exten)
++               );
++
++CREATE TABLE druid_zones (
++                  "zone" character varying(100) NOT NULL,
++                  description text NOT NULL,
++                  stamp timestamp without time zone DEFAULT now(),
++                  PRIMARY KEY (zone)
++               );
++
++CREATE TABLE druid_users_zones (
++                  exten integer NOT NULL,
++                  "zone" character varying(100) NOT NULL,
++                  PRIMARY KEY (exten,zone)
++               );
++
++CREATE TABLE druid_hotdesk (
++                  exten integer NOT NULL,
++                  device character varying(100),
++                  timeout integer,
++                  starttime timestamp without time zone,
++                  stamp timestamp without time zone DEFAULT now(),
++                  PRIMARY KEY (exten)
++               );
++
++CREATE TABLE druid_blacklist (
++                  number character varying(100) NOT NULL,
++                  exten integer NOT NULL,
++                  reason text,
++                  "time" character varying(100) DEFAULT '*'::character varying,
++                  weekdays character varying(100) DEFAULT '*'::character varying,
++                  days character varying(100) DEFAULT '*'::character varying,
++                  months character varying(100) DEFAULT '*'::character varying,
++                  stamp timestamp without time zone DEFAULT now(),
++                  PRIMARY KEY (number,exten)
++               );
++
++CREATE VIEW "active" (
++                      "collection-owner",
++                      "object-sequence",
++                      "time")
++                   AS SELECT CAST(exten as text) || '@druid',exten,exten + 1200976179 FROM druid_users;
++
++CREATE VIEW "roster-items" (
++  "collection-owner",
++  "object-sequence",
++  "jid",
++  "name",
++  "to",
++  "from",
++  "ask") AS
++    SELECT
++      u1."collection-owner", u2."object-sequence", u2."collection-owner",
++      CAST(du.fullname as text), boolean 't',boolean 't',0
++    FROM active u1, active u2, druid_users du
++    WHERE u1."collection-owner" != u2."collection-owner"
++      AND u2."object-sequence" = du.exten
++    ORDER BY u1."collection-owner";
++
++/*
++CREATE VIEW "vcard" (
++  "collection-owner",
++  "object-sequence",
++  "fn",
++  "nickname",
++  "url",
++  "tel",
++  "email",
++  "jabberid",
++  "mailer",
++  "title",
++  "role",
++  "bday",
++  "tz",
++  "n-family",
++  "n-given",
++  "n-middle",
++  "n-prefix",
++  "n-suffix",
++  "adr-street",
++  "adr-extadd",
++  "adr-pobox",
++  "adr-locality",
++  "adr-region",
++  "adr-pcode",
++  "adr-country",
++  "geo-lat",
++  "geo-lon",
++  "org-orgname",
++  "org-orgunit",
++  "agent-extval",
++  "sort-string",
++  "desc",
++  "note",
++  "uid",
++  "photo-type",
++  "photo-binval",
++  "photo-extval",
++  "logo-type",
++  "logo-binval",
++  "logo-extval",
++  "sound-phonetic",
++  "sound-binval",
++  "sound-extval",
++  "key-type",
++  "key-cred",
++  "rev" ) AS
++    SELECT
++      a."collection-owner", a."object-sequence",
++      CAST(du.fullname as text), CAST(du.fullname as text),text,
++      CAST(du.exten as text), CAST(du.email as text), text ,text ,text,
++      text ,text ,text ,text ,text ,text ,text ,text ,text ,text ,text,
++      text ,text ,text ,text ,text ,text ,text ,text ,text ,text ,text,
++      text ,text ,text ,text ,text ,text ,text ,text ,text ,text ,text,
++      text ,text ,text
++    FROM active a, druid_users du
++    WHERE du.exten = a."object-sequence";
++*/
++
++CREATE TABLE druid_queues (
++                  queuename character varying(100) NOT NULL,
++                  monitor boolean,
++                  stamp timestamp without time zone DEFAULT now(),
++                  PRIMARY KEY (queuename)
++               );
++
++CREATE TABLE druid_queue_members (
++                  exten integer NOT NULL,
++                  queuename character varying(100) NOT NULL,
++                  priority integer,
++                  stamp timestamp without time zone DEFAULT now(),
++                  PRIMARY KEY (exten,queuename)
++               );
++
++CREATE TABLE schema (version varchar(50) NOT NULL );
++INSERT INTO  schema (version) values (1.3);

Added: druid-pgsql/trunk/debian/patches/user_only_sql
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/patches/user_only_sql?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/patches/user_only_sql (added)
+++ druid-pgsql/trunk/debian/patches/user_only_sql Thu Jan 15 18:21:12 2009
@@ -1,0 +1,18 @@
+--- a/postgres_cdr.sql
++++ b/postgres_cdr.sql
+@@ -10,8 +10,6 @@
+  *
+  */
+ 
+-CREATE USER asterisk PASSWORD 'rumplestinskin2007' NOCREATEDB NOCREATEUSER;
+-
+ CREATE TABLE cdr (
+         AcctId		BIGSERIAL PRIMARY KEY,
+ 	calldate	TIMESTAMP with time zone NOT NULL DEFAULT now(),
+@@ -32,6 +30,4 @@ CREATE TABLE cdr (
+ 	userfield	VARCHAR(255) NOT NULL default ''
+ );
+ 
+-grant INSERT on cdr to asterisk;
+-
+ 

Added: druid-pgsql/trunk/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/postinst?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/postinst (added)
+++ druid-pgsql/trunk/debian/postinst Thu Jan 15 18:21:12 2009
@@ -1,0 +1,19 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/postinst.pgsql 
+
+# you can set the default database encoding to something else
+dbc_generate_include=php:/etc/druid/debian-db.php
+dbc_pgsql_createdb_encoding="UTF8"
+dbc_go druid-pgsql $@
+
+chown www-data: /etc/druid/debian-db.php
+
+# empty: ident auth. localhost: password auth. See #509627
+sed -i -e "/dbserver=/s/=''/='localhost'/" /etc/druid/debian-db.php
+
+#DEBHELPER#

Added: druid-pgsql/trunk/debian/postrm
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/postrm?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/postrm (added)
+++ druid-pgsql/trunk/debian/postrm Thu Jan 15 18:21:12 2009
@@ -1,0 +1,21 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+if [ -f /usr/share/debconf/confmodule ]; then
+	. /usr/share/debconf/confmodule
+fi
+if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql  ]; then
+	. /usr/share/dbconfig-common/dpkg/postrm.pgsql 
+fi
+dbc_go druid-pgsql $@
+
+if [ "$1" = "purge" ]; then
+	rm -f /etc/db-test-mysql/debian-db.php
+	if which ucf >/dev/null 2>&1; then
+		ucf --purge /etc/db-test-mysql/debian-db.php
+	fi
+fi
+
+#DEBHELPER#

Added: druid-pgsql/trunk/debian/prerm
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/prerm?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/prerm (added)
+++ druid-pgsql/trunk/debian/prerm Thu Jan 15 18:21:12 2009
@@ -1,0 +1,10 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/prerm.pgsql 
+dbc_go druid-pgsql $@
+
+#DEBHELPER#

Added: druid-pgsql/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/rules?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/rules (added)
+++ druid-pgsql/trunk/debian/rules Thu Jan 15 18:21:12 2009
@@ -1,0 +1,71 @@
+#!/usr/bin/make -f
+# debian/rules for test-installdb package, by
+# sean finney <seanius at debian.org>
+#
+# modified from:
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+#export DH_COMPAT=5
+
+-include /usr/share/quilt/quilt.make
+
+configure: configure-stamp
+configure-stamp: patch
+	dh_testdir
+	touch configure-stamp
+
+
+build: build-indep build-stamp
+build-stamp: configure-stamp 
+	dh_testdir
+	touch build-stamp
+
+build-indep:
+	dh_testdir
+
+clean: unpatch clean-unpatched
+clean-unpatched:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	#
+	# db-test-pgsql needs the sql skeleton here:
+	#
+	cp postgres_cdr.sql debian/druid-pgsql/usr/share/dbconfig-common/data/druid-pgsql/install/pgsql
+	cat core_upgrade_php.sql >>debian/druid-pgsql/usr/share/dbconfig-common/data/druid-pgsql/install/pgsql
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdebconf	
+	dh_installdocs
+	dh_installexamples
+	#dh_installlogrotate
+	#dh_installman
+	#dh_installinfo
+	dh_installchangelogs
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_perl
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep
+.PHONY: build clean binary-indep binary install configure patch unpatch

Propchange: druid-pgsql/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: druid-pgsql/trunk/debian/watch.ex
URL: http://svn.debian.org/wsvn/pkg-voip/druid-pgsql/trunk/debian/watch.ex?rev=6676&op=file
==============================================================================
--- druid-pgsql/trunk/debian/watch.ex (added)
+++ druid-pgsql/trunk/debian/watch.ex Thu Jan 15 18:21:12 2009
@@ -1,0 +1,23 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php druid-pgsql-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/druid-pgsql-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/druid-pgsql-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for devscripts >= 2.9
+# http://sf.net/druid-pgsql/druid-pgsql-(.*)\.tar\.gz
+
+# Uncomment to find new files on GooglePages
+# http://example.googlepages.com/foo.html druid-pgsql-(.*)\.tar\.gz




More information about the Pkg-voip-commits mailing list