debian/0000755000000000000000000000000012235315741007171 5ustar debian/libosmosdr0.dirs0000644000000000000000000000001012170777115012305 0ustar usr/lib debian/copyright0000644000000000000000000000550312222641533011124 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libosmosdr Upstream-Contact: http://sdr.osmocom.org/trac/ Source: git clone git://git.osmocom.org/osmo-sdr.git cd software mv libosmosdr libosmosdr-0.1.7.cd37e9 tar zcvf libosmosdr_libosmosdr-0.1.7.cd37e9.orig.tar.gz libosmosdr-0.1.7.cd37e9 Comment: Debian packages by A. Maitland Bottoms, . Upstream Authors: Dimitri Stolnikov Steve Markgraf Hoernchen Copyright: 2012,2013 OSMOCOM Project License: GPL-3+ Files: COPYING Copyright: 1989, 1991 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: git-version-gen Copyright: 2007-2010 Free Software Foundation, Inc. License: GPL-3+ Files: include/osmosdr_export.h Copyright: 2012 by Hoernchen License: GPL-2+ Files: debian/* Copyright: 2013 A. Maitland Bottoms License: GPL-2+ Files: CMakeLists.txt include/CMakeLists.txt osmosdr.rules src/CMakeLists.txt Copyright: Copyright 2012 OSMOCOM Project License: GPL-3+ Files: * not listed above Copyright: 2012 Steve Markgraf 2012 Dimitri Stolnikov License: GPL-2+ License: GPL-3+ 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 3 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 . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". License: GPL-2+ This package 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 package 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 . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/patches/0000755000000000000000000000000012235311355010615 5ustar debian/patches/series0000644000000000000000000000003712235311113012022 0ustar lib-install-dir libusb-freebsd debian/patches/lib-install-dir0000644000000000000000000000241212222574402013525 0ustar --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,10 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) +if(NOT LIB_INSTALL_DIR) + set(LIB_INSTALL_DIR lib) +endif() + ######################################################################## # Compiler specific setup ######################################################################## @@ -124,7 +128,7 @@ set(prefix ${CMAKE_INSTALL_PREFIX}) set(exec_prefix \${prefix}) -set(libdir \${exec_prefix}/lib) +set(libdir \${exec_prefix}/${LIB_INSTALL_DIR}) set(includedir \${prefix}/include) CONFIGURE_FILE( @@ -134,5 +138,5 @@ INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/libosmosdr.pc - DESTINATION lib/pkgconfig + DESTINATION ${LIB_INSTALL_DIR}/pkgconfig ) --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -63,7 +63,7 @@ # Install built library files & utilities ######################################################################## install(TARGETS osmosdr_shared osmosdr_static osmo_sdr - LIBRARY DESTINATION lib${LIB_SUFFIX} # .so/.dylib file - ARCHIVE DESTINATION lib${LIB_SUFFIX} # .lib file + LIBRARY DESTINATION ${LIB_INSTALL_DIR} # .so/.dylib file + ARCHIVE DESTINATION ${LIB_INSTALL_DIR} # .lib file RUNTIME DESTINATION bin # .dll file ) debian/patches/libusb-freebsd0000644000000000000000000000105512235311355013431 0ustar --- a/cmake/Modules/FindLibUSB.cmake +++ b/cmake/Modules/FindLibUSB.cmake @@ -8,7 +8,16 @@ /usr/local/include ) - find_library(LIBUSB_LIBRARIES NAMES usb-1.0 +#standard library name for libusb-1.0 +set(libusb1_library_names usb-1.0) + +#libusb-1.0 compatible library on freebsd +if((CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") OR (CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD")) + list(APPEND libusb1_library_names usb) +endif() + + find_library(LIBUSB_LIBRARIES + NAMES ${libusb1_library_names} PATHS ${LIBUSB_PKG_LIBRARY_DIRS} /usr/lib debian/control0000644000000000000000000000434012235311751010572 0ustar Source: libosmosdr Section: libs Priority: extra Maintainer: A. Maitland Bottoms Build-Depends: debhelper (>= 9.0.0~), cmake, libusb-1.0-0-dev [linux-any], libusb2-dev [kfreebsd-any] Standards-Version: 3.9.4 Homepage: http://sdr.osmocom.org/trac/ Vcs-Git: git://git.osmocom.org/osmo-sdr Vcs-Browser: http://cgit.osmocom.org/osmo-sdr/ Package: libosmosdr-dev Section: libdevel Architecture: any Pre-Depends: multiarch-support, ${misc:Pre-Depends} Depends: libosmosdr0 (= ${binary:Version}), ${misc:Depends} Description: Software defined radio support for OsmoSDR hardware (library) OsmoSDR is a 100% Free Software based small form-factor inexpensive SDR (Software Defined Radio) project. . The hardware part of OsmoSDR brings information from an antenna connector to a USB plug. . This package is the software that provides control of the USB hardware and an API to pass data to software defined radio applications on the host. . This package contains development files. Package: libosmosdr0 Section: libs Architecture: any Pre-Depends: multiarch-support, ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Software defined radio support for OsmoSDR hardware (development files) OsmoSDR is a 100% Free Software based small form-factor inexpensive SDR (Software Defined Radio) project. . The hardware part of OsmoSDR brings information from an antenna connector to a USB plug. . This package is the software that provides control of the USB hardware and an API to pass data to software defined radio applications on the host. . This package contains the shared library. Package: osmo-sdr Section: libs Architecture: any Depends: libosmosdr0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Software defined radio support for OsmoSDR hardware (tools) OsmoSDR is a 100% Free Software based small form-factor inexpensive SDR (Software Defined Radio) project. . The hardware part of OsmoSDR brings information from an antenna connector to a USB plug. . This package is the software that provides control of the USB hardware and an API to pass data to software defined radio applications on the host. . This package contains a set of command line utilities: debian/changelog0000644000000000000000000000056012235312201011030 0ustar libosmosdr (0.1.7.cd37e9-2) unstable; urgency=low * Use kfreebsd libusb -- A. Maitland Bottoms Sat, 02 Nov 2013 20:10:06 -0400 libosmosdr (0.1.7.cd37e9-1) unstable; urgency=low * New package (Closes: #724965) * Match GNU Radio live distribution 2013-0926 -- A. Maitland Bottoms Sun, 29 Sep 2013 22:43:43 -0400 debian/osmo-sdr.dirs0000644000000000000000000000001012171002560011575 0ustar usr/bin debian/osmo-sdr.manpages0000644000000000000000000000002212222641611012435 0ustar debian/osmo_sdr.1 debian/osmo-sdr.install0000644000000000000000000000001212171002573012310 0ustar usr/bin/* debian/source/0000755000000000000000000000000011743362366010501 5ustar debian/source/format0000644000000000000000000000001411661232106011672 0ustar 3.0 (quilt) debian/libosmosdr-dev.install0000644000000000000000000000006612222566536013522 0ustar usr/include/* usr/lib/*/lib*.so usr/lib/*/pkgconfig/* debian/libosmosdr-dev.dirs0000644000000000000000000000002412170777115013006 0ustar usr/lib usr/include debian/compat0000644000000000000000000000000212025463424010366 0ustar 9 debian/osmo_sdr.10000644000000000000000000000541412222637421011102 0ustar .TH "rtl_sdr" 1 "0.5.0" RTL-SDR "User Commands" .SH NAME rtl-sdr \- an I/Q recorder for RTL2832 based DVB-T receivers .SH DESCRIPTION Uses a re-purposed DVB-T receiver as a software defined radio to receive signals in I/Q data form. Written for and incorporated in the osmocom rtl-sdr project. .LP In-Phase and Quadrature Phase data can faithfully represent all of the information in a band of frequencies centered on a carrier signal frequency. .LP Much software is available for the RTL2832. Most of the user-level packages rely on the librtlsdr library which comes as part of the rtl-sdr codebase. This codebase contains both the library itself and also a number of command line tools such as rtl_test, rtl_sdr, rtl_tcp, and rtl_fm. These command line tools use the library to test for the existence of RTL2832 devices and to perform basic data transfer functions to and from the device. .LP Because most of the RTL2832 devices are connected using USB, the librtlsdr library depends on the libusb library to communicate with the device. .SH USAGE This program captures information from a band of frequencies and outputs the data in a form useful to other software radio programs. .SH SYNOPSIS .B rtl_adsb [-f freq] [OPTIONS] [output file] .SH OPTIONS .IP "-f frequency_to_tune_to [Hz]" .IP "-s samplerate (default: 2048000 Hz)" .IP "-d device_index (default: 0)" .IP "-g gain (default: 0 for auto)" .IP "-b output_block_size (default: 16 * 16384)" .IP "-n number of samples to read (default: 0, infinite)" .IP "-S force sync output (default: async)" .IP tfilename (a '-' dumps samples to stdout) .SH EXAMPLES .IP "Example: To tune to 392.0 MHz, and set the sample-rate to 1.8 MS/s, use:" ./rtl_sdr /tmp/capture.bin -s 1.8e6 -f 392e6 .LP to record samples to a file or to forward the data to a fifo. .LP If the device can't be opened, make sure you have the appropriate rights to access the device (install udev-rules from the repository, or run it as root). .SH SEE ALSO gnuradio(1) .LP RTL-SDR wiki documentation: .B http://sdr.osmocom.org/trac/wiki/rtl-sdr .LP Other rtl-sdr programs: .sp rtl_adsb(1), rtl_eeprom(1), rtl_fm(1), rtl_tcp(1), rtl_test(1) .SH AUTHOR This manual page was written by Maitland Bottoms for the Debian project (but may be used by others). .SH COPYRIGHT Copyright (c) 2013 A. Maitland Bottoms .LP 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. .LP 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. debian/rules0000755000000000000000000000051012222565577010257 0ustar #!/usr/bin/make -f DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export DEB_HOST_MULTIARCH %: dh $@ override_dh_auto_configure: debian/librtlsdr0.udev dh_auto_configure -- -DLIB_INSTALL_DIR=lib/$(DEB_HOST_MULTIARCH) debian/librtlsdr0.udev: osmosdr.rules cp -p osmosdr.rules debian/libosmosdr0.udev debian/libosmosdr0.postinst0000644000000000000000000000102311754324402013226 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/libosmosdr0.install0000644000000000000000000000002412222064722013006 0ustar usr/lib/*/lib*.so.*