From: Sam Hartman Date: Sat, 11 Nov 2000 04:37:13 +0000 (+0000) Subject: New version; fixes stupid typos and better handles debconf. X-Git-Tag: debian/1.0.snap20001106-2~1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a04ca0f996657dcdb2b3629f8f24e9172376f03b;p=packages%2Fo%2Fopenafs.git New version; fixes stupid typos and better handles debconf. Adds fileserver packages. --- diff --git a/debian/README.servers b/debian/README.servers new file mode 100644 index 000000000..e518a5aa5 --- /dev/null +++ b/debian/README.servers @@ -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 + diff --git a/debian/changelog b/debian/changelog index a5c83a7d9..7ffc4222e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 10 Nov 2000 23:35:30 -0500 + openafs (1.0.snap20001106-1) unstable; urgency=low * New Upstream version diff --git a/debian/openafs-client.postinst b/debian/openafs-client.postinst index 7faabfbf3..4bda0bdc1 100644 --- a/debian/openafs-client.postinst +++ b/debian/openafs-client.postinst @@ -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 diff --git a/debian/openafs-client.postrm b/debian/openafs-client.postrm index 095d39e5e..0559a2c2a 100644 --- a/debian/openafs-client.postrm +++ b/debian/openafs-client.postrm @@ -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 diff --git a/debian/openafs-client.templates b/debian/openafs-client.templates index 14bfcb81e..bdae9cd6c 100644 --- a/debian/openafs-client.templates +++ b/debian/openafs-client.templates @@ -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 index 000000000..5ead51b2a --- /dev/null +++ b/debian/openafs-fileserver.config @@ -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 index 000000000..49fda707e --- /dev/null +++ b/debian/openafs-fileserver.docs @@ -0,0 +1 @@ +debian/README.servers diff --git a/debian/openafs-fileserver.postinst b/debian/openafs-fileserver.postinst new file mode 100644 index 000000000..accc93c31 --- /dev/null +++ b/debian/openafs-fileserver.postinst @@ -0,0 +1,35 @@ +#!/bin/sh -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# + +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 index 000000000..a9d76bdbd --- /dev/null +++ b/debian/openafs-fileserver.postrm @@ -0,0 +1,39 @@ +#! /bin/sh +# postrm script for openafs +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# 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 index 000000000..3706f05c9 --- /dev/null +++ b/debian/openafs-fileserver.templates @@ -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. +