* Remove debconf warning notes in favor of nfs-kernel-server.NEWS.
(closes: #228365)
* Don't bother removing nfs-server's init links; it's long dead.
-nfs-utils (1:1.0.6-2) unstable; urgency=low
-
- * Test kernel version in init script; if kernel is 2.4 or later,
- rpc.lockd is unnecessary. Existing tests still apply to earlier
- kernels. (closes: #205867)
-
- --
+nfs-utils (1:1.0.6-2) unstable; urgency=medium
+
+ * Upstream CVS sync.
+ * Urgency "medium" to get debconf fix into testing.
+ * Make /etc/exports a conffile. (closes: #224557)
+ * Remove debconf warning notes in favor of nfs-kernel-server.NEWS.
+ (closes: #228365)
+ * Test kernel version in init script; all kernels from 2.4 forward
+ have a lockd thread, and don't need rpc.lockd. Probe older kernels
+ by checking for lockd-related symbols. When in doubt, go ahead and
+ run rpc.lockd; if it's not needed, it exits. (closes: #205867)
+ * Don't bother removing nfs-server's init links; it's long dead.
+
+ -- Chip Salzenberg <chip@debian.org> Thu, 18 Mar 2004 16:53:50 -0500
nfs-utils (1:1.0.6-1) unstable; urgency=low
--- /dev/null
+# /etc/exports: the access control list for filesystems which may be exported
+# to NFS clients. See exports(5).
update-rc.d -f nfs-common remove >/dev/null 2>&1 || true
fi
update-rc.d nfs-common defaults 21 79 >/dev/null
+
+ # Remove obsolete debconf questions
+ if [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_unregister nfs-common/tcpwrappers-statd || true
+ db_stop
+ fi
;;
esac
case "$1" in
purge)
update-rc.d nfs-common remove >/dev/null
+
+ rm -f /var/lib/nfs/state \
+ /var/lib/nfs/sm/* \
+ /var/lib/nfs/sm.bak/*
;;
esac
+++ /dev/null
-Template: nfs-common/tcpwrappers-statd
-Type: note
-_Description: statd uses tcpwrappers
- The statd daemon uses tcpwrappers to control access. To configure it, use
- program name "statd" in /etc/hosts.allow and /etc/hosts.deny.
--- /dev/null
+nfs-utils (1:1.0.1-1) unstable; urgency=low
+
+ * Exports default to "sync", that is, synchronous writes.
+ This is safer but MUCH SLOWER than the old default of "async".
+ All exports should be marked as either "sync" or "async" to
+ avoid a warning from exportfs.
+
+ -- Chip Salzenberg <chip@debian.org> Mon, 26 Aug 2002 12:17:57 -0400
+/etc/exports
/etc/default/nfs-kernel-server
/etc/init.d/nfs-kernel-server
#DEBHELPER#
-. /usr/share/debconf/confmodule
-
case "$1" in
configure)
- db_get nfs-kernel-server/tcpwrappers-mountd || true
+ for f in /var/lib/nfs/etab \
+ /var/lib/nfs/rmtab \
+ /var/lib/nfs/xtab; do
+ [ -e $f ] || touch $f
+ done
- touch /var/lib/nfs/etab \
- /var/lib/nfs/rmtab \
- /var/lib/nfs/xtab
+ update-rc.d nfs-kernel-server defaults 20 80 >/dev/null
- if test -s /etc/exports
- then
- : do nothing
- else
- cat <<EOF >/etc/exports
-# /etc/exports: the access control list for filesystems which may be exported
-# to NFS clients. See exports(5).
-EOF
+ # Remove obsolete debconf questions
+ if [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_unregister nfs-kernel-server/sync-default || true
+ db_unregister nfs-kernel-server/tcpwrappers-mountd || true
+ db_stop
fi
-
- # The old nfs-server's init script can't tell that it's been
- # removed, so we have to kill the symlinks to it.
- update-rc.d -f nfs-server remove >/dev/null
-
- update-rc.d nfs-kernel-server defaults 20 80 >/dev/null
;;
esac
-db_stop
-
act="restart"
[ "$1:$2" = "configure:" ] && act="start"
invoke-rc.d nfs-kernel-server $act
case "$1" in
purge)
update-rc.d nfs-kernel-server remove >/dev/null
+
+ rm -f /var/lib/nfs/etab \
+ /var/lib/nfs/rmtab \
+ /var/lib/nfs/xtab
;;
esac
+++ /dev/null
-Template: nfs-kernel-server/sync-default
-Type: note
-_Description: NFS server defaults to synchronous writes
- To comply with standards and increase data safety, the Linux NFS server
- now defaults to synchronous writes. Since this is a major change, it is
- not silent: All exports should be explicitly marked as either "sync" or
- "async". Exports not so marked will elicit warnings.
-
-Template: nfs-kernel-server/tcpwrappers-mountd
-Type: note
-_Description: in /etc/hosts.{allow,deny}, replace "rpc.mountd" with "mountd"
- The mount daemon uses tcpwrappers to control access. To configure it, use
- program name "mountd" in /etc/hosts.allow and /etc/hosts.deny.
- .
- Older versions of nfs-kernel-server included a mount daemon that called
- itself "rpc.mountd". Therefore, you should replace all occurrences of
- "rpc.mountd" with "mountd" in /etc/hosts.allow and /etc/hosts.deny.
done; \
rm -f tmp/usr/sbin/*quota*; \
rm -f tmp/usr/share/man/man8/*quota*; \
- rm -rf tmp/var/lib/nfs/*
+ rm -rf tmp/var/lib/nfs/*; \
+ cp --preserve=timestamps etc.exports tmp/etc/exports
# Fixups End Here #
dh_installdocs -A README
dh_installexamples