]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Imported Debian patch 1.0.7-13 debian/1%1.0.7-13
authorSteinar H. Gunderson <sesse@debian.org>
Fri, 5 May 2006 23:50:10 +0000 (01:50 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Jul 2010 03:04:45 +0000 (04:04 +0100)
confdefs.h [new file with mode: 0644]
debian/changelog
debian/control
debian/nfs-common.postinst

diff --git a/confdefs.h b/confdefs.h
new file mode 100644 (file)
index 0000000..0010349
--- /dev/null
@@ -0,0 +1,4 @@
+
+#define NFS3_SUPPORTED 1
+#define NFS4_SUPPORTED 1
+#define GSS_SUPPORTED 1
index e0da231a1811a2900b8127eb87be4974decaf81f..00e297a236b5e41618d4c87f66a76e1aefa58922 100644 (file)
@@ -1,3 +1,16 @@
+nfs-utils (1:1.0.7-13) unstable; urgency=low
+
+  * Up the Standards-Version to 3.7.2; no changes needed.
+  * Tidy up after the /home/statd mess if there was a chance the user ever
+    had 1:1.0.7-10 installed; based on patch from Oskar Liljeblad.
+    (Closes: #366182)
+  * Fix the version check for the chown-ing of /var/lib/nfs/sm etc.; I
+    forgot to include the epoch, so only new installs ever got statd running
+    as non-root. (Due to this, the version number to test against is of course
+    also bumped.)
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Sat,  6 May 2006 01:50:10 +0200
+
 nfs-utils (1:1.0.7-12) unstable; urgency=low
 
   * Move the home directory again (by request), this time to /var/lib/nfs.
 nfs-utils (1:1.0.7-12) unstable; urgency=low
 
   * Move the home directory again (by request), this time to /var/lib/nfs.
index e7f80f946044377fd856fa2f055ce37ba68ac2da..e42d7cb3746f44492c97f7daac168093950100fe 100644 (file)
@@ -4,7 +4,7 @@ Section: net
 Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
 Uploaders: Steinar H. Gunderson <sesse@debian.org>, Daniel Baumann <daniel.baumann@panthera-systems.net>
 Build-Depends: debhelper (>= 5), autoconf2.13, autotools-dev, libwrap0-dev, libevent-dev, libnfsidmap-dev, libkrb5-dev
 Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
 Uploaders: Steinar H. Gunderson <sesse@debian.org>, Daniel Baumann <daniel.baumann@panthera-systems.net>
 Build-Depends: debhelper (>= 5), autoconf2.13, autotools-dev, libwrap0-dev, libevent-dev, libnfsidmap-dev, libkrb5-dev
-Standards-Version: 3.6.2
+Standards-Version: 3.7.2
 
 Package: nfs-kernel-server
 Priority: optional
 
 Package: nfs-kernel-server
 Priority: optional
index 21d47ddd39571f1795f4fc982c946a95314b6283..ce8d59b24d2e3e1c6dadb26f73993f12bdb2cdd1 100755 (executable)
@@ -9,7 +9,13 @@ case "$1" in
        if ! getent passwd statd >/dev/null; then
            adduser --system --home /var/lib/nfs --no-create-home statd
        fi
        if ! getent passwd statd >/dev/null; then
            adduser --system --home /var/lib/nfs --no-create-home statd
        fi
-       if [ "$2" = "" ] || dpkg --compare-versions "$2" lt 1.0.7-10; then
+       if dpkg --compare-versions "$2" ge 1:1.0.7-10 && dpkg --compare-versions "$2" lt 1:1.0.7-13; then
+            usermod --home /var/lib/nfs statd || true
+            if [ -d /home/statd ]; then
+                rmdir --ignore-fail-on-non-empty /home/statd
+            fi
+       fi
+       if [ "$2" = "" ] || dpkg --compare-versions "$2" lt 1:1.0.7-13; then
            chown statd /var/lib/nfs/sm \
                /var/lib/nfs/sm.bak \
                /var/lib/nfs/state \
            chown statd /var/lib/nfs/sm \
                /var/lib/nfs/sm.bak \
                /var/lib/nfs/state \