From 3ee0d375b04308d65e32732f5999b516874931b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Perrin?= Date: Sat, 30 Nov 2019 21:09:00 +0000 Subject: [PATCH] Import Debian packaging from https://salsa.debian.org/debian-gis-team/gpsprune/ --- debian/changelog | 309 ++++++++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 59 ++++++ debian/copyright | 66 +++++++ debian/docs | 1 + debian/gpsprune.1 | 47 +++++ debian/gpsprune.desktop | 12 ++ debian/install | 3 + debian/javabuild | 1 + debian/manifest | 4 + debian/manpages | 1 + debian/rules | 39 ++++ debian/scripts/get-tiles.py | 24 +++ debian/scripts/gpsprune | 16 ++ debian/source/format | 1 + debian/source/lintian-overrides | 3 + debian/upstream/metadata | 8 + debian/watch | 4 + 18 files changed, 599 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/gpsprune.1 create mode 100644 debian/gpsprune.desktop create mode 100644 debian/install create mode 100644 debian/javabuild create mode 100644 debian/manifest create mode 100644 debian/manpages create mode 100755 debian/rules create mode 100755 debian/scripts/get-tiles.py create mode 100644 debian/scripts/gpsprune create mode 100644 debian/source/format create mode 100644 debian/source/lintian-overrides create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5bb0b65 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,309 @@ +gpsprune (19.2-2) UNRELEASED; urgency=medium + + * Bump Standards-Version to 4.4.1, no changes. + * Update gbp.conf to use --source-only-changes by default. + + -- Bas Couwenberg Tue, 25 Dec 2018 22:21:42 +0100 + +gpsprune (19.2-1) unstable; urgency=medium + + * New upstream release. + * Bump Standards-Version to 4.2.1, no changes. + + -- Bas Couwenberg Sat, 15 Dec 2018 09:57:34 +0100 + +gpsprune (19.1-1) unstable; urgency=medium + + * New upstream release. + * Bump Standards-Version to 4.2.0, no changes. + + -- Bas Couwenberg Sun, 26 Aug 2018 10:38:28 +0200 + +gpsprune (19-2) unstable; urgency=medium + + * Bump Standards-Version to 4.1.5, no changes. + * Drop autopkgtest to test installability. + * Add lintian override for testsuite-autopkgtest-missing. + + -- Bas Couwenberg Tue, 31 Jul 2018 18:15:08 +0200 + +gpsprune (19-1) unstable; urgency=medium + + * New upstream release. + * Strip trailing whitespace from changelog & rules files. + * Bump Standards-Version to 4.1.4, no changes. + * Update Vcs-* URLs for Salsa. + * Add license & copyright for metadata-extractor sources. + * Drop metadata-extractor dependencies & patches. + + -- Bas Couwenberg Sun, 13 May 2018 08:14:05 +0200 + +gpsprune (18.6-2) unstable; urgency=medium + + * Add patches to fix FTBFS with metadata extractor 2.10.1. + Thanks to Markus Koschany for the initial patch. + (closes: #866762) + * Bump Standards-Version to 4.0.0, no changes. + * Add autopkgtest to test installability. + + -- Bas Couwenberg Fri, 21 Jul 2017 19:55:16 +0200 + +gpsprune (18.6-1) unstable; urgency=medium + + * New upstream release. + * Drop Debian OpenStreetMap Team from Uploaders. + * Update URLs to use HTTPS. + + -- Bas Couwenberg Mon, 19 Dec 2016 07:29:16 +0100 + +gpsprune (18.5-1) unstable; urgency=medium + + * New upstream release. + + -- Bas Couwenberg Tue, 26 Jul 2016 12:47:37 +0200 + +gpsprune (18.4-1) unstable; urgency=medium + + * New upstream release. + * Bump Standards-Version to 3.9.8, no changes. + + -- Bas Couwenberg Fri, 29 Apr 2016 12:20:44 +0200 + +gpsprune (18.3-1) unstable; urgency=medium + + * New upstream release. + * Update copyright file, changes: + - Update copyright years for activityworkshop.net + - Drop copyright character from copyright statements + * Install upstream application icon for hicolor theme. + * Update Vcs-Git URL to use HTTPS. + * Bump Standards-Version to 3.9.7, no changes. + + -- Bas Couwenberg Mon, 15 Feb 2016 07:38:07 +0100 + +gpsprune (18.2-1) unstable; urgency=medium + + * New upstream release. + * Add trailing semicolon to fix Keywords syntax in desktop file. + * Don't use full paths for Exec & Icon in desktop file. + * Add list of files (%F) field code for Exec key. + * Add MimeType key for application/gpx+xml in desktop file. + * Also install application icon in hicolor theme. + * Use desktop file in favor of menu file per CTTE #741573. + + -- Bas Couwenberg Thu, 17 Dec 2015 02:38:46 +0100 + +gpsprune (18.1-1) unstable; urgency=medium + + * New upstream release. + * Update Vcs-Browser URL to use HTTPS. + + -- Bas Couwenberg Fri, 02 Oct 2015 12:43:15 +0200 + +gpsprune (18-1) unstable; urgency=medium + + * New upstream release. + * Drop metadata-extractor.patch, applied upstream. + + -- Bas Couwenberg Wed, 22 Jul 2015 09:20:46 +0200 + +gpsprune (17.2-2) unstable; urgency=medium + + * Move from experimental to unstable. + + -- Bas Couwenberg Mon, 01 Jun 2015 19:27:07 +0200 + +gpsprune (17.2-2~exp1) experimental; urgency=medium + + * Add patch to rename symbols as used in libmetadata-extractor-java 2.7.2. + * Bump minimum required libmetadata-extractor-java version to 2.7.2. + + -- Bas Couwenberg Wed, 11 Mar 2015 11:44:43 +0100 + +gpsprune (17.2-1) unstable; urgency=medium + + * New upstream release. + * Add myself to Uploaders. + * Restructure control file with cme. + * Update Vcs-Browser URL to use cgit instead of gitweb. + * Add upstream metadata. + * Bump debhelper compatibility to 9. + * Update copyright file, changes: + - Add Upstream-Contact + - Fix Upstream-Name, Prune -> GpsPrune + - Fold X-Comment into GPL-2 license + - Update copyright years + * Add gbp.conf to use pristine-tar by default. + * Update watch file to support alternative tar formats. + * Enable parallel builds. + + -- Bas Couwenberg Sun, 22 Feb 2015 14:21:15 +0100 + +gpsprune (17.1-1) unstable; urgency=medium + + * New upstream release. + * Bump to Standards-Version 3.9.6. No changes required. + * Reorder debian/copyright paragraphs: more general paragraphs must be given + first. + + -- Mònica Ramírez Arceda Thu, 30 Oct 2014 16:07:31 +0100 + +gpsprune (17-1) unstable; urgency=medium + + * New upstream release. + + -- Mònica Ramírez Arceda Thu, 25 Sep 2014 10:28:51 +0200 + +gpsprune (16.3-1) unstable; urgency=medium + + * New upstream release. + * Update years of upstream and packaging copyright. + + -- Mònica Ramírez Arceda Tue, 05 Aug 2014 19:17:01 +0200 + +gpsprune (16.2-1) unstable; urgency=medium + + * Upload to unstable. + * New upstream release. + * Switch Recommends from gnuplot to gnuplot-x11, bug reported by upstream (!) + * Bump B-D on libmetadata-extractor-java (>= 2.6.4), which was in + experimental until now + + -- David Paleino Thu, 03 Jul 2014 10:26:09 +0200 + +gpsprune (15.2-1) experimental; urgency=low + + * New upstream release. + * debian/control: + - Improve description. + - Standards-Version bump to 3.9.5, no changes needed. + + -- Mònica Ramírez Arceda Mon, 09 Dec 2013 12:39:48 +0100 + +gpsprune (15.1-1) unstable; urgency=low + + * New upstream version + * Use the canonical URI in Vcs-* fields + * Add Keywords key to debian/gpsprune.desktop + + -- Mònica Ramírez Arceda Mon, 22 Jul 2013 10:46:27 +0200 + +gpsprune (15-1) unstable; urgency=low + + * New upstream version + - "nautical mile" is added to unit selector (Closes: #639503) + * debian/control: + - Add myself as an uploader + - Standards-Version bump to 3.9.4, no changes needed + * debian/copyright: + - Add required Copyright field to tim/prune/function/srtm/gen/ files + - Update years + * debian/scripts/gpsprune: + - Fix sed commands, when there is no host/port, proxyhost/proxyport + variables must be empty. + Thanks to Simó Albert i Beltran and to + for the patch! + + -- Mònica Ramírez Arceda Wed, 15 May 2013 10:26:51 +0200 + +gpsprune (13.4-1) unstable; urgency=low + + * New upstream version + * Standards-Version bump to 3.9.3, no changes needed + * Updated debian/copyright + + -- David Paleino Sun, 17 Jun 2012 21:47:03 +0200 + +gpsprune (13.3-1) unstable; urgency=low + + * New upstream version + + -- David Paleino Wed, 22 Feb 2012 18:07:14 +0100 + +gpsprune (13.2-1) unstable; urgency=low + + * New upstream version + + -- David Paleino Thu, 29 Dec 2011 18:07:39 +0100 + +gpsprune (13.1-1) unstable; urgency=low + + * New upstream version + + now defaults looking in ~ for the configuration (Closes: #598983) + + added OpenSeaMap to background images (Closes: #639502) + * Upstream author renamed it gpsprune, fix various files + * Fix Main-Class in debian/manifest + + -- David Paleino Thu, 20 Oct 2011 21:54:34 +0200 + +gpsprune (12.1-2) unstable; urgency=low + + * Fix passing filenames with spaces, patch from Ubuntu + (Closes: #598977, LP: #735412) + + -- David Paleino Tue, 12 Apr 2011 10:40:16 +0200 + +gpsprune (12.1-1) unstable; urgency=low + + * New upstream version + * Fix debian/watch to match upstream versions + * Standards-Version bump to 3.9.2, no changes needed + * Updated copyright years + * Bump debhelper compatibility to 8 + + -- David Paleino Mon, 11 Apr 2011 11:55:49 +0200 + +gpsprune (12-1) unstable; urgency=low + + * New upstream version + * debian/scripts/gpsprune: fixed to prefer IPv4 when ipv6bindonly + is set to 1 + * Fixed debian/watch to download the proper source + + -- David Paleino Mon, 13 Dec 2010 18:09:55 +0100 + +gpsprune (11-1) unstable; urgency=low + + * New upstream version + * debian/control: + - Standards-Version bumped to 3.9.1, no changes needed + + -- David Paleino Wed, 18 Aug 2010 10:16:41 +0200 + +gpsprune (10-1) unstable; urgency=low + + * New upstream version + * debian/copyright: + - updated to include new info about generated and binary files in + tim/prune/function/srtm/ + * debian/scripts/get-tiles.py added, can be used to re-generate + tiles*.txt files (see debian/copyright) + * debian/rules: + - added srtmtiles target; re-build the srtmtiles.dat binary file + at build-time + - added tim/prune/function/srtm/srtmtiles.dat to JH_JAR_EXTRA + * debian/patches/00-fix_readme_in_about.patch removed, merged upstream + + -- David Paleino Thu, 06 May 2010 00:08:17 +0200 + +gpsprune (9-2) unstable; urgency=low + + * debian/control: + - demote Java3d-related libraries to Recommends. + * debian/patches/: + - 00-fix_readme_in_about.patch added, fixes a bug in the About + screen + * debian/scripts/gpsprune added; wrapper to gpsprune to use $http_proxy, + thanks to Andreas Tille (Closes: #578348) + * debian/links removed + * debian/install: + - install debian/scripts/gpsprune in /usr/bin/ + * debian/lintian-overrides removed; now unused + + -- David Paleino Mon, 19 Apr 2010 17:04:41 +0200 + +gpsprune (9-1) unstable; urgency=low + + * Initial release (Closes: #568135) + + -- David Paleino Mon, 15 Mar 2010 08:26:36 +0100 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..efe88e4 --- /dev/null +++ b/debian/control @@ -0,0 +1,59 @@ +Source: gpsprune +Maintainer: Debian GIS Project +Uploaders: David Paleino , + Mònica Ramírez Arceda , + Bas Couwenberg +Section: utils +Priority: optional +Build-Depends: ant, + debhelper (>= 9), + javahelper, + default-jdk, + fastjar, + libjava3d-java, + libvecmath-java +Standards-Version: 4.4.1 +Vcs-Browser: https://salsa.debian.org/debian-gis-team/gpsprune +Vcs-Git: https://salsa.debian.org/debian-gis-team/gpsprune.git +Homepage: https://activityworkshop.net/software/gpsprune/index.html + +Package: gpsprune +Architecture: all +Depends: ${java:Depends}, + ${misc:Depends} +Recommends: gnuplot-x11, + gpsbabel, + libimage-exiftool-perl, + libjava3d-jni, + libjava3d-java, + libvecmath-java +Description: visualize, edit, convert and prune GPS data + GpsPrune is an application for viewing, editing and converting coordinate + data from GPS systems. It's a tool for preparing GPS data before you go on a + trip, and for playing with your collected GPS data after you get home again. + . + It can load data from arbitrary text-based formats (for example, any + tab-separated or comma-separated file) or XML, or directly from a GPS + receiver. It can display the data (as map view using OpenStreetMap + images and as altitude profile), edit this data (for example delete + points and ranges, sort waypoints, compress tracks), and save the data + (in various text-based formats). It can also export data as a GPX + file, or as KML/KMZ for import into Google Earth, or send it to a GPS + receiver. + . + Some example uses of GpsPrune include cleaning up tracks by deleting + wayward points - either recorded by error or by unintended detours. It + can also be used to compare and combine tracks, convert to and from + various formats, compress tracks, export data to Google Earth, or to + analyse data to calculate distances, altitudes and so on. + . + Furthermore, GpsPrune is able to display the tracks in 3d format and + lets you spin the model round to look at it from various directions. + You can also export the model in POV format so that you can render a + nice picture using Povray. You can also create charts of altitudes or + speeds. It can also load Jpegs and read their coordinates from the + EXIF tags, and export thumbnails of these photos to Kmz format so that + they appear as popups in Google Earth. If your photos don't have + coordinates yet, GpsPrune can be used to connect them (either manually or + automatically using the photo timestamps) to data points, and write + these coordinates into the EXIF tags. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..907b410 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,66 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: GpsPrune +Upstream-Contact: activityworkshop.net +Source: https://activityworkshop.net/software/gpsprune/download.html + +Files: * +Copyright: 2006-2018, activityworkshop.net +License: GPL-2 + +Files: tim/prune/jpeg/drew/* +Copyright: 2002-2015, Drew Noakes +License: Apache-2.0 + +Files: tim/prune/function/srtm/gen/tiles*.txt + tim/prune/function/srtm/srtmtiles.dat +Copyright: U.S. Geological Survey +License: public-domain + srtmtiles.dat is generated by GenerateTileLookup.java, in the same + directory, from the data available in the tiles*.txt files. This data + is gathered from directory listings of a US government website, so it's + PD. + The website states: + Most U.S. Geological Survey (USGS) information resides in the public domain + and may be used without restriction. There is no legal requirement for users + to acknowledge or credit USGS as the source for public domain information, + but they may wish to do so as a courtesy. + The tiles*.txt files can be re-generated with the debian/scripts/get-tiles.py + script. + +Files: debian/* +Copyright: 2010-2014, David Paleino +License: GPL-2 + +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 version 2 as + published by the Free Software Foundation. + . + 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian systems, the complete text of the GNU General Public License + version 2 can be found in `/usr/share/common-licenses/GPL-2'. + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache License can be found + in `/usr/share/common-licenses/Apache-2.0'. + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..55c8337 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +tim/prune/readme.txt diff --git a/debian/gpsprune.1 b/debian/gpsprune.1 new file mode 100644 index 0000000..e1c85c8 --- /dev/null +++ b/debian/gpsprune.1 @@ -0,0 +1,47 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH GPSPRUNE 1 "Feb 2010" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +gpsprune \- visualize, edit, convert and prune GPS data +.SH SYNOPSIS +.B gpsprune +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the \fBgpsprune\fR command. +.PP +\fBGpsPrune\fP is a tool to visualize, edit, convert and prune GPS data. +.SH OPTIONS +.B \-\-help +Show summary of options. +.TP +.B \-\-locale= +Specify a locale to run the program under. +.TP +.B \-\-lang= +Specify the language to run the program under. +.TP +.B \-\-langfile= +Manually specify a language file to use. +.TP +.B \-\-configfile= +Override the default (\fI.pruneconfig\fR) configuration file. +.br +.SH AUTHOR +GpsPrune was written by https://activityworkshop.net. +.PP +This manual page was written by David Paleino , for +the Debian project (and may be used by others). diff --git a/debian/gpsprune.desktop b/debian/gpsprune.desktop new file mode 100644 index 0000000..2186b71 --- /dev/null +++ b/debian/gpsprune.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.0 +Name=GpsPrune +Comment=Visualize, edit and prune GPS tracks +Exec=gpsprune %F +Icon=gpsprune +Categories=Education;Science;Geoscience; +StartupNotify=false +Terminal=false +Type=Application +MimeType=application/gpx+xml; +Keywords=gps;gpx;kml;kmz;tracks;waypoints;routes; diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..6ddab4e --- /dev/null +++ b/debian/install @@ -0,0 +1,3 @@ +gpsprune.jar /usr/share/gpsprune/ +debian/gpsprune.desktop /usr/share/applications/ +debian/scripts/gpsprune /usr/bin/ diff --git a/debian/javabuild b/debian/javabuild new file mode 100644 index 0000000..7735b60 --- /dev/null +++ b/debian/javabuild @@ -0,0 +1 @@ +gpsprune.jar tim diff --git a/debian/manifest b/debian/manifest new file mode 100644 index 0000000..7acdcfd --- /dev/null +++ b/debian/manifest @@ -0,0 +1,4 @@ +usr/share/gpsprune/gpsprune.jar: + Main-Class: tim.prune.GpsPrune + Debian-Java-Home: /usr/lib/jvm/default-java + Class-Path: /usr/share/java/j3dcore.jar /usr/share/java/j3dutils.jar /usr/share/java/vecmath.jar /usr/share/gpsprune/gpsprune.jar diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..c8a4767 --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +debian/gpsprune.1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..10c4a5e --- /dev/null +++ b/debian/rules @@ -0,0 +1,39 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export JAVA_HOME=/usr/lib/jvm/default-java +export CLASSPATH=/usr/share/java/j3dcore.jar:/usr/share/java/j3dutils.jar:/usr/share/java/vecmath.jar + +export JH_JAR_EXTRA=$(shell find tim/prune/lang/ tim/prune/gui/images -type f) tim/prune/function/srtm/srtmtiles.dat + +srtmtiles: + javac tim/prune/function/srtm/gen/GenerateTileLookup.java + CLASSPATH=. java tim.prune.function.srtm.gen.GenerateTileLookup + mv $(CURDIR)/srtmtiles.dat tim/prune/function/srtm/ + rm -rf tim/prune/function/srtm/gen/GenerateTileLookup.class + +override_jh_build: srtmtiles + jh_build --no-javadoc + +override_jh_depends: + jh_depends -v -Xlibjava3d-java -Xlibvecmath-java -Xlibjava3d-jni + +override_dh_auto_build: + dh_auto_build -- build + +%: + dh $@ \ + --with javahelper \ + --parallel + +override_dh_auto_install: + dh_auto_install + + # Install application icon + for size in 16 22 24 32 36 48 64 72 96 128; do \ + install -o root -g root -d $(CURDIR)/debian/gpsprune/usr/share/icons/hicolor/$${size}x$${size}/apps ; \ + install -o root -g root -m 644 $(CURDIR)/tim/prune/gui/images/window_icon_$${size}.png $(CURDIR)/debian/gpsprune/usr/share/icons/hicolor/$${size}x$${size}/apps/gpsprune.png ; \ + done diff --git a/debian/scripts/get-tiles.py b/debian/scripts/get-tiles.py new file mode 100755 index 0000000..14df24e --- /dev/null +++ b/debian/scripts/get-tiles.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# © 2010, David Paleino +# +# This script is released under the GNU General Public License, version 2. + +from urllib2 import urlopen +import re + +base = "https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/%s/" +regions = ["Eurasia", "North_America", "Australia", "Islands", "South_America", "Africa"] + +for reg in regions: + url = base % reg + tiles = [] + for line in urlopen(url).readlines(): + if line.startswith("
  • "): + match = re.match("^
  • <.*> ([^>]*)<.*>", line) + if match: + tiles.append(match.group(1).replace(".hgt.zip", "")) + f = open("tiles%s.txt" % (regions.index(reg)+1), "w") + f.write('\n'.join([reg] + tiles)) + f.close() diff --git a/debian/scripts/gpsprune b/debian/scripts/gpsprune new file mode 100644 index 0000000..e2ff721 --- /dev/null +++ b/debian/scripts/gpsprune @@ -0,0 +1,16 @@ +#!/bin/sh +PRUNEJAR=/usr/share/gpsprune/gpsprune.jar +JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true" + +proxyhost=$(echo $http_proxy | sed -n 's?http[s|]://\([^:/]\+\).*?\1?p') +proxyport=$(echo $http_proxy | sed -n 's?http[s|]://[^:]\+:\([0-9]\+\).*?\1?p') + +if [ -z $proxyport ] ; then + if [ -z $proxyhost ] ; then + java $JAVA_OPTS -jar $PRUNEJAR "$@" + else + java $JAVA_OPTS -Dhttp.proxyHost=$proxyhost -jar $PRUNEJAR "$@" + fi +else + java $JAVA_OPTS -Dhttp.proxyHost=$proxyhost -Dhttp.proxyPort=$proxyport -jar $PRUNEJAR "$@" +fi 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/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..d9d9775 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,3 @@ +# Not worth the effort +testsuite-autopkgtest-missing + diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..e1a6a9f --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,8 @@ +--- +Bug-Database: https://sourceforge.net/p/prune-gps/bugs/ +Changelog: https://activityworkshop.net/software/gpsprune/history.html +Contact: activityworkshop.net +Name: GpsPrune +Repository: https://github.com/activityworkshop/GpsPrune.git +Repository-Browse: https://github.com/activityworkshop/GpsPrune +Screenshots: https://activityworkshop.net/software/gpsprune/screenshots.html diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..c216525 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts=downloadurlmangle=s/_source/_source_debian/ \ +https://activityworkshop.net/software/gpsprune/download.html \ +gpsprune_(\d+.*)_source\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) -- 2.43.0