From: Steinar H. Gunderson Date: Fri, 5 May 2006 23:50:10 +0000 (+0200) Subject: Imported Debian patch 1.0.7-13 X-Git-Tag: debian/1%1.0.7-13^0 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=832d49bf021104d1fd381c82df42b25533ee6b1c;p=nfs-utils.git Imported Debian patch 1.0.7-13 --- diff --git a/confdefs.h b/confdefs.h new file mode 100644 index 0000000..0010349 --- /dev/null +++ b/confdefs.h @@ -0,0 +1,4 @@ + +#define NFS3_SUPPORTED 1 +#define NFS4_SUPPORTED 1 +#define GSS_SUPPORTED 1 diff --git a/debian/changelog b/debian/changelog index e0da231..00e297a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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. diff --git a/debian/control b/debian/control index e7f80f9..e42d7cb 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Section: net Maintainer: Anibal Monsalve Salazar Uploaders: Steinar H. Gunderson , Daniel Baumann 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 diff --git a/debian/nfs-common.postinst b/debian/nfs-common.postinst index 21d47dd..ce8d59b 100755 --- a/debian/nfs-common.postinst +++ b/debian/nfs-common.postinst @@ -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 [ "$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 \