forked from pool/nfs-utils
This commit is contained in:
commit
9f6f807a9c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
137
gssd.init
Normal file
137
gssd.init
Normal file
@ -0,0 +1,137 @@
|
||||
#! /bin/sh
|
||||
# Copyright (c) 1996 - 2005 SuSE GmbH Nuernberg, Germany. All rights reserved.
|
||||
#
|
||||
# Author: Florian La Roche <florian@suse.de>, 1996
|
||||
# Werner Fink <werner@suse.de>, 1996,98
|
||||
# Burchard Steinbild <bs@suse.de>, 1997
|
||||
# Thorsten Kukuk <kukuk@suse.de>, 2000,01
|
||||
#
|
||||
# /etc/init.d/gssd
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: gssd
|
||||
# Required-Start: $network $remote_fs $named portmap
|
||||
# Required-Stop: $network portmap
|
||||
# Should-Start: ypbind krb5kdc
|
||||
# Should-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Description: Start the RPC GSS security daemon
|
||||
### END INIT INFO
|
||||
|
||||
. /etc/sysconfig/nfs
|
||||
|
||||
# Shell functions sourced from /etc/rc.status:
|
||||
# rc_check check and set local and overall rc status
|
||||
# rc_status check and set local and overall rc status
|
||||
# rc_status -v ditto but be verbose in local rc status
|
||||
# rc_status -v -r ditto and clear the local rc status
|
||||
# rc_failed set local and overall rc status to failed
|
||||
# rc_failed <num> set local and overall rc status to <num><num>
|
||||
# rc_reset clear local rc status (overall remains)
|
||||
# rc_exit exit appropriate to overall rc status
|
||||
. /etc/rc.status
|
||||
|
||||
# First reset status of this service
|
||||
rc_reset
|
||||
|
||||
# Return values acc. to LSB for all commands but status:
|
||||
# 0 - success
|
||||
# 1 - generic or unspecified error
|
||||
# 2 - invalid or excess argument(s)
|
||||
# 3 - unimplemented feature (e.g. "reload")
|
||||
# 4 - insufficient privilege
|
||||
# 5 - program is not installed
|
||||
# 6 - program is not configured
|
||||
# 7 - program is not running
|
||||
#
|
||||
# Note that starting an already running service, stopping
|
||||
# or restarting a not-running service as well as the restart
|
||||
# with force-reload (in case signalling is not supported) are
|
||||
# considered a success.
|
||||
|
||||
function mount_rpc_pipefs {
|
||||
|
||||
# See if the file system is there yet
|
||||
case `stat -c "%t" -f /var/lib/nfs/rpc_pipefs` in
|
||||
*67596969*)
|
||||
return 0;;
|
||||
esac
|
||||
|
||||
echo -n " (mounting rpc_pipefs)"
|
||||
mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs
|
||||
}
|
||||
|
||||
case $NFS_SECURITY_GSS in
|
||||
[Nn]*) flavors="";;
|
||||
[Yy]*) flavors=krb5;;
|
||||
*) flavors="$NFS_SECURITY_GSS";;
|
||||
esac
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting RPC GSS security daemon"
|
||||
if [ -n "$flavors" ]; then
|
||||
echo -n " ($flavors)"
|
||||
for flavor in $flavors; do
|
||||
/sbin/modprobe rpcsec_gss_$flavor
|
||||
done
|
||||
|
||||
mount_rpc_pipefs
|
||||
/usr/sbin/rpc.gssd
|
||||
rc_status -v
|
||||
else
|
||||
rc_status -u
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if checkproc /usr/sbin/rpc.gssd; then
|
||||
echo -n "Shutting down RPC GSS security daemon"
|
||||
killproc -TERM /usr/sbin/rpc.gssd
|
||||
rc_status -v
|
||||
fi
|
||||
;;
|
||||
try-restart)
|
||||
## Stop the service and if this succeeds (i.e. the
|
||||
## service was running before), start it again.
|
||||
$0 status >/dev/null && $0 restart
|
||||
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
## Stop the service and regardless of whether it was
|
||||
## running or not, start it again.
|
||||
$0 stop
|
||||
$0 start
|
||||
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
reload|force-reload)
|
||||
if checkproc /usr/sbin/rpc.gssd; then
|
||||
$0 restart
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for RPC GSS security daemon: "
|
||||
## Check status with checkproc(8), if process is running
|
||||
## checkproc will return with exit status 0.
|
||||
|
||||
# Status has a slightly different for the status command:
|
||||
# 0 - service running
|
||||
# 1 - service dead, but /var/run/ pid file exists
|
||||
# 2 - service dead, but /var/lock/ lock file exists
|
||||
# 3 - service not running
|
||||
|
||||
# NOTE: checkproc returns LSB compliant status values.
|
||||
checkproc /usr/sbin/rpc.gssd
|
||||
rc_status -v
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
rc_exit
|
144
idmapd.init
Normal file
144
idmapd.init
Normal file
@ -0,0 +1,144 @@
|
||||
#! /bin/sh
|
||||
# Copyright (c) 1996 - 2005 SuSE GmbH Nuernberg, Germany. All rights reserved.
|
||||
#
|
||||
# Author: Florian La Roche <florian@suse.de>, 1996
|
||||
# Werner Fink <werner@suse.de>, 1996,98
|
||||
# Burchard Steinbild <bs@suse.de>, 1997
|
||||
# Thorsten Kukuk <kukuk@suse.de>, 2000,01
|
||||
#
|
||||
# /etc/init.d/idmapd
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: idmapd
|
||||
# Required-Start: $network $remote_fs $named portmap
|
||||
# Required-Stop: $network portmap
|
||||
# Should-Start: ypbind krb5kdc
|
||||
# Should-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Description: Start the NFSv4 ID mapping daemon
|
||||
### END INIT INFO
|
||||
|
||||
. /etc/sysconfig/nfs
|
||||
|
||||
# Shell functions sourced from /etc/rc.status:
|
||||
# rc_check check and set local and overall rc status
|
||||
# rc_status check and set local and overall rc status
|
||||
# rc_status -v ditto but be verbose in local rc status
|
||||
# rc_status -v -r ditto and clear the local rc status
|
||||
# rc_failed set local and overall rc status to failed
|
||||
# rc_failed <num> set local and overall rc status to <num><num>
|
||||
# rc_reset clear local rc status (overall remains)
|
||||
# rc_exit exit appropriate to overall rc status
|
||||
. /etc/rc.status
|
||||
|
||||
# First reset status of this service
|
||||
rc_reset
|
||||
|
||||
# Return values acc. to LSB for all commands but status:
|
||||
# 0 - success
|
||||
# 1 - generic or unspecified error
|
||||
# 2 - invalid or excess argument(s)
|
||||
# 3 - unimplemented feature (e.g. "reload")
|
||||
# 4 - insufficient privilege
|
||||
# 5 - program is not installed
|
||||
# 6 - program is not configured
|
||||
# 7 - program is not running
|
||||
#
|
||||
# Note that starting an already running service, stopping
|
||||
# or restarting a not-running service as well as the restart
|
||||
# with force-reload (in case signalling is not supported) are
|
||||
# considered a success.
|
||||
|
||||
function mount_rpc_pipefs {
|
||||
|
||||
# See if the file system is there yet
|
||||
case `stat -c "%t" -f /var/lib/nfs/rpc_pipefs` in
|
||||
*67596969*)
|
||||
return 0;;
|
||||
esac
|
||||
|
||||
echo -n " (mounting rpc_pipefs)"
|
||||
mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs
|
||||
}
|
||||
|
||||
function umount_rpc_pipefs {
|
||||
|
||||
case `stat -c "%t" -f /var/lib/nfs/rpc_pipefs` in
|
||||
*67596969*)
|
||||
umount /var/lib/nfs/rpc_pipefs;;
|
||||
esac
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting NFSv4 ID mapping daemon"
|
||||
if [ "$NFS4_SUPPORT" = "yes" ]; then
|
||||
mount_rpc_pipefs
|
||||
/usr/sbin/rpc.idmapd
|
||||
rc_status -v
|
||||
else
|
||||
rc_status -u
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ "$NFS4_SUPPORT" = "yes" ]; then
|
||||
echo -n "Shutting down NFSv4 ID mapping daemon"
|
||||
killproc -TERM /usr/sbin/rpc.idmapd
|
||||
rc_status
|
||||
umount_rpc_pipefs
|
||||
rc_status -v
|
||||
fi
|
||||
;;
|
||||
try-restart)
|
||||
## Stop the service and if this succeeds (i.e. the
|
||||
## service was running before), start it again.
|
||||
$0 status >/dev/null && $0 restart
|
||||
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
## Stop the service and regardless of whether it was
|
||||
## running or not, start it again.
|
||||
$0 stop
|
||||
$0 start
|
||||
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
reload|force-reload)
|
||||
echo -n "Reload NFSv4 ID mapping daemon"
|
||||
if [ "$NFS4_SUPPORT" = "yes" ]; then
|
||||
killproc -HUP /usr/sbin/rpc.idmapd
|
||||
rc_status -v
|
||||
else
|
||||
rc_status -u
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for NFSv4 ID mapping daemon: "
|
||||
## Check status with checkproc(8), if process is running
|
||||
## checkproc will return with exit status 0.
|
||||
|
||||
# Status has a slightly different for the status command:
|
||||
# 0 - service running
|
||||
# 1 - service dead, but /var/run/ pid file exists
|
||||
# 2 - service dead, but /var/lock/ lock file exists
|
||||
# 3 - service not running
|
||||
|
||||
# NOTE: checkproc returns LSB compliant status values.
|
||||
if [ "$NFS4_SUPPORT" = "yes" ]; then
|
||||
checkproc /usr/sbin/rpc.idmapd
|
||||
else
|
||||
rc_failed 3
|
||||
fi
|
||||
rc_status -v
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
rc_exit
|
3
nfs-utils-1.0.10.tar.bz2
Normal file
3
nfs-utils-1.0.10.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f06f4aa1053e60738c7bd09132a4a99047a97e91f334a01d8dab5af3688bee68
|
||||
size 528352
|
16
nfs-utils-anon-uid32.patch
Normal file
16
nfs-utils-anon-uid32.patch
Normal file
@ -0,0 +1,16 @@
|
||||
Index: nfs-utils-1.0.6/utils/exportfs/exportfs.c
|
||||
===================================================================
|
||||
--- nfs-utils-1.0.6.orig/utils/exportfs/exportfs.c 2004-06-24 12:42:44.000000000 +0200
|
||||
+++ nfs-utils-1.0.6/utils/exportfs/exportfs.c 2004-06-24 12:44:43.000000000 +0200
|
||||
@@ -399,9 +399,9 @@
|
||||
c = dumpopt(c, "mapping=ugidd");
|
||||
else if (ep->e_maptype == CLE_MAP_FILE)
|
||||
c = dumpopt(c, "mapping=file");
|
||||
- if (ep->e_anonuid != -2)
|
||||
+ if (ep->e_anonuid != 65534)
|
||||
c = dumpopt(c, "anonuid=%d", ep->e_anonuid);
|
||||
- if (ep->e_anongid != -2)
|
||||
+ if (ep->e_anongid != 65534)
|
||||
c = dumpopt(c, "anongid=%d", ep->e_anongid);
|
||||
|
||||
printf("%c\n", (c != '(')? ')' : ' ');
|
16
nfs-utils-gssd-select-ccache.patch
Normal file
16
nfs-utils-gssd-select-ccache.patch
Normal file
@ -0,0 +1,16 @@
|
||||
utils/gssd/krb5_util.c | 7 ++++++-
|
||||
1 files changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
Index: nfs-utils-1.0.7/utils/gssd/krb5_util.c
|
||||
===================================================================
|
||||
--- nfs-utils-1.0.7.orig/utils/gssd/krb5_util.c
|
||||
+++ nfs-utils-1.0.7/utils/gssd/krb5_util.c
|
||||
@@ -193,7 +195,7 @@ gssd_find_existing_krb5_ccache(uid_t uid
|
||||
snprintf(statname, sizeof(statname),
|
||||
"%s/%s", GSSD_DEFAULT_CRED_DIR,
|
||||
namelist[i]->d_name);
|
||||
- if (stat(statname, &tmp_stat)) {
|
||||
+ if (lstat(statname, &tmp_stat)) {
|
||||
printerr(0, "Error doing stat "
|
||||
"on file '%s'\n",
|
||||
statname);
|
17
nfs-utils-krb5.patch
Normal file
17
nfs-utils-krb5.patch
Normal file
@ -0,0 +1,17 @@
|
||||
--- aclocal/kerberos5.m4
|
||||
+++ aclocal/kerberos5.m4
|
||||
@@ -34,9 +34,12 @@
|
||||
KRBLIBS=`$K5CONFIG --libs gssapi`
|
||||
K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
|
||||
AC_DEFINE_UNQUOTED(KRB5_VERSION, $K5VERS, [Define this as the Kerberos version number])
|
||||
- if test -f $dir/include/gssapi/gssapi_krb5.h -a \
|
||||
+ if test \( -f $dir/include/gssapi/gssapi_krb5.h -o \
|
||||
+ -f /usr/include/gssapi/gssapi_krb5.h \) -a \
|
||||
\( -f $dir/lib/libgssapi_krb5.a -o \
|
||||
- -f $dir/lib/libgssapi_krb5.so \) ; then
|
||||
+ -f $dir/lib/libgssapi_krb5.so -o \
|
||||
+ -f /usr/lib/libgssapi_krb5.so -o \
|
||||
+ -f /usr/lib64/libgssapi_krb5.so \) ; then
|
||||
AC_DEFINE(HAVE_KRB5, 1, [Define this if you have MIT Kerberos libraries])
|
||||
KRBDIR="$dir"
|
||||
dnl If we are using MIT K5 1.3.1 and before, we *MUST* use the
|
67
nfs-utils-largefiles.patch
Normal file
67
nfs-utils-largefiles.patch
Normal file
@ -0,0 +1,67 @@
|
||||
From: "Andrew Gray" <7114@blargh.com>
|
||||
To: nfs@lists.sourceforge.net
|
||||
Subject: [NFS] Patch to mountd to mount files > 2GB
|
||||
Date: Tue, 13 Jan 2004 21:19:16 -0800
|
||||
|
||||
Greetings all,
|
||||
|
||||
If this has been problem/solution has been posted before, please disregard
|
||||
:)
|
||||
|
||||
I'm using NFS to serve out FLAR archives to Sun machines. These files are >
|
||||
2GB, and the auto-installer for the Sun boxes mount the files, not the
|
||||
directories. mountd was refusing to authenticate these otherwise legit
|
||||
requests because the stat() call was bombing due the filesize being too
|
||||
large. I hacked up the quick diff below that fixed the problem. The files
|
||||
transfer correctly and completely, but I admit I haven't performed further
|
||||
testing.
|
||||
|
||||
diff -u nfs-utils-1.0.6-orig/utils/mountd/mountd.c
|
||||
nfs-utils-1.0.6/utils/mountd/mountd.c
|
||||
--- nfs-utils-1.0.6-orig/utils/mountd/mountd.c Fri Sep 12 15:14:16 2003
|
||||
+++ nfs-utils-1.0.6/utils/mountd/mountd.c Tue Jan 13 20:11:49 2004
|
||||
@@ -176,7 +176,7 @@
|
||||
{
|
||||
struct sockaddr_in *sin
|
||||
= (struct sockaddr_in *) svc_getcaller(rqstp->rq_xprt);
|
||||
- struct stat stb;
|
||||
+ struct stat64 stb;
|
||||
nfs_export *exp;
|
||||
char rpath[MAXPATHLEN+1];
|
||||
char *p = *path;
|
||||
@@ -198,7 +198,7 @@
|
||||
/* Now authenticate the intruder... */
|
||||
if (!(exp = auth_authenticate("pathconf", sin, p))) {
|
||||
return 1;
|
||||
- } else if (stat(p, &stb) < 0) {
|
||||
+ } else if (stat64(p, &stb) < 0) {
|
||||
xlog(L_WARNING, "can't stat exported dir %s: %s",
|
||||
p, strerror(errno));
|
||||
export_reset (exp);
|
||||
@@ -248,7 +248,7 @@
|
||||
{
|
||||
struct sockaddr_in *sin =
|
||||
(struct sockaddr_in *) svc_getcaller(rqstp->rq_xprt);
|
||||
- struct stat stb, estb;
|
||||
+ struct stat64 stb, estb;
|
||||
nfs_export *exp;
|
||||
char rpath[MAXPATHLEN+1];
|
||||
char *p = *path;
|
||||
@@ -268,7 +268,7 @@
|
||||
/* Now authenticate the intruder... */
|
||||
if (!(exp = auth_authenticate("mount", sin, p))) {
|
||||
*error = NFSERR_ACCES;
|
||||
- } else if (stat(p, &stb) < 0) {
|
||||
+ } else if (stat64(p, &stb) < 0) {
|
||||
xlog(L_WARNING, "can't stat exported dir %s: %s",
|
||||
p, strerror(errno));
|
||||
if (errno == ENOENT)
|
||||
@@ -278,7 +278,7 @@
|
||||
} else if (!S_ISDIR(stb.st_mode) && !S_ISREG(stb.st_mode)) {
|
||||
xlog(L_WARNING, "%s is not a directory or regular file", p);
|
||||
*error = NFSERR_NOTDIR;
|
||||
- } else if (stat(exp->m_export.e_path, &estb) < 0) {
|
||||
+ } else if (stat64(exp->m_export.e_path, &estb) < 0) {
|
||||
xlog(L_WARNING, "can't stat export point %s: %s",
|
||||
p, strerror(errno));
|
||||
*error = NFSERR_NOENT;
|
22
nfs-utils-noroot.patch
Normal file
22
nfs-utils-noroot.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- Makefile.am
|
||||
+++ Makefile.am 2006/08/08 21:55:21
|
||||
@@ -47,7 +47,7 @@
|
||||
mkdir -p $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak
|
||||
touch $(DESTDIR)$(statedir)/state
|
||||
chmod go-rwx $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state
|
||||
- chown $(statduser) $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state
|
||||
+ -chown $(statduser) $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state
|
||||
|
||||
uninstall-hook:
|
||||
rm $(DESTDIR)$(statedir)/xtab
|
||||
--- Makefile.in
|
||||
+++ Makefile.in 2006/08/08 21:55:30
|
||||
@@ -691,7 +691,7 @@
|
||||
mkdir -p $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak
|
||||
touch $(DESTDIR)$(statedir)/state
|
||||
chmod go-rwx $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state
|
||||
- chown $(statduser) $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state
|
||||
+ -chown $(statduser) $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state
|
||||
|
||||
uninstall-hook:
|
||||
rm $(DESTDIR)$(statedir)/xtab
|
43
nfs-utils-nsm.patch
Normal file
43
nfs-utils-nsm.patch
Normal file
@ -0,0 +1,43 @@
|
||||
--- utils/statd/monitor.c
|
||||
+++ utils/statd/monitor.c 2002/08/01 14:38:29
|
||||
@@ -233,7 +233,18 @@
|
||||
dprintf(L_DEBUG, "UNMONITORING %s for %s",
|
||||
mon_name, my_name);
|
||||
nlist_free(&rtnl, clnt);
|
||||
+ /* Do not unlink the monitor file. There are
|
||||
+ * cases when a lock is cleared locally on the
|
||||
+ * NFS client, but not on the server. We
|
||||
+ * need to make sure these get freed at least
|
||||
+ * on the next boot.
|
||||
+ * We might also want to make an attempt in
|
||||
+ * the kernel to do a NLM_FREE_ALL call the next time
|
||||
+ * we mount something from this host.
|
||||
+ */
|
||||
+#if 0
|
||||
xunlink(SM_DIR, mon_name, 1);
|
||||
+#endif
|
||||
|
||||
return (&result);
|
||||
} else
|
||||
--- utils/statd/state.c
|
||||
+++ utils/statd/state.c 2002/08/01 14:38:29
|
||||
@@ -59,6 +59,7 @@
|
||||
if (MY_NAME == NULL) {
|
||||
char fullhost[SM_MAXSTRLEN + 1];
|
||||
struct hostent *hostinfo;
|
||||
+ char *dot;
|
||||
|
||||
if (gethostname (fullhost, SM_MAXSTRLEN) == -1)
|
||||
die ("gethostname: %s", strerror (errno));
|
||||
@@ -69,6 +70,11 @@
|
||||
strncpy (fullhost, hostinfo->h_name, sizeof (fullhost) - 1);
|
||||
fullhost[sizeof (fullhost) - 1] = '\0';
|
||||
}
|
||||
+
|
||||
+ /* SuSE hack: strip off .local domain; the server will surely
|
||||
+ * be unable to resolve the name */
|
||||
+ if ((dot = strrchr(fullhost, '.')) && !strcasecmp(dot, ".local"))
|
||||
+ *dot = '\0';
|
||||
|
||||
MY_NAME = xstrdup (fullhost);
|
||||
}
|
605
nfs-utils.changes
Normal file
605
nfs-utils.changes
Normal file
@ -0,0 +1,605 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 18 18:40:03 CET 2006 - ro@suse.de
|
||||
|
||||
- added nfsserver.xml to /etc/omc/srvinfo.d (fate#301835)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 8 17:49:47 CEST 2006 - ro@suse.de
|
||||
|
||||
- update to 1.0.10
|
||||
remove upstreamed patches:
|
||||
- nfs-utils-1.0.6-anon-exports.patch
|
||||
- export-acl.diff
|
||||
- nfs-utils-1.0.6-dep.patch
|
||||
- nfs-utils-1.0.6-doc.patch
|
||||
- nfs-utils-1.0.7-CITI_NFS4_ALL-2.dif
|
||||
- nfs-utils-1.0.7-destdir.patch
|
||||
- nfs-utils-1.0.7-gssapi.patch
|
||||
- nfs-utils-1.0.7-headtail.patch
|
||||
- nfs-utils-1.0.7-mount_type3.patch
|
||||
- nfs-utils-1.0.7-no_sync_warn_ro.patch
|
||||
- nfs-utils-1.0.7-rpcgen.patch
|
||||
- nfs-utils-1.0.7-strip.patch
|
||||
- nfs-utils-64bigendian.patch
|
||||
- nfs-utils-1.0.6-quota.patch (upstream different)
|
||||
|
||||
partly upstreamed patches:
|
||||
- nfs-utils-1.0.6-anon-uid32.patch
|
||||
- nfs-utils-1.0.7-gssd-select-ccache.patch
|
||||
|
||||
redone patches:
|
||||
- nfs-utils-noroot.patch (was: norootforbuild.diff)
|
||||
- pass -fPIE to configure instead of patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 13 14:33:24 CEST 2006 - aj@suse.de
|
||||
|
||||
- Fix off-by-one error in rpcgen.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 23 15:20:54 CEST 2006 - ro@suse.de
|
||||
|
||||
- find kerberos ticket files even if /tmp on reiser (#187775)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 21 12:13:00 CEST 2006 - ro@suse.de
|
||||
|
||||
- fix /etc/gssapi_mech.conf for lib64 platforms (#186954)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 12 15:26:54 CEST 2006 - ro@suse.de
|
||||
|
||||
- added support for type 3 filehandles to mountd (#182552)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 2 12:39:10 CEST 2006 - ro@suse.de
|
||||
|
||||
- disable v4 support in rcnfsserver if NFS4_SUPPORT is
|
||||
not set to "yes" (#178633)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 2 12:17:25 CEST 2006 - ro@suse.de
|
||||
|
||||
- added fix for 64bit bigendian platforms in gssd (#172605)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 2 09:39:42 CEST 2006 - okir@suse.de
|
||||
|
||||
- gracefully handle repeated "rcidmapd stop" calls (#169087)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 24 14:05:16 CEST 2006 - ro@suse.de
|
||||
|
||||
- nfs-server rc-script: make force-reload do as reload does
|
||||
(#167152)
|
||||
- nfs-server rc-script: reload idmapd if NFSV4 is on (#167016)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 23 12:10:20 CET 2006 - okir@suse.de
|
||||
|
||||
- Make gssd and svcgssd scripts mount rpc_pipefs if not there
|
||||
(#158000) and added "Should-start: krb5kdc" to make sure
|
||||
the KDC is started first if running on the same server (#159980)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 31 11:25:35 CET 2006 - okir@suse.de
|
||||
|
||||
- Load RPCSEC_GSS kernel modules in rcgssd/rcsvcgssd init
|
||||
scripts (#142352)
|
||||
- Enable NFSv4 by default
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 27 02:14:16 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 16:20:23 CET 2006 - ro@suse.de
|
||||
|
||||
- nfsserver rcscript: only mount nfsdfs if not mounted already
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 17 00:32:02 CET 2006 - schwab@suse.de
|
||||
|
||||
- Don't strip binaries.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 19 14:56:53 CET 2005 - mmj@suse.de
|
||||
|
||||
- fix filelist
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 28 16:29:12 CET 2005 - ro@suse.de
|
||||
|
||||
- fix init scripts: in the stop case, a not running service
|
||||
is not an error (#134904)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 14 13:11:15 CET 2005 - ro@suse.de
|
||||
|
||||
- packaging /var/lib/nfs/v4recovery directory (#133502)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 1 11:09:56 CEST 2005 - okir@suse.de
|
||||
|
||||
- packaging /var/lib/nfs/rpc_pipefs directory (#114103)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 25 15:11:35 CEST 2005 - ro@suse.de
|
||||
|
||||
- modify nfs-server script to support uml case (#86624)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 19 14:23:23 CEST 2005 - okir@suse.de
|
||||
|
||||
- added NFS4_SUPPORT and NFS_SECURITY_GSS to sysconfig.nfs
|
||||
- updated the idmapd script so it honors NFS4_SUPPORT
|
||||
- updated gssd script so it honors NFS_SECURITY_GSS
|
||||
- added svcgssd script
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 20 15:48:17 CEST 2005 - ro@suse.de
|
||||
|
||||
- fix in init-script (do not try unmount if not mounted) (#91460)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 6 17:28:03 CEST 2005 - schwab@suse.de
|
||||
|
||||
- Install correct init script.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 3 10:30:01 CEST 2005 - kukuk@suse.de
|
||||
|
||||
- Compile with -fpie/-pie
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 31 13:16:12 CEST 2005 - okir@suse.de
|
||||
|
||||
- Enabled NFSv4 and RPCSEC_GSS support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 19 14:25:48 CEST 2005 - ro@suse.de
|
||||
|
||||
- do not warn about sync/async for readonly exports (#78369)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 4 01:57:06 CEST 2005 - ro@suse.de
|
||||
|
||||
- make it build with gcc4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 5 12:54:14 CET 2005 - schwab@suse.de
|
||||
|
||||
- Update to nfs-utils 1.0.7.
|
||||
- Make non-anonymous exports work again.
|
||||
- Use BuildRoot.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 13 14:00:35 CET 2004 - ro@suse.de
|
||||
|
||||
- update to 1.0.7-pre2 (use 1.0.6.2 as package version)
|
||||
- disable gss and nfsv4 for now
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 9 13:10:20 CET 2004 - okir@suse.de
|
||||
|
||||
- make anonymous exports work again (#46918)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 30 12:39:23 CEST 2004 - ro@suse.de
|
||||
|
||||
- added sysconfig variable to allow running mountd on a
|
||||
defined port
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 30 10:30:06 CEST 2004 - okir@suse.de
|
||||
|
||||
- Fix to prevent mountd from crashing on kernel upcalls
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 27 09:48:10 CEST 2004 - okir@suse.de
|
||||
|
||||
- Fix a permission problem after using exportfs -u
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 24 16:03:14 CEST 2004 - ro@suse.de
|
||||
|
||||
- remove "exportfs -au" from rcnfsserver stop
|
||||
(kernel zaps table on last server exit anyway) (#44049)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 24 12:58:14 CEST 2004 - ro@suse.de
|
||||
|
||||
- added patch from okir to use nobody:nogroup again by default
|
||||
for anonymous (#42288)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 22 14:23:11 CEST 2004 - ro@suse.de
|
||||
|
||||
- remove nfslock start script
|
||||
- remove nfslock dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 17 23:11:31 CEST 2004 - ro@suse.de
|
||||
|
||||
- mount nfsd filesystem if possible (#41955)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 31 16:49:06 CEST 2004 - mmj@suse.de
|
||||
|
||||
- Remove unpackaged files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 31 12:00:01 CEST 2004 - mmj@suse.de
|
||||
|
||||
- Move sm-notify to util-linux [#36737]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 26 02:07:21 CET 2004 - ro@suse.de
|
||||
|
||||
- remove rpc.statd completely
|
||||
- add sm-notify and call it first in nfslock script (#36737)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 3 12:53:25 CET 2004 - ro@suse.de
|
||||
|
||||
- disable rquotad already in configure
|
||||
(no need to compile it, if we only remove it later)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 20 11:59:52 CET 2004 - okir@suse.de
|
||||
|
||||
- Include patch that allows Sun boxes to mount large files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 15 09:12:00 CEST 2003 - ro@suse.de
|
||||
|
||||
- update to version 1.0.6 to fix a possible segfault in statd
|
||||
- support for 2.6 kernels
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 29 18:47:29 CEST 2003 - ro@suse.de
|
||||
|
||||
- fix hed/tail calling syntax (#29644)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 25 11:41:31 CEST 2003 - ro@suse.de
|
||||
|
||||
- add restart_on_update/stop_on_removal macros
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 15 15:04:43 CEST 2003 - ro@suse.de
|
||||
|
||||
- added sysconfig metadata (#28908)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 5 01:38:42 CEST 2003 - ro@suse.de
|
||||
|
||||
- fix compile for rquotad (unused anyway
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 31 14:15:43 CEST 2003 - ro@suse.de
|
||||
|
||||
- add support for STATD_HOSTNAME (#28201)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 28 14:20:00 CEST 2003 - ro@suse.de
|
||||
|
||||
- update to 1.0.5 and adapt patches
|
||||
- overflow patch already included
|
||||
- part of acl patch already included
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 21 17:04:00 CEST 2003 - agruen@suse.de
|
||||
|
||||
- Switch to officially reserved bit flag for `no_acl' export
|
||||
option: the previous bit was already allocated.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 8 14:33:57 CEST 2003 - okir@suse.de
|
||||
|
||||
- Fixed off-by-one overflow (#27744)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 8 16:00:01 CEST 2003 - agruen@suse.de
|
||||
|
||||
- Add `no_acl' export option, replaces the nfs_permission_mode
|
||||
nfsd module parameter.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 12 07:19:59 CEST 2003 - kukuk@suse.de
|
||||
|
||||
- Add /var/lib/nfs to filelist
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 13 00:34:35 CEST 2003 - ro@suse.de
|
||||
|
||||
- fix file list
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 28 01:42:47 CET 2003 - ro@suse.de
|
||||
|
||||
- update to 1.0.3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 8 12:56:27 CET 2003 - ro@suse.de
|
||||
|
||||
- added sysconfig metadata (#22663)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 6 15:07:56 CEST 2002 - ro@suse.de
|
||||
|
||||
- rcnfsserver: moved ypbind to should-start (#18952)
|
||||
- rcnfslock: fixed typo killing daemons on "status" (#19046)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 3 15:05:54 CEST 2002 - ro@suse.de
|
||||
|
||||
- changed nfslock from should-start to required-start in
|
||||
nfsserver rc script (is in the same package anyway)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 26 11:47:10 CEST 2002 - okir@suse.de
|
||||
|
||||
- Fixed minor manpage issue (#18326)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 22 11:18:32 CEST 2002 - ro@suse.de
|
||||
|
||||
- fixed symlink rcnfslock (#18171)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 7 17:14:21 CEST 2002 - ro@suse.de
|
||||
|
||||
- move statd and lockd to their own startscript (#17425)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 1 16:47:34 CEST 2002 - ro@suse.de
|
||||
|
||||
- update to 1.0.1
|
||||
- added prereqs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 25 10:16:28 CEST 2002 - okir@suse.de
|
||||
|
||||
- Help users who do not configure a domain name: when
|
||||
sending out NSM_NOTIFY strip off .local suffix if
|
||||
present.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 22 07:54:12 PDT 2002 - okir@suse.de
|
||||
|
||||
- partial fix for http://bugzilla.suse.de/show_bug.cgi?id=16957
|
||||
(missing NSM_NOTIFY call when rebooting).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 16 18:41:22 CEST 2002 - kukuk@suse.de
|
||||
|
||||
- Don't source rc.config (#17025)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 14 01:55:23 CEST 2002 - ro@suse.de
|
||||
|
||||
- run suse_update_config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 26 17:06:41 CET 2002 - ro@suse.de
|
||||
|
||||
- fixed wrong quotes in init-script (#13939)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 6 14:07:06 CET 2002 - ro@suse.de
|
||||
|
||||
- ignore returncodes from killing statd and lockd (#13072)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 6 13:33:08 CET 2002 - ro@suse.de
|
||||
|
||||
- sysconfig/nfs-server -> sysconfig/nfs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 9 11:44:08 CET 2002 - ro@suse.de
|
||||
|
||||
- removed variable NFS_SERVER (#12742)
|
||||
- moved USE_KERNEL_NFSD_NUMBER to /etc/sysconfig/nfs-server
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 26 15:36:25 CEST 2001 - ro@suse.de
|
||||
|
||||
- up to 0.3.3
|
||||
many fixes to canonicalize hostnames in exports
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 24 15:31:29 CEST 2001 - ro@suse.de
|
||||
|
||||
- removed nfs-version 3 detection in start-script, all kernels
|
||||
that have kernel nfsd support usually do have nfsd-v3 support
|
||||
and detection would require at least a 5 sec wait in the script
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 31 09:53:20 CEST 2001 - kukuk@suse.de
|
||||
|
||||
- Fix path to init script in description [Bug #9494]
|
||||
- Fix comment in runlevel section [Bug #9561]
|
||||
- Make init script LSB conform [Bug #9073]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 11 18:39:20 CEST 2001 - ro@suse.de
|
||||
|
||||
- lockd only started for 2.2 kernels instead of ignoring error
|
||||
- completed rpc.statd to /sbin move in startscript
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 12 16:30:48 CET 2001 - ro@suse.de
|
||||
|
||||
- move rpc.lockd, rpc.statd to /sbin
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 12 01:39:10 CET 2001 - ro@suse.de
|
||||
|
||||
- update to 0.3.1
|
||||
- ignore lockd error messages
|
||||
- dump filedescriptors before starting kernel threads
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 6 12:33:46 CET 2001 - ro@suse.de
|
||||
|
||||
- renamed package to nfs-utils
|
||||
- Obsoletes and Provides nfsutils
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 12 01:47:05 CET 2001 - ro@suse.de
|
||||
|
||||
- fixed conflicts: nfs-server (#5548)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 11 23:09:27 CET 2001 - ro@suse.de
|
||||
|
||||
- don't fail if lockd can't be started
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 6 00:44:49 PST 2000 - bk@suse.de
|
||||
|
||||
- fix broken symlinks for %{_mandir}/rpc.{nfs,mount,stat}d.8.gz
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 28 10:30:00 CET 2000 - kukuk@suse.de
|
||||
|
||||
- Move new initscript to /etc/init.d
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 12 18:13:48 CEST 2000 - ro@suse.de
|
||||
|
||||
- exports.4 should be exports.5
|
||||
- removed k-prefix
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 12 15:43:43 CEST 2000 - ro@suse.de
|
||||
|
||||
- added exports.4 man-page
|
||||
- up to 0.2.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 27 11:44:11 CEST 2000 - ro@suse.de
|
||||
|
||||
- update to 0.2
|
||||
- fix for nfsserver.init (check for v3)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 17 15:04:11 CEST 2000 - ro@suse.de
|
||||
|
||||
- ugraded from knfsd to successor package nfs-utils (v.0.1.9.1)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 28 18:31:24 CEST 2000 - bjacke@suse.de
|
||||
|
||||
- fixed checkproc call in init script
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 21 12:05:23 CEST 2000 - kukuk@suse.de
|
||||
|
||||
- Fix missing format string in syslog call (next rpc.statd security
|
||||
problem)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 19 12:03:48 CEST 2000 - kukuk@suse.de
|
||||
|
||||
- Fix problem with NULL h_alias field (rpc.statd security problem)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 22 15:27:47 CEST 2000 - kukuk@suse.de
|
||||
|
||||
- Change conflict from itself to nfsserv
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 18 10:34:13 CEST 2000 - kukuk@suse.de
|
||||
|
||||
- Fix rcnfsserver link
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 15 16:22:26 CEST 2000 - kukuk@suse.de
|
||||
|
||||
- Add rc.config variables and init script from aaa_base
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 16 17:31:37 CET 2000 - kukuk@suse.de
|
||||
|
||||
- Fill out Copyright and Group field
|
||||
- Remove rquotad from file list, it is already in the quota
|
||||
package [Bug 1571]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 25 15:11:24 CET 2000 - ro@suse.de
|
||||
|
||||
- manpages to /usr/share using macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 21 00:26:42 CEST 1999 - ro@suse.de
|
||||
|
||||
- renamed package from linuxnfs to knfsd
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 12 17:56:24 CEST 1999 - garloff@suse.de
|
||||
|
||||
- Fixed filelist (%ghost)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 12 17:27:50 CEST 1999 - garloff@suse.de
|
||||
|
||||
- upgraded to knsfd-1.5.2. Added klockd to file list.
|
||||
Ditto for new /dev/nfsd_netlink.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
|
||||
|
||||
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 24 19:09:12 MEST 1999 - uli@suse.de
|
||||
|
||||
- added -fsigned-char to CFLAGS (PPC)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 17 19:00:48 MEST 1999 - ro@suse.de
|
||||
|
||||
- update to 1.4.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 14 10:27:36 MEST 1999 - kukuk@suse.de
|
||||
|
||||
- update to version 1.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 6 15:51:15 MEST 1999 - kukuk@suse.de
|
||||
|
||||
- update to version 1.3.3b
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 16 13:14:54 MET 1999 - ro@suse.de
|
||||
|
||||
- update to version 1.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 26 11:10:31 MET 1998 - ro@suse.de
|
||||
|
||||
- update to 981122
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 12 18:35:03 MET 1998 - ro@suse.de
|
||||
|
||||
- use lx_hack
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 21 10:30:07 MEST 1998 - ro@suse.de
|
||||
|
||||
- added bugfix for statd (by HJL)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 20 11:16:06 MEST 1998 - ro@suse.de
|
||||
|
||||
- update to knfsd-981014
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 28 11:55:32 MEST 1998 - ro@suse.de
|
||||
|
||||
- initial package / for use a 2.1 kernel with knfsd support is needed
|
476
nfs-utils.spec
Normal file
476
nfs-utils.spec
Normal file
@ -0,0 +1,476 @@
|
||||
#
|
||||
# spec file for package nfs-utils (Version 1.0.10)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: nfs-utils
|
||||
BuildRequires: gcc-c++ krb5-devel libevent librpcsecgss nfsidmap openldap2-devel pkgconfig tcpd-devel
|
||||
URL: http://nfs.sourceforge.net
|
||||
Summary: Support Utilities for Kernel nfsd
|
||||
Version: 1.0.10
|
||||
Release: 25
|
||||
Group: Productivity/Networking/NFS
|
||||
Obsoletes: knfsd linuxnfs nfsutils
|
||||
Provides: knfsd linuxnfs nfsutils
|
||||
License: GNU General Public License (GPL)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: portmap
|
||||
Conflicts: nfs-server
|
||||
PreReq: %fillup_prereq %insserv_prereq
|
||||
Autoreqprov: on
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source0: ftp://ftp.sourceforge.net/pub/sourceforge/n/nf/nfs/nfs-utils-%{version}.tar.bz2
|
||||
Source1: ftp://nfs.sourceforge.net/pub/nfs/nfs.doc.tar.bz2
|
||||
Source10: nfsserver.init
|
||||
Source12: sysconfig.nfs-nfs-utils
|
||||
Source13: idmapd.init
|
||||
Source14: gssd.init
|
||||
Source15: svcgssd.init
|
||||
Source16: nfsserver.xml
|
||||
Patch1: nfs-utils-nsm.patch
|
||||
Patch2: nfs-utils-largefiles.patch
|
||||
Patch3: nfs-utils-anon-uid32.patch
|
||||
Patch4: nfs-utils-noroot.patch
|
||||
Patch5: nfs-utils-gssd-select-ccache.patch
|
||||
Patch6: nfs-utils-krb5.patch
|
||||
|
||||
%description
|
||||
This package contains the NFS utilities. You can tune the number of
|
||||
server threads via the sysconfig variable USE_KERNEL_NFSD_NUMBER. For
|
||||
quota over NFS support, install the quota package.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Olaf Kirch <okir@monad.swb.de>
|
||||
H.J. Lu <hjl@valinux.com>
|
||||
|
||||
%prep
|
||||
%setup -q -a 1
|
||||
%patch1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4
|
||||
%patch5 -p1
|
||||
%patch6
|
||||
|
||||
%build
|
||||
%{?suse_update_config:%{suse_update_config -f }}
|
||||
rm -f configure; autoconf
|
||||
CFLAGS="$RPM_OPT_FLAGS -fPIE -fno-strict-aliasing" LDFLAGS="-pie" ./configure \
|
||||
--mandir=%{_mandir} \
|
||||
--disable-rquotad \
|
||||
--enable-nfsv4 \
|
||||
--enable-gss \
|
||||
--with-krb5=/usr/lib/mit
|
||||
make
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
# we do not need this anymore
|
||||
rm -fv $RPM_BUILD_ROOT/usr/sbin/rpc.statd
|
||||
rm -fv $RPM_BUILD_ROOT/%{_mandir}/man8/statd.8*
|
||||
rm -fv $RPM_BUILD_ROOT/%{_mandir}/man8/rpc.statd.8*
|
||||
# move lockd to /sbin
|
||||
install -d $RPM_BUILD_ROOT/sbin
|
||||
mv $RPM_BUILD_ROOT/usr/sbin/rpc.lockd $RPM_BUILD_ROOT/sbin
|
||||
# rc-script
|
||||
install -d $RPM_BUILD_ROOT/etc/init.d
|
||||
install -m 744 %{SOURCE10} $RPM_BUILD_ROOT/etc/init.d/nfsserver
|
||||
ln -sf ../../etc/init.d/nfsserver $RPM_BUILD_ROOT/usr/sbin/rcnfsserver
|
||||
# sysconfig-data
|
||||
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
||||
install -m 644 %{SOURCE12} $RPM_BUILD_ROOT/var/adm/fillup-templates
|
||||
# remove file provided by util-linux
|
||||
rm -f $RPM_BUILD_ROOT/var/lib/nfs/state
|
||||
# idmapd setup
|
||||
install -m 644 utils/idmapd/idmapd.conf $RPM_BUILD_ROOT/etc/idmapd.conf
|
||||
install -m 755 %{SOURCE13} $RPM_BUILD_ROOT/etc/init.d/idmapd
|
||||
ln -sf ../../etc/init.d/idmapd $RPM_BUILD_ROOT/usr/sbin/rcidmapd
|
||||
#
|
||||
install -m 755 %{SOURCE14} $RPM_BUILD_ROOT/etc/init.d/gssd
|
||||
ln -sf ../../etc/init.d/gssd $RPM_BUILD_ROOT/usr/sbin/rcgssd
|
||||
install -m 755 %{SOURCE15} $RPM_BUILD_ROOT/etc/init.d/svcgssd
|
||||
ln -sf ../../etc/init.d/svcgssd $RPM_BUILD_ROOT/usr/sbin/rcsvcgssd
|
||||
mkdir -p -m 755 $RPM_BUILD_ROOT/var/lib/nfs/rpc_pipefs
|
||||
mkdir -p -m 755 $RPM_BUILD_ROOT/var/lib/nfs/v4recovery
|
||||
mkdir -p -m 755 $RPM_BUILD_ROOT/etc/omc/srvinfo.d
|
||||
install -m 644 %{SOURCE16} $RPM_BUILD_ROOT/etc/omc/srvinfo.d
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%preun
|
||||
%stop_on_removal nfsserver
|
||||
%stop_on_removal idmapd
|
||||
%stop_on_removal gssd
|
||||
%stop_on_removal svcgssd
|
||||
|
||||
%post
|
||||
%{fillup_and_insserv -s nfsserver NFS_SERVER}
|
||||
%{fillup_only -an nfs}
|
||||
%{fillup_only -an idmapd}
|
||||
%{fillup_only -an gssd}
|
||||
%{fillup_only -an svcgssd}
|
||||
|
||||
%postun
|
||||
%restart_on_update nfsserver
|
||||
%restart_on_update idmapd
|
||||
%restart_on_update gssd
|
||||
%restart_on_update svcgssd
|
||||
%insserv_cleanup
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc nfs/*.html nfs/*.ps linux-nfs/*
|
||||
/var/adm/fillup-templates/sysconfig.nfs-nfs-utils
|
||||
%dir /var/lib/nfs
|
||||
%config(noreplace) /var/lib/nfs/xtab
|
||||
%config(noreplace) /var/lib/nfs/etab
|
||||
%config(noreplace) /var/lib/nfs/rmtab
|
||||
%dir /var/lib/nfs/rpc_pipefs
|
||||
%dir /var/lib/nfs/v4recovery
|
||||
/usr/sbin/exportfs
|
||||
/usr/sbin/gss_clnt_send_err
|
||||
/usr/sbin/gss_destroy_creds
|
||||
/usr/sbin/nfsstat
|
||||
/usr/sbin/showmount
|
||||
/usr/sbin/nhfsstone
|
||||
/usr/sbin/nhfsrun
|
||||
/usr/sbin/nhfsnums
|
||||
/usr/sbin/nhfsgraph
|
||||
/usr/sbin/rcnfsserver
|
||||
/usr/sbin/rcidmapd
|
||||
/usr/sbin/rcgssd
|
||||
/usr/sbin/rcsvcgssd
|
||||
/usr/sbin/rpc.mountd
|
||||
/usr/sbin/rpc.nfsd
|
||||
/usr/sbin/rpc.gssd
|
||||
/usr/sbin/rpc.idmapd
|
||||
/usr/sbin/rpc.svcgssd
|
||||
/usr/sbin/rpcdebug
|
||||
/sbin/rpc.lockd
|
||||
%config /etc/init.d/nfsserver
|
||||
%config /etc/init.d/idmapd
|
||||
%config /etc/init.d/gssd
|
||||
%config /etc/init.d/svcgssd
|
||||
%config /etc/idmapd.conf
|
||||
%dir /etc/omc
|
||||
%dir /etc/omc/srvinfo.d
|
||||
%config /etc/omc/srvinfo.d/nfsserver.xml
|
||||
%{_mandir}/man5/exports.5.gz
|
||||
%{_mandir}/man5/idmapd.conf.5.gz
|
||||
%{_mandir}/man7/nfsd.7.gz
|
||||
%{_mandir}/man8/exportfs.8.gz
|
||||
%{_mandir}/man8/nfsstat.8.gz
|
||||
%{_mandir}/man8/nhfsstone.8.gz
|
||||
%{_mandir}/man8/nhfsrun.8.gz
|
||||
%{_mandir}/man8/nhfsnums.8.gz
|
||||
%{_mandir}/man8/nhfsgraph.8.gz
|
||||
%{_mandir}/man8/showmount.8.gz
|
||||
%{_mandir}/man8/mountd.8.gz
|
||||
%{_mandir}/man8/rpc.gssd.8.gz
|
||||
%{_mandir}/man8/rpc.idmapd.8.gz
|
||||
%{_mandir}/man8/rpc.mountd.8.gz
|
||||
%{_mandir}/man8/rpc.lockd.8.gz
|
||||
%{_mandir}/man8/nfsd.8.gz
|
||||
%{_mandir}/man8/rpc.nfsd.8.gz
|
||||
%{_mandir}/man8/lockd.8.gz
|
||||
%{_mandir}/man8/gssd.8.gz
|
||||
%{_mandir}/man8/idmapd.8.gz
|
||||
%{_mandir}/man8/svcgssd.8.gz
|
||||
%{_mandir}/man8/rpc.svcgssd.8.gz
|
||||
%{_mandir}/man8/rpcdebug.8.gz
|
||||
|
||||
%changelog -n nfs-utils
|
||||
* Mon Dec 18 2006 - ro@suse.de
|
||||
- added nfsserver.xml to /etc/omc/srvinfo.d (fate#301835)
|
||||
* Tue Aug 08 2006 - ro@suse.de
|
||||
- update to 1.0.10
|
||||
remove upstreamed patches:
|
||||
- nfs-utils-1.0.6-anon-exports.patch
|
||||
- export-acl.diff
|
||||
- nfs-utils-1.0.6-dep.patch
|
||||
- nfs-utils-1.0.6-doc.patch
|
||||
- nfs-utils-1.0.7-CITI_NFS4_ALL-2.dif
|
||||
- nfs-utils-1.0.7-destdir.patch
|
||||
- nfs-utils-1.0.7-gssapi.patch
|
||||
- nfs-utils-1.0.7-headtail.patch
|
||||
- nfs-utils-1.0.7-mount_type3.patch
|
||||
- nfs-utils-1.0.7-no_sync_warn_ro.patch
|
||||
- nfs-utils-1.0.7-rpcgen.patch
|
||||
- nfs-utils-1.0.7-strip.patch
|
||||
- nfs-utils-64bigendian.patch
|
||||
- nfs-utils-1.0.6-quota.patch (upstream different)
|
||||
partly upstreamed patches:
|
||||
- nfs-utils-1.0.6-anon-uid32.patch
|
||||
- nfs-utils-1.0.7-gssd-select-ccache.patch
|
||||
redone patches:
|
||||
- nfs-utils-noroot.patch (was: norootforbuild.diff)
|
||||
- pass -fPIE to configure instead of patch
|
||||
* Thu Jul 13 2006 - aj@suse.de
|
||||
- Fix off-by-one error in rpcgen.
|
||||
* Fri Jun 23 2006 - ro@suse.de
|
||||
- find kerberos ticket files even if /tmp on reiser (#187775)
|
||||
* Wed Jun 21 2006 - ro@suse.de
|
||||
- fix /etc/gssapi_mech.conf for lib64 platforms (#186954)
|
||||
* Mon Jun 12 2006 - ro@suse.de
|
||||
- added support for type 3 filehandles to mountd (#182552)
|
||||
* Fri Jun 02 2006 - ro@suse.de
|
||||
- disable v4 support in rcnfsserver if NFS4_SUPPORT is
|
||||
not set to "yes" (#178633)
|
||||
* Fri Jun 02 2006 - ro@suse.de
|
||||
- added fix for 64bit bigendian platforms in gssd (#172605)
|
||||
* Tue May 02 2006 - okir@suse.de
|
||||
- gracefully handle repeated "rcidmapd stop" calls (#169087)
|
||||
* Mon Apr 24 2006 - ro@suse.de
|
||||
- nfs-server rc-script: make force-reload do as reload does
|
||||
(#167152)
|
||||
- nfs-server rc-script: reload idmapd if NFSV4 is on (#167016)
|
||||
* Thu Mar 23 2006 - okir@suse.de
|
||||
- Make gssd and svcgssd scripts mount rpc_pipefs if not there
|
||||
(#158000) and added "Should-start: krb5kdc" to make sure
|
||||
the KDC is started first if running on the same server (#159980)
|
||||
* Tue Jan 31 2006 - okir@suse.de
|
||||
- Load RPCSEC_GSS kernel modules in rcgssd/rcsvcgssd init
|
||||
scripts (#142352)
|
||||
- Enable NFSv4 by default
|
||||
* Fri Jan 27 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Wed Jan 25 2006 - ro@suse.de
|
||||
- nfsserver rcscript: only mount nfsdfs if not mounted already
|
||||
* Tue Jan 17 2006 - schwab@suse.de
|
||||
- Don't strip binaries.
|
||||
* Mon Dec 19 2005 - mmj@suse.de
|
||||
- fix filelist
|
||||
* Mon Nov 28 2005 - ro@suse.de
|
||||
- fix init scripts: in the stop case, a not running service
|
||||
is not an error (#134904)
|
||||
* Mon Nov 14 2005 - ro@suse.de
|
||||
- packaging /var/lib/nfs/v4recovery directory (#133502)
|
||||
* Thu Sep 01 2005 - okir@suse.de
|
||||
- packaging /var/lib/nfs/rpc_pipefs directory (#114103)
|
||||
* Thu Aug 25 2005 - ro@suse.de
|
||||
- modify nfs-server script to support uml case (#86624)
|
||||
* Fri Aug 19 2005 - okir@suse.de
|
||||
- added NFS4_SUPPORT and NFS_SECURITY_GSS to sysconfig.nfs
|
||||
- updated the idmapd script so it honors NFS4_SUPPORT
|
||||
- updated gssd script so it honors NFS_SECURITY_GSS
|
||||
- added svcgssd script
|
||||
* Mon Jun 20 2005 - ro@suse.de
|
||||
- fix in init-script (do not try unmount if not mounted) (#91460)
|
||||
* Mon Jun 06 2005 - schwab@suse.de
|
||||
- Install correct init script.
|
||||
* Fri Jun 03 2005 - kukuk@suse.de
|
||||
- Compile with -fpie/-pie
|
||||
* Tue May 31 2005 - okir@suse.de
|
||||
- Enabled NFSv4 and RPCSEC_GSS support
|
||||
* Tue Apr 19 2005 - ro@suse.de
|
||||
- do not warn about sync/async for readonly exports (#78369)
|
||||
* Mon Apr 04 2005 - ro@suse.de
|
||||
- make it build with gcc4
|
||||
* Sat Feb 05 2005 - schwab@suse.de
|
||||
- Update to nfs-utils 1.0.7.
|
||||
- Make non-anonymous exports work again.
|
||||
- Use BuildRoot.
|
||||
* Mon Dec 13 2004 - ro@suse.de
|
||||
- update to 1.0.7-pre2 (use 1.0.6.2 as package version)
|
||||
- disable gss and nfsv4 for now
|
||||
* Thu Dec 09 2004 - okir@suse.de
|
||||
- make anonymous exports work again (#46918)
|
||||
* Mon Aug 30 2004 - ro@suse.de
|
||||
- added sysconfig variable to allow running mountd on a
|
||||
defined port
|
||||
* Mon Aug 30 2004 - okir@suse.de
|
||||
- Fix to prevent mountd from crashing on kernel upcalls
|
||||
* Fri Aug 27 2004 - okir@suse.de
|
||||
- Fix a permission problem after using exportfs -u
|
||||
* Tue Aug 24 2004 - ro@suse.de
|
||||
- remove "exportfs -au" from rcnfsserver stop
|
||||
(kernel zaps table on last server exit anyway) (#44049)
|
||||
* Thu Jun 24 2004 - ro@suse.de
|
||||
- added patch from okir to use nobody:nogroup again by default
|
||||
for anonymous (#42288)
|
||||
* Tue Jun 22 2004 - ro@suse.de
|
||||
- remove nfslock start script
|
||||
- remove nfslock dependency
|
||||
* Thu Jun 17 2004 - ro@suse.de
|
||||
- mount nfsd filesystem if possible (#41955)
|
||||
* Wed Mar 31 2004 - mmj@suse.de
|
||||
- Remove unpackaged files
|
||||
* Wed Mar 31 2004 - mmj@suse.de
|
||||
- Move sm-notify to util-linux [#36737]
|
||||
* Fri Mar 26 2004 - ro@suse.de
|
||||
- remove rpc.statd completely
|
||||
- add sm-notify and call it first in nfslock script (#36737)
|
||||
* Tue Feb 03 2004 - ro@suse.de
|
||||
- disable rquotad already in configure
|
||||
(no need to compile it, if we only remove it later)
|
||||
* Tue Jan 20 2004 - okir@suse.de
|
||||
- Include patch that allows Sun boxes to mount large files
|
||||
* Mon Sep 15 2003 - ro@suse.de
|
||||
- update to version 1.0.6 to fix a possible segfault in statd
|
||||
- support for 2.6 kernels
|
||||
* Fri Aug 29 2003 - ro@suse.de
|
||||
- fix hed/tail calling syntax (#29644)
|
||||
* Mon Aug 25 2003 - ro@suse.de
|
||||
- add restart_on_update/stop_on_removal macros
|
||||
* Fri Aug 15 2003 - ro@suse.de
|
||||
- added sysconfig metadata (#28908)
|
||||
* Tue Aug 05 2003 - ro@suse.de
|
||||
- fix compile for rquotad (unused anyway
|
||||
* Thu Jul 31 2003 - ro@suse.de
|
||||
- add support for STATD_HOSTNAME (#28201)
|
||||
* Mon Jul 28 2003 - ro@suse.de
|
||||
- update to 1.0.5 and adapt patches
|
||||
- overflow patch already included
|
||||
- part of acl patch already included
|
||||
* Mon Jul 21 2003 - agruen@suse.de
|
||||
- Switch to officially reserved bit flag for `no_acl' export
|
||||
option: the previous bit was already allocated.
|
||||
* Tue Jul 08 2003 - agruen@suse.de
|
||||
- Add `no_acl' export option, replaces the nfs_permission_mode
|
||||
nfsd module parameter.
|
||||
* Tue Jul 08 2003 - okir@suse.de
|
||||
- Fixed off-by-one overflow (#27744)
|
||||
* Thu Jun 12 2003 - kukuk@suse.de
|
||||
- Add /var/lib/nfs to filelist
|
||||
* Tue May 13 2003 - ro@suse.de
|
||||
- fix file list
|
||||
* Fri Mar 28 2003 - ro@suse.de
|
||||
- update to 1.0.3
|
||||
* Wed Jan 08 2003 - ro@suse.de
|
||||
- added sysconfig metadata (#22663)
|
||||
* Fri Sep 06 2002 - ro@suse.de
|
||||
- rcnfsserver: moved ypbind to should-start (#18952)
|
||||
- rcnfslock: fixed typo killing daemons on "status" (#19046)
|
||||
* Tue Sep 03 2002 - ro@suse.de
|
||||
- changed nfslock from should-start to required-start in
|
||||
nfsserver rc script (is in the same package anyway)
|
||||
* Mon Aug 26 2002 - okir@suse.de
|
||||
- Fixed minor manpage issue (#18326)
|
||||
* Thu Aug 22 2002 - ro@suse.de
|
||||
- fixed symlink rcnfslock (#18171)
|
||||
* Wed Aug 07 2002 - ro@suse.de
|
||||
- move statd and lockd to their own startscript (#17425)
|
||||
* Thu Aug 01 2002 - ro@suse.de
|
||||
- update to 1.0.1
|
||||
- added prereqs
|
||||
* Thu Jul 25 2002 - okir@suse.de
|
||||
- Help users who do not configure a domain name: when
|
||||
sending out NSM_NOTIFY strip off .local suffix if
|
||||
present.
|
||||
* Mon Jul 22 2002 - okir@suse.de
|
||||
- partial fix for http://bugzilla.suse.de/show_bug.cgi?id=16957
|
||||
(missing NSM_NOTIFY call when rebooting).
|
||||
* Tue Jul 16 2002 - kukuk@suse.de
|
||||
- Don't source rc.config (#17025)
|
||||
* Fri Jun 14 2002 - ro@suse.de
|
||||
- run suse_update_config
|
||||
* Tue Feb 26 2002 - ro@suse.de
|
||||
- fixed wrong quotes in init-script (#13939)
|
||||
* Wed Feb 06 2002 - ro@suse.de
|
||||
- ignore returncodes from killing statd and lockd (#13072)
|
||||
* Wed Feb 06 2002 - ro@suse.de
|
||||
- sysconfig/nfs-server -> sysconfig/nfs
|
||||
* Wed Jan 09 2002 - ro@suse.de
|
||||
- removed variable NFS_SERVER (#12742)
|
||||
- moved USE_KERNEL_NFSD_NUMBER to /etc/sysconfig/nfs-server
|
||||
* Wed Sep 26 2001 - ro@suse.de
|
||||
- up to 0.3.3
|
||||
many fixes to canonicalize hostnames in exports
|
||||
* Fri Aug 24 2001 - ro@suse.de
|
||||
- removed nfs-version 3 detection in start-script, all kernels
|
||||
that have kernel nfsd support usually do have nfsd-v3 support
|
||||
and detection would require at least a 5 sec wait in the script
|
||||
* Tue Jul 31 2001 - kukuk@suse.de
|
||||
- Fix path to init script in description [Bug #9494]
|
||||
- Fix comment in runlevel section [Bug #9561]
|
||||
- Make init script LSB conform [Bug #9073]
|
||||
* Wed Apr 11 2001 - ro@suse.de
|
||||
- lockd only started for 2.2 kernels instead of ignoring error
|
||||
- completed rpc.statd to /sbin move in startscript
|
||||
* Mon Mar 12 2001 - ro@suse.de
|
||||
- move rpc.lockd, rpc.statd to /sbin
|
||||
* Mon Mar 12 2001 - ro@suse.de
|
||||
- update to 0.3.1
|
||||
- ignore lockd error messages
|
||||
- dump filedescriptors before starting kernel threads
|
||||
* Tue Feb 06 2001 - ro@suse.de
|
||||
- renamed package to nfs-utils
|
||||
- Obsoletes and Provides nfsutils
|
||||
* Fri Jan 12 2001 - ro@suse.de
|
||||
- fixed conflicts: nfs-server (#5548)
|
||||
* Thu Jan 11 2001 - ro@suse.de
|
||||
- don't fail if lockd can't be started
|
||||
* Wed Dec 06 2000 - bk@suse.de
|
||||
- fix broken symlinks for %%{_mandir}/rpc.{nfs,mount,stat}d.8.gz
|
||||
* Tue Nov 28 2000 - kukuk@suse.de
|
||||
- Move new initscript to /etc/init.d
|
||||
* Thu Oct 12 2000 - ro@suse.de
|
||||
- exports.4 should be exports.5
|
||||
- removed k-prefix
|
||||
* Thu Oct 12 2000 - ro@suse.de
|
||||
- added exports.4 man-page
|
||||
- up to 0.2.1
|
||||
* Wed Sep 27 2000 - ro@suse.de
|
||||
- update to 0.2
|
||||
- fix for nfsserver.init (check for v3)
|
||||
* Thu Aug 17 2000 - ro@suse.de
|
||||
- ugraded from knfsd to successor package nfs-utils (v.0.1.9.1)
|
||||
* Fri Jul 28 2000 - bjacke@suse.de
|
||||
- fixed checkproc call in init script
|
||||
* Fri Jul 21 2000 - kukuk@suse.de
|
||||
- Fix missing format string in syslog call (next rpc.statd security
|
||||
problem)
|
||||
* Wed Jul 19 2000 - kukuk@suse.de
|
||||
- Fix problem with NULL h_alias field (rpc.statd security problem)
|
||||
* Thu Jun 22 2000 - kukuk@suse.de
|
||||
- Change conflict from itself to nfsserv
|
||||
* Tue Apr 18 2000 - kukuk@suse.de
|
||||
- Fix rcnfsserver link
|
||||
* Sat Apr 15 2000 - kukuk@suse.de
|
||||
- Add rc.config variables and init script from aaa_base
|
||||
* Wed Feb 16 2000 - kukuk@suse.de
|
||||
- Fill out Copyright and Group field
|
||||
- Remove rquotad from file list, it is already in the quota
|
||||
package [Bug 1571]
|
||||
* Tue Jan 25 2000 - ro@suse.de
|
||||
- manpages to /usr/share using macro
|
||||
* Thu Oct 21 1999 - ro@suse.de
|
||||
- renamed package from linuxnfs to knfsd
|
||||
* Tue Oct 12 1999 - garloff@suse.de
|
||||
- Fixed filelist (%%ghost)
|
||||
* Tue Oct 12 1999 - garloff@suse.de
|
||||
- upgraded to knsfd-1.5.2. Added klockd to file list.
|
||||
Ditto for new /dev/nfsd_netlink.
|
||||
* Mon Sep 13 1999 - bs@suse.de
|
||||
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
||||
* Tue Aug 24 1999 - uli@suse.de
|
||||
- added -fsigned-char to CFLAGS (PPC)
|
||||
* Sat Jul 17 1999 - ro@suse.de
|
||||
- update to 1.4.6
|
||||
* Mon Jun 14 1999 - kukuk@suse.de
|
||||
- update to version 1.4
|
||||
* Sun Jun 06 1999 - kukuk@suse.de
|
||||
- update to version 1.3.3b
|
||||
* Tue Mar 16 1999 - ro@suse.de
|
||||
- update to version 1.2
|
||||
* Thu Nov 26 1998 - ro@suse.de
|
||||
- update to 981122
|
||||
* Thu Nov 12 1998 - ro@suse.de
|
||||
- use lx_hack
|
||||
* Wed Oct 21 1998 - ro@suse.de
|
||||
- added bugfix for statd (by HJL)
|
||||
* Tue Oct 20 1998 - ro@suse.de
|
||||
- update to knfsd-981014
|
||||
* Mon Sep 28 1998 - ro@suse.de
|
||||
- initial package / for use a 2.1 kernel with knfsd support is needed
|
3
nfs.doc.tar.bz2
Normal file
3
nfs.doc.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8182ddf316a1c72b4edaf982b3f4a76542b6ac792b451e314792dc6b3318210e
|
||||
size 69695
|
159
nfsserver.init
Normal file
159
nfsserver.init
Normal file
@ -0,0 +1,159 @@
|
||||
#! /bin/sh
|
||||
# Copyright (c) 1996 - 2001 SuSE GmbH Nuernberg, Germany. All rights reserved.
|
||||
#
|
||||
# Author: Florian La Roche <florian@suse.de>, 1996
|
||||
# Werner Fink <werner@suse.de>, 1996,98
|
||||
# Burchard Steinbild <bs@suse.de>, 1997
|
||||
# Thorsten Kukuk <kukuk@suse.de>, 2000,01
|
||||
#
|
||||
# /etc/init.d/nfsserver
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: nfsserver
|
||||
# Required-Start: $network $remote_fs $named portmap
|
||||
# Required-Stop: $network portmap
|
||||
# Should-Start: ypbind svcgssd idmapd
|
||||
# Should-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Description: Start the kernel based NFS daemon
|
||||
### END INIT INFO
|
||||
|
||||
. /etc/sysconfig/nfs
|
||||
|
||||
# Shell functions sourced from /etc/rc.status:
|
||||
# rc_check check and set local and overall rc status
|
||||
# rc_status check and set local and overall rc status
|
||||
# rc_status -v ditto but be verbose in local rc status
|
||||
# rc_status -v -r ditto and clear the local rc status
|
||||
# rc_failed set local and overall rc status to failed
|
||||
# rc_failed <num> set local and overall rc status to <num><num>
|
||||
# rc_reset clear local rc status (overall remains)
|
||||
# rc_exit exit appropriate to overall rc status
|
||||
. /etc/rc.status
|
||||
|
||||
# First reset status of this service
|
||||
rc_reset
|
||||
|
||||
# Return values acc. to LSB for all commands but status:
|
||||
# 0 - success
|
||||
# 1 - generic or unspecified error
|
||||
# 2 - invalid or excess argument(s)
|
||||
# 3 - unimplemented feature (e.g. "reload")
|
||||
# 4 - insufficient privilege
|
||||
# 5 - program is not installed
|
||||
# 6 - program is not configured
|
||||
# 7 - program is not running
|
||||
#
|
||||
# Note that starting an already running service, stopping
|
||||
# or restarting a not-running service as well as the restart
|
||||
# with force-reload (in case signalling is not supported) are
|
||||
# considered a success.
|
||||
|
||||
case `uname -r` in
|
||||
0.*|1.*|2.0.*) exit 3
|
||||
esac
|
||||
|
||||
check_for_nfsdfs() {
|
||||
HAVE_NFSDFS="no"
|
||||
while read dummy type ; do
|
||||
if [ "$type" = "nfsd" ] ; then
|
||||
HAVE_NFSDFS="yes"
|
||||
fi
|
||||
done < /proc/filesystems
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
PARAMS=3
|
||||
test "$USE_KERNEL_NFSD_NUMBER" -gt 0 && PARAMS="$USE_KERNEL_NFSD_NUMBER"
|
||||
|
||||
echo -n "Starting kernel based NFS server"
|
||||
modprobe nfsd
|
||||
check_for_nfsdfs
|
||||
if [ "$HAVE_NFSDFS" = "yes" -a ! -f /proc/fs/nfsd/exports ] ; then
|
||||
mount -t nfsd nfsd /proc/fs/nfsd
|
||||
rc_status
|
||||
fi
|
||||
if [ "$NFS4_SUPPORT" = "yes" ]; then
|
||||
echo "+2 +3 +4" > /proc/fs/nfsd/versions
|
||||
else
|
||||
echo "+2 +3 -4" > /proc/fs/nfsd/versions
|
||||
fi
|
||||
/usr/sbin/exportfs -r
|
||||
rc_status
|
||||
/usr/sbin/rpc.nfsd $PARAMS
|
||||
rc_status
|
||||
if [ -n "$MOUNTD_PORT" ] ; then
|
||||
startproc /usr/sbin/rpc.mountd -p $MOUNTD_PORT
|
||||
else
|
||||
startproc /usr/sbin/rpc.mountd
|
||||
fi
|
||||
if [ "$NFS4_SUPPORT" = "yes" ]; then
|
||||
checkproc /usr/sbin/rpc.idmapd
|
||||
if [ $? -eq 0 ] ; then
|
||||
## Let idmapd know that nfs server is starting up
|
||||
/etc/init.d/idmapd reload
|
||||
fi
|
||||
fi
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down kernel based NFS server"
|
||||
killproc -n -KILL nfsd
|
||||
rc_status
|
||||
killproc -TERM /usr/sbin/rpc.mountd
|
||||
rc_status
|
||||
check_for_nfsdfs
|
||||
if [ "$HAVE_NFSDFS" = "yes" -a -f /proc/fs/nfsd/exports ] ; then
|
||||
umount /proc/fs/nfsd
|
||||
rc_status
|
||||
fi
|
||||
rc_status -v
|
||||
;;
|
||||
try-restart)
|
||||
## Stop the service and if this succeeds (i.e. the
|
||||
## service was running before), start it again.
|
||||
$0 status >/dev/null && $0 restart
|
||||
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
## Stop the service and regardless of whether it was
|
||||
## running or not, start it again.
|
||||
$0 stop
|
||||
$0 start
|
||||
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
reload|force-reload)
|
||||
echo -n "Reload kernel based NFS server"
|
||||
/usr/sbin/exportfs -r
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for kernel based NFS server: "
|
||||
## Check status with checkproc(8), if process is running
|
||||
## checkproc will return with exit status 0.
|
||||
|
||||
# Status has a slightly different for the status command:
|
||||
# 0 - service running
|
||||
# 1 - service dead, but /var/run/ pid file exists
|
||||
# 2 - service dead, but /var/lock/ lock file exists
|
||||
# 3 - service not running
|
||||
|
||||
# NOTE: checkproc returns LSB compliant status values.
|
||||
checkproc /usr/sbin/rpc.mountd
|
||||
rc_status
|
||||
checkproc -n nfsd
|
||||
rc_status -v
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
rc_exit
|
90
nfsserver.xml
Normal file
90
nfsserver.xml
Normal file
@ -0,0 +1,90 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
Copyright (c) 2006 Novell, Inc. All rights reserved.
|
||||
|
||||
|
||||
Service Description XML Document for NFS.
|
||||
|
||||
This file should be placed in /etc/omc/svcinfo.d
|
||||
|
||||
Note: The name of the service is the name of this file without the .xml
|
||||
file extension.
|
||||
-->
|
||||
|
||||
<serviceDescription version="1.0">
|
||||
|
||||
<!-- Caption for display purposes -->
|
||||
<caption>NFS Server</caption>
|
||||
|
||||
<!-- Description of this service -->
|
||||
<description>
|
||||
Network File Systems (NFS) Server
|
||||
</description>
|
||||
|
||||
|
||||
<!--
|
||||
The startCommand tag specifies the command line that will be
|
||||
invoked to start the service. The return code from this command
|
||||
must be as follows:
|
||||
0 - success
|
||||
1 - generic or unspecified error
|
||||
2 - invalid or excess argument(s)
|
||||
3 - unimplemented feature (e.g. "reload")
|
||||
4 - user had insufficient privileges
|
||||
5 - program is not installed
|
||||
6 - program is not configured
|
||||
7 - program is not running
|
||||
-->
|
||||
<startCommand>/usr/sbin/rcnfsserver start</startCommand>
|
||||
|
||||
<!--
|
||||
The reStartCommand tag specifies the command line that will be
|
||||
invoked to restart the service. The return code from this command
|
||||
must be as specified in the startCommand tag.
|
||||
-->
|
||||
<reStartCommand>/usr/sbin/rcnfsserver restart</reStartCommand>
|
||||
|
||||
<!--
|
||||
The stopCommand tag specifies the command line that will be
|
||||
invoked to stop the service. The return code from this command
|
||||
must be as specified in the startCommand tag.
|
||||
-->
|
||||
<stopCommand>/usr/sbin/rcnfsserver stop</stopCommand>
|
||||
|
||||
<!--
|
||||
The statusCommand specifies the command line that can be run
|
||||
that will report on the status of the service. The return code
|
||||
from this command line should be as follows:
|
||||
0 - service up and running
|
||||
1 - service dead, but /var/run/ pid file exists
|
||||
2 - service dead, but /var/lock/ lock file exists
|
||||
3 - service not running (unused)
|
||||
4 - service status unknown :-(
|
||||
-->
|
||||
<statusCommand>/usr/sbin/rcnfsserver status</statusCommand>
|
||||
<!--
|
||||
The processInformation tag allows the XML Service provider to
|
||||
identify the processes that belong to the service. This allows
|
||||
the ServiceProcess associations to be instrumented.
|
||||
If the process_information tag is not specifed, the will be no
|
||||
ServiceProcess association for the service.
|
||||
-->
|
||||
|
||||
<processInformation>
|
||||
<name>nfsd</name>
|
||||
<modulePath>nfsd</modulePath>
|
||||
</processInformation>
|
||||
|
||||
<!--
|
||||
Define the services that this service has a dependency on.
|
||||
There must be a corresponding Service Description XML file
|
||||
for the antecedent service in the /etc/omc/svcinfo.d directory.
|
||||
-->
|
||||
<dependsOn>
|
||||
<serviceName>network</serviceName>
|
||||
<serviceName>named</serviceName>
|
||||
<serviceName>portmap</serviceName>
|
||||
</dependsOn>
|
||||
|
||||
|
||||
</serviceDescription>
|
137
svcgssd.init
Normal file
137
svcgssd.init
Normal file
@ -0,0 +1,137 @@
|
||||
#! /bin/sh
|
||||
# Copyright (c) 1996 - 2005 SuSE GmbH Nuernberg, Germany. All rights reserved.
|
||||
#
|
||||
# Author: Florian La Roche <florian@suse.de>, 1996
|
||||
# Werner Fink <werner@suse.de>, 1996,98
|
||||
# Burchard Steinbild <bs@suse.de>, 1997
|
||||
# Thorsten Kukuk <kukuk@suse.de>, 2000,01
|
||||
#
|
||||
# /etc/init.d/svcgssd
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: svcgssd
|
||||
# Required-Start: $network $remote_fs $named portmap
|
||||
# Required-Stop: $network portmap
|
||||
# Should-Start: ypbind krb5kdc
|
||||
# Should-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Description: Start the RPC GSS security daemon
|
||||
### END INIT INFO
|
||||
|
||||
. /etc/sysconfig/nfs
|
||||
|
||||
# Shell functions sourced from /etc/rc.status:
|
||||
# rc_check check and set local and overall rc status
|
||||
# rc_status check and set local and overall rc status
|
||||
# rc_status -v ditto but be verbose in local rc status
|
||||
# rc_status -v -r ditto and clear the local rc status
|
||||
# rc_failed set local and overall rc status to failed
|
||||
# rc_failed <num> set local and overall rc status to <num><num>
|
||||
# rc_reset clear local rc status (overall remains)
|
||||
# rc_exit exit appropriate to overall rc status
|
||||
. /etc/rc.status
|
||||
|
||||
# First reset status of this service
|
||||
rc_reset
|
||||
|
||||
# Return values acc. to LSB for all commands but status:
|
||||
# 0 - success
|
||||
# 1 - generic or unspecified error
|
||||
# 2 - invalid or excess argument(s)
|
||||
# 3 - unimplemented feature (e.g. "reload")
|
||||
# 4 - insufficient privilege
|
||||
# 5 - program is not installed
|
||||
# 6 - program is not configured
|
||||
# 7 - program is not running
|
||||
#
|
||||
# Note that starting an already running service, stopping
|
||||
# or restarting a not-running service as well as the restart
|
||||
# with force-reload (in case signalling is not supported) are
|
||||
# considered a success.
|
||||
|
||||
function mount_rpc_pipefs {
|
||||
|
||||
# See if the file system is there yet
|
||||
case `stat -c "%t" -f /var/lib/nfs/rpc_pipefs` in
|
||||
*67596969*)
|
||||
return 0;;
|
||||
esac
|
||||
|
||||
echo -n " (mounting rpc_pipefs)"
|
||||
mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs
|
||||
}
|
||||
|
||||
case $NFS_SECURITY_GSS in
|
||||
[Nn]*) flavors="";;
|
||||
[Yy]*) flavors=krb5;;
|
||||
*) flavors="$NFS_SECURITY_GSS";;
|
||||
esac
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting RPC GSS security daemon"
|
||||
if [ -n "$flavors" ]; then
|
||||
echo -n " ($flavors)"
|
||||
for flavor in $flavors; do
|
||||
/sbin/modprobe rpcsec_gss_$flavor
|
||||
done
|
||||
|
||||
mount_rpc_pipefs
|
||||
/usr/sbin/rpc.svcgssd
|
||||
rc_status -v
|
||||
else
|
||||
rc_status -u
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if checkproc /usr/sbin/rpc.svcgssd; then
|
||||
echo -n "Shutting down RPC GSS security daemon"
|
||||
killproc -TERM /usr/sbin/rpc.svcgssd
|
||||
rc_status -v
|
||||
fi
|
||||
;;
|
||||
try-restart)
|
||||
## Stop the service and if this succeeds (i.e. the
|
||||
## service was running before), start it again.
|
||||
$0 status >/dev/null && $0 restart
|
||||
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
## Stop the service and regardless of whether it was
|
||||
## running or not, start it again.
|
||||
$0 stop
|
||||
$0 start
|
||||
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
reload|force-reload)
|
||||
if checkproc /usr/sbin/rpc.svcgssd; then
|
||||
$0 restart
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for RPC GSS security daemon: "
|
||||
## Check status with checkproc(8), if process is running
|
||||
## checkproc will return with exit status 0.
|
||||
|
||||
# Status has a slightly different for the status command:
|
||||
# 0 - service running
|
||||
# 1 - service dead, but /var/run/ pid file exists
|
||||
# 2 - service dead, but /var/lock/ lock file exists
|
||||
# 3 - service not running
|
||||
|
||||
# NOTE: checkproc returns LSB compliant status values.
|
||||
checkproc /usr/sbin/rpc.svcgssd
|
||||
rc_status -v
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
rc_exit
|
42
sysconfig.nfs-nfs-utils
Normal file
42
sysconfig.nfs-nfs-utils
Normal file
@ -0,0 +1,42 @@
|
||||
## Path: Network/File systems/NFS server
|
||||
## Description: number of threads for kernel nfs server
|
||||
## Type: integer
|
||||
## Default: 4
|
||||
## ServiceRestart: nfsserver
|
||||
#
|
||||
# the kernel nfs-server supports multiple server threads
|
||||
#
|
||||
USE_KERNEL_NFSD_NUMBER="4"
|
||||
|
||||
## Path: Network/File systems/NFS server
|
||||
## Description: use fixed port number for mountd
|
||||
## Type: integer
|
||||
## Default: ""
|
||||
## ServiceRestart: nfsserver
|
||||
#
|
||||
# Only set this if you want to start mountd on a fixed
|
||||
# port instead of the port assigned by rpc. Only for use
|
||||
# to export nfs-filesystems through firewalls.
|
||||
#
|
||||
MOUNTD_PORT=""
|
||||
|
||||
## Path: Network/File systems/NFS server
|
||||
## Description: GSS security for NFS
|
||||
## Type: yesno
|
||||
## Default: yes
|
||||
## ServiceRestart: gssd
|
||||
#
|
||||
# Enable RPCSEC_GSS security for NFS (yes/no)
|
||||
#
|
||||
NFS_SECURITY_GSS="no"
|
||||
|
||||
## Path: Network/File systems/NFS server
|
||||
## Description: NFSv4 protocol support
|
||||
## Type: yesno
|
||||
## Default: yes
|
||||
## ServiceRestart: idmapd
|
||||
#
|
||||
# Enable NFSv4 support (yes/no)
|
||||
#
|
||||
NFS4_SUPPORT="yes"
|
||||
|
Loading…
x
Reference in New Issue
Block a user