From 4b4b0b9c48cb501e0afbe2e940135675f5d615a6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 5 Dec 2023 22:45:43 +0900 Subject: -fix /etc/taler/taler.conf permissions in debian package, bump required GNUnet version --- debian/control | 4 ++-- debian/libtalerexchange.postinst | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 debian/libtalerexchange.postinst (limited to 'debian') diff --git a/debian/control b/debian/control index 80ebebe69..fe80f9cf8 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Build-Depends: gcc-12, debhelper-compat (= 12), gettext, - libgnunet-dev (>=0.20), + libgnunet-dev (>=0.21), libcurl4-gnutls-dev (>=7.35.0) | libcurl4-openssl-dev (>= 7.35.0), libgcrypt20-dev (>=1.8), libgnutls28-dev (>=3.2.12), @@ -146,7 +146,7 @@ Section: libdevel Architecture: any Depends: libtalerexchange (= ${binary:Version}), - libgnunet-dev (>=0.20), + libgnunet-dev (>=0.21), libgcrypt20-dev (>=1.8), libmicrohttpd-dev (>=0.9.71), ${misc:Depends}, diff --git a/debian/libtalerexchange.postinst b/debian/libtalerexchange.postinst new file mode 100644 index 000000000..40b4be061 --- /dev/null +++ b/debian/libtalerexchange.postinst @@ -0,0 +1,28 @@ +#!/bin/bash + +set -e + +. /usr/share/debconf/confmodule + +case "${1}" in +configure) + + if ! dpkg-statoverride --list /etc/taler/taler.conf >/dev/null 2>&1; then + dpkg-statoverride --add --update \ + root root 644 \ + /etc/taler/taler.conf + fi + + ;; + +abort-upgrade | abort-remove | abort-deconfigure) ;; + +*) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 -- cgit v1.2.3