From: StalkR Date: Mon, 7 Jul 2025 20:40:29 +0000 (+0000) Subject: debian: recursor/auth: remove old preinst files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15802%2Fhead;p=thirdparty%2Fpdns.git debian: recursor/auth: remove old preinst files --- diff --git a/builder-support/debian/authoritative/debian-buster/pdns-server.preinst b/builder-support/debian/authoritative/debian-buster/pdns-server.preinst deleted file mode 100644 index 1caf7146c9..0000000000 --- a/builder-support/debian/authoritative/debian-buster/pdns-server.preinst +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -set -e - -delete_unchanged() { - if [ -e "$1" ] && echo "$2 $1" | md5sum --check --status; then - echo "Removing unchanged configuration file $1" - rm -f "$1" - fi -} - -backup_conffile() { - if [ -e "$1" ]; then - echo "Moving configuration file $1 to $1.dpkg-bak" - mv -f "$1" "$1".dpkg-bak - fi -} - -case "$1" in - install|upgrade) - # clean up files we no longer ship - delete_unchanged "/etc/resolvconf/update.d/pdns" aeacd4ba822e5ad334c1794e8239d9c1 - backup_conffile "/etc/resolvconf/update.d/pdns" - delete_unchanged "/etc/insserv.d/pdns-server" af60f140f00b9520efbcd3a18052905d - backup_conffile "/etc/insserv.d/pdns-server" - delete_unchanged "/etc/default/pdns" ddd96d47c8c1d5898f45e81fae15e7ac - delete_unchanged "/etc/default/pdns" 99d5d626abd59cc568dadec22403f638 - backup_conffile "/etc/default/pdns" - delete_unchanged "/etc/init.d/pdns" 06f3b374bccaf3b71638e759f8053bda - delete_unchanged "/etc/init.d/pdns" 470533b8de800da2f356c04a58f4aa6b - backup_conffile "/etc/init.d/pdns" - ;; -esac - -#DEBHELPER# diff --git a/builder-support/debian/recursor/debian-buster/pdns-recursor.preinst b/builder-support/debian/recursor/debian-buster/pdns-recursor.preinst deleted file mode 100644 index 691107c9ef..0000000000 --- a/builder-support/debian/recursor/debian-buster/pdns-recursor.preinst +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -set -e - -delete_unchanged() { - if [ -e "$1" ] && echo "$2 $1" | md5sum --check --status; then - echo "Removing unchanged configuration file $1" - rm -f "$1" - fi -} - -backup_conffile() { - if [ -e "$1" ]; then - echo "Moving configuration file $1 to $1.dpkg-bak" - mv -f "$1" "$1".dpkg-bak - fi -} - -case "$1" in - install|upgrade) - # clean up files we no longer ship - delete_unchanged "/etc/default/pdns-recursor" a09916ceb17db9a49ac8cfa84790bf3b - delete_unchanged "/etc/default/pdns-recursor" 076b21b9b76d7ffecc918af47d2963c6 - backup_conffile "/etc/default/pdns-recursor" - delete_unchanged "/etc/init.d/pdns-recursor" e2ea0586c3d99fdbafb76483a769b964 - delete_unchanged "/etc/init.d/pdns-recursor" fb608ec5edc3d068213bac3480782355 - backup_conffile "/etc/init.d/pdns-recursor" - ;; -esac - -#DEBHELPER# diff --git a/builder-support/debian/recursor/debian-trixie/pdns-recursor.preinst b/builder-support/debian/recursor/debian-trixie/pdns-recursor.preinst deleted file mode 100644 index 691107c9ef..0000000000 --- a/builder-support/debian/recursor/debian-trixie/pdns-recursor.preinst +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -set -e - -delete_unchanged() { - if [ -e "$1" ] && echo "$2 $1" | md5sum --check --status; then - echo "Removing unchanged configuration file $1" - rm -f "$1" - fi -} - -backup_conffile() { - if [ -e "$1" ]; then - echo "Moving configuration file $1 to $1.dpkg-bak" - mv -f "$1" "$1".dpkg-bak - fi -} - -case "$1" in - install|upgrade) - # clean up files we no longer ship - delete_unchanged "/etc/default/pdns-recursor" a09916ceb17db9a49ac8cfa84790bf3b - delete_unchanged "/etc/default/pdns-recursor" 076b21b9b76d7ffecc918af47d2963c6 - backup_conffile "/etc/default/pdns-recursor" - delete_unchanged "/etc/init.d/pdns-recursor" e2ea0586c3d99fdbafb76483a769b964 - delete_unchanged "/etc/init.d/pdns-recursor" fb608ec5edc3d068213bac3480782355 - backup_conffile "/etc/init.d/pdns-recursor" - ;; -esac - -#DEBHELPER#