Adds fileserver packages.
--- /dev/null
+ 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
+
+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
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
# 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
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.
--- /dev/null
+#!/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
--- /dev/null
+debian/README.servers
--- /dev/null
+#!/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.
--- /dev/null
+#! /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#
+
+
--- /dev/null
+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.
+