From 5ab2f915077cb88f3b2016ca7e4fe6374b2eb06a Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Sun, 3 Jan 2021 21:14:07 +0000 Subject: [PATCH 1/1] Import direwolf_1.6+dfsg-1.debian.tar.xz [dgit import tarball direwolf 1.6+dfsg-1 direwolf_1.6+dfsg-1.debian.tar.xz] --- README.Debian | 5 + changelog | 211 +++++++++++++++++++++++++++ control | 31 ++++ copyright | 176 ++++++++++++++++++++++ direwolf.lintian-overrides | 11 ++ direwolf.postinst | 33 +++++ direwolf.postrm | 19 +++ direwolf.service | 12 ++ gitlab-ci.yml | 6 + patches/desktop-main-category | 11 ++ patches/fix_documentation_path.patch | 17 +++ patches/lib-udev-rules | 11 ++ patches/no-install-pdf | 24 +++ patches/python3 | 14 ++ patches/series | 7 + rules | 10 ++ source/format | 1 + source/include-binaries | 12 ++ upstream/metadata | 1 + watch | 3 + 20 files changed, 615 insertions(+) create mode 100644 README.Debian create mode 100644 changelog create mode 100644 control create mode 100644 copyright create mode 100644 direwolf.lintian-overrides create mode 100644 direwolf.postinst create mode 100644 direwolf.postrm create mode 100644 direwolf.service create mode 100644 gitlab-ci.yml create mode 100644 patches/desktop-main-category create mode 100644 patches/fix_documentation_path.patch create mode 100644 patches/lib-udev-rules create mode 100644 patches/no-install-pdf create mode 100644 patches/python3 create mode 100644 patches/series create mode 100755 rules create mode 100644 source/format create mode 100644 source/include-binaries create mode 100644 upstream/metadata create mode 100644 watch diff --git a/README.Debian b/README.Debian new file mode 100644 index 0000000..93e209f --- /dev/null +++ b/README.Debian @@ -0,0 +1,5 @@ +In order to start direwolf as a service the configuration file +/etc/direwolf.conf needs to exist. Otherwise attempting to start the service +returns an 'Assertion failed' error. An example configuration file which may be +used as a model can be found in +/usr/share/doc/direwolf/conf/direwolf.conf.gz diff --git a/changelog b/changelog new file mode 100644 index 0000000..6196371 --- /dev/null +++ b/changelog @@ -0,0 +1,211 @@ +direwolf (1.6+dfsg-1) unstable; urgency=medium + + * New upstream version, buildsystem switched to cmake. + * Revert to Architecture: any, big endian is supported now. + * B-D on libudev-dev [linux-any]. + * Add debian/gitlab-ci.yml. + * Adopt package from Ian, thanks! (Closes: #970374) + + -- Christoph Berg Sun, 03 Jan 2021 22:14:07 +0100 + +direwolf (1.5+dfsg-5) unstable; urgency=medium + + [ Debian Janitor ] + * Set debhelper-compat version in Build-Depends. + * Set upstream metadata fields: Bug-Database. + + [ Iain R. Learmonth ] + * Adds additional little-endian architectures (Fixes: #945297) + * Install kissutil (Fixes: #954431) + + -- Iain R. Learmonth Mon, 14 Sep 2020 13:45:57 +0100 + +direwolf (1.5+dfsg-4) unstable; urgency=medium + + * Adds the audio supplemental group to the systemd service unit to allow the + use of the sound card when running as a system service + + -- Iain R. Learmonth Fri, 22 Nov 2019 16:48:53 +0000 + +direwolf (1.5+dfsg-3) unstable; urgency=medium + + [ Bernd Zeimetz ] + * Don't be strict about the GPSD API (Closes: #926549) + + [ Iain R. Learmonth ] + * d/control: Standards version to 4.4.1 + + -- Iain R. Learmonth Mon, 28 Oct 2019 19:01:15 +0000 + +direwolf (1.5+dfsg-2) unstable; urgency=medium + + [ Christian Ehrhardt ] + * Adds compatibility for newer GPSD versions (Closes: #926549) + + [ Iain R. Learmonth ] + * Adds support for hamlib rig control + - New build dependency libhamlib-dev + + -- Iain R. Learmonth Tue, 09 Jul 2019 09:51:48 +0100 + +direwolf (1.5+dfsg-1) experimental; urgency=medium + + * New upstream version 1.5+dfsg + * debian/control: + - Removed obsolete build dependency on dh-systemd + - Updated Vcs-* fields for salsa + - Updated Standards Version to 4.3.0 + - Added adduser to and removed direwolf-docs from + dependencies for direwolf + * debian/patches: + - Refreshed patches + * debian/compat: + - Level bumped to 12 + * debian/rules: + - Use dh_installsystemd + * debian/copyright: + - Use https URL for format link + + -- Iain R. Learmonth Mon, 10 Jun 2019 18:48:29 +0100 + +direwolf (1.4+dfsg-1) unstable; urgency=medium + + * New upstream version 1.4+dfsg + * The direwolf-docs binary package has been removed: + - This package depended on sources for the documentation being provided + by the author. For this release, it has not been possible to obtain + these sources and they have never been included in the releases directly. + * debian/control: + - Updated standards version to 4.1.0 + - Removed direwolf-docs binary package + - Added dependency on adduser, used by new scripts below + * debian/copyright: + - Refreshed to reflect moved files + - Added files to exclude for DFSG repack (the PDF documentation) + * debian/watch: + - use dversionmangle to remove dfsg before comparison + * debian/post{inst,rm}: + - New scripts create user and group used by the systemd service file if not + present (Closes: #855497) + + -- Iain R. Learmonth Fri, 15 Sep 2017 07:39:43 +0100 + +direwolf (1.3-2) unstable; urgency=medium + + * Team upload + * Added systemd service file (Closes: #808827) + + -- Ana Custura Sun, 18 Sep 2016 14:24:50 +0100 + +direwolf (1.3-1) unstable; urgency=medium + + * New upstream version + * Updated watch file to use GitHub releases + * debian/patches: + - Removed libgps22.patch (fixed upstream) + - Removed enable_gps.patch (fixed upstream) + - Removed fix_start_script_paths.patch (fixed upstream) + - Refreshed fix_spelling.patch (de-fuzz; submitted upstream) + - Refreshed fix_hardening-no-relro.patch (de-fuzz; submitted upstream) + - Refreshed fix_documentation_path.patch (de-fuzz) + * debian/source/include-binaries: + - New Word document sources added for the PDF documentation: + + debian/APRStt-Listening-Example.docx + + debian/A-Closer-Look-at-the-WA8LMF-TNC-Test-CD.docx + + debian/APRS-Telemetry-Toolkit.docx + + debian/APRStt-interface-for-SARTrack.docx + + debian/Raspberry-Pi-SDR-IGate.docx + * debian/control: + - Updated Homepage + - Updated Vcs-* URIs to secure versions + * debian/rules: + - Enable all hardening options in the build + - Remove gen_fff and direwolf.conf in clean target (Closes: #819384) + + -- Iain R. Learmonth Tue, 05 Jul 2016 22:14:07 +0100 + +direwolf (1.2-3) unstable; urgency=medium + + * Allow for building only architecture-independent packages (Closes: #806015) + - Thanks Santiago Vila! + + -- Iain R. Learmonth Fri, 08 Apr 2016 21:40:24 +0100 + +direwolf (1.2-2) unstable; urgency=medium + + * Allow building with gpsd API major version 6 (Closes: #803686) + - Thanks Bas Couwenberg! + * debian/control: + - Updated my email address in uploaders. + + -- Iain R. Learmonth Mon, 02 Nov 2015 14:15:36 +0000 + +direwolf (1.2-1) unstable; urgency=medium + + * Update to new upstream version 1.2. + * Microsoft Word sources for PDF files: + - Added: + * A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.docx + * A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.docx + - Updated: + * APRStt-Implementation-Notes.docx + * Raspberry-Pi-APRS-Tracker.docx + * Raspberry-Pi-APRS.docx + * User-Guide.docx + - Removed: + * Quick-Start-Guide-Windows.docx + * debian/source/include-binaries: + - Allowed inclusion of new Microsoft Word sources and removed the removed + source. + * man pages: + - Dire Wolf now ships with its own man pages, using the upstream man pages + instead of the man pages created for Debian. + * debian/rules: + - Installation is now performed using dh instead of using the Makefile + * debian/direwolf-docs.doc-base: + - PDFs are now installed under the direwolf-docs doc directory + * debian/direwolf.examples: + - Installs the example direwolf.conf + * Refreshed patches: + - fix_documentation_path.patch (de-fuzz) + - enable_gps.patch (de-fuzz) + - fix_hardening-no-relro.patch (now adding LDFLAGS to CFLAGS instead of + passing LDFLAGS on every CC call) + - fix_spelling.patch (multiple new spelling fixes) + * debian/copyright: + - Dire Wolf now includes some code copied from geotranz + + -- Iain R. Learmonth Sat, 13 Jun 2015 19:58:02 +0100 + +direwolf (1.1-2) unstable; urgency=medium + + * Added a Breaks+Replaces as files have moved between packages. (Closes: + #777674) + + -- Iain R. Learmonth Wed, 11 Feb 2015 14:52:06 +0000 + +direwolf (1.1-1) unstable; urgency=medium + + * Update to new upstream version 1.1. + + -- Iain R. Learmonth Thu, 05 Feb 2015 00:32:28 +0000 + +direwolf (1.0-3) unstable; urgency=medium + + * Changes architecture for direwolf from linux-any to a whitelist of + little-endian architectures. (Closes: #774389) + + -- Iain R. Learmonth Tue, 20 Jan 2015 05:32:05 +0000 + +direwolf (1.0-2) unstable; urgency=medium + + * No longer install the ll2utm or utm2ll binaries or man pages. (Closes: + #768223) + + -- Iain R. Learmonth Fri, 07 Nov 2014 13:40:27 +0000 + +direwolf (1.0-1) unstable; urgency=medium + + * Initial release. (Closes: #759639) + + -- Iain R. Learmonth Sat, 11 Oct 2014 18:54:51 +0100 diff --git a/control b/control new file mode 100644 index 0000000..ae58802 --- /dev/null +++ b/control @@ -0,0 +1,31 @@ +Source: direwolf +Maintainer: Debian Hamradio Maintainers +Uploaders: Christoph Berg +Section: hamradio +Priority: optional +Build-Depends: cmake, + debhelper-compat (= 13), + libasound2-dev, + libgps-dev, + libhamlib-dev, + libudev-dev [linux-any], + adduser +Standards-Version: 4.5.0 +Vcs-Browser: https://salsa.debian.org/debian-hamradio-team/direwolf +Vcs-Git: https://salsa.debian.org/debian-hamradio-team/direwolf.git +Homepage: https://github.com/wb2osz/direwolf + +Package: direwolf +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + adduser +Suggests: gpsd, python3 +Breaks: direwolf-docs (<< 1.1-1) +Replaces: direwolf-docs (<< 1.1-1) +Description: Soundcard TNC for APRS + Dire Wolf is a software "soundcard" modem/TNC and APRS encoder/decoder. It can + be used stand-alone to receive APRS messages, as a digipeater, APRStt gateway, + or Internet Gateway (IGate). It can also be used as a virtual TNC for other + applications such as APRSIS32, UI-View32, Xastir, APRS-TW, YAAC, UISS, Linux + AX25, SARTrack, and many others. diff --git a/copyright b/copyright new file mode 100644 index 0000000..5a44354 --- /dev/null +++ b/copyright @@ -0,0 +1,176 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: direwolf +Source: https://github.com/wb2osz/direwolf +Comment: + The files in misc/ are copied directly from the Cygwin source code. These are + listed here as dual licensed as they are both part of the Cygwin distribution + and originally part of BSD. See misc/README-dire-wolf.txt for more information. + . + Please see ftp-master's comments on this here: + https://lists.debian.org/debian-hams/2014/09/msg00063.html + https://lists.debian.org/debian-hams/2014/10/msg00003.html +Files-Excluded: doc/*.pdf + +Files: * +Copyright: (C) 2011-2014 John Langner WB2OSZ +License: GPL-2+ + +Files: geotranz/* +Copyright: National Geospatial-Intelligence Agency +License: Permissive-NGA + +Files: regex/* +Copyright: (C) 2002, 2003, 2005 Free Software Foundation, Inc. +License: LGPL-2.1+ + +Files: misc/strcasestr.c +Copyright: + (C) 1990, 1993 The Regents of the University of California + (C) RedHat +License: BSD-4-clause or GPL-2+ + +Files: misc/strtok_r.c misc/strsep.c +Copyright: + (C) 1988 Regents of the University of California + (C) RedHat +License: BSD-3-clause or GPL-2+ + +Files: debian/* +Copyright: (C) 2014 Iain R. Learmonth +License: GPL-2+ + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + 2. 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. + . + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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: BSD-4-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + 2. 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. + . + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by the University of + California, Berkeley and its contributors. + . + 4. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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 . + . + On Debian systems, a copy of the full license text is available in + /usr/share/common-licenses/GPL-2. + +License: LGPL-2.1+ + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This library 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 + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian systems, a copy of the full license text is available in + /usr/share/common-licenses/LGPL-2.1. + +License: Permissive-NGA + 1. The GEOTRANS source code ("the software") is provided free of charge by the + National Geospatial-Intelligence Agency (NGA) of the United States Department + of Defense. Although NGA makes no copyright claim under Title 17 U.S.C., NGA + claims copyrights in the source code under other legal regimes. NGA hereby + grants to each user of the software a license to use and distribute the + software, and develop derivative works. + . + 2. NGA requests that products developed using the software credit the source of + the software with the following statement, "The product was developed using + GEOTRANS, a product of the National Geospatial-Intelligence Agency (NGA) and + U.S. Army Engineering Research and Development Center." Do not use the name + GEOTRANS for any derived work. + . + 3. Warranty Disclaimer: The software was developed to meet only the internal + requirements of the National Geospatial-Intelligence Agency (NGA). The software + is provided "as is," and no warranty, express or implied, including but not + limited to the implied warranties of merchantability and fitness for particular + purpose or arising by statute or otherwise in law or from a course of dealing + or usage in trade, is made by NGA as to the accuracy and functioning of the + software. + . + 4. NGA and its personnel are not required to provide technical support or + general assistance with respect to public use of the software. Government + customers may contact NGA. + . + 5. Neither NGA nor its personnel will be liable for any claims, losses, or + damages arising from or connected with the use of the software. The user agrees + to hold harmless the United States National Geospatial-Intelligence Agency + (NGA). The user's sole and exclusive remedy is to stop using the software. + . + 6. Please be advised that pursuant to the United States Code, 10 U.S.C. 425, + the name of the National Geospatial-Intelligence Agency, the initials "NGA", + the seal of the National Geospatial-Intelligence Agency, or any colorable + imitation thereof shall not be used to imply approval, endorsement, or + authorization of a product without prior written permission from United States + Secretary of Defense. Do not create the impression that NGA, the Secretary of + Defense or the Director of National Intelligence has endorsed any product + derived from GEOTRANS. diff --git a/direwolf.lintian-overrides b/direwolf.lintian-overrides new file mode 100644 index 0000000..66e9045 --- /dev/null +++ b/direwolf.lintian-overrides @@ -0,0 +1,11 @@ +# These are used with extensions in the example config and should be treated as well-known names +direwolf: script-with-language-extension usr/bin/dwespeak.sh +direwolf: script-with-language-extension usr/bin/telem-balloon.pl +direwolf: script-with-language-extension usr/bin/telem-bits.pl +direwolf: script-with-language-extension usr/bin/telem-data.pl +direwolf: script-with-language-extension usr/bin/telem-data91.pl +direwolf: script-with-language-extension usr/bin/telem-eqns.pl +direwolf: script-with-language-extension usr/bin/telem-parm.pl +direwolf: script-with-language-extension usr/bin/telem-seq.sh +direwolf: script-with-language-extension usr/bin/telem-unit.pl +direwolf: script-with-language-extension usr/bin/telem-volts.py diff --git a/direwolf.postinst b/direwolf.postinst new file mode 100644 index 0000000..e42b9f8 --- /dev/null +++ b/direwolf.postinst @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +add_group_if_missing() { + if ! getent group direwolf >/dev/null; then + addgroup --system --force-badname direwolf || true + fi +} + +add_user_if_missing() { + if ! id -u direwolf > /dev/null 2>&1; then + mkdir -m 02750 -p /var/lib/direwolf + adduser --system --home /var/lib/direwolf \ + --disabled-password \ + --force-badname direwolf \ + --ingroup direwolf + adduser direwolf dialout + chown direwolf:direwolf /var/lib/direwolf + fi +} + +add_group_if_missing +add_user_if_missing + +db_stop + +#DEBHELPER# + +exit 0 + diff --git a/direwolf.postrm b/direwolf.postrm new file mode 100644 index 0000000..886af3d --- /dev/null +++ b/direwolf.postrm @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +case "$1" in + purge) + rm -rf /var/lib/direwolf/ + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 +esac + +#DEBHELPER# + +exit 0 + diff --git a/direwolf.service b/direwolf.service new file mode 100644 index 0000000..e6ed169 --- /dev/null +++ b/direwolf.service @@ -0,0 +1,12 @@ +[Unit] +Description=DireWolf is a software "soundcard" modem/TNC and APRS decoder +Documentation=man:direwolf +AssertPathExists=/etc/direwolf.conf + +[Service] +User=direwolf +SupplementaryGroups=dialout audio +ExecStart=/usr/bin/direwolf -c /etc/direwolf.conf + +[Install] +WantedBy=multi-user.target diff --git a/gitlab-ci.yml b/gitlab-ci.yml new file mode 100644 index 0000000..cd460cf --- /dev/null +++ b/gitlab-ci.yml @@ -0,0 +1,6 @@ +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml + +reprotest: + extends: .test-reprotest-diffoscope diff --git a/patches/desktop-main-category b/patches/desktop-main-category new file mode 100644 index 0000000..ef052a6 --- /dev/null +++ b/patches/desktop-main-category @@ -0,0 +1,11 @@ +--- a/cmake/cpack/direwolf.desktop.in ++++ b/cmake/cpack/direwolf.desktop.in +@@ -6,5 +6,5 @@ Icon=@CMAKE_PROJECT_NAME@_icon.png + StartupNotify=true + Terminal=false + Type=Application +-Categories=HamRadio +-Keywords=Ham Radio;APRS;Soundcard TNC;KISS;AGWPE;AX.25 +\ No newline at end of file ++Categories=Network;HamRadio ++Keywords=Ham Radio;APRS;Soundcard TNC;KISS;AGWPE;AX.25 diff --git a/patches/fix_documentation_path.patch b/patches/fix_documentation_path.patch new file mode 100644 index 0000000..47b3d8a --- /dev/null +++ b/patches/fix_documentation_path.patch @@ -0,0 +1,17 @@ +Description: Correct all mentions of the documentation path in the source code +Author: Iain R. Learmonth +Last-Update: 2014-09-08 + +--- a/src/direwolf.c ++++ b/src/direwolf.c +@@ -1513,7 +1513,10 @@ static void usage (char **argv) + dw_printf ("Complete documentation can be found in the 'doc' folder\n"); + #else + // TODO: Could vary by platform and build options. ++ /* + dw_printf ("Complete documentation can be found in /usr/local/share/doc/direwolf\n"); ++ */ ++ dw_printf ("Complete documentation can be found online at https://github.com/wb2osz/direwolf/tree/master/doc/.\n"); + #endif + dw_printf ("or online at https://github.com/wb2osz/direwolf/tree/master/doc\n"); + exit (EXIT_FAILURE); diff --git a/patches/lib-udev-rules b/patches/lib-udev-rules new file mode 100644 index 0000000..f26221a --- /dev/null +++ b/patches/lib-udev-rules @@ -0,0 +1,11 @@ +--- a/conf/CMakeLists.txt ++++ b/conf/CMakeLists.txt +@@ -26,7 +26,7 @@ file(WRITE "${CMAKE_BINARY_DIR}/direwolf + + # install udev rules for CM108 + if(LINUX) +- install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION /etc/udev/rules.d/) ++ install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION /lib/udev/rules.d/) + endif() + + install(FILES "${CMAKE_BINARY_DIR}/direwolf.conf" DESTINATION ${INSTALL_CONF_DIR}) diff --git a/patches/no-install-pdf b/patches/no-install-pdf new file mode 100644 index 0000000..ca604ab --- /dev/null +++ b/patches/no-install-pdf @@ -0,0 +1,24 @@ +--- a/doc/CMakeLists.txt ++++ b/doc/CMakeLists.txt +@@ -1,21 +1,2 @@ + + install(FILES "${CUSTOM_DOC_DIR}/README.md" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/2400-4800-PSK-for-APRS-Packet-Radio.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/A-Closer-Look-at-the-WA8LMF-TNC-Test-CD.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/AIS-Reception.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/APRS-Telemetry-Toolkit.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/APRStt-Implementation-Notes.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/APRStt-interface-for-SARTrack.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/APRStt-Listening-Example.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/AX25_plus_FEC_equals_FX25.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/Bluetooth-KISS-TNC.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/Going-beyond-9600-baud.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/Raspberry-Pi-APRS.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/Raspberry-Pi-APRS-Tracker.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/Raspberry-Pi-SDR-IGate.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/Successful-APRS-IGate-Operation.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/User-Guide.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/WA8LMF-TNC-Test-CD-Results.pdf" DESTINATION ${INSTALL_DOC_DIR}) +-install(FILES "${CUSTOM_DOC_DIR}/Why-is-9600-only-twice-as-fast-as-1200.pdf" DESTINATION ${INSTALL_DOC_DIR}) diff --git a/patches/python3 b/patches/python3 new file mode 100644 index 0000000..d8f2895 --- /dev/null +++ b/patches/python3 @@ -0,0 +1,14 @@ +--- a/scripts/telemetry-toolkit/telem-volts.py ++++ b/scripts/telemetry-toolkit/telem-volts.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + + # Part of Dire Wolf APRS Telemetry Toolkit, WB2OSZ, 2015 + +@@ -33,4 +33,4 @@ volts = adc.readADCSingleEnded(0, gain, + # (multiply by expected value, divide by uncalibrated result.) + #volts = volts * 4.98 / 4.889 + +-print "%.3f" % (volts) ++print("%.3f" % (volts)) diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..c97e68d --- /dev/null +++ b/patches/series @@ -0,0 +1,7 @@ +fix_documentation_path.patch +#fix_hardening-no-relro.patch +#Issue-196-Compatibility-with-GPSD-API-7.patch +no-install-pdf +python3 +desktop-main-category +lib-udev-rules diff --git a/rules b/rules new file mode 100755 index 0000000..efbb26f --- /dev/null +++ b/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +%: + dh $@ --buildsystem=cmake + +override_dh_auto_configure: + dh_auto_configure -- -DBINARY_TERMINAL_BIN=/usr/bin/x-terminal-emulator + +override_dh_installsystemd: + dh_installsystemd --no-enable --no-start diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/source/include-binaries b/source/include-binaries new file mode 100644 index 0000000..15a7103 --- /dev/null +++ b/source/include-binaries @@ -0,0 +1,12 @@ +debian/APRStt-Implementation-Notes.docx +debian/Raspberry-Pi-APRS.docx +debian/User-Guide.docx +debian/Raspberry-Pi-APRS-Tracker.docx +debian/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.docx +debian/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.docx +debian/WA8LMF-TNC-Test-CD-Results.docx +debian/APRStt-Listening-Example.docx +debian/A-Closer-Look-at-the-WA8LMF-TNC-Test-CD.docx +debian/APRS-Telemetry-Toolkit.docx +debian/APRStt-interface-for-SARTrack.docx +debian/Raspberry-Pi-SDR-IGate.docx diff --git a/upstream/metadata b/upstream/metadata new file mode 100644 index 0000000..12777b6 --- /dev/null +++ b/upstream/metadata @@ -0,0 +1 @@ +Bug-Database: https://github.com/wb2osz/direwolf/issues diff --git a/watch b/watch new file mode 100644 index 0000000..75214c7 --- /dev/null +++ b/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/.dfsg//,repacksuffix=+dfsg \ +https://github.com/wb2osz/direwolf/releases .*/archive/v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz) -- 2.30.2