summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2023-09-03 19:45:33 -0700
committertony mancill <tmancill@debian.org>2023-09-03 19:45:33 -0700
commit6887c854c8e867f1bd32e4b325f00d4071f09f2b (patch)
tree24f6ee9f288a325158355ad023c5afe01a7a2b66 /debian
parent28551e7c3a00e4e6966b75fa11ca03cf087ec934 (diff)
Update debian/watch to use sf redirector
Diffstat (limited to 'debian')
-rw-r--r--debian/watch22
1 files changed, 18 insertions, 4 deletions
diff --git a/debian/watch b/debian/watch
index 56e3cabd..03c5a72a 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,6 +1,20 @@
-# use version 3 so uupdate.sh is passed the tarball name
+# Use version 3 so uupdate.sh is passed the tarball name.
+#
# Specify no-symlink so uscan doesn't try to invoke mk-origtargz to repack
-# the upstream tarball; debian/uupdate.sh will handle this.
+# the upstream tarball; debian/uupdate.sh will handle this, because upstream
+# ships their sources tarball within the download tarball.
+#
+# The sf.net redirector (see https://wiki.debian.org/debian/watch#SourceForge)
+# finds both "wsjtx-${version}.tgz" AND "wsjtx-${version}/wsjtx-${version}.tgz"
+# The first uversionmangle rule avoids a greedy regex match returning a version
+# like "wsjtx-${version}/wsjtx-${version}". The second maps '-' to '~'.
+# Examples returns from the sf.net redirector.
+#
+# https://qa.debian.org/watch/sf.php/wsjt/wsjtx-2.7.0-rc2.tgz (2.7.0~rc2) index=2.7.0~rc2-0
+# https://qa.debian.org/watch/sf.php/wsjt/wsjtx-2.7.0-rc2.tgz (2.7.0~rc2) index=2.7.0~rc2-0
+# https://qa.debian.org/watch/sf.php/wsjt/wsjtx-2.7.0-rc2/wsjtx-2.7.0-rc2.tgz (2.7.0~rc2) index=2.7.0~rc2-0
+# https://qa.debian.org/watch/sf.php/wsjt/wsjtx-2.7.0-rc2/wsjtx-2.7.0-rc2.tgz (2.7.0~rc2) index=2.7.0~rc2-0
+
version=3
-opts="uversionmangle=s/-rc/~rc/,dversionmangle=s/\+repack//,repacksuffix=+repack,no-symlink" \
-https://physics.princeton.edu/pulsar/k1jt/wsjtx.html .*wsjtx-(.*).tgz debian debian/uupdate.sh
+opts="uversionmangle=s/.*\/wsjtx-//;s/-rc/~rc/,dversionmangle=s/\+repack//,repacksuffix=+repack,no-symlink" \
+http://sf.net/wsjt/wsjtx-(.*?)\.tgz debian debian/uupdate.sh