--- libss7-1.0.2.orig/Makefile +++ libss7-1.0.2/Makefile @@ -11,7 +11,7 @@ DYNAMIC_OBJS=mtp2.o ss7_sched.o ss7.o mtp3.o isup.o version.o STATIC_LIBRARY=libss7.a DYNAMIC_LIBRARY=libss7.so.1.0 -CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC +CFLAGS=-Wall -Werror -Wno-error=unused-but-set-variable -Wstrict-prototypes -Wmissing-prototypes -g -fPIC LDCONFIG_FLAGS=-n SOFLAGS=-Wl,-hlibss7.so.1 LDCONFIG=/sbin/ldconfig --- libss7-1.0.2.orig/debian/compat +++ libss7-1.0.2/debian/compat @@ -0,0 +1 @@ +5 --- libss7-1.0.2.orig/debian/libss7-dev.install +++ libss7-1.0.2/debian/libss7-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so --- libss7-1.0.2.orig/debian/rules +++ libss7-1.0.2/debian/rules @@ -0,0 +1,118 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g -Wno-error=unused-but-set-variable + +PACKAGE = libss7 + +-include /usr/share/quilt/quilt.make + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +PKGNAME:=$(shell sed -nre 's/^Package: (.*[0-9])$$/\1/p' debian/control) +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$$//') +UPVERSIONMAJOR:=$(shell echo $(UPVERSION) | sed -re 's/(^[0-9]\.[0-9]).*/\1/') +SHLIBS = $(PKGNAME) (>= $(UPVERSIONMAJOR)) + +FILENAME := $(PACKAGE)_$(UPVERSION).orig.tar.gz +URL := http://downloads.digium.com/pub/telephony/$(PACKAGE)/releases/$(PACKAGE)-$(UPVERSION).tar.gz + +# shared library versions, option 1 +#version=2.0.5 +#major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +version=`ls lib*.so.* | \ + awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +major=`ls lib*.so.* | \ + awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +configure: configure-stamp +configure-stamp: patch + dh_testdir + # Add here commands to configure the package. + + touch $@ + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + CFLAGS="$(CFLAGS)" $(MAKE) + + touch $@ + +clean: unpatch clean-unpatched +clean-unpatched: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + #-$(MAKE) clean + [ ! -f Makefile ] || $(MAKE) clean + + # Until upstream gets a distclean target: + $(RM) -f version.c + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install INSTALL_PREFIX=$(CURDIR)/debian/tmp + + +# 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_install --sourcedir=debian/tmp + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_installman + dh_strip --dbg-package=libss7-dbg + dh_compress + dh_fixperms + dh_makeshlibs -V "$(SHLIBS)" + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +print-version: + @@echo "Debian version: $(DEBVERSION)" + @@echo "Upstream version: $(UPVERSION)" + @@echo "Upstream major version: $(UPVERSIONMAJOR)" + +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 clean-unpatched binary-indep binary-arch binary install configure patch unpatch --- libss7-1.0.2.orig/debian/README.source +++ libss7-1.0.2/debian/README.source @@ -0,0 +1,18 @@ +This package uses quilt for patches management. + +To get the patched source, run: + + ./debian/rules patch + + +The sources of the package are maintained in a subversion repository. +To get the latest version: + + debcheckout libss7 + + +For more information about working with the repository, see: +http://svn.debian.org/wsvn/pkg-voip/README?op=file + +For other useful information, see the pkg-voip team page: +http://pkg-voip.alioth.debian.org/ --- libss7-1.0.2.orig/debian/control +++ libss7-1.0.2/debian/control @@ -0,0 +1,34 @@ +Source: libss7 +Priority: optional +Section: libs +Maintainer: Debian VoIP Team +Uploaders: Tzafrir Cohen +Build-Depends: debhelper (>> 4.0.0), quilt +Standards-Version: 3.8.0 +Homepage: http://www.asterisk.org/ +Vcs-Svn: svn://svn.debian.org/pkg-voip/libss7/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/libss7/?op=log + +Package: libss7-dev +Section: libdevel +Architecture: any +Depends: libss7-1 (= ${binary:Version}) +Description: Signalling System 7 (ss7) development files + Development files for the C implementation of the Signalling System 7 + (ss7) telephony protocol. + +Package: libss7-1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Signalling System 7 (ss7) library + C implementation of the Signalling System 7 (ss7) telephony protocol. + +Package: libss7-dbg +Section: libdevel +Priority: extra +Architecture: any +Depends: libss7-1 (= ${binary:Version}) +Description: Signalling System 7 (ss7) debugging symbols + Debug symbols for the C implementation of the Signalling System 7 + (ss7) telephony protocol. --- libss7-1.0.2.orig/debian/libss7-1.install +++ libss7-1.0.2/debian/libss7-1.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- libss7-1.0.2.orig/debian/copyright +++ libss7-1.0.2/debian/copyright @@ -0,0 +1,22 @@ +It was downloaded from htp://ftp.digum.com/pub/telephony/libss7 + +Upstream Author: Matthew Fredrickson + +Copyright Holder: Copyright (C) 2006-2008, Digium, Inc + +License: + + * This program is free software, distributed under the terms of + * the GNU General Public License Version 2 as published by the + * Free Software Foundation. See the LICENSE file included with + * this program for more details. + * + * In addition, when this program is distributed with Asterisk in + * any form that would qualify as a 'combined work' or as a + * 'derivative work' (but not mere aggregation), you can redistribute + * and/or modify the combination under the terms of the license + * provided with that copy of Asterisk, instead of the license + * terms granted here. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. --- libss7-1.0.2.orig/debian/docs +++ libss7-1.0.2/debian/docs @@ -0,0 +1,2 @@ +README +NEWS* --- libss7-1.0.2.orig/debian/changelog +++ libss7-1.0.2/debian/changelog @@ -0,0 +1,12 @@ +libss7 (1.0.2-1ubuntu1) oneiric; urgency=low + + * Build with -Wno-error=unused-but-set-variable. Closes: #625375. LP: #831253. + + -- Matthias Klose Wed, 14 Sep 2011 23:25:21 +0000 + +libss7 (1.0.2-1) unstable; urgency=low + + [ Tzafrir Cohen ] + * Initial release. (Closes: #496263) + + -- Mark Purcell Tue, 18 Nov 2008 22:31:46 +1100 --- libss7-1.0.2.orig/debian/watch +++ libss7-1.0.2/debian/watch @@ -0,0 +1,5 @@ +version=3 +opts=dversionmangle=s/\~dfsg//,downloadurlmangle=s/.*ref=// \ + http://downloads.digium.com/pub/telephony/libss7/releases/ \ + http://www\.digium\.com/elqNow/elqRedir\.htm\?ref=http://downloads\.digium\.com/pub/telephony/libss7/releases/libss7-([0-9.]*)\.tar\.gz \ + debian svn-upgrade --- libss7-1.0.2.orig/debian/patches/ldconfig +++ libss7-1.0.2/debian/patches/ldconfig @@ -0,0 +1,21 @@ +"make install with destdir under fakeroot: ldconfig permission denied" + +Upstream issue: http://bugs.digium.com/13313 + +Index: Makefile +=================================================================== +--- a/Makefile (revision 209) ++++ b/Makefile (working copy) +@@ -45,10 +45,9 @@ + mkdir -p $(INSTALL_PREFIX)$(libdir) + mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/include + install -m 644 libss7.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include +- install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(libdir) +- ( cd $(INSTALL_PREFIX)$(libdir) ; ln -sf libss7.so.1 libss7.so ; ln -sf libss7.so.1.0 libss7.so.1 ) ++ cp -dp *.so* $(INSTALL_PREFIX)$(libdir) + install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(libdir) +- if test $$(id -u) = 0; then $(LDCONFIG); fi ++ $(LDCONFIG) 2>/dev/null || : + + $(STATIC_LIBRARY): $(STATIC_OBJS) + ar rcs $(STATIC_LIBRARY) $(STATIC_OBJS) --- libss7-1.0.2.orig/debian/patches/series +++ libss7-1.0.2/debian/patches/series @@ -0,0 +1 @@ +ldconfig