[hamradio-commits] [gr-hpsdr] 02/02: Import Debian changes 1.2-1

Maitland Bottoms bottoms at moszumanska.debian.org
Mon Sep 4 18:35:16 UTC 2017


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

bottoms pushed a commit to branch master
in repository gr-hpsdr.

commit 545269a42912167edd67086d592b4788085139a9
Author: A. Maitland Bottoms <bottoms at debian.org>
Date:   Mon Sep 4 01:11:38 2017 -0400

    Import Debian changes 1.2-1
    
    gr-hpsdr (1.2-1) unstable; urgency=medium
    
      * New upstream release
      * build with gnuradio 3.7.11
      * add watch file
    
    gr-hpsdr (0.0.0.bb77f3c-2) unstable; urgency=medium
    
      * depends upon swig
    
    gr-hpsdr (0.0.0.bb77f3c-1) unstable; urgency=low
    
      * Initial package (Closes: #799026)
---
 debian/changelog                      |  19 ++++++
 debian/compat                         |   1 +
 debian/control                        |  62 +++++++++++++++++++
 debian/copyright                      | 109 ++++++++++++++++++++++++++++++++++
 debian/gr-hpsdr.install               |   4 ++
 debian/libgnuradio-hpsdr1.2.install   |   1 +
 debian/patches/bsd-lacks-linux-ioctls |  38 ++++++++++++
 debian/patches/debian-soname          |  14 +++++
 debian/patches/series                 |   2 +
 debian/rules                          |  16 +++++
 debian/source/format                  |   1 +
 debian/watch                          |   4 ++
 12 files changed, 271 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7c4aeaa
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,19 @@
+gr-hpsdr (1.2-1) unstable; urgency=medium
+
+  * New upstream release
+  * build with gnuradio 3.7.11
+  * add watch file
+
+ -- A. Maitland Bottoms <bottoms at debian.org>  Mon, 04 Sep 2017 01:11:38 -0400
+
+gr-hpsdr (0.0.0.bb77f3c-2) unstable; urgency=medium
+
+  * depends upon swig
+
+ -- A. Maitland Bottoms <bottoms at debian.org>  Wed, 03 Feb 2016 01:03:06 -0500
+
+gr-hpsdr (0.0.0.bb77f3c-1) unstable; urgency=low
+
+  * Initial package (Closes: #799026)
+
+ -- A. Maitland Bottoms <bottoms at debian.org>  Tue, 19 Jan 2016 12:47:50 -0500
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a2fb563
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,62 @@
+Source: gr-hpsdr
+Section: libdevel
+Priority: extra
+Maintainer: Debian Hamradio Maintainers <debian-hams at lists.debian.org>
+Uploaders: A. Maitland Bottoms <bottoms at debian.org>
+Build-Depends: cmake,
+               debhelper (>= 9.0.0~),
+               dh-python,
+               doxygen,
+               gnuradio-dev (>= 3.7.11),
+               libboost-filesystem-dev,
+               libboost-system-dev,
+               pkg-config,
+               python,
+               python-cheetah,
+               swig
+Standards-Version: 4.1.0
+Homepage: https://github.com/Tom-McDermott/gr-hpsdr
+Vcs-Git: git://anonscm.debian.org/pkg-hamradio/gr-hpsdr.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-hamradio/gr-hpsdr.git/
+
+Package: libgnuradio-hpsdr1.2
+Section: libs
+Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Multi-Arch: same
+Recommends: gr-hpsdr
+Description: gnuradio library for OpenHPSDR protocol 1
+ Hardware supported includes OpenHPSDR Hermes / Metis and Red Pitaya
+ using the OpenHpsdr protocol.
+ .
+ The modules are compatible with version 3.7 of gnuradio and versions of
+ Hermes firmware 1.8 through 3.2. (known as OpenHPSDR protocol 1). It
+ is not compatible with the new OpenHPSDR protocol 2.
+ .
+ This package contains the shared library.
+
+Package: gr-hpsdr
+Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
+Depends: libgnuradio-hpsdr1.2 (=${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: gnuradio interface module for OpenHPSDR protocol 1
+ Hardware supported includes OpenHPSDR Hermes / Metis and Red Pitaya
+ using the OpenHpsdr protocol.
+ .
+ hermesNB sources decimated downconverted 48K-to-384K receiver complex
+ stream(s), and sinks one 48k sample rate transmit complex stream.
+ .
+ hermesWB sources raw ADC samples as a vector of floats, with
+ vlen=16384. Each individual vector contains time contiguous
+ samples. However there are large time gaps between vectors. This is
+ how HPSDR produces raw samples, it is due to Ethernet interface rate
+ limitations between HPSDR and the host computer.
+ .
+ The modules are compatible with version 3.7 of gnuradio and versions of
+ Hermes firmware 1.8 through at 3.2. (known as OpenHPSDR protocol
+ 1). It is not compatible with the new OpenHPSDR protocol 2.
+ .
+ This package contains the header files and grc block definitions.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ccdfb2e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,109 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: gr-hpsdr
+Upstream-Contact: https://github.com/Tom-McDermott/gr-hpsdr
+Source:
+ https://github.com/Tom-McDermott/gr-hpsdr
+Comment:
+ Debian packages by A. Maitland Bottoms <bottoms at debian.org>
+ .
+ Upstream Authors:
+  Tom McDermott, N5EG <n5eg at tapr.org>
+Copyright: 2012-2015 Thomas C. McDermott, N5EG
+License: GPL-2+
+
+Files: apps/* cmake/* CMakeLists.txt docs/* include/*
+ grc/* lib/* python/* README.md .gitignore license.txt swig/*
+Copyright: 2014-2015 Tom McDermott, N5EG <n5eg at tapr.org>
+License: GPL-2+
+
+Files: lib/HermesProxyW.cc lib/HermesProxyW.h lib/hermesWB_impl.h
+ lib/hermesNB_impl.cc lib/HermesProxy.cc lib/hermesWB_impl.cc
+ lib/HermesProxy.h lib/hermesNB_impl.h include/hpsdr/hermesWB.h
+ include/hpsdr/hermesNB.h
+Copyright: 2014-2015 Tom McDermott, N5EG <n5eg at tapr.org>
+License: GPL-3+
+
+Files: python/build_utils.py python/CMakeLists.txt python/build_utils_codes.py
+ python/__init__.py CMakeLists.txt
+ lib/qa_hpsdr.h lib/CMakeLists.txt lib/test_hpsdr.cc
+ docs/CMakeLists.txt docs/doxygen/swig_doc.py docs/doxygen/doxyxml/base.py
+ docs/doxygen/doxyxml/doxyindex.py docs/doxygen/doxyxml/text.py
+ docs/doxygen/doxyxml/__init__.py docs/doxygen/CMakeLists.txt
+ grc/CMakeLists.txt cmake/Modules/GrPlatform.cmake
+ cmake/Modules/GrPython.cmake cmake/Modules/GrMiscUtils.cmake
+ cmake/Modules/GrTest.cmake cmake/Modules/GrSwig.cmake
+ swig/CMakeLists.txt apps/CMakeLists.txt
+ include/hpsdr/CMakeLists.txt include/hpsdr/api.h
+Copyright: 2003-2012 Free Software Foundation, Inc
+Comment: from GNU Radio gr_modtool
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2015 Free Software Foundation, Inc
+Comment: assigned by A. Maitland Bottoms <bottoms at debian.org>
+License: GPL-2+
+
+Files: cmake/Modules/CMakeParseArgumentsCopy.cmake
+Copyright: 2010 Alexander Neundorf <neundorf at kde.org>
+License: Kitware-BSD
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ * Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+ .
+ * Neither the names of Kitware, Inc., the Insight Software Consortium,
+   nor the names of their contributors may be used to endorse or promote
+   products derived from this software without specific prior written
+   permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: GPL-2+
+ 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, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-2".
+
+License: GPL-3+
+ GNU Radio 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 3, or (at your option)
+ any later version.
+ .
+ GNU Radio 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.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License (GPL) version 3 can be found in the file
+ '/usr/share/common-licenses/LGPL-3'.
diff --git a/debian/gr-hpsdr.install b/debian/gr-hpsdr.install
new file mode 100644
index 0000000..75d5dea
--- /dev/null
+++ b/debian/gr-hpsdr.install
@@ -0,0 +1,4 @@
+/usr/lib/*/libgnuradio-hpsdr.so
+usr/include
+usr/lib/python*
+usr/share/gnuradio
diff --git a/debian/libgnuradio-hpsdr1.2.install b/debian/libgnuradio-hpsdr1.2.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libgnuradio-hpsdr1.2.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/patches/bsd-lacks-linux-ioctls b/debian/patches/bsd-lacks-linux-ioctls
new file mode 100644
index 0000000..6429635
--- /dev/null
+++ b/debian/patches/bsd-lacks-linux-ioctls
@@ -0,0 +1,38 @@
+Description: SIOCGIFHWADDR is not universally available.
+ Do not use it if it not defined.
+Author: A. Maitland Bottoms <bottoms at debian.org>
+
+--- a/lib/metis.cc
++++ b/lib/metis.cc
+@@ -160,6 +160,7 @@
+ 
+   ip_address=inaddrr(ifr_addr.sa_data).s_addr;
+ 
++#ifdef SIOCGIFHWADDR
+   if (ioctl(sock, SIOCGIFHWADDR, ifr) < 0) {
+     printf("No %s interface.\n", ifname);
+     return -1;
+@@ -169,7 +170,22 @@
+ 
+   for(i=0;i<6;i++)
+       hw_address[i]=u[i];
+-
++#else
++  // maybe check if defined(HAVE_GETIFADDRS)
++  ifaddrs* iflist;
++  if (getifaddrs(&iflist) == 0) {
++    for (ifaddrs* cur = iflist; cur; cur = cur->ifa_next) {
++      if ((cur->ifa_addr->sa_family == AF_LINK) &&
++	  (strcmp(cur->ifa_name, ifname) == 0) &&
++	  cur->ifa_addr) {
++	sockaddr_dl* sdl = (sockaddr_dl*)cur->ifa_addr;
++	memcpy(hw_address, LLADDR(sdl), sdl->sdl_alen);
++	break;
++      }
++    }
++    freeifaddrs(iflist);
++  }
++#endif
+ 
+   return 0;
+ }
diff --git a/debian/patches/debian-soname b/debian/patches/debian-soname
new file mode 100644
index 0000000..ca3e0ef
--- /dev/null
+++ b/debian/patches/debian-soname
@@ -0,0 +1,14 @@
+Description: set suitable soname for Debian packaged gnuradio libraries.
+Author: A. Maitland Bottoms <bottoms at debian.org>
+
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -31,6 +31,8 @@
+ add_library(gnuradio-hpsdr SHARED ${hpsdr_sources})
+ target_link_libraries(gnuradio-hpsdr ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES})
+ set_target_properties(gnuradio-hpsdr PROPERTIES DEFINE_SYMBOL "gnuradio_hpsdr_EXPORTS")
++set_target_properties(gnuradio-hpsdr PROPERTIES OUTPUT_NAME gnuradio-hpsdr)
++set_target_properties(gnuradio-hpsdr PROPERTIES SOVERSION 1.2 VERSION 1.2)
+ 
+ ########################################################################
+ # Install built library files
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..25e9b77
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+debian-soname
+bsd-lacks-linux-ioctls
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e5e2c83
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+export DEB_HOST_MULTIARCH
+DH_VERBOSE=1
+export DH_VERBOSE
+
+%:
+	dh $@ --with python2
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" -DPYTHON_EXECUTABLE=/usr/bin/python
+
+override_dh_install:
+	rm -f debian/tmp/usr/lib/python2.7/dist-packages/hpsdr/*.pyc
+	rm -f debian/tmp/usr/lib/python2.7/dist-packages/hpsdr/*.pyo
+	dh_install
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9c03ef6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%gr-hpsdr-$1.tar.gz%" \
+https://github.com/Tom-McDermott/gr-hpsdr/releases \
+(?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gr-hpsdr.git



More information about the pkg-hamradio-commits mailing list