--- asterisk-chan-capi-1.1.2.orig/debian/control +++ asterisk-chan-capi-1.1.2/debian/control @@ -0,0 +1,18 @@ +Source: asterisk-chan-capi +Section: comm +Priority: optional +Maintainer: Debian VoIP Team +Uploaders: Lionel Elie Mamane , Mark Purcell , Kilian Krause , Faidon Liambotis +Build-Depends: debhelper (>= 5), asterisk-dev (>= 1:1.4), libcapi20-dev, dpatch +Standards-Version: 3.7.3 +Homepage: http://www.chan-capi.org/ +Vcs-Svn: svn://svn.debian.org/pkg-voip/asterisk-chan-capi/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/asterisk-chan-capi/?op=log + +Package: asterisk-chan-capi +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, asterisk-1.4 +Description: Common ISDN API 2.0 implementation for Asterisk + A channel driver for the Asterisk software telephony PBX using the + Common ISDN API (CAPI) 2.0. It is intended to be used with ISDN hardware that + provide such an interface. --- asterisk-chan-capi-1.1.2.orig/debian/dirs +++ asterisk-chan-capi-1.1.2/debian/dirs @@ -0,0 +1,2 @@ +usr/lib/asterisk/modules +etc/asterisk --- asterisk-chan-capi-1.1.2.orig/debian/compat +++ asterisk-chan-capi-1.1.2/debian/compat @@ -0,0 +1 @@ +5 --- asterisk-chan-capi-1.1.2.orig/debian/watch +++ asterisk-chan-capi-1.1.2/debian/watch @@ -0,0 +1,6 @@ +# 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. +# Site Directory Pattern Version Script +version=3 +opts=pasv ftp://ftp.chan-capi.org/chan-capi/ chan_capi-([\d.].*)\.tar\.gz debian svn-upgrade --- asterisk-chan-capi-1.1.2.orig/debian/changelog +++ asterisk-chan-capi-1.1.2/debian/changelog @@ -0,0 +1,262 @@ +asterisk-chan-capi (1.1.2-1) unstable; urgency=low + + * new upstream version + + -- Lionel Elie Mamane Mon, 02 Feb 2009 21:10:11 +0100 + +asterisk-chan-capi (1.1.1-2) UNRELEASED; urgency=low + + * lintian clean: asterisk.h.dpatch description + + -- Mark Purcell Fri, 05 Sep 2008 20:05:45 +1000 + +asterisk-chan-capi (1.1.1-1) unstable; urgency=low + + * New upstream release. + - Removed debian/patches/asterisk_1.4.3.dpatch, merged upstream. + - Patch upstream's Makefile to use system's libcapi instead of the shipped + one. + * Enable "noisy build", so that gcc arguments are visible on build logs. + * Bump Standards-Version to 3.7.3, no changes. + * Switch to asterisk-1.4 dependency, hopefully depending on a frozen ABI. + * Depend on asterisk-dev >= 1:1.4, fixes lintian warning. + * Remove isdn4linux and OpenPBX references in the long description. + * Update Uploaders to reflect the truth about the maintainers + of the package. + + -- Faidon Liambotis Tue, 01 Apr 2008 08:14:08 +0300 + +asterisk-chan-capi (1.0.2-1) unstable; urgency=low + + * Extremadura release ;-) + + [ Kilian Krause ] + * New upstream release. + + -- Mark Purcell Fri, 30 Nov 2007 15:54:46 +0100 + +asterisk-chan-capi (1.0.1-2) unstable; urgency=low + + [ Lionel Elie Mamane ] + * Document that chan-capi needs res_features (closes: #434649) + * Bump up Standards-Version to 3.7.2 + + [ Kilian Krause ] + * Don't ignore make clean error. + * Add Homepage field as added in dpkg-dev 1.14.6. + + [ Faidon Liambotis ] + * Add myself to Uploaders. + * Point XS-Vcs-Svn, XS-Vcs-Browser URLs to the chan-capi subdirectory. + * Remove Conflicts/Replaces chan-capi which is a pre-sarge package. + * Build-Depend on asterisk-dev >= 1.4. (Closes: #441237) + * Switch asterisk from Recommends to Depends and make it versioned >= 1.4. + * Update debhelper compatibility to v5. + * Remove postinst script and adduser dependency; its actions are covered by + the postinst of asterisk. + * Cleanup debian/rules of useless targets and comments. + + -- Kilian Krause Sat, 22 Sep 2007 12:08:44 +0200 + +asterisk-chan-capi (1.0.1-1) unstable; urgency=low + + * New upstream release 1.0.1 (Closes: #412131) + * Backport patch from trunk for compatibility with Asterisk 1.4.3 (closes: #416774) + + -- Lionel Elie Mamane Thu, 14 Jun 2007 18:27:50 +0200 + +asterisk-chan-capi (1.0.0-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Thu, 22 Mar 2007 07:09:48 +0000 + +asterisk-chan-capi (0.7.1-1.1) unstable; urgency=high + + * Non-maintainer upload + * Protect calls to capi_cmsg2str and use of its buffer with a mutex. + (Closes: #411293) + + -- Ben Hutchings Wed, 7 Mar 2007 01:58:53 +0000 + +asterisk-chan-capi (0.7.1-1) unstable; urgency=low + + * New upstream release + * debian/rules dh_installchangelogs CHANGES + * Ack NMU + - implicit pointer conversion (Closes: #383093) + + -- Mark Purcell Sun, 22 Oct 2006 20:49:40 +0100 + +asterisk-chan-capi (0.7.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Modify 01_debian-patch.dpatch to no longer remove the + #include directive which was causing an + implicitly converted return pointer from ast_pickup_ext() + (Closes: #383093) + + -- dann frazier Sun, 24 Sep 2006 19:16:06 -0600 + +asterisk-chan-capi (0.7.0-1) unstable; urgency=low + + * New upstream release + - Please package version 0.7.0 (Closes: #382346) + * Drop 02_kernel_post_2.6.10_fix.dpatch + * Update debian/control + * Update debian/watch + * Build system tries to select "-march=FOO" CFLAG; that's b0rken + (Closes: #357012) + + -- Mark Purcell Thu, 10 Aug 2006 22:20:58 +0100 + +asterisk-chan-capi (0.6.5-1) unstable; urgency=low + + * New upstream release + * New version cm-0.6.5 (Closes: #361703) + * Update debian/watch + + -- Mark Purcell Sat, 6 May 2006 16:28:59 +0100 + +asterisk-chan-capi (0.6.4-1) unstable; urgency=low + + * New upstream release (closes: #352245) + + -- Lionel Elie Mamane Fri, 10 Feb 2006 19:45:13 +0100 + +asterisk-chan-capi (0.6.3-1) unstable; urgency=low + + [ Kilian Krause ] + * New upstream release. (Closes: #329251, #328914, #315430, #340875, #345556) + + [ Mark Purcell ] + * Update debian/watch + + -- Lionel Elie Mamane Thu, 19 Jan 2006 19:34:30 +0100 + +asterisk-chan-capi (0.3.5-12) unstable; urgency=low + + [ Kilian Krause ] + * fix 2.6.10-rc5 and later kernels. Thanks goes to Martin Jess + for providing the fix ;) + (Closes: #308106) + + [ Mark Purcell ] + * Rebuild due to libcapi20-dev changed soname + * needs a rebuild for libcapi20-3 (Closes: #323548) + * Add Build-Depends: adduser + * Remove upstream INSTALL and copy relevance to README.Debian + + -- Mark Purcell Wed, 17 Aug 2005 20:28:52 +0100 + +asterisk-chan-capi (0.3.5-11) unstable; urgency=low + + * Build-Depends: dpatch + + -- Mark Purcell Sun, 20 Mar 2005 18:37:33 +0000 + +asterisk-chan-capi (0.3.5-10) unstable; urgency=low + + * Switch to dpatch + * Debian VOIP Maintainers upload from svn + + -- Mark Purcell Sun, 20 Mar 2005 18:19:09 +0000 + +asterisk-chan-capi (0.3.5-9) unstable; urgency=low + + * Apply B3 patch from Alessandro Polverini (Closes: Bug#288539 + + -- Mark Purcell Fri, 28 Jan 2005 18:04:46 +0000 + +asterisk-chan-capi (0.3.5-8) unstable; urgency=low + + * addgroup asterisk dialout (Closes: Bug#249132) + * Rename to conform with rest of asterisk packages (Closes: Bug#259176) + + -- Mark Purcell Thu, 2 Dec 2004 02:03:27 +1100 + +chan-capi (0.3.5-7) unstable; urgency=low + + * Backin ast_pthread support - Thanks Tobias Lorenz (Closes: Bug#282929) + + -- Mark Purcell Tue, 30 Nov 2004 21:07:30 +1100 + +chan-capi (0.3.5-6) unstable; urgency=high + + * Urgency high as isdnutils is waiting... + + -- Mark Purcell Sat, 13 Nov 2004 08:06:14 +1100 + +chan-capi (0.3.5-5) unstable; urgency=low + + * Urgency high as isdnutils is waiting... + * Rebuild for new isdnutils (Closes: Bug#280684) + * Deflection on busy activated (Closes: Bug#272473) + + -- Mark Purcell Sat, 13 Nov 2004 07:02:05 +1100 + +chan-capi (0.3.5-4) unstable; urgency=high + + * Closes: #270080: ftbfs with isdnutils 3.3.0.20040728-2 + * Build-Depends: libcapi20-dev + + -- Mark Purcell Mon, 6 Sep 2004 18:33:11 +1000 + +chan-capi (0.3.5-3) unstable; urgency=high + + * Closes: #268633: asterisk crashes with "undefined + symbol:ast_pthread_create" + * Backout support for cvs ast_pthread_create in chan-capi.c + * Backout other asterisk cvs features + + -- Mark Purcell Sat, 4 Sep 2004 19:35:43 +1000 + +chan-capi (0.3.5-2) unstable; urgency=high + + * Rebuild for chan-capi urgency high + + -- Mark Purcell Tue, 24 Aug 2004 19:00:56 +1000 + +chan-capi (0.3.5-1) unstable; urgency=low + + * New upstream release + * Closes: #267535: chan-capi uninstallable due to changed libcapi20-3 + + -- Mark Purcell Mon, 23 Aug 2004 21:07:23 +1000 + +chan-capi (0.3.4b-1) unstable; urgency=low + + * New upstream release + * Build -O2 + + -- Mark Purcell Mon, 26 Jul 2004 22:59:02 +1000 + +chan-capi (0.3.4a-2) unstable; urgency=low + + * debian/rules: export PROC := $(shell dpkg-architecture -qDEB_HOST_ARCH) + * Copy smart Makefile PROC detection from asterisk + + -- Mark Purcell Thu, 15 Jul 2004 20:51:05 +1000 + +chan-capi (0.3.4a-1) unstable; urgency=low + + * New upstream release + * Closes: #259355: Fwd: Re: Problems with chan-capi + * Closes: #259177: new upstream release + * Disable CVS build in Makefile + + -- Mark Purcell Thu, 15 Jul 2004 18:08:59 +1000 + +chan-capi (0.3.1-2) unstable; urgency=low + + * Closes #247253: chan-capi_0.3.1-1(ia64/unstable): FTBFS: non-PIC in shared object + + -- Mark Purcell Tue, 4 May 2004 19:39:10 +1000 + +chan-capi (0.3.1-1) unstable; urgency=low + + * Lintian cleanup & suggestions from Kilian Krause (Closes: Bug#191063) + * Initial Release. + + -- Mark Purcell Sat, 24 Apr 2004 09:12:09 +1000 + --- asterisk-chan-capi-1.1.2.orig/debian/copyright +++ asterisk-chan-capi-1.1.2/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Mark Purcell on +Sat, 24 Apr 2004 09:12:09 +1000 and is since maintained by members of +the pkg-voip team. + +It was downloaded from ftp://ftp.chan-capi.org/chan-capi/ + +Upstream Author: Armin Schindler + based on the work of: Klaus-Peter Junghanns + +Copyright: +(C) 2005 Cytronics & Melware, Armin Schindler +(C) 2002-2005 Junghanns.NET GmbH, Klaus-Peter Junghanns + +This program is free software and may be modified and distributed under +the terms of the GNU Public License. There is _NO_ warranty for this! + + 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; version 2 dated June, 1991. + + 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 GNU/Linux systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-2'. --- asterisk-chan-capi-1.1.2.orig/debian/docs +++ asterisk-chan-capi-1.1.2/debian/docs @@ -0,0 +1 @@ +README --- asterisk-chan-capi-1.1.2.orig/debian/rules +++ asterisk-chan-capi-1.1.2/debian/rules @@ -0,0 +1,88 @@ +#!/usr/bin/make -f +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export PROC := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +include /usr/share/dpatch/dpatch.make + +DEBVERSION:=$(shell head -n 1 debian/changelog \ + | sed -e 's/^[^(]*(\([^)]*\)).*/\1/') +UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//') + +FILENAME := asterisk-chan-capi_$(UPVERSION).orig.tar.gz +URL := ftp://ftp.chan-capi.org/chan-capi/chan_capi-$(UPVERSION).tar.gz + +build: patch build-stamp +build-stamp: + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp + + [ ! -f Makefile ]||$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install_config install INSTALL_PREFIX=$(CURDIR)/debian/asterisk-chan-capi + + +# 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 CHANGES + dh_installdocs + dh_installexamples + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +print-version: + @@echo "Debian version: $(DEBVERSION)" + @@echo "Upstream version: $(UPVERSION)" + +get-orig-source: + @@dh_testdir + @@[ -d ../tarballs/. ]||mkdir -p ../tarballs + @@echo Downloading $(FILENAME) from $(URL) ... + @@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL) + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- asterisk-chan-capi-1.1.2.orig/debian/README.Debian +++ asterisk-chan-capi-1.1.2/debian/README.Debian @@ -0,0 +1,13 @@ +asterisk-chan-capi for Debian +----------------------------- + +In /etc/asterisk/modules.conf insert the line: + load => chan_capi.so +in the [modules] section. If you don't have "autoload=yes", you need +to make sure that res_features.so comes _before_ chan_capi.so . + + +Don't forget the trailing newline at the end of modules.conf. + + + -- Lionel Elie Mamane , Thu, 26 Jul 2007 08:51:24 +0200 --- asterisk-chan-capi-1.1.2.orig/debian/patches/01_debian-patch.dpatch +++ asterisk-chan-capi-1.1.2/debian/patches/01_debian-patch.dpatch @@ -0,0 +1,40 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_debian-patch.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: New patch generated from asterisk-chan-capi 0.3.5-9 diff.gz + +@DPATCH@ +diff -urNad asterisk-chan-capi-0.6.3/Makefile /tmp/dpep.SnaWCZ/asterisk-chan-capi-0.6.3/Makefile +--- asterisk-chan-capi-0.6.3/Makefile 2005-12-27 20:48:51.000000000 +0100 ++++ /tmp/dpep.SnaWCZ/asterisk-chan-capi-0.6.3/Makefile 2006-01-11 19:56:02.000000000 +0100 +@@ -46,7 +46,17 @@ + MODULES_DIR=$(INSTALL_PREFIX)/usr/pkg/lib/asterisk/modules + endif + ++OSARCH=$(shell uname -s) ++ ++ifeq ($(strip $(PROC)),) ++ifeq (${OSARCH},Linux) ++PROC=$(shell uname -m) ++else ++ifeq (${OSARCH},FreeBSD) + PROC=$(shell uname -m) ++endif ++endif ++endif + + DEBUG=-g #-pg + INCLUDE=-I$(ASTERISK_HEADER_DIR) +@@ -60,9 +70,9 @@ + endif + CFLAGS=-pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE + CFLAGS+=$(OPTIMIZE) +-CFLAGS+=-O6 ++CFLAGS+=-O2 -fPIC + CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi) +-CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi) ++CFLAGS+=$(shell if uname -m | grep -q "ppc\|arm\|s390"; then echo "-fsigned-char"; fi) + + CFLAGS+=-DASTERISKVERSION=\"$(ASTERISKVERSION)\" + --- asterisk-chan-capi-1.1.2.orig/debian/patches/use-systems-libcapi.dpatch +++ asterisk-chan-capi-1.1.2/debian/patches/use-systems-libcapi.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## use-systems-libcapi.dpatch by Faidon Liambotis +## +## DP: Upstream ships own libcapi; we use the one provided by isdnutils instead. + +@DPATCH@ +diff -urNad asterisk-chan-capi-1.1.1~/Makefile asterisk-chan-capi-1.1.1/Makefile +--- asterisk-chan-capi-1.1.1~/Makefile 2008-03-13 13:02:41.000000000 +0200 ++++ asterisk-chan-capi-1.1.1/Makefile 2008-04-01 07:59:55.000000000 +0300 +@@ -18,7 +18,7 @@ + + OSNAME=${shell uname} + +-USE_OWN_LIBCAPI=yes ++USE_OWN_LIBCAPI=no + + .EXPORT_ALL_VARIABLES: + --- asterisk-chan-capi-1.1.2.orig/debian/patches/verbose-build.dpatch +++ asterisk-chan-capi-1.1.2/debian/patches/verbose-build.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## verbose-build.dpatch by Faidon Liambotis +## +## DP: It's useful to see gcc arguments on build logs + +@DPATCH@ +diff -urNad asterisk-chan-capi-1.1.1~/Makefile asterisk-chan-capi-1.1.1/Makefile +--- asterisk-chan-capi-1.1.1~/Makefile 2008-04-01 08:05:24.000000000 +0300 ++++ asterisk-chan-capi-1.1.1/Makefile 2008-04-01 08:05:27.000000000 +0300 +@@ -22,7 +22,7 @@ + + .EXPORT_ALL_VARIABLES: + +-V=0 ++V=1 + + INSTALL_PREFIX= + --- asterisk-chan-capi-1.1.2.orig/debian/patches/00list +++ asterisk-chan-capi-1.1.2/debian/patches/00list @@ -0,0 +1,4 @@ +01_debian-patch +use-systems-libcapi +verbose-build +asterisk.h --- asterisk-chan-capi-1.1.2.orig/debian/patches/asterisk.h.dpatch +++ asterisk-chan-capi-1.1.2/debian/patches/asterisk.h.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## asterisk.h.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Reference asterisk.h in Debian asterisk-dev location + +@DPATCH@ +diff -urNad asterisk-chan-capi-1.0.2~/chan_capi.h asterisk-chan-capi-1.0.2/chan_capi.h +--- asterisk-chan-capi-1.0.2~/chan_capi.h 2007-09-27 10:09:26.000000000 +0200 ++++ asterisk-chan-capi-1.0.2/chan_capi.h 2007-10-02 09:35:57.000000000 +0200 +@@ -19,7 +19,7 @@ + #include "config.h" + + #ifdef CC_AST_HAS_VERSION_1_4 +-#include ++#include + #endif + + #include