[Pkg-voip-commits] [libss7] 12/51: Applying Debian modifications to trunk

tzafrir at debian.org tzafrir at debian.org
Mon Oct 31 09:38:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository libss7.

commit cdb11f8a0971dcaebf80c1b63d3d707b3dbc3c28
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Fri Aug 15 21:01:45 2008 +0000

    Applying Debian modifications to trunk
    
    git-svn-id: svn://anonscm.alioth.debian.org/svn/pkg-voip/libss7/trunk@6040 5e74be4b-f5d6-0310-a852-e9e23c5afa6a
---
 debian/changelog          |   5 ++
 debian/compat             |   1 +
 debian/control            |  33 +++++++++++++
 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 ++
 11 files changed, 212 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d8a9361
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libss7 (1.0.1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #XXXXXX)
+
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Fri, 15 Aug 2008 22:06:44 +0300
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..913567b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,33 @@
+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
+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..ce3e85c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+It was downloaded from htp://ftp.digum.com/pub/telephony/libss7
+
+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..35be610
--- /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 ; $(SOSLINK) )
++	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..2ea3b91
--- /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://ftp2.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