debian/0000755000000000000000000000000012261046501007163 5ustar debian/copyright0000644000000000000000000001072412247151056011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: gr-fcdproplus Upstream-Contact: https://github.com/dl1ksv/gr-fcdproplus Source: git clone https://github.com/dl1ksv/gr-fcdproplus The upstream package source tarball was generated from the version: git archive --format=tar --prefix=gr-fcdproplus-0.0.1.1.2c80be/ 2c80be3 | gzip > ../gr-fcdproplus_0.0.1.1.2c80be.orig.tar.gz Comment: Debian packages by A. Maitland Bottoms , . Upstream Authors: Copyright 2013 Volker Schroer, DL1KSV License: GPL-3+ Files: COPYING Copyright: 2007 Free Software Foundation, Inc. License: Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Files: *CMakeLists.txt cmake/Modules/GrTest.cmake cmake/Modules/GrPlatform.cmake cmake/Modules/GrPython.cmake cmake/Modules/GrSwig.cmake cmake/Modules/GrMiscUtils.cmake cmake/Modules/FindGnuradio.cmake cmake/Modules/LibFindMacros.cmake cmake/Modules/FindALSA.cmake cmake/Modules/FindUSB.cmake cmake/cmake_uninstall.cmake.in python/__init__.py docs/* gnuradio-fcdproplus.pc.in include/fcdproplus/api.h lib/qa_fcdproplus.* lib/test_fcdproplus.cc swig/fcdproplus_swig.i Copyright: 2011,2012 Free Software Foundation, Inc. Comment: From GNU Radio gr_modtool templates License: GPL-3+ Files: debian/* Copyright: 2013 A. Maitland Bottoms License: GPL-3+ Files: example/fm.grc example/FMRadio.py grc/fcdproplus_fcdproplus.xml include/fcdproplus/fcdproplus.h lib/fcdcmd.h lib/fcdproplus_impl.* README Copyright: 2013 Volker Schroer, DL1KSV License: GPL-3+ Files: cmake/Modules/CMakeParseArgumentsCopy.cmake Copyright: 2010 Alexander Neundorf Comment: copy of CMakeParseArguments.cmake from cmake 2.8.x License: 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. Files: lib/hid/hidapi.h lib/hid/hidmac.c lib/hid/hid.c Copyright: 2009,2010 Alan Ott, Signal 11 Software License: GPL-3+ Comment: At the discretion of the user of this library, this software may be licensed under the terms of the GNU Public License v3, a BSD-Style license, or the original HIDAPI license as outlined in the LICENSE.txt, LICENSE-gpl3.txt, LICENSE-bsd.txt, and LICENSE-orig.txt files located at the root of the source distribution. These files may also be found in the public source code repository located at: http://github.com/signal11/hidapi . 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/GPL-3'. debian/patches/0000755000000000000000000000000012260033403010606 5ustar debian/patches/kfreebsd-support0000644000000000000000000000177112260033403014036 0ustar --- a/cmake/Modules/FindUSB.cmake +++ b/cmake/Modules/FindUSB.cmake @@ -8,7 +8,7 @@ /usr/local/include ) - find_library(LIBUSB_LIBRARIES NAMES usb-1.0 + find_library(LIBUSB_LIBRARIES NAMES usb-1.0 usb PATHS ${LIBUSB_PKG_LIBRARY_DIRS} /usr/lib --- a/lib/hid/hid.c +++ b/lib/hid/hid.c @@ -59,7 +59,7 @@ #define LOG(...) do {} while (0) #endif -#ifndef __FreeBSD__ +#ifndef __FreeBSD__ || defined(__FreeBSD_kernel__) #define DETACH_KERNEL_DRIVER #endif @@ -250,7 +250,7 @@ } #endif /* INVASIVE_GET_USAGE */ -#ifdef __FreeBSD__ +#ifdef __FreeBSD__ || defined(__FreeBSD_kernel__) /* The FreeBSD version of libusb doesn't have this funciton. In mainline libusb, it's inlined in libusb.h. This function will bear a striking resemblence to that one, because there's about one way to code it. @@ -333,7 +333,7 @@ size_t inbytes; size_t outbytes; size_t res; -#ifdef __FreeBSD__ +#ifdef __FreeBSD__ || defined(__FreeBSD_kernel__) const char *inptr; #else char *inptr; debian/patches/debian-soname0000644000000000000000000000133512225143141013237 0ustar --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -38,6 +38,8 @@ add_library(gnuradio-fcdproplus SHARED ${fcdproplus_sources}) target_link_libraries(gnuradio-fcdproplus ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${GNURADIO_BLOCKS_LIBRARIES} ${GNURADIO_AUDIO_LIBRARIES} ${LIBUSB_LIBRARIES}) set_target_properties(gnuradio-fcdproplus PROPERTIES DEFINE_SYMBOL "gnuradio_fcdproplus_EXPORTS") +set_target_properties(gnuradio-fcdproplus PROPERTIES OUTPUT_NAME gnuradio-fcdproplus) +set_target_properties(gnuradio-fcdproplus PROPERTIES SOVERSION 0 VERSION 0.0.0) MESSAGE(STATUS "Audio LIBS: ${GNURADIO_AUDIO_LIBRARIES}") ######################################################################## # Install built library files debian/patches/series0000644000000000000000000000003712260032770012031 0ustar kfreebsd-support debian-soname debian/libgnuradio-fcdproplus0.install0000644000000000000000000000012312225143417015311 0ustar /usr/lib/*/pkgconfig/gnuradio-fcdproplus.pc /usr/lib/*/libgnuradio-fcdproplus.so.* debian/gr-fcdproplus.install0000644000000000000000000000012412225143441013340 0ustar usr/include usr/share/gnuradio /usr/lib/*/libgnuradio-fcdproplus.so usr/lib/python* debian/gr-fcdproplus.udev0000644000000000000000000000072212202256275012646 0ustar # Udev rules for the Funcube Dongle Pro (0xfb56) and Pro+ (0xfb31) # HIDAPI/libusb: SUBSYSTEMS=="usb" ATTRS{idVendor}=="04d8" ATTRS{idProduct}=="fb56" MODE:="0666" SUBSYSTEMS=="usb" ATTRS{idVendor}=="04d8" ATTRS{idProduct}=="fb31" MODE:="0666" # HIDAPI/hidraw: KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fb56", MODE="0666" KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fb31", MODE="0666" debian/control0000644000000000000000000000320312261042655010572 0ustar Source: gr-fcdproplus Section: science Priority: optional Maintainer: A. Maitland Bottoms Build-Depends: debhelper (>= 9.0.0~), cmake, pkg-config, gnuradio (>=3.7), gnuradio-dev (>= 3.7), libboost-all-dev, libusb-1.0-0-dev [linux-any], libusb2-dev [kfreebsd-any], liblog4cpp5-dev, doxygen, swig Standards-Version: 3.9.4 Homepage: https://github.com/dl1ksv/gr-fcdproplus Vcs-Git: https://github.com/dl1ksv/gr-fcdproplus Package: gr-fcdproplus Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libgnuradio-fcdproplus0 (=${binary:Version}) Recommends: gnuradio, gr-osmosdr, udev Description: Funcube Dongle Pro Plus controller for GNU Radio Support hardware for software radio using the fcdproplus which provides sampled RF IQ data as a USB audio stereo data stream. Control is done over USB HID protocol. . Both the Funcube Dongle Pro and Pro+ are supported by this package. Previous Funcube Dongle device support is already included in gnuradio itself. . This package provides a python library as well as a gnuradio companion source object. Package: libgnuradio-fcdproplus0 Architecture: any Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: gr-fcdproplus Description: Funcube Dongle Pro Plus controller for GNU Radio Support hardware for software radio using the fcdproplus which provides sampled RF IQ data as a USB audio stereo data stream. Control is done over USB HID protocol. . Both the Funcube Dongle Pro and Pro+ are supported by this package. Previous Funcube Dongle device support is already included in gnuradio itself. . This package provides a shared library. debian/changelog0000644000000000000000000000107112261043014011030 0ustar gr-fcdproplus (0.0.1.1.2c80be-3) unstable; urgency=low * Recommend udev -- A. Maitland Bottoms Wed, 01 Jan 2014 11:44:43 -0500 gr-fcdproplus (0.0.1.1.2c80be-2) unstable; urgency=low * Try kFreeBSD support -- A. Maitland Bottoms Sun, 29 Dec 2013 09:43:37 -0500 gr-fcdproplus (0.0.1.1.2c80be-1) unstable; urgency=low * New upstream (Closes: #725842) * Upstream does not yet set a soversion, so Debian package will start from 0. -- A. Maitland Bottoms Mon, 02 Dec 2013 12:33:26 -0500 debian/source/0000755000000000000000000000000011743362366010501 5ustar debian/source/format0000644000000000000000000000001411661232106011672 0ustar 3.0 (quilt) debian/postinst0000644000000000000000000000102311754324402010772 0ustar #! /bin/sh set -e #DEBHELPER# if [ "$1" = "configure" ]; then ldconfig fi # same test as udev postinst... chrooted() { if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ]; then # the devicenumber/inode pair of / is the same as that of /sbin/init's # root, so we're *not* in a chroot and hence return false. return 1 fi return 0 } if [ "$1" = "configure" ]; then if ! chrooted ; then # try to update udev now udevadm control --reload-rules || true ; fi fi exit 0 debian/compat0000644000000000000000000000000212025463424010366 0ustar 9 debian/rules0000755000000000000000000000160012225141333010237 0ustar #!/usr/bin/make -f DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export DEB_HOST_MULTIARCH DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST))) VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \ | sed -rne 's,^Version: ([^-]+).*,\1,p') GITREV=$(shell echo $(VER) | sed -rne 's,[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.([0-9]+),\1,p') %: dh $@ override_dh_auto_configure: dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" -DCMAKE_BUILD_TYPE="Release" override_dh_install: rm -f debian/tmp/usr/lib/python2.7/dist-packages/fcdproplus/*.pyc rm -f debian/tmp/usr/lib/python2.7/dist-packages/fcdproplus/*.pyo dh_install get-orig-source: git clone https://github.com/dl1ksv/gr-fcdproplus cd gr-fcdproplus && git archive --format=tar --prefix=gr-fcdproplus-$(VER)/ $(GITREV) | gzip > ../gr-fcdproplus_$(VER).orig.tar.gz rm -rf gr-fcdproplus