[pkg-nagios-changes] [Git][nagios-team/icingadb][master] Create components tarball automatically with uscan.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sat Nov 7 19:11:49 GMT 2026



Bas Couwenberg pushed to branch master at Debian Nagios Maintainer Group / icingadb


Commits:
26777c66 by Bas Couwenberg at 2026-11-07T20:08:17+01:00
Create components tarball automatically with uscan.

- - - - -


3 changed files:

- debian/changelog
- debian/create-components.sh
- debian/watch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+icingadb (1.6.0-2) UNRELEASED; urgency=medium
+
+  * Create components tarball automatically with uscan.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sat, 07 Nov 2026 20:08:04 +0100
+
 icingadb (1.6.0-1) unstable; urgency=medium
 
   [ Bas Couwenberg ]


=====================================
debian/create-components.sh
=====================================
@@ -1,11 +1,30 @@
 #!/bin/bash
 
 if [ -z "$1" ]; then
-    echo "Usage: $0 <ORIGTARGZ>"
+    echo "Usage: $0 <ORIGTARGZ>|--upstream-version <VERSION>"
     exit 1
 fi
+if [ "$1" = "--upstream-version" ] && [ -z "$2" ]; then
+    echo "Usage: $0 --upstream-version <VERSION>"
+    exit 1
+fi
+
+set -e
+
+if [ "$1" = "--upstream-version" ]; then
+    DEBIAN_DIR="$(realpath -s "$(dirname "$0")")"
+    PARENT_DIR="$(dirname "$(dirname "${DEBIAN_DIR}")")"
 
-UPSTREAM_TARBALL="$(realpath -s "$1")"
+    CHANGELOG="${DEBIAN_DIR}/changelog"
+
+    SOURCE=$(dpkg-parsechangelog -S Source -l "${CHANGELOG}")
+    VERSION="$2"
+
+    # shellcheck disable=SC2012
+    UPSTREAM_TARBALL="$(ls -t "${PARENT_DIR}/${SOURCE}_${VERSION}".orig.tar.* | head -1)"
+else
+    UPSTREAM_TARBALL="$(realpath -s "$1")"
+fi
 
 if [ ! -e "${UPSTREAM_TARBALL}" ]; then
     echo "Error: Upstream tarball not found"


=====================================
debian/watch
=====================================
@@ -4,4 +4,6 @@ dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
 uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/,\
 filenamemangle=s/(?:.*?)?(?:rel|v|icingadb)?[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/icingadb-$1.$2/ \
 https://github.com/Icinga/icingadb/tags \
-(?:.*?/archive/(?:.*?/)?)?(?:rel|v|icingadb)?[\-\_]?(\d\S+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
+(?:.*?/archive/(?:.*?/)?)?(?:rel|v|icingadb)?[\-\_]?(\d\S+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) \
+debian \
+debian/create-components.sh



View it on GitLab: https://salsa.debian.org/nagios-team/icingadb/-/commit/26777c66c93c0bfac491230f1fa9f7943487f2aa

-- 
View it on GitLab: https://salsa.debian.org/nagios-team/icingadb/-/commit/26777c66c93c0bfac491230f1fa9f7943487f2aa
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20261107/0be3bdcb/attachment-0001.htm>


More information about the pkg-nagios-changes mailing list