]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
New version; fixes stupid typos and better handles debconf.
authorSam Hartman <hartmans@debian.org>
Sat, 11 Nov 2000 04:37:13 +0000 (04:37 +0000)
committerSam Hartman <hartmans@debian.org>
Sat, 11 Nov 2000 04:37:13 +0000 (04:37 +0000)
Adds fileserver packages.

debian/README.servers [new file with mode: 0644]
debian/changelog
debian/openafs-client.postinst
debian/openafs-client.postrm
debian/openafs-client.templates
debian/openafs-fileserver.config [new file with mode: 0644]
debian/openafs-fileserver.docs [new file with mode: 0644]
debian/openafs-fileserver.postinst [new file with mode: 0644]
debian/openafs-fileserver.postrm [new file with mode: 0644]
debian/openafs-fileserver.templates [new file with mode: 0644]

diff --git a/debian/README.servers b/debian/README.servers
new file mode 100644 (file)
index 0000000..e518a5a
--- /dev/null
@@ -0,0 +1,36 @@
+                Setting up a Debian OpennAFS Server
+
+Currently, most of the configuration mechanisms are not present for
+setting up a Debian server.  These packages include the binaries with
+appropriate FHS-compatible path names.  Here is a rough map from the
+AFS paths to the Debian paths:
+
+/usr/afs/etc           /etc/openafs/server
+/usr/afs/local         /etc/openafs/server-local
+/usr/afs/db            /var/lib/openafs/db
+/usr/afs/logs          /var/log/openafs
+/usr/afs/bin           /usr/lib/openafs
+
+The main problem linking the AFS configuration model into the Debian
+model is how to deal with synchronization of servers.  Once this is
+resolved, support for configuring the servers directly will be added.  
+
+Another issue is upgrades.  It is likely that futurue versions of this
+package will install for example /usr/lib/openafs/fileserver.package
+instead of /usr/lib/openafs/fileserver.  The postinst script will
+create links the actual binaries.  Upgrades will not replace the old
+binaries, but a script will be provided to roll the links forward to
+the new versions.  The intent is that people could install the new
+package on all their servers and then quickly move the links before
+restarting the bosserver.
+
+                   Things to do for manual config
+
+* Create /etc/openafs/server/CellServDB only with the server's cell
+* create /etc/openafs/server/KeyFile -- good luck finding out how
+* start bosserver
+* add ptserver and vlserver
+* create prdb (again good luck without starting in noauth)
+* Create vldb
+* add fileserver process
+
index a5c83a7d9b91aa2a48991c04198d3eadd84e1828..7ffc4222e98644acde04b47c2ed6f48bcb8a93dc 100644 (file)
@@ -1,3 +1,12 @@
+openafs (1.0.snap20001106-2) unstable; urgency=low
+
+  * Fix init.d script to actually work for stop this time--tested and works
+  * Add server packages; fairly useless right now but at least we ship the binaries
+  * Check to make sure home cell exists and warn user if not
+  * Fix purge for openafs-client
+
+ --  Sam Hartman <hartmans@mit.edu>  Fri, 10 Nov 2000 23:35:30 -0500
+
 openafs (1.0.snap20001106-1) unstable; urgency=low
 
   * New Upstream version
index 7faabfbf3da11c40004e332f2084172839aa5e1d..4bda0bdc159c6dfe8d1f378a49c7bf9550aeedfe 100644 (file)
@@ -21,6 +21,11 @@ case "$1" in
 
        db_get openafs-client/thiscell
        echo $RET >/etc/openafs/ThisCell
+       if grep  -q -F $RET /etc/openafs/CellServDB ; then :
+               else db_input high openafs-client/nohomecell ||true
+               db_go
+                   fi
+
        db_get openafs-client/cachesize
        echo /afs:/var/cache/openafs:$RET >/etc/openafs/cacheinfo
 
index 095d39e5e353746e4a32a9f68a3602122d5e5ff4..0559a2c2a587bff769b89b79d16926d06c95d052 100644 (file)
@@ -17,15 +17,15 @@ set -e
 # for details, see /usr/share/doc/packaging-manual/
 
 case "$1" in
-       purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+purge)
+    rm /etc/openafs/cacheinfo 2>/dev/null ||true
+    rm /etc/openafs/ThisCell 2>/dev/null ||true
+    ;;
+       remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
 
         ;;
 
-purge)
-    rm /etc/openafs/cacheinfo 2>/dev/null ||true
-    rm /etc/openafs/ThisCell 2>?dev/null ||true
-    ;;
     *)
         echo "postrm called with unknown argument \`$1'" >&2
         exit 0
index 14bfcb81e273b4a7974a10bececbdf9b5315696c..bdae9cd6cbc361da6739bcc73957d0482f56569f 100644 (file)
@@ -15,3 +15,11 @@ Description:  How large is your AFS cache (kb)?
    on.  Often, people find it useful to dedicate a partition to their
    AFS cache.
 
+Template: openafs-client/nohomecell
+Type: note
+Description: Your home cell is not in CellServDb
+ AFS uses the file /etc/openafs/CellServDB to hold the list of servers
+ that should be contacted to find parts of a cell.  The cell you claim
+ this workstation belongs to is not in that file.  You must either
+ change the home cell of this workstation or edit CellServDB to add a
+ new cell.
diff --git a/debian/openafs-fileserver.config b/debian/openafs-fileserver.config
new file mode 100644 (file)
index 0000000..5ead51b
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule || exit
+
+db_version 2.0
+
+db_get openafs-fileserver/thiscell || true
+if [ "x$RET" = "x" ] ; then
+       db_get openafs-client/thiscell ||true
+       db_set openafs-fileserver/thiscell "$RET"
+       fi
+
+db_input low openafs-fileserver/thiscell || true
+db_go
diff --git a/debian/openafs-fileserver.docs b/debian/openafs-fileserver.docs
new file mode 100644 (file)
index 0000000..49fda70
--- /dev/null
@@ -0,0 +1 @@
+debian/README.servers
diff --git a/debian/openafs-fileserver.postinst b/debian/openafs-fileserver.postinst
new file mode 100644 (file)
index 0000000..accc93c
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/sh -e
+
+# 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>
+
+case "$1" in
+    configure)
+
+       . /usr/share/debconf/confmodule
+
+       db_version 2.0
+
+       db_get openafs-fileserver/thiscell
+       echo $RET >/etc/openafs/server/ThisCell
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
diff --git a/debian/openafs-fileserver.postrm b/debian/openafs-fileserver.postrm
new file mode 100644 (file)
index 0000000..a9d76bd
--- /dev/null
@@ -0,0 +1,39 @@
+#! /bin/sh
+# postrm script for openafs
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see /usr/share/doc/packaging-manual/
+
+case "$1" in
+purge)
+    rm /etc/openafs/server/ThisCell 2>/dev/null || true
+    ;;
+       remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+
+        ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 0
+
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+
diff --git a/debian/openafs-fileserver.templates b/debian/openafs-fileserver.templates
new file mode 100644 (file)
index 0000000..3706f05
--- /dev/null
@@ -0,0 +1,7 @@
+Template: openafs-fileserver/thiscell
+Type: string
+Description: What cell does this server serve files for?
+ AFS fileservers belong to a cell.  They have the key for that cell's
+ Kerberos service and serve volumes into that cell.  Normally, this
+ cell is the same cell as the workstation's client belongs to.
+