]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
2001-11-21 Chip Salzenberg <chip@pobox.com>
authorchip <chip>
Thu, 22 Nov 2001 02:22:37 +0000 (02:22 +0000)
committerchip <chip>
Thu, 22 Nov 2001 02:22:37 +0000 (02:22 +0000)
* debian/changelog: Version 0.3.3-3.

14 files changed:
ChangeLog
debian/changelog
debian/control
debian/nfs-common.config [new file with mode: 0644]
debian/nfs-common.dirs
debian/nfs-common.postinst
debian/nfs-common.prerm
debian/nfs-common.templates [new file with mode: 0644]
debian/nfs-kernel-server.config
debian/nfs-kernel-server.init
debian/nfs-kernel-server.postinst
debian/nfs-kernel-server.prerm
debian/nfs-kernel-server.templates
debian/rules

index d82c70a4eb9a908ad0c1ac77482ea7a69d0eab14..d2555a500c79b0630a9636549c0202df21e85336 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
        (setnfsexportent): Set it.
        (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
        (parseopts): Accept old-style "crossmnt" option, for old xtabs.
+       * debian/changelog: Version 0.3.3-3.
 
 2001-10-11  Chip Salzenberg  <chip@pobox.com>
 
index 954aff783ad1e884bf98e85251d85687d5045efb..ff81458b062f319368887309d641e6413d3b4084 100644 (file)
@@ -1,9 +1,27 @@
+nfs-utils (1:0.3.3-3) unstable; urgency=low
+
+  * Upstream fixes:
+    > Accept obsolete mount option "crossmnt" for parsing old xtab files
+      after upgrade.  (closes: #78801)
+    > Put filenames into more error messages.
+  * Stop debconf before starting nfsd to avoid a hang.  Kernel threads
+    like nfsd aren't supposed to inherit open files from the programs that
+    start them, but nfsd does.  See debconf tutorial.  (closes: #115817)
+  * Rebuild with current glibc.  (closes: #119545)
+  * Carefully account for ownership of /var/lib/nfs/*.  (closes: #117258)
+  * Warn about statd using tcpwrappers.  (closes: #92666)
+  * Only warn about mountd's tcpwrappers name change if the old name
+    appears in the tcpwrapper config files.
+  * German template for nfs-kernel-server.  (closes: #117196)
+
+ -- Chip Salzenberg <chip@debian.org>  Wed, 21 Nov 2001 18:21:42 -0800
+
 nfs-utils (1:0.3.3-2) unstable; urgency=high
 
   * The "Test It Before Release, Stupid" release.
   * Repair total failure of rpc.mountd.  (closes: #115095)
 
- -- Chip Salzenberg <chip@valinux.com>  Thu, 11 Oct 2001 13:03:45 -0700
+ -- Chip Salzenberg <chip@debian.org>  Thu, 11 Oct 2001 13:03:45 -0700
 
 nfs-utils (1:0.3.3-1) unstable; urgency=medium
 
index 2004be106c8aac537d14e0e5a11b560ed34077d7..787893531299cd2651f08fe1efd3a5acf16fff12 100644 (file)
@@ -7,7 +7,7 @@ Standards-Version: 3.1.1.1
 
 Package: nfs-kernel-server
 Architecture: any
-Depends: debconf (>= 1.0), nfs-common (>= 1:0.1.5), ${shlibs:Depends}
+Depends: debconf (>= 1.0), nfs-common (>= 1:0.3.3-3), ${shlibs:Depends}
 Provides: knfs, nfs-server
 Conflicts: knfs, nfs-server
 Replaces: knfs, nfs-server
diff --git a/debian/nfs-common.config b/debian/nfs-common.config
new file mode 100644 (file)
index 0000000..5edd12c
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+
+if egrep -q 'ALL|[0-9]\.' /etc/hosts.deny
+then
+    db_input high nfs-common/tcpwrappers-statd || true
+fi
+
+db_go
index 5e54201c43fe5420158807507541a309a537fdd8..653a4e0901947ca09713c7cb06b0acfdbd90d646 100644 (file)
@@ -2,3 +2,5 @@ etc/init.d
 sbin
 usr/sbin
 var/lib/nfs
+var/lib/nfs/sm
+var/lib/nfs/sm.bak
index d4bfa8764219f94ac5611e33fbbc7589f910cba9..f47a67fa521a7b82100aa5241e01e3573795e97d 100755 (executable)
@@ -5,11 +5,7 @@
 case "$1" in
     configure)
        update-rc.d nfs-common defaults 19 81 >/dev/null 2>&1
-
-       /etc/init.d/nfs-common start
-       ;;
-
-    *)
-       /etc/init.d/nfs-common start
        ;;
 esac
+
+/etc/init.d/nfs-common start
index 77e3af8b36dc18f25963354a56c31ac195e8ce59..a3e730f3965e6233ea4e58b2ebae16521c7197ff 100755 (executable)
@@ -4,4 +4,11 @@
 
 [ -x /etc/init.d/nfs-common ] && /etc/init.d/nfs-common stop
 
+if [ "$1" != upgrade ]
+then
+    rm -f /var/lib/nfs/sm/*      \
+          /var/lib/nfs/sm.bak/*  \
+          /var/lib/nfs/state
+fi
+
 exit 0
diff --git a/debian/nfs-common.templates b/debian/nfs-common.templates
new file mode 100644 (file)
index 0000000..8780993
--- /dev/null
@@ -0,0 +1,5 @@
+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.
index e0baf75c85ea3d84aed19a3a26b006c8320fa7c0..86981299aa1f9f0260d0ed0a8418779eca4de380 100644 (file)
@@ -2,6 +2,9 @@
 
 . /usr/share/debconf/confmodule
 
-db_input high nfs-kernel-server/tcpwrappers-mountd || true
-db_go
+if fgrep -q 'rpc' /etc/hosts.allow /etc/hosts.deny
+then
+    db_input high nfs-kernel-server/tcpwrappers-mountd || true
+fi
 
+db_go
index e95586b21269023c871dc9741ac429429f22fb42..c2ee49bbee1f45b516efce39a6906405d88fa0cd 100755 (executable)
@@ -25,7 +25,8 @@ RPCMOUNTDOPTS=
 case "$1" in
   start)
        cd /    # daemons should have root dir as cwd
-       if grep -q '^/' /etc/exports; then
+       if grep -q '^/' /etc/exports
+       then
                printf "Exporting directories for $DESC..."
                $PREFIX/sbin/exportfs -r
                echo "done."
index e02d8ee6a738934f5b6ba218db0a9990cec3cd4b..a523cc781445842eba5472a82cd38df9158cd5de 100755 (executable)
@@ -8,8 +8,10 @@ case "$1" in
     configure)
        db_get nfs-kernel-server/tcpwrappers-mountd || true
 
-       mkdir -p /var/lib/nfs
-       touch /var/lib/nfs/xtab /var/lib/nfs/etab /var/lib/nfs/rmtab
+       touch /var/lib/nfs/etab  \
+              /var/lib/nfs/rmtab \
+              /var/lib/nfs/xtab
+
        if test -s /etc/exports
        then
            : do nothing
@@ -25,11 +27,9 @@ EOF
        update-rc.d -f nfs-server remove
 
        update-rc.d nfs-kernel-server defaults 20 80 >/dev/null 2>&1
-
-       /etc/init.d/nfs-kernel-server start
-       ;;
-
-    *)
-       /etc/init.d/nfs-kernel-server start
        ;;
 esac
+
+db_stop
+
+/etc/init.d/nfs-kernel-server start
index 893848d86769a6e5cc55e7903ccddc174aefd6e3..4e1a2cc4d3973819a256450c00f6b71f4d3c2826 100755 (executable)
@@ -4,4 +4,11 @@
 
 [ -x /etc/init.d/nfs-kernel-server ] && /etc/init.d/nfs-kernel-server stop
 
+if [ "$1" != upgrade ]
+then
+    rm -f /var/lib/nfs/etab   \
+          /var/lib/nfs/rmtab  \
+          /var/lib/nfs/xtab
+fi
+
 exit 0
index 2ed964dc3e4813c7f856e1878d4d76a5b3dd57a4..6e9513989ff1f9a4d81532d736608844e3d03406 100644 (file)
@@ -1,9 +1,17 @@
 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 "mount" in /etc/hosts.allow and /etc/hosts.deny.
+ .
  Older versions of nfs-kernel-server included a mount daemon that
- called itself "rpc.mountd".  The current mount daemon, however, calls
- itself just plain "mountd".
+ called itself "rpc.mountd".  Therefore, you should replace all
+ occurrences of "rpc.mountd" with "mountd" in /etc/hosts.allow and
+ /etc/hosts.deny.
+Description-de: "rpc.mountd" mit "mountd" in /etc/hosts.{allow,deny} ersetzen
+ =C4ltere Versionen von nfs-kernel-server enthalten einen Mount-daemon,
+ der als "rpc.mountd" bezeichnet wird. Der aktuelle Daemon wird jedoch
+ nur noch "mountd" genannt.
  .
- Therefore, you should replace all occurrences of "rpc.mountd" with
"mountd" in /etc/hosts.allow and /etc/hosts.deny.
+ Deshalb sollten Sie alle Referenzen zu "rpc.mountd" in den Dateien
/etc/hosts.allow und /etc/hosts.deny mit "mountd" ersetzen.
index 536853119f1124a8b3e6e6b196ff8947138017cd..66d1e5a4b5ad0c827a5aa66aaf8aae9be6914f20 100755 (executable)
@@ -51,7 +51,7 @@ binary-arch: build
          done; \
          rm -f tmp/usr/sbin/*quota*; \
          rm -f tmp/usr/share/man/man8/*quota*; \
-         rm -rf tmp/var/lib/nfs/*
+          ( cd tmp && rm -rf var/lib/nfs && rmdir -p var/lib )
        # Fixups End Here #
        dh_installdocs -A README
        dh_installexamples
@@ -68,9 +68,6 @@ binary-arch: build
        dh_installdeb
 #      dh_makeshlibs
        dh_shlibdeps
-       # Hackery Begins Here #
-       perl -pi -e 's/2\.2\.4-2/2.2.4-1/g' debian/*substvars
-       # Hackery Ends Here #
        dh_gencontrol
        dh_md5sums
        dh_builddeb