[Pkg-voip-commits] [py-asterisk] 01/04: Imported Debian patch 0.1a3+r160-4.1
Victor Seva Lopez
maniac-guest at moszumanska.debian.org
Sun Aug 16 06:17:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
maniac-guest pushed a commit to branch master
in repository py-asterisk.
commit 68dc3a036042ef02849a7d93e21dc78f4573d4e2
Author: Sandro Tosi <morph at debian.org>
Date: Thu Dec 10 23:18:05 2009 +0100
Imported Debian patch 0.1a3+r160-4.1
---
debian/changelog | 48 +++++++++++++++++++
debian/compat | 1 +
debian/control | 27 +++++++++++
debian/copyright | 43 +++++++++++++++++
debian/docs | 4 ++
debian/patches/00list | 3 ++
debian/patches/10_remove_shebang.dpatch | 16 +++++++
debian/patches/11_read_response.dpatch | 19 ++++++++
debian/rules | 84 +++++++++++++++++++++++++++++++++
9 files changed, 245 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..910e765
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,48 @@
+py-asterisk (0.1a3+r160-4.1) unstable; urgency=low
+
+ * Non-maintainer upload, for the upcoming Python 2.6 transition
+ * debian/rules
+ - optionally include python.mk and add ${py_setup_install_args} to setup.py
+ install; thanks to Bernd Zeimetz for the report and to Luca Falavigna
+ for the patch (uploaded in Ubuntu); Closes: #559237
+
+ -- Sandro Tosi <morph at debian.org> Thu, 10 Dec 2009 23:18:05 +0100
+
+py-asterisk (0.1a3+r160-4) unstable; urgency=low
+
+ * debian/control:
+ + Bump Standards-Version to 3.7.3 (no changes).
+ + Add Section: python field to python-asterisk.
+ * debian/rules:
+ + python-asterisk is arch: all and there are no arch-dep packages; move
+ code from binary-arch to binary-indep.
+
+ -- Julien BLACHE <jblache at debian.org> Sat, 01 Mar 2008 16:47:52 +0100
+
+py-asterisk (0.1a3+r160-3) unstable; urgency=low
+
+ [ Julien BLACHE ]
+ * debian/rules:
+ + Do not ignore errors during clean.
+ * debian/control:
+ + Add missing python-all-dev build-dependency.
+
+ [ Faidon Liambotis ]
+ * debian/control:
+ + Add XS-Vcs-Svn and XS-Vcs-Browser.
+
+ -- Julien BLACHE <jblache at debian.org> Sun, 05 Aug 2007 19:20:00 +0200
+
+py-asterisk (0.1a3+r160-2) unstable; urgency=low
+
+ * debian/control:
+ + Make python-asterisk an Arch: all package.
+
+ -- Julien BLACHE <jblache at debian.org> Mon, 23 Apr 2007 11:49:08 +0200
+
+py-asterisk (0.1a3+r160-1) unstable; urgency=low
+
+ * Initial release (closes: #420564).
+
+ -- Julien BLACHE <jblache at debian.org> Mon, 23 Apr 2007 11:40:47 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ea5ba73
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,27 @@
+Source: py-asterisk
+Section: comm
+Priority: extra
+Maintainer: Debian VoIP Maintainers <pkg-voip-maintainers at lists.alioth.debian.org>
+Uploaders: Julien BLACHE <jblache at debian.org>
+Build-Depends: debhelper (>= 5), dpatch, python-support (>= 0.4), python-all-dev
+Standards-Version: 3.7.3
+Homepage: http://py-asterisk.berlios.de/
+Vcs-Svn: svn://svn.debian.org/pkg-voip/py-asterisk/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/py-asterisk/?op=log
+
+Package: python-asterisk
+Section: python
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Description: Asterisk Manager API interface module for Python
+ This module provides an object oriented interface to the Asterisk Manager API,
+ whilst embracing some applicable Python concepts:
+ o Functionality is split into separate mix-in classes
+ o Asterisk PBX errors cause fairly granular exceptions
+ o Docstrings are provided for all objects
+ o The module may be used asynchronously if required. It should be suitable
+ for inclusion in a single-threaded GUI
+ o Asterisk data is translated into data stored using Python types, so
+ working with it should be trivial. Through the use of XMLRPCServer or
+ similar, it should be trivial to expose this conversion to other
+ languages
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0ca2650
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,43 @@
+This package was debianized by Julien BLACHE <jblache at debian.org> on
+Thu, 12 Apr 2007 17:36:57 +0200.
+
+It was downloaded from: http://py-asterisk.berlios.de/py-asterisk.php
+
+Upstream Author: David M. Wilson <dw-py-Asterisk-setup.py at botanicus.net>
+
+Copyright: Copyright (C) 2004 David M. Wilson.
+
+License:
+
+The py-Asterisk License
+-----------------------
+
+This is the MIT license with the trailing paragraph reformatted for
+readability. If this license is not compatible with your usage of the
+software, please do not hesitate to contact me as the situation is easy to
+resolve.
+
+
+ Copyright 2004, David M. Wilson.
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ The software is provided "as is", without warranty of any kind, express or
+ implied, including but not limited to the warranties of merchantability,
+ fitness for a particular purpose and non-infringement. In no event shall
+ the authors or copyright holders be liable for any claim, damages or other
+ liability, whether in an action of contract, tort or otherwise, arising
+ from, out of or in connection with the software or the use or other
+ dealings in the software.
+
+
+The Debian packaging is (C) 2007, Julien BLACHE <jblache at debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..5170d4d
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,4 @@
+doc/asterisk-events.txt
+doc/event-handling.txt
+doc/readme.txt
+doc/todo.txt
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644
index 0000000..434d46d
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1,3 @@
+10_remove_shebang
+11_read_response
+
diff --git a/debian/patches/10_remove_shebang.dpatch b/debian/patches/10_remove_shebang.dpatch
new file mode 100644
index 0000000..e2ce289
--- /dev/null
+++ b/debian/patches/10_remove_shebang.dpatch
@@ -0,0 +1,16 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_remove_shebang.dpatch by <jblache at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove useless shebang line in CLI.py
+
+ at DPATCH@
+diff -urNad py-asterisk-0.1a3+r160~/Asterisk/CLI.py py-asterisk-0.1a3+r160/Asterisk/CLI.py
+--- py-asterisk-0.1a3+r160~/Asterisk/CLI.py 2007-04-23 11:34:23.000000000 +0200
++++ py-asterisk-0.1a3+r160/Asterisk/CLI.py 2007-04-23 11:35:10.746117697 +0200
+@@ -1,5 +1,3 @@
+-#!/usr/bin/env python
+-
+ '''
+ Asterisk/CLI.py: Command-line wrapper around the Asterisk Manager API.
+ '''
diff --git a/debian/patches/11_read_response.dpatch b/debian/patches/11_read_response.dpatch
new file mode 100644
index 0000000..079865a
--- /dev/null
+++ b/debian/patches/11_read_response.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 11_read_response.dpatch by <jblache at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove bogus line_nr == 1 check in _read_response_follows()
+
+ at DPATCH@
+diff -urNad py-asterisk-0.1a3+r160~/Asterisk/Manager.py py-asterisk-0.1a3+r160/Asterisk/Manager.py
+--- py-asterisk-0.1a3+r160~/Asterisk/Manager.py 2007-04-23 11:34:10.000000000 +0200
++++ py-asterisk-0.1a3+r160/Asterisk/Manager.py 2007-04-23 11:35:41.309979769 +0200
+@@ -292,7 +292,7 @@
+ self.log.io('_read_response_follows: recv %r', line)
+ line_nr += 1
+
+- if line_nr == 1 and line.startswith('ActionID: '):
++ if line.startswith('ActionID: '):
+ # Asterisk is a pile of shite!!!!!!!!!
+ packet.ActionID = line[10:]
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7767506
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,84 @@
+#!/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
+
+# Include dpatch rules
+include /usr/share/dpatch/dpatch.make
+-include /usr/share/python/python.mk
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+build-stamp: patch-stamp configure-stamp
+ dh_testdir
+
+ python setup.py build
+
+ touch $@
+
+clean: real-clean unpatch
+real-clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ python setup.py clean
+ rm -rf build
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ python setup.py install --root=$(CURDIR)/debian/python-asterisk ${py_setup_install_args}
+ mv $(CURDIR)/debian/python-asterisk/etc/asterisk/py-asterisk.conf.sample \
+ $(CURDIR)/debian/python-asterisk/etc/asterisk/py-asterisk.conf
+
+ mkdir -p $(CURDIR)/debian/python-asterisk/usr/share/doc/python-asterisk/examples
+ mv $(CURDIR)/debian/python-asterisk/usr/bin/* \
+ $(CURDIR)/debian/python-asterisk/usr/share/doc/python-asterisk/examples
+ rmdir $(CURDIR)/debian/python-asterisk/usr/bin
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir -i
+ dh_testroot -i
+ dh_installchangelogs -i
+ dh_installdocs -i
+ dh_installexamples -i
+# dh_install -i
+ dh_installman -i
+ dh_pysupport -i
+ rm -rf $(CURDIR)/debian/python-asterisk/usr/lib
+ dh_link -i
+ dh_strip -i
+ dh_compress -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_shlibdeps -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# Nothing to do here, move along.
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch real-clean
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/py-asterisk.git
More information about the Pkg-voip-commits
mailing list