]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
* Add a comment to /etc/openafs/afs.conf.client that the file is managed
authorRuss Allbery <rra@debian.org>
Tue, 18 Dec 2007 02:31:03 +0000 (02:31 +0000)
committerRuss Allbery <rra@debian.org>
Tue, 18 Dec 2007 02:31:03 +0000 (02:31 +0000)
  by debconf.  (Closes: #447183)
* Support reconfigure in postinst.

debian/changelog
debian/openafs-client.postinst

index a36434a94adb6b5c13de3ad4878e9a26615dee71..dfc70ccd1cac8b871f3b2cecbe686ffc8ae7825a 100644 (file)
@@ -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 <rra@debian.org>  Mon, 17 Dec 2007 18:28:35 -0800
+ -- Russ Allbery <rra@debian.org>  Mon, 17 Dec 2007 18:33:49 -0800
 
 openafs (1.4.5.dfsg1-1) unstable; urgency=low
 
index a12cbdb6b59eed964b9118741f1303655cf49c66..7ead85cb640b48030daa9cb2430a1ce454280882 100644 (file)
@@ -1,19 +1,9 @@
 #! /bin/sh
-#
-# Summary of how this script can be called:
-#
-#  * <postinst> `configure' <most-recently-configured-version>
-#  * <old-postinst> `abort-upgrade' <new version>
-#  * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#    <new-version>
-#  * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#    <failed-install-package> <version> `removing'
-#    <conflicting-package> <version>
 
 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