[Pkg-voip-commits] r6213 - in /libgsmat/trunk/debian: ./ changelog compat control copyright docs libgsmat-dev.install libgsmat1.install patches/ patches/ldconfig patches/series rules
tzafrir-guest at alioth.debian.org
tzafrir-guest at alioth.debian.org
Sun Sep 14 20:27:51 UTC 2008
Author: tzafrir-guest
Date: Sun Sep 14 20:27:51 2008
New Revision: 6213
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=6213
Log:
[svn-inject] Applying Debian modifications to trunk
Added:
libgsmat/trunk/debian/ (with props)
libgsmat/trunk/debian/changelog
libgsmat/trunk/debian/compat
libgsmat/trunk/debian/control
libgsmat/trunk/debian/copyright
libgsmat/trunk/debian/docs
libgsmat/trunk/debian/libgsmat-dev.install
libgsmat/trunk/debian/libgsmat1.install
libgsmat/trunk/debian/patches/
libgsmat/trunk/debian/patches/ldconfig
libgsmat/trunk/debian/patches/series
libgsmat/trunk/debian/rules (with props)
Propchange: libgsmat/trunk/debian/
------------------------------------------------------------------------------
mergeWithUpstream = 1
Added: libgsmat/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/libgsmat/trunk/debian/changelog?rev=6213&op=file
==============================================================================
--- libgsmat/trunk/debian/changelog (added)
+++ libgsmat/trunk/debian/changelog Sun Sep 14 20:27:51 2008
@@ -1,0 +1,5 @@
+libgsmat (0.0.4~RC3b-1) UNRELEASED; urgency=low
+
+ * Initial release. (Closes: #XXXXXX)
+
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com> Sun, 14 Sep 2008 22:59:56 +0300
Added: libgsmat/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-voip/libgsmat/trunk/debian/compat?rev=6213&op=file
==============================================================================
--- libgsmat/trunk/debian/compat (added)
+++ libgsmat/trunk/debian/compat Sun Sep 14 20:27:51 2008
@@ -1,0 +1,1 @@
+5
Added: libgsmat/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/libgsmat/trunk/debian/control?rev=6213&op=file
==============================================================================
--- libgsmat/trunk/debian/control (added)
+++ libgsmat/trunk/debian/control Sun Sep 14 20:27:51 2008
@@ -1,0 +1,34 @@
+Source: libgsmat
+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/libgsmat/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/libgsmat/?op=log
+
+Package: libgsmat-dev
+Section: libdevel
+Architecture: any
+Depends: libgsmat1 (= ${binary:Version})
+Description: Junghanns GSM Modem library development files
+ Development files for the C implementation of the Signalling System 7
+ (ss7) telephony protocol.
+
+Package: libgsmat1
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Junghanns GSM Modem library library
+ C implementation of the Signalling System 7 (ss7) telephony protocol.
+
+Package: libgsmat-dbg
+Section: libdevel
+Priority: extra
+Architecture: any
+Depends: libgsmat1 (= ${binary:Version})
+Description: Junghanns GSM Modem library debugging symbols
+ Debug symbols for the C implementation of the Signalling System 7
+ (ss7) telephony protocol.
Added: libgsmat/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-voip/libgsmat/trunk/debian/copyright?rev=6213&op=file
==============================================================================
--- libgsmat/trunk/debian/copyright (added)
+++ libgsmat/trunk/debian/copyright Sun Sep 14 20:27:51 2008
@@ -1,0 +1,30 @@
+It was downloaded from http://junghanns.net/downloads/
+
+This file still needs to be reviewed.
+
+# Make Lintian bug us about copyrights:
+Copyright Holder(s):
+ Copyright (C) 2005, Junghanns.NET GmbH
+
+Parts taken from libpri-1.0.9 Written by
+Mark Spencer <markster at linux-support.net>
+Copyright (C) 2001, Linux Support Services, Inc.
+
+License:
+
+ * This program 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
Added: libgsmat/trunk/debian/docs
URL: http://svn.debian.org/wsvn/pkg-voip/libgsmat/trunk/debian/docs?rev=6213&op=file
==============================================================================
--- libgsmat/trunk/debian/docs (added)
+++ libgsmat/trunk/debian/docs Sun Sep 14 20:27:51 2008
@@ -1,0 +1,2 @@
+README
+NEWS*
Added: libgsmat/trunk/debian/libgsmat-dev.install
URL: http://svn.debian.org/wsvn/pkg-voip/libgsmat/trunk/debian/libgsmat-dev.install?rev=6213&op=file
==============================================================================
--- libgsmat/trunk/debian/libgsmat-dev.install (added)
+++ libgsmat/trunk/debian/libgsmat-dev.install Sun Sep 14 20:27:51 2008
@@ -1,0 +1,3 @@
+usr/include/*
+usr/lib/lib*.a
+usr/lib/lib*.so
Added: libgsmat/trunk/debian/libgsmat1.install
URL: http://svn.debian.org/wsvn/pkg-voip/libgsmat/trunk/debian/libgsmat1.install?rev=6213&op=file
==============================================================================
--- libgsmat/trunk/debian/libgsmat1.install (added)
+++ libgsmat/trunk/debian/libgsmat1.install Sun Sep 14 20:27:51 2008
@@ -1,0 +1,1 @@
+usr/lib/lib*.so.*
Added: libgsmat/trunk/debian/patches/ldconfig
URL: http://svn.debian.org/wsvn/pkg-voip/libgsmat/trunk/debian/patches/ldconfig?rev=6213&op=file
==============================================================================
--- libgsmat/trunk/debian/patches/ldconfig (added)
+++ libgsmat/trunk/debian/patches/ldconfig Sun Sep 14 20:27:51 2008
@@ -1,0 +1,15 @@
+Upstream seems to assume that 'make install' is run by root on a real
+system. This patch tells us to use a specific ldconfig if the global one
+has failed.
+
+--- a/Makefile
++++ b/Makefile
+@@ -63,7 +63,7 @@ install: $(STATIC_LIBRARY) $(DYNAMIC_LIB
+ if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then restorecon -v $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi
+ ( cd $(INSTALL_PREFIX)/usr/lib ; ln -sf libgsmat.so.1 libgsmat.so )
+ install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)/usr/lib
+- /sbin/ldconfig
++ /sbin/ldconfig 2>/dev/null || /sbin/ldconfig -n $(INSTALL_PREFIX)/usr/lib
+
+ uninstall:
+ @echo "Removing Libpri"
Added: libgsmat/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/libgsmat/trunk/debian/patches/series?rev=6213&op=file
==============================================================================
--- libgsmat/trunk/debian/patches/series (added)
+++ libgsmat/trunk/debian/patches/series Sun Sep 14 20:27:51 2008
@@ -1,0 +1,1 @@
+ldconfig
Added: libgsmat/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/libgsmat/trunk/debian/rules?rev=6213&op=file
==============================================================================
--- libgsmat/trunk/debian/rules (added)
+++ libgsmat/trunk/debian/rules Sun Sep 14 20:27:51 2008
@@ -1,0 +1,147 @@
+#!/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 = libgsmat
+
+-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$$//')
+# the package version has:
+# <gsmat_version>~<bridstuff-0.4-version>
+ver_array:=$(subst ~, ,$(UPVERSION))
+GSMAT_VERSION:=$(firstword $(ver_array))
+BRISTUFF_VERSION:=0.4.0-$(lastword $(ver_array))
+BRISTUFF_NAME=bristuff-$(BRISTUFF_VERSION)
+
+UPVERSIONMAJOR:=$(shell echo $(UPVERSION) | sed -re 's/(^[0-9]\.[0-9]).*/\1/')
+SHLIBS = $(PKGNAME) (>= $(UPVERSIONMAJOR))
+
+FILENAME := $(PACKAGE)_$(UPFILENAME).orig.tar.gz
+UPFILENAME := $(BRISTUFF_NAME).tar.gz
+URL := http://junghanns.net/downloads/$(UPFILENAME)
+
+# 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=$(PACKAGE)-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)"
+ @@echo ver_array=$(ver_array)
+ @@echo BRISTUFF_VERSION=$(BRISTUFF_VERSION)
+ @@echo BRISTUFF_NAME=$(BRISTUFF_NAME)
+ @@echo GSMAT_VERSION=$(GSMAT_VERSION)
+
+# Unlike a common get-orig-source target, here we extract a
+# subdirectory (libgsmat-0.0.N) from a tarball and repacka it as our
+# .orig tarball.
+TARBALL_DIR=../tarballs/$(BRISTUFF_NAME).tmp
+get-orig-source:
+ @@dh_testdir
+ @@[ -d ../tarballs/. ]||mkdir -p ../tarballs
+ @@echo Downloading $(UPFILENAME) from $(URL) ...
+ @@wget -nv -T10 -t3 --verbose -O ../tarballs/$(UPFILENAME) $(URL)
+ @@echo Repacking as DFSG-free...
+ @@mkdir -p $(TARBALL_DIR)/
+ @@cd $(TARBALL_DIR) ; \
+ tar xfz ../$(UPFILENAME)
+ @@cd $(TARBALL_DIR)/$(BRISTUFF_NAME) ; \
+ tar cfz ../../$(FILENAME) libgsmat-$(GSMAT_VERSION)
+ @@echo Cleaning up...
+ @@$(RM) -rf $(TARBALL_DIR)/
+ @@$(RM) -f ../tarballs/$(UPFILENAME)
+ @@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
Propchange: libgsmat/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
More information about the Pkg-voip-commits
mailing list