rules default.subcriptions zephyr-server.files:
* zephyr-server should have a default.subscriptions file now, closes: #94125
control:
* libzephyr3-krb and zephyr-server-krb now depend on krb4-config, should
improve out-of-box functionality
zephyr-clients.init:
* alter init script to print a message and exit 0 if no zephyr servers
were specified. closes: #96723
zephyr-{clients,server}.{config,postinst,templates}:
* rework debconf stuff to be more clever about where the data is coming from.
git-svn-id: svn://svn.1ts.org/debian/trunk/zephyr@60
cbed1d16-5ef5-0310-b6a1-
d4a37b08ba1f
+zephyr (2.1.20000421.SNAPSHOT-13) unstable; urgency=low
+
+ * The unlucky version. No warranty express or implied. YMMV.
+ * zephyr-server should have a default.subscriptions file now, closes: #94125
+ * libzephyr3-krb and zephyr-server-krb now depend on krb4-config, should
+ improve out-of-box functionality
+ * alter init script to print a message and exit 0 if no zephyr servers
+ were specified. closes: #96723
+ * rework debconf stuff to be more clever about where the data is coming from.
+
+ -- Karl Ramm <kcr@debian.org> Sun, 10 Jun 2001 07:29:56 -0400
+
zephyr (2.1.20000421.SNAPSHOT-12) unstable; urgency=low
* libzephyr-dev failed to have any files in it... and no one noticed.
--- /dev/null
+operations,message,*
+message,personal,%me%
+message,urgent,%me%
mkdir -p debian/tmp/etc/zephyr/acl
set -x; for i in debian/acl/*; do install -c -m 644 -o root $$i debian/tmp/etc/zephyr/acl; done; set +x
install -c -m 644 debian/zephyr.vars debian/tmp/etc/zephyr
+ install -c -m 644 debian/default.subscriptions debian/tmp/etc/zephyr
cp -pr debian/tmp/etc/zephyr/acl debian/tmp-krb/etc/zephyr
# Build architecture-independent files here.
#!/bin/sh -e
. /usr/share/debconf/confmodule
+db_version 2.0
-zhm_args=""
-if test -f /etc/default/zephyr-clients
+db_get zephyr-clients/servers || true
+if test -z "$RET"
then
- . /etc/default/zephyr-client
+ # if there happens to be a zephyr server running on this machine,
+ # see what its debconf knows about zephyr servers...
+ if db_get zephyr-server/servers && -n "$RET"
+ then
+ db_set zephyr-clients/servers $RET
+ fi
fi
-if test -z "$zhm_args"
+
+db_get zephyr-clients/read_conf
+if test -f /etc/default/zephyr-clients -a \( "$RET" = true \)
then
- db_input high zephyr-clients/servers || true
- db_go
+ zhm_args=""
+ . /etc/default/zephyr-client
+ if test -n "$zhm_args"
+ then
+ db_set zephyr-clients/read_conf false
+ db_set zephyr-clients/servers "$zhm_args"
+ fi
fi
+
+db_input high zephyr-clients/servers || true
+db_go
case "$1" in
start)
+ # note that the following will need revisting when we get hesiod support
+ if test -z "$zhm_args"
+ then
+ cat <<EOF
+The zephyr-clients package for whatever reason does not have any zephyr servers
+configured. This is often because you have the threshold for debconf
+asking question cranked up too high but regardless, please edit the file
+/etc/default/zephyr-clients and add the names of your zephyr servers, seperated
+by spaces to the zhm_args variable.
+EOF
+ exit 0
+ fi
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $zhm_args
configure)
. /usr/share/debconf/confmodule
+ db_version 2.0
- tmpfile=`tempfile`
+ db_set zephyr-clients/read_conf true
if test -f /etc/zephyr/zephyr.conf
then
fi
fi
- zhm_args=""
+ # if /etc/default/zephyr-clients already exists and has a zhm_args
+ # line, the config script should have sucked it into debconf
+ db_get zephyr-clients/servers
+
+ tmpfile=/etc/default/zephyr-client.dpkg-new
if test -f /etc/default/zephyr-clients
then
- . /etc/default/zephyr-clients
- fi
- if test -z "$zhm_args"
- then
- db_get zephyr-clients/servers
- if test -f /etc/default/zephyr-clients
- then
- grep -v ^zhm_args /etc/default/zephyr-clients > $tmpfile || true
- fi
- echo zhm_args=\"${RET}\" >> $tmpfile
- cat $tmpfile > /etc/default/zephyr-clients
+ grep -v ^zhm_args /etc/default/zephyr-clients > $tmpfile || true
+ else
+ cat > $tmpfile << EOF
+# This file is automatically rewritten by the zephyr-clients post-install
+# script. So treat it right.
+EOF
fi
+ echo zhm_args=\"${RET}\" >> $tmpfile
+ cat $tmpfile > /etc/default/zephyr-clients
;;
abort-upgrade|abort-remove|abort-deconfigure)
Description: What are your zephyr servers?
Please type the full names of your zephyr servers, seperated by spaces.
(note that this can be a subset of what you're telling the servers)
+
+Template: zephyr-clients/read_conf
+Type: boolean
+Default: true
+Description: You should never see this
+ We want to try and capture user changes when they edit a config file
+ manually. To do this we look at the file in the config script.
+ However, in the case of preconfigure, the config script is run twice
+ before the postinst is run. Thus we may read the wrong value before the
+ edited value is written out in postinst.
+ If this is false we skip reading config files until postinst runs.
#!/bin/sh -e
. /usr/share/debconf/confmodule
+db_version 2.0
+
+db_get zephyr-server/servers || true
+if -z "$RET"
+then
+ # if there happens to be zephyr-clients runnin on this machine
+ # it might know something about servers.
+ # else default to just the current host
+ z="`hostname --fqdn`"
+ if db_get zephyr-clients/servers && -n "$RET"
+ then
+ z="$RET $z"
+ fi
+ db_set zephyr-server/servers "$z"
+fi
+
+db_get zephyr-server/read_conf
+if test -f /etc/zephyr/server.list -a \( "$RET" = true \)
+then
+ z=""
+ while read x
+ do
+ z="$z $x"
+ done < /etc/zephyr-server.list
+
+ # remove exterraneous whitespace
+ set $z
+ z="$*"
+
+ if test -n "$z"
+ then
+ db_set zephyr-server/read_conf false
+ db_set zephyr-server/servers "$z"
+ fi
+fi
db_input high zephyr-server/servers || true
db_go
etc/zephyr/acl/xmt-wg_ctl.acl
etc/zephyr/acl/xmt-zephyr_admin.acl
etc/zephyr/acl/xmt-zephyr_ctl.acl
+etc/zephyr/default.subscriptions
configure)
. /usr/share/debconf/confmodule
+ db_version 2.0
+
+ db_set zephyr-server/read_conf true
db_get zephyr-server/servers
: > /etc/zephyr/server.list
Description: What are your zephyr servers?
Please type the full names of your zephyr servers, seperated by spaces.
(Note that this can be a superset of that you're telling the clients.)
+
+Template: zephyr-server/read_conf
+Type: boolean
+Default: true
+Description: You should never see this
+ We want to try and capture user changes when they edit a config file
+ manually. To do this we look at the file in the config script.
+ However, in the case of preconfigure, the config script is run twice
+ before the postinst is run. Thus we may read the wrong value before the
+ edited value is written out in postinst.
+ If this is false we skip reading config files until postinst runs.