rpms/nfs-utils/devel nfs-utils-1.1.2-smnotifypath.patch, NONE, 1.1 nfs-utils.spec, 1.179, 1.180 nfs.init, 1.27, 1.28 nfslock.init, 1.21, 1.22 rpcgssd.init, 1.10, 1.11 rpcidmapd.init, 1.9, 1.10 rpcsvcgssd.init, 1.8, 1.9
Steve Dickson (steved)
fedora-extras-commits at redhat.com
Wed Jul 2 23:36:43 UTC 2008
- Previous message (by thread): rpms/xfce4-datetime-plugin/F-9 .cvsignore, 1.5, 1.6 sources, 1.6, 1.7 xfce4-datetime-plugin.spec, 1.18, 1.19
- Next message (by thread): rpms/nfs-utils/F-9 nfs-utils-1.1.0-smnotify-path.patch, 1.2, 1.3 nfs-utils.spec, 1.172, 1.173
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: steved
Update of /cvs/pkgs/rpms/nfs-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6915
Modified Files:
nfs-utils.spec nfs.init nfslock.init rpcgssd.init
rpcidmapd.init rpcsvcgssd.init
Added Files:
nfs-utils-1.1.2-smnotifypath.patch
Log Message:
- Changed the default directories for sm-notify (bz 435480)
- Added 'condstop' to init scripts so service are not
started when nfs-utils is removed.
nfs-utils-1.1.2-smnotifypath.patch:
--- NEW FILE nfs-utils-1.1.2-smnotifypath.patch ---
diff -up nfs-utils-1.1.2/utils/statd/sm-notify.c.orig nfs-utils-1.1.2/utils/statd/sm-notify.c
--- nfs-utils-1.1.2/utils/statd/sm-notify.c.orig 2008-03-14 11:46:29.000000000 -0400
+++ nfs-utils-1.1.2/utils/statd/sm-notify.c 2008-07-02 18:34:24.000000000 -0400
@@ -24,11 +24,12 @@
#include <errno.h>
#include <grp.h>
+#define STATD_PATH_XTN "statd/"
#ifndef BASEDIR
# ifdef NFS_STATEDIR
-# define BASEDIR NFS_STATEDIR
+# define BASEDIR NFS_STATEDIR "/" STATD_PATH_XTN
# else
-# define BASEDIR "/var/lib/nfs"
+# define BASEDIR "/var/lib/nfs/" STATD_PATH_XTN
# endif
#endif
diff -up nfs-utils-1.1.2/utils/statd/sm-notify.man.orig nfs-utils-1.1.2/utils/statd/sm-notify.man
--- nfs-utils-1.1.2/utils/statd/sm-notify.man.orig 2008-03-14 11:46:29.000000000 -0400
+++ nfs-utils-1.1.2/utils/statd/sm-notify.man 2008-07-02 18:34:13.000000000 -0400
@@ -33,7 +33,7 @@ but this is configurable.
For each NFS client or server machine to be monitored,
.B rpc.statd
creates a file in
-.BR /var/lib/nfs/sm ", "
+.BR /var/lib/nfs/statd/sm ", "
and removes the file if monitoring is no longer required.
.PP
When the machine is rebooted,
@@ -47,7 +47,7 @@ Each machine has an
which is basically an integer counter that is incremented
each time the machine reboots. This counter is stored
in
-.BR /var/lib/nfs/state ,
+.BR /var/lib/nfs/statd/state ,
and updated by
.BR sm-notify .
.SS Security
@@ -149,13 +149,13 @@ By default,
.B sm-notify
forks and puts itself in the background after obtaining the
list of hosts from
-.BR /var/lib/nfs/sm .
+.BR /var/lib/nfs/statd/sm .
.SH FILES
-.BR /var/lib/nfs/state
+.BR /var/lib/nfs/statd/state
.br
-.BR /var/lib/nfs/sm/*
+.BR /var/lib/nfs/statd/sm/*
.br
-.BR /var/lib/nfs/sm.bak/*
+.BR /var/lib/nfs/statd/sm.bak/*
.br
.BR /var/run/sm-notify.pid
.SH SEE ALSO
Index: nfs-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/devel/nfs-utils.spec,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -r1.179 -r1.180
--- nfs-utils.spec 30 Jun 2008 16:13:53 -0000 1.179
+++ nfs-utils.spec 2 Jul 2008 23:35:53 -0000 1.180
@@ -2,7 +2,7 @@
Name: nfs-utils
URL: http://sourceforge.net/projects/nfs
Version: 1.1.2
-Release: 11%{?dist}
+Release: 12%{?dist}
Epoch: 1
# group all 32bit related archs
@@ -31,6 +31,7 @@
Patch06: nfs-utils-1.1.0-exportfs-man-update.patch
Patch07: nfs-utils-1.1.2-multi-auth-flavours.patch
Patch08: nfs-utils-1.1.2-mount-eacces.patch
+Patch09: nfs-utils-1.1.2-smnotifypath.patch
Patch101: nfs-utils-1.1.2-tcpwrapper-fix.patch
Patch102: nfs-utils-1.1.2-mount-retry.patch
@@ -80,14 +81,14 @@
Buildroot: %{_tmppath}/%{name}-%{version}-root
Requires: rpcbind, sed, gawk, sh-utils, fileutils, textutils, grep
Requires: modutils >= 2.4.26-9
-BuildRequires: libgssglue-devel libevent-devel >= 1.4.4
+BuildRequires: libgssglue-devel libevent-devel
BuildRequires: nfs-utils-lib-devel >= 1.1.0-3
BuildRequires: krb5-libs >= 1.4 autoconf >= 2.57 openldap-devel >= 2.2
BuildRequires: automake, libtool, glibc-headers
BuildRequires: e2fsprogs-devel, krb5-devel, tcp_wrappers-devel
Requires(pre): shadow-utils >= 4.0.3-25
Requires(pre): /sbin/chkconfig /sbin/nologin
-Requires: nfs-utils-lib >= 1.1.0-3 libgssglue libevent >= 1.4.4
+Requires: nfs-utils-lib >= 1.1.0-3 libgssglue libevent
%description
The nfs-utils package provides a daemon for the kernel NFS server and
@@ -112,6 +113,7 @@
%patch06 -p1
%patch07 -p1
%patch08 -p1
+%patch09 -p1
%patch101 -p1
%patch102 -p1
@@ -182,6 +184,7 @@
mv $RPM_BUILD_ROOT/usr/sbin/rpc.statd $RPM_BUILD_ROOT/sbin
mkdir -p $RPM_BUILD_ROOT/var/lib/nfs/statd/sm
+mkdir -p $RPM_BUILD_ROOT/var/lib/nfs/statd/sm.bak
mkdir -p $RPM_BUILD_ROOT/var/lib/nfs/v4recovery
%clean
@@ -222,10 +225,10 @@
%preun
if [ "$1" = "0" ]; then
- /etc/rc.d/init.d/nfs condrestart
- /etc/rc.d/init.d/rpcgssd condrestart
- /etc/rc.d/init.d/rpcidmapd condrestart
- /etc/rc.d/init.d/nfslock condrestart
+ /etc/rc.d/init.d/nfs condstop > /dev/null
+ /etc/rc.d/init.d/rpcgssd condstop > /dev/null
+ /etc/rc.d/init.d/rpcidmapd condstop > /dev/null
+ /etc/rc.d/init.d/nfslock condstop > /dev/null
/sbin/chkconfig --del rpcidmapd
/sbin/chkconfig --del rpcgssd
/sbin/chkconfig --del rpcsvcgssd
@@ -267,10 +270,11 @@
%dir /var/lib/nfs
%dir %attr(700,rpcuser,rpcuser) /var/lib/nfs/statd
%dir %attr(700,rpcuser,rpcuser) /var/lib/nfs/statd/sm
+%dir %attr(700,rpcuser,rpcuser) /var/lib/nfs/statd/sm.bak
+%config(noreplace) %attr(644,rpcuser,rpcuser) /var/lib/nfs/state
%config(noreplace) /var/lib/nfs/xtab
%config(noreplace) /var/lib/nfs/etab
%config(noreplace) /var/lib/nfs/rmtab
-%config(noreplace) /var/lib/nfs/state
%doc linux-nfs/*
/sbin/rpc.statd
/usr/sbin/exportfs
@@ -295,6 +299,11 @@
%attr(4755,root,root) /sbin/umount.nfs4
%changelog
+* Wed Jul 2 2008 Steve Dickson <steved at redhat.com> 1.1.2-12
+- Changed the default directories for sm-notify (bz 435480)
+- Added 'condstop' to init scripts so service are not
+ started when nfs-utils is removed.
+
* Mon Jun 30 2008 Dennis Gilmore <dennis at ausil.us> 1.1.2-11
- add sparc arch handling
Index: nfs.init
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/devel/nfs.init,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- nfs.init 30 Jul 2007 10:10:07 -0000 1.27
+++ nfs.init 2 Jul 2008 23:35:53 -0000 1.28
@@ -171,10 +171,18 @@
[ -f /var/lock/subsys/nfs ] && {
$0 stop
$0 start
+ RETVAL=$?
+ }
+ ;;
+ condstop)
+ [ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
+ [ -f /var/lock/subsys/nfs ] && {
+ $0 stop
+ RETVAL=$?
}
;;
*)
- echo $"Usage: nfs {start|stop|status|restart|reload|condrestart}"
+ echo $"Usage: nfs {start|stop|status|restart|reload|condrestart|condstop}"
RETVAL=3
;;
esac
Index: nfslock.init
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/devel/nfslock.init,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- nfslock.init 25 Apr 2008 15:39:48 -0000 1.21
+++ nfslock.init 2 Jul 2008 23:35:53 -0000 1.22
@@ -113,10 +113,17 @@
[ -f /var/lock/subsys/nfslock ] && {
stop
start
+ RETVAL=$?
+ }
+ ;;
+ condstop)
+ [ -f /var/lock/subsys/nfslock ] && {
+ stop
+ RETVAL=$?
}
;;
*)
- echo $"Usage: $0 {start|stop|status|restart|probe|condrestart}"
+ echo $"Usage: $0 {start|stop|status|restart|probe|condrestart|condstop}"
RETVAL=3
;;
esac
Index: rpcgssd.init
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/devel/rpcgssd.init,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- rpcgssd.init 2 Aug 2007 15:54:05 -0000 1.10
+++ rpcgssd.init 2 Jul 2008 23:35:53 -0000 1.11
@@ -105,8 +105,14 @@
RETVAL=$?
fi
;;
+ condstop)
+ if [ -f $LOCKFILE ]; then
+ $0 stop
+ RETVAL=$?
+ fi
+ ;;
*)
- echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
+ echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status|condstop}"
RETVAL=3
;;
esac
Index: rpcidmapd.init
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/devel/rpcidmapd.init,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- rpcidmapd.init 2 Aug 2007 15:54:05 -0000 1.9
+++ rpcidmapd.init 2 Jul 2008 23:35:53 -0000 1.10
@@ -90,8 +90,14 @@
RETVAL=$?
fi
;;
+ condstop)
+ if [ -f $LOCKFILE ]; then
+ $0 stop
+ RETVAL=$?
+ fi
+ ;;
*)
- echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
+ echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status|condstop}"
RETVAL=3
;;
esac
Index: rpcsvcgssd.init
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/devel/rpcsvcgssd.init,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- rpcsvcgssd.init 2 Aug 2007 15:54:05 -0000 1.8
+++ rpcsvcgssd.init 2 Jul 2008 23:35:53 -0000 1.9
@@ -105,8 +105,14 @@
RETVAL=$?
fi
;;
+ condstop)
+ if [ -f $LOCKFILE ]; then
+ $0 stop
+ RETVAL=$?
+ fi
+ ;;
*)
- echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
+ echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status|condstop}"
RETVAL=3
;;
esac
- Previous message (by thread): rpms/xfce4-datetime-plugin/F-9 .cvsignore, 1.5, 1.6 sources, 1.6, 1.7 xfce4-datetime-plugin.spec, 1.18, 1.19
- Next message (by thread): rpms/nfs-utils/F-9 nfs-utils-1.1.0-smnotify-path.patch, 1.2, 1.3 nfs-utils.spec, 1.172, 1.173
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list