fi
db_input low openafs-fileserver/thiscell || true
+if [ "x$2" != "x" ] ; then
+ if dpkg --compare-versions $2 lt 1.2.0-1 ; then
+ db_input high openafs-fileserver/bosconfig_moved ||true
+ fi
+fi
+
db_go
+
+db_get openafs-fileserver/bosconfig_moved
+if [ $RET = "false" ] ; then
+ db_reset openafs-fileserver/bosconfig_moved
+ exit 2
+fi
if [ -f /etc/openafs/server/CellServDB ] ; then :
else echo \>$RET >/etc/openafs/server/CellServDB
fi
+ if [ "x$2" != "x" ] ; then
+ if dpkg --compare-versions $2 lt 1.2.0-1 ; then
+ mv /etc/openafs/server-local/BosConfig /etc/openafs/BosConfig ||true
+ mv /etc/openafs/server-local/sysid /var/lib/openafs ||true
+ fi
;;
--- /dev/null
+#!/bin/sh
+set -e
+
+if [ upgrade = $1 ] ; then
+ . /usr/share/debconf/confmodule
+fi
+#DEBHELPER#
+
+exit 0
Kerberos service and serve volumes into that cell. Normally, this
cell is the same cell as the workstation's client belongs to.
+template: openafs-fileserver/bosconfig_moved
+Type: boolean
+default: true
+Description: Upgrading will move files to new locations; continue?
+ Between Openafs 1.1 and Openafs 1.2, several files moved. In
+ particular, files in /etc/openafs/server-local have been distributed
+ to other locations. The BosConfig file is now located in
+ /etc/openafs and the other files are located in /var/lib/openafs. If
+ you continue with this upgrade, these files will be moved. You should
+ use the bos restart command to reload your servers. Any
+ configuration changes made before you do so will be lost.
-ln -s @sys/dest dest
-ln -s $(SYS_NAME) @sys
# sh regen.sh
- sh configure --with-afs-sysname=$(SYS_NAME) --disable-kernel-module
+ afslogsdir=/var/log/openafs sh configure --with-afs-sysname=$(SYS_NAME) --disable-kernel-module \
+ --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
+ --localstatedir=/var/lib
install -d $(SYS_NAME)/dest/root.client/usr/vice/etc
install -d dest/root.server/usr/afs/bin
build-stamp:
dh_testdir
- $(MAKE)
+ $(MAKE) dest
-rm $(SYS_NAME)/dest/include/crypt.h
touch build-stamp
-ln -s @sys/dest dest
-ln -s $(SYS_NAME) @sys
sh configure --with-afs-sysname=$(SYS_NAME) --with-linux-kernel-headers=$(KSRC)
- $(MAKE) libafs "COMPILE_PART1=cd src; cd" "COMPILE_PART2=; $(MAKE) install SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=`pwd`/src SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_PART3=; $(MAKE) test SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=`pwd`/src SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_CLEAN=; $(MAKE) clean SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=`pwd`/src SRCDIR=`pwd`/${SYS_NAME}/dest/" SYS_NAME=${SYS_NAME}
+ make dest_only_libafs
touch build-modules-stamp
binary-modules: build-modules