summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2024-12-02 12:58:37 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2024-12-02 12:58:37 +0100
commit631900d55f260bb0fa899fc8b393d9a2af3a3fd8 (patch)
tree036f0e1c8db2098991323c79a328a796bdb125a1
parenta7346eefc82e5022b7474f18d4ef1815a9d8a431 (diff)
Use dynamic version in hopefully all files of fehqlibs-deb and ucspi-tcp6-deb
A known outlier is the changelog of ucspi-tcp6.
-rw-r--r--fehqlibs-deb/debian/contrib/qlibs.pc.in (renamed from fehqlibs-deb/debian/contrib/qlibs.pc)2
-rwxr-xr-xfehqlibs-deb/debian/rules2
-rw-r--r--fehqlibs-deb/debian/source/format1
-rw-r--r--fehqlibs-deb/debian/upstream/metadata9
-rwxr-xr-x[-rw-r--r--]ucspi-tcp6-deb/debian/clean25
-rwxr-xr-x[-rw-r--r--]ucspi-tcp6-deb/debian/install36
-rw-r--r--ucspi-tcp6-deb/debian/manpages2
-rwxr-xr-xucspi-tcp6-deb/debian/rules1
8 files changed, 47 insertions, 31 deletions
diff --git a/fehqlibs-deb/debian/contrib/qlibs.pc b/fehqlibs-deb/debian/contrib/qlibs.pc.in
index 9fd063a..1f157a2 100644
--- a/fehqlibs-deb/debian/contrib/qlibs.pc
+++ b/fehqlibs-deb/debian/contrib/qlibs.pc.in
@@ -4,6 +4,6 @@ includedir=${prefix}/include
Name: qlibs
Description: qlibs is the foundation of `feh' software
URL: https://www.fehcom.de/ipnet/qlibs.html
-Version: 25a
+Version: @VERSION@
Cflags: -I${includedir}/qlibs
Libs: -lqlibs -ldnsresolv
diff --git a/fehqlibs-deb/debian/rules b/fehqlibs-deb/debian/rules
index de332cf..5d5dd1d 100755
--- a/fehqlibs-deb/debian/rules
+++ b/fehqlibs-deb/debian/rules
@@ -11,11 +11,13 @@ get-orig-source:
override_dh_auto_clean:
-tar -xf ../fehqlibs_$(UPSTREAM_VERSION).orig.tar.gz --strip-components=1
+ rm -f debian/contrib/qlibs.pc
$(MAKE) -C src clean
sed -i '31,$$d' conf-build
override_dh_auto_configure:
echo CFLAGS=\"-Iinclude $(CFLAGS)\" >>conf-build
+ sed "s/@VERSION@/$(UPSTREAM_VERSION)/" debian/contrib/qlibs.pc.in >debian/contrib/qlibs.pc
$(MAKE) -C src check
override_dh_auto_build:
diff --git a/fehqlibs-deb/debian/source/format b/fehqlibs-deb/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/fehqlibs-deb/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/fehqlibs-deb/debian/upstream/metadata b/fehqlibs-deb/debian/upstream/metadata
new file mode 100644
index 0000000..0cd5f18
--- /dev/null
+++ b/fehqlibs-deb/debian/upstream/metadata
@@ -0,0 +1,9 @@
+#
+# DEP-12: Per-package machine-readable metadata about Upstream
+# Please check * https://dep-team.pages.debian.net/deps/dep12/
+# * https://wiki.debian.org/UpstreamMetadata
+Reference:
+ Author: Erwin Hoffmann
+ Title: fehQlibs
+ Year: 2024
+ URL: https://www.fehcom.de/ipnet/qlibs.html
diff --git a/ucspi-tcp6-deb/debian/clean b/ucspi-tcp6-deb/debian/clean
index 56caf22..81a4356 100644..100755
--- a/ucspi-tcp6-deb/debian/clean
+++ b/ucspi-tcp6-deb/debian/clean
@@ -1,12 +1,13 @@
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/ip4_bit.o
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/ip6_bit.o
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/remoteinfo.o
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/rules.o
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/argv0
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/argv0.o
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/commands.o
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/rblsmtpd
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/rblsmtpd.o
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/date@
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/finger@
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/http@
+#!/usr/bin/dh-exec
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/ip4_bit.o
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/ip6_bit.o
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/remoteinfo.o
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/rules.o
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/argv0
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/argv0.o
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/commands.o
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/rblsmtpd
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/rblsmtpd.o
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/date@
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/finger@
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/http@
diff --git a/ucspi-tcp6-deb/debian/install b/ucspi-tcp6-deb/debian/install
index ec56e3a..1b43657 100644..100755
--- a/ucspi-tcp6-deb/debian/install
+++ b/ucspi-tcp6-deb/debian/install
@@ -1,16 +1,20 @@
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/addcr usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/argv0 usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/date@ usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/delcr usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/finger@ usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/fixcrio usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/http@ usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/mconnect usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/rblsmtpd usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/recordio usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/tcpcat usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/tcpclient usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/tcprules usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/tcprulescheck usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/tcpserver usr/bin
-ucspi-tcp6/ucspi-tcp6-1.13.00/src/who@ usr/bin
+#!/usr/bin/dh-exec
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/addcr usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/argv0 usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/date@ usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/delcr usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/finger@ usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/fixcrio usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/http@ usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/mconnect usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/rblsmtpd usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/recordio usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/tcpcat usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/tcpclient usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/tcprules usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/tcprulescheck usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/tcpserver usr/bin
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/src/who@ usr/bin
+
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/man/*.1 usr/share/man/man1
+ucspi-tcp6/ucspi-tcp6-${UPSTREAM_VERSION}/man/*.5 usr/share/man/man5
diff --git a/ucspi-tcp6-deb/debian/manpages b/ucspi-tcp6-deb/debian/manpages
deleted file mode 100644
index 7ef24ab..0000000
--- a/ucspi-tcp6-deb/debian/manpages
+++ /dev/null
@@ -1,2 +0,0 @@
-ucspi-tcp6/ucspi-tcp6-1.13.00/man/*.1
-ucspi-tcp6/ucspi-tcp6-1.13.00/man/*.5
diff --git a/ucspi-tcp6-deb/debian/rules b/ucspi-tcp6-deb/debian/rules
index 58ae71b..46f9a49 100755
--- a/ucspi-tcp6-deb/debian/rules
+++ b/ucspi-tcp6-deb/debian/rules
@@ -6,6 +6,7 @@ export DH_VERBOSE = 1
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
UPSTREAM_VERSION := $(shell dpkg-parsechangelog --show-field Version | cut -d- -f1)
+export UPSTREAM_VERSION
get-orig-source:
uscan --download-current-version