+nfs-utils (1:1.0.7-6) unstable; urgency=low
+
+ * Let the man-page fixup script in debian/rules look for the man pages in
+ the right place.
+ * Modprobe nfs4 along with nfs in the nfs-common init script. Also modprobe
+ rpcsec_gss_krb5 before we start gssd.
+ * Implement autodetection for NEED_IDMAPD and NEED_GSSD, based on /etc/fstab.
+ * Add a note to the top of /etc/defaults/nfs-common that the default is to
+ autodetect.
+ * Move /var/lib/nfs/rpc_pipefs from nfs-kernel-server.dirs to
+ nfs-common.dirs; it's needed by the client as well.
+ * Let dh_install install from debian/tmp/ instead of debian/tmp; it fixes
+ minor aesthetic issues in the build log.
+
+ -- Steinar H. Gunderson <sesse@debian.org> Sat, 1 Apr 2006 02:46:53 +0200
+
nfs-utils (1:1.0.7-5) unstable; urgency=low
* Non-non-maintainer-upload this time, it seems. :-)
+# If you do not set values for the NEED_ options, they will be attempted
+# autodetected; this should be sufficient for most people. Valid alternatives
+# for the NEED_ options are "yes" and "no".
+
# Options for rpc.statd.
# Should rpc.statd listen on a specific port?
# If so, set this variable to a statd argument like: "--port 1000".
NEED_LOCKD=
# If you are not using NFSv4 and wish to disable the idmapd daemon,
-# then set NEED_IDMAPD to "no".
-NEED_IDMAPD=no
+# then set NEED_IDMAPD to "no".
+NEED_IDMAPD=
# If you are not running NFS with RPCSEC_GSS security, and wish to
# disable the gssd client daemon, then set NEED_GSSD to "no".
-NEED_GSSD=no
+NEED_GSSD=
var/lib/nfs
var/lib/nfs/sm
var/lib/nfs/sm.bak
+var/lib/nfs/rpc_pipefs
DEFAULTFILE=/etc/default/nfs-common
PREFIX=
NEED_LOCKD=
-NEED_IDMAPD=yes
+NEED_IDMAPD=
IDMAPD_PIDFILE=/var/run/rpc.idmapd.pid
-NEED_GSSD=yes
+NEED_GSSD=
GSSD_PIDFILE=/var/run/rpc.gssd.pid
PIPEFS_MOUNTPOINT=/var/lib/nfs/rpc_pipefs
RPCGSSDOPTS=
;;
esac
+#
+# Parse the fstab file, and determine whether we need idmapd and gssd. (The
+# /etc/defaults settings, if any, will override our autodetection.) This code
+# is partially adapted from the mountnfs.sh script in the sysvinit package.
+#
+AUTO_NEED_IDMAPD=no
+AUTO_NEED_GSSD=no
+
+exec 9<&0 </etc/fstab
+
+while read DEV MTPT FSTYPE OPTS REST
+do
+ if [ "$FSTYPE" = "nfs4" ]; then
+ AUTO_NEED_IDMAPD=yes
+ fi
+ case "$OPTS" in
+ sec=krb5|*,sec=krb5|sec=krb5,*|*,sec=krb5i,*|sec=krb5i|*,sec=krb5i|sec=krb5i,*|*,sec=krb5i,*|sec=krb5p|*,sec=krb5p|sec=krb5p,*|*,sec=krb5p,*)
+ AUTO_NEED_GSSD=yes
+ ;;
+ esac
+done
+
+exec 0<&9 9<&-
+
+case "$NEED_IDMAPD" in
+ yes|no)
+ ;;
+ *)
+ NEED_IDMAPD=$AUTO_NEED_IDMAPD
+ ;;
+esac
+
+case "$NEED_GSSD" in
+ yes|no)
+ ;;
+ *)
+ NEED_GSSD=$AUTO_NEED_GSSD
+ ;;
+esac
+
# Exit if required binaries are missing.
[ -x $PREFIX/sbin/rpc.statd ] || exit 0
[ -x $PREFIX/sbin/rpc.lockd ] || [ "$NEED_LOCKD" = no ] || exit 0
if [ "$NEED_IDMAPD" = yes ] || [ "$NEED_GSSD" = yes ]
then
do_modprobe nfs
+ do_modprobe nfs4
if do_mount rpc_pipefs $PIPEFS_MOUNTPOINT
then
if [ "$NEED_IDMAPD" = yes ]
fi
if [ "$NEED_GSSD" = yes ]
then
+ do_modprobe rpcsec_gss_krb5
printf " gssd"
start-stop-daemon --start --quiet \
--make-pidfile --pidfile $GSSD_PIDFILE \
usr/sbin
var/lib/nfs
var/lib/nfs/v4recovery
-var/lib/nfs/rpc_pipefs
mkdir $(DEBTMP)
# Add here commands to install the files into debian/tmp
$(MAKE) install_prefix='$(DEBTMP)' install
- dh_install --sourcedir=debian/tmp/
+ dh_install --sourcedir=debian/tmp
# Fixups Start Here #
cd debian && \
for f in lockd statd showmount; do \
perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \
- nfs-common/usr/share/man/man8/$$f.8; \
+ tmp/usr/share/man/man8/$$f.8; \
done; \
cp --preserve=timestamps etc.exports nfs-kernel-server/etc/exports; \
cp --preserve=timestamps idmapd.conf nfs-common/etc/; \