From be089781455ed9945d4948619d2199573b67ba13 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Tue, 18 Dec 2007 02:31:03 +0000 Subject: [PATCH] * Add a comment to /etc/openafs/afs.conf.client that the file is managed by debconf. (Closes: #447183) * Support reconfigure in postinst. --- debian/changelog | 5 ++++- debian/openafs-client.postinst | 21 +++++++-------------- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/debian/changelog b/debian/changelog index a36434a94..dfc70ccd1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,12 +12,15 @@ openafs (1.4.6.dfsg1-1) UNRELEASED; urgency=low * Build bosserver with --enable-bos-new-config. On startup, if BosConfig.new exists, it will be renamed to BosConfig before the configuration is read. (Closes: #453398) + * Add a comment to /etc/openafs/afs.conf.client that the file is managed + by debconf. (Closes: #447183) * Add more debugging and bug reporting instructions to README.Debian. * Mention in README.Debian that the server is built with supergroups enabled and with the multiple local realm patch. (Closes: #453399) + * Support reconfigure in postinst. * Update to standards version 3.7.3 (no changes required). - -- Russ Allbery Mon, 17 Dec 2007 18:28:35 -0800 + -- Russ Allbery Mon, 17 Dec 2007 18:33:49 -0800 openafs (1.4.5.dfsg1-1) unstable; urgency=low diff --git a/debian/openafs-client.postinst b/debian/openafs-client.postinst index a12cbdb6b..7ead85cb6 100644 --- a/debian/openafs-client.postinst +++ b/debian/openafs-client.postinst @@ -1,19 +1,9 @@ #! /bin/sh -# -# Summary of how this script can be called: -# -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# set -e case "$1" in -configure) +configure|reconfigure) update-alternatives --install /usr/bin/pagsh pagsh \ /usr/bin/pagsh.openafs 100 \ --slave /usr/share/man/man1/pagsh.1.gz pagsh.1.gz \ @@ -67,6 +57,12 @@ configure) db_get openafs-client/cachesize echo /afs:/var/cache/openafs:$RET >/etc/openafs/cacheinfo + echo <<'EOF' > /etc/openafs/afs.conf.client +# This file is managed by debconf. Do not edit directly. To modify these +# settings, run dpkg-reconfigure openafs-client. + +EOF + db_get openafs-client/run-client echo AFS_CLIENT=$RET >/etc/openafs/afs.conf.client db_get openafs-client/afsdb @@ -88,9 +84,6 @@ abort-upgrade|abort-remove|abort-deconfigure) ;; esac -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - #DEBHELPER# exit 0 -- 2.39.5