[Pkg-voip-commits] [libss7] 01/04: Imported Debian patch 1.0.2-1
Victor Seva Lopez
maniac-guest at moszumanska.debian.org
Sun Aug 16 11:33:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
maniac-guest pushed a commit to branch master
in repository libss7.
commit 0b21bf604b7ff0f88655f8acbd643be726615e62
Author: Mark Purcell <msp at debian.org>
Date: Tue Nov 18 22:31:46 2008 +1100
Imported Debian patch 1.0.2-1
---
debian/README.source | 18 +++++++
debian/changelog | 6 +++
debian/compat | 1 +
debian/control | 34 +++++++++++++
debian/copyright | 22 +++++++++
debian/docs | 2 +
debian/libss7-1.install | 1 +
debian/libss7-dev.install | 3 ++
debian/patches/ldconfig | 21 +++++++++
debian/patches/series | 1 +
debian/rules | 118 ++++++++++++++++++++++++++++++++++++++++++++++
debian/watch | 5 ++
12 files changed, 232 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..4615393
--- /dev/null
+++ b/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/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..12c02a5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+libss7 (1.0.2-1) unstable; urgency=low
+
+ [ Tzafrir Cohen ]
+ * Initial release. (Closes: #496263)
+
+ -- Mark Purcell <msp at debian.org> Tue, 18 Nov 2008 22:31:46 +1100
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..665ed41
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,34 @@
+Source: libss7
+Priority: optional
+Section: libs
+Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
+Uploaders: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..af8f6e0
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+It was downloaded from htp://ftp.digum.com/pub/telephony/libss7
+
+Upstream Author: Matthew Fredrickson <creslin at digium.com>
+
+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'.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b2b66a7
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README
+NEWS*
diff --git a/debian/libss7-1.install b/debian/libss7-1.install
new file mode 100644
index 0000000..d0dbfd1
--- /dev/null
+++ b/debian/libss7-1.install
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
diff --git a/debian/libss7-dev.install b/debian/libss7-dev.install
new file mode 100644
index 0000000..d1bffed
--- /dev/null
+++ b/debian/libss7-dev.install
@@ -0,0 +1,3 @@
+usr/include/*
+usr/lib/lib*.a
+usr/lib/lib*.so
diff --git a/debian/patches/ldconfig b/debian/patches/ldconfig
new file mode 100644
index 0000000..faaec73
--- /dev/null
+++ b/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)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..32d09d8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+ldconfig
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..082534f
--- /dev/null
+++ b/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
+
+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
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..669f76f
--- /dev/null
+++ b/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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/libss7.git
More information about the Pkg-voip-commits
mailing list