ef55f35a54
- Add explicit pkgconfig(libkeyutils) BuildRequires: nfs-utils requires this for nfsv4 and we should not rely on the devel package being brought in by other deps. - Rename all drop-in options.conf files as 10-options.conf This makes it easier for other packages to over-ride with a drop-in with a later sequence number. resource-agents does this. (bsc#1207843) - Add 0006-nfsd-allow-server-scope-to-be-set-with-config-or-com.patch Allow server scope to be set - removes the need to run nfsd inside a private UTS namespace for fail-over applications (bsc#1203746) - sysconfig.nfs, nfs.conf: allow NFSv4 grace time to be set via sysconfig. SLE12 allowed this, SLE15 lost the ability. Add it back with the name NFSV4GRACETIME. Also improve description for NFSV4LEASETIME. (bsc#1202592) - Update to version 2.6.2 - https://kernel.org/pub/linux/utils/nfs-utils/2.6.2/2.6.2-Changelog - Remove patches from this release: - gcc12-fix.patch - 0001-systemd-Apply-all-sysctl-settings-when-NFS-related-m.patch - 0002-Update-autoconfig-files-to-work-with-v2.71.patch - 0003-autoconf-change-tirpc-to-check-for-a-file-not-for-an.patch - 0004-modprobe-protect-against-sysctl-errors.patch - Refresh nfs-utils-1.0.7-bind-syntax.patch - Added files: - /usr/lib/udev/rules.d/99-nfs.rules - /usr/libexec/nfsrahead - /usr/sbin/rpcctl - /usr/share/man/man5/nfsrahead.5.gz - /usr/share/man/man8/rpcctl.8.gz - Sort man page entries in %files section - 0004-modprobe-protect-against-sysctl-errors.patch 0005-modprobe-avoid-error-messages-if-sbin-sysctl-fail.patch Suppress any errors from /sbin/sysctl, if for example, it isn't installed (bsc#1200710) - 0001-systemd-Apply-all-sysctl-settings-when-NFS-related-m.patch Ensure sysctl setting work (bsc#1199856) - 0002-Update-autoconfig-files-to-work-with-v2.71.patch - 0003-autoconf-change-tirpc-to-check-for-a-file-not-for-an.patch Update for latest autoconf - switch to https urls - drop reenable-nfsv2.patch (poo#106679) - add reenable-nfsv2.patch for reverting nfsv2 deprecation until test coverage is fixed (poo#106679) - Add gcc12-fix.patch upstream fix for GCC 12 compiler. - Update to version 2.6.1 - https://kernel.org/pub/linux/utils/nfs-utils/2.6.1/2.6.1-Changelog - remove patches from this release: - 0001-gssd-fix-crash-in-debug-message.patch, - Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch - Add CONFIG parameter to %sysusers_generate_pre - Remove unneeded group line (user implies group) - Add Shell parameter to statd-user.conf - add Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch and use it to move last few binaries from /sbin to /usr/sbin (bsc#1191082) - Move nfsdclddb and nfsdclnts from nfs-client to nfs-kernel-server and fix their permissions. - Add 0001-gssd-fix-crash-in-debug-message.patch Fix crash when rpc-gssd run with -v. (boo#1190144) - Remove dependency on fedfs-utils-devel. fedfs-utils was only ever a "technology preview" and is now considered "end of life". nfs-utils is not even built to use it as --enable-junction isn't being passed to confgure and fedfs-utils doesn't build wth glibc 2.34. So remove the unnecessary dependency on fedfs-utils. (bsc#1189085) - Update to version 2.5.4 https://mirrors.edge.kernel.org/pub/linux/utils/nfs-utils/2.5.4/2.5.4-Changelog Notable changes: * Handle failures in gssd better * handle 'sloppy' option to mount better * minor documentation improvements - Drop 2.5.4-rc4 patches: nfs-utils-2-5-4-rc1.patch, nfs-utils-2-5-4-rc2.patch, nfs-utils-2-5-4-rc3.patch, nfs-utils-2-5-4-rc4.patch. - Update to version 2.5.4-rc4 to get all recent fixes: - nfs-utils-2-5-4-rc4.patch e4ce810a Move declaration of etab and rmtab into libraries 7a4e2d1d Remove 'force' arg from cache_flush() c5528f40 Fix NFSv4 export of tmpfs filesystems ed83085f gssd: use mutex to protect decrement of refcount - nfs-utils-2-5-4-rc3.patch 972dba0f nfs-utils: Enable the retrieval of raw config settings without expansion 964f4861 nfs-utils: Factor out common structure cleanup calls 8219bdb0 Replace all /var/run with /run 81727afe Fix `statx()` emulation breaking exports a41afe9e mountd/exports: Fix typo in the man page - nfs-utils-2-5-4-rc2.patch 2f669b6f NFS server should enable RDMA by default d77ece22 mountd/exportd: only log confirmed clients, and poll for updates ac266e2e exportfs: fix unexporting of '/' - nfs-utils-2-5-4-rc1.patch 7abd15e3 nfsdclnts: Ignore SIGPIPE signal edeb3815 mountd: add logging of NFSv4 clients attaching and detaching. f8e2c8d4 mountd: make default ttl settable by option cc150093 mountd: add --cache-use-ipaddr option to force use_ipaddr c7a954ae mountd: add logging for authentication results for accesses. 1a8156f8 mountd/exports: update man page fec7347e mountd: Don't proactively add export info when fh info is requested. a72c151f mountd: reject unknown client IP when !use_ipaddr. 05bacfed gssd: Add options to rpc.gssd to allow for the use of $HOME/.k5identity files 7e559dbd exportd: server-side gid management - 0001-Replace-all-var-run-with-run.patch is now part of nfs-utils-2-5-4-rc3.patch - Add 0001-Replace-all-var-run-with-run.patch Use /run instead of /var/run (bsc#1185170) - Include nfsd kernel module Requires (bsc#1089118) - Update to version 2.5.3 https://mirrors.edge.kernel.org/pub/linux/utils/nfs-utils/2.5.3/2.5.3-Changelog - Add missing ldconfig calls for libnfsidmap1. - Throw out some remaining old rpm constructs. - Update to version 2.5.2 - fixed a couple memory leaks and other bug fixes, - a lot of clean up - Refresh nfs-utils-1.0.7-bind-syntax.patch - Use %autosetup -p1 - Remove nfs-doc package. The documentation is 20 years old and barely relevant. (bsc#1171448) - Update to version 2.5.1 Dropped patch accepted upstream: 0001-conffile-Don-t-give-warning-for-optional-config-file.patch - improvements for 64bit time - improvements for SASL referrals - Rename clddb-tool to nfsdclddb - New tools nfsdclnts - Better python3 support - many bug-fixes - Use group statd instead of nogroup, nogroup would invalidate the extra statd user. - Remove README.NFSv4. It is out dated and not useful. All the configation described is now done automatically. (bsc#1171448) - Remove obsolete useradd call - Improve the hack to avoid python dependencies. A new python script had been added since that hack was written. (boo#1166067) - 0001-conffile-Don-t-give-warning-for-optional-config-file.patch Support optional include files correctly (boo#1164619) - Update nfs.conf - change value: udp=n (disabled in 2.2.1.) - update name: manage-gids - new: verbosity=0, rpc-verbosity=0, use-gss-proxy=0, rdma-port=20049, no-notify=0, force=0, lift-grace=y - statd-user.conf: create user via sysusers.d template - Use ordering for systemd instead of hard requires - Update to version 2.4.3 Dropped patches (accepted upstream): - 0001-nfs.conf-allow-empty-assignments.patch - 0002-Let-systemd-know-when-rpc.statd-is-needed.patch - 0003-systemd-run-statd-notify-even-when-nfs-client-isn-t-.patch - 0004-nfsidmap-honour-with-pluginpath-for-instalation.patch - 0005-nfs.conf-fail-to-disable-major-NFS-version-4-using-v.patch - 0006-conffile-allow-optional-include-files.patch - 0007-statd-user-from-sm - 0008-mountd-Initialize-logging-early.patch Dropped patches (upstream used different solution): - 0009-Allow-compilation-to-succeed-with-fno-common.patch (btw this used Patch0: instead of Patch10:) (boo#1160405) Add nfsdcld - NFSv4 Client Tracking Daemon, add nfsdcld.service and enable it for nfs-kernel-server, add man page Add clddb-tool - tool for downgrading the nfsdcld sqlite database schema, add man page Removed osd_login (dropped in upstream in 2.3.4 rc1) - 0009-Allow-compilation-to-succeed-with-fno-common.patch Allow compilation to success with -fno-common (boo#1160405) - nfs-utils.spec - don't chown when not needed. Only chown directories in /var/lib/nfs to statd if they are currently owned by root. The chown is needed for some upgrades, but if the dirs are already owned by statd, an vulnerability in statd could be escalated to root. (bsc#1157321) - Delete 0006-nfs.conf-silence-include-error.patch replaced with better version - 0006-conffile-allow-optional-include-files.patch Avoid error if /etc/nfs.conf.local doesn't exist (bsc#1151044 bsc#1150807) - 0008-mountd-Initialize-logging-early.patch Don't close the loging socket - it causes problems. (bsc#1151044 bsc#1150807) - Don't make /var/lib/nfs owned by statd. Only sm and sm.bak need to be accessible by statd or sm-notify after they drop privs. Providing they get created, the parent directory can be root-owned. - 0007-statd-user-from-sm Change rpc.statd and sm-notify to take uid from the sm directory. (bsc#1150733 CVE-2019-3689) - 0006-nfs.conf-silence-include-error.patch Avoid an unhelpful warning (bsc#1150807) - 0005-nfs.conf-fail-to-disable-major-NFS-version-4-using-v.patch Fix a bug that cause NFSv4 service to always be enabled, if the server was enabled at all. - removal of SuSEfirewall2 service, since SuSEfirewall2 has been replaced by firewalld, see [1]. [1]: https://lists.opensuse.org/opensuse-factory/2019-01/msg00490.html - remove libnfsidmap1 dependency for nfs-client. It isn't needed. - Remove service aliases - these files are deleted. nfs.service nfsserver.service nfs-server.nfsserver.conf nfs-client.nfs.conf Now the upstream standard service names "nfs-client" and "nfs-server" must be used. - 0004-nfsidmap-honour-with-pluginpath-for-instalation.patch Allow plugins to be installed properly - nfs-utils.spec Package shared library correctly - 0001-nfs.conf-allow-empty-assignments.patch Fix regression due to unnecessary "error" messages from nfs.conf - 0002-Let-systemd-know-when-rpc.statd-is-needed.patch 0003-systemd-run-statd-notify-even-when-nfs-client-isn-t-.patch Fixes for systemd integration (bsc#1116221) - New version: nfs-utils-2.3.3 The nfsidmap library source has been merged into nfs-utils, so this source package now makes nfsidmap and nfsidmap-devel packages. New program "nfsconf" improves access to nfs config files. Delete patches that have been included upstream: 0001-conffile-ignore-empty-environment-variables.patch 0002-mount-call-setgroups-before-setuid.patch 0003-nfs-server-generator-handle-noauto-mounts-correctly.patch nsm-headers.patch sysmacros.patch - sysmacros.patch: include <sys/sysmacros.h> for major - use packageand for nfs documentation rather then always installing nfs-doc as part of the documentation pattern. - nfs.conf: spell NFSV4LEASETIME correctly. (bsc#1098532) - Create files in /var/lib/nfs via tmpfiles.d [bsc#1100404], [FATE#325524] - Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468) - fix incorrect dependency in /usr/lib/systemd/system/nfs-client.target.d/nfs.conf When yast restarts "nfs" it should propagate to nfs-client, but doesn't. (boo#1053691) - nsm-headers.patch: add missing <stdint.h> - Prerequire needed group "nogroup" - update upstream version from 1.3.4 to 2.1.1 The significant update is that configuration can now be read from a central /etc/nfs.conf file, and it can include other files such as /etc/sysconfig/nfs This means that the old nfs-config.service systemd unit is no longer needed. - /etc/nfs.conf file created to import all sysconfig settings except *_OPTIONS directly into running code. - dropins created to pass *_OPTIONS sysconfig setting to the various daemons. - various specfile improvements, such as using "-D" in "install" commands, and adding "verify_permissions". - "xtab" has not been needed for years and has now been remove. - sysconfig.nfs updated, particular the ServiceRestart declarations have been tuned for systemd units. - 0003-nfs-server-generator-handle-noauto-mounts-correctly.patch Fix the nfs-server-generator so that mounts marked "noauto" are not automatically mounted when NFS exported. (bsc#1019211) - 0001-conffile-ignore-empty-environment-variables.patch 0002-mount-call-setgroups-before-setuid.patch Other minor fixes found during testing. - REMOVED 0001-Make-location-of-nfs-utils_env.sh-configurable.patch now included upstream - Check for existence of "statd" user before creating it, and do not suppress errors about it. - Ensure units passed to %service_* are full filenames. - Pass all units (non-templated) to %service_*. - Also ignore errors on the first chown call: this can happen especially in the build system when shadow is not present and the user has not been generated in the %pre phase. - move rpc.svcgssd and corresponding man page from nfs-client package to nfs-kernel-server. For NFSv4.0 this is needed on client as well as the server to support the back-channel. (bsc#1005609) - 0001-Make-location-of-nfs-utils_env.sh-configurable.patch 1.3.4 moved the config script location to somewhere that doesn't exist on openSUSE. Move it somewhere better and install it there. (bsc#990356) - nfs-utils-1.3.4.tar.xz New upstream release. Lots of bugfixes, no significant functionality changes - delete 0001-Fix-protocol-minor-version-fall-back.patch delete 0001-close-the-syslog-fd-in-daemon_init.patch delete 0001-mount-run-START_STATD-fully-as-root.patch delete 0001-mount.nfs-hide-EBUSY-errors.patch delete 0001-mount.nfs-trust-the-exit-status-of-start_statd.patch delete 0001-systemd-Decouple-the-starting-and-stopping-of-rpcbin.patch delete 0002-systemd-unit-files-fix-up-dependencies-on-rpcbind.patch delete nfs-utils-no-svcgss.service delete nfs-utils-uninit-mem.patch All patches are included in 1.3.4 - nfs-utils_env.sh Fix some problems with version_params. Various misspellings and remove the possiblity that V4 is both disabled and enabled. (bsc#990356) - Drop OMC svcinfo file, nowdays useless - Sort a bit with spec-cleaner to get uptodate spec - Convert deps from regular devels to pkgconfig style - 0001-systemd-Decouple-the-starting-and-stopping-of-rpcbin.patch 0002-systemd-unit-files-fix-up-dependencies-on-rpcbind.patch Fix systemd dependencies to ensure rpcbind is started when needed. (bsc#975265) - 0001-close-the-syslog-fd-in-daemon_init.patch Without this, tracing doesn't work - 0001-mount.nfs-trust-the-exit-status-of-start_statd.patch (bsc#945937) - 0001-mount-run-START_STATD-fully-as-root.patch (bsc#969152) - Drop unused BuildRequires for libgssglue, not used with tirpc - Drop unused BuildRequires for librpcsecgss, tirpc version is used - 0001-mount.nfs-hide-EBUSY-errors.patch Stop "mount -a -t nfs" from complaining if filesystem already mounted (bsc#950340) - 0001-Fix-protocol-minor-version-fall-back.patch (bnc#959211) - nfs.service: don't mount/unmount nfs filesystems. systemd does this automatically. Trying to do it here too causes timing races (boo#963616) - nfs-utils-uninit-mem.patch: fix use of uninitialized memory (bsc#956743) - Remove sysvinit related macros; the package doesn't contain any sysvinit script - Replace systemd with systemd-rpm-macros; increase dependencies weight - Use %configure macro - Remove depreciated %clean section - Use proper annotations for service restart (bsc#952055). - update upstream version from 1.3.1 to 1.3.3. This contains lots of bugfixes but not significant new features. - delete 0001-nfs-client.target-Removed-a-ordering-cycle-with-nfs-.patch delete 0002-Centralize-dependencies-on-the-auth-unit.patch both included upstream - nfs-utils-no-svcgss.service fix minor make-install issue (has since been accepted upstream) - use "make install" to install systemd files instead of hand-code. - retain rpc-svcgssd for now until gss-proxy is packaged. - nfs-utils_env.sh: honour RPC_PIPEFS_DIR setting. It is currently ignored due to a logic error. (bsc#947852) - nfsserver.service. Provide ExecReload directive. This allows "systemctl reload nfsserver" to work. PropagatesReloadTo but itself is not enough if this unit doesn't have it's own Reload handler. (bsc#97296) - sysconfig.nfs: add STATD_PORT, STATD_HOSTNAME, LOCKD_TCPPORT, LOCKD_UDPPORT - nfs-utils-env.sh: handle STATD_PORT, STATD_HOSTNAME, LOCKD_TCPPORT, LOCKD_UDPPORT Also handle NFSV4LEASETIME, which was missing. (bsc#941645) - nfs.service: improve back-compatibility with /etc/init.d/nfs + mount and unmount nfs filesystems on start/stop. + keep status as "good" when everything is running. (bnc#911986) - fix bashisms in pre/post scripts - new upstream nfs-utils-1.3.1 This brings numerous fixes, particularly to gssd and nfsdcltrack. It incorporates all the upstreamable patches we had: - Delete nfsdcltrack.sbin.patch - Delete start-statd.patch - 0001-nfs-client.target-Removed-a-ordering-cycle-with-nfs-.patch 0002-Centralize-dependencies-on-the-auth-unit.patch Patches from 1.3.2-rc, which look useful - Convert from /etc/init.d startup scripts to full systemd integration. The upstream standard names are "nfs-client" and "nfs-server" rather than "nfs" and "nfsserver", so local "nfs" "nfsserver" aliases are created and "rcXXX" links are provided for all 4. - nfsserver.init: allow $NFSD_V4_GRACE to set the lease time if NFSV4LEASETIME is not set, as some documentation suggests this. Also set NFSv4 and NLM grace time to make the NFSv4 lease time as having them different at boot time doesn't make sense. (bnc#892809) - Remove mkintird scripts again. "libguestfs" now includes them so nfs-utils doesn't need to. (bnc#883876) - add mkinitrd scripts back in. They are needed by "guestfs" See bnc#883873 (bnc#883876) - Use start-statd and rpc-statd.service from upstream for running statd. Our start-statd doesn't work in a systemd environment (bnc#852984) - start-statd.patch - needed to make upstream start-statd work properly. - use .xz from upstream, that is what kernel.org prefers and it is smaller - Remove 0001-nfsidmap-Keys-need-to-be-invalidated-instead-of-revo.patch Now that keyutils has been updated in Factory, this patch is no longer needed. - Check if systemd is listen on local socket 111 to trigger the start of the rpcbind.service on demand (bnc#860246) - There exists only nfs-utils-1.3.0.tar.gz at http://kernel.org/pub/linux/utils/nfs-utils/1.3.0/ - New upstream version 1.3.0. Includes all our bugfix patches except 1. Adds assorted other bugfixes and improvements including initial support for NFSv4.2 Prepares the way for better systemd integration. Discards useless programs gss_clnt_send_err and gss_destroy_creds - Removes: 0001-mountd-Fix-is_subdirectory-again.patch - Removes: 0002-gssd-Fix-recent-fix-to-Avoid-DNS-reverse-resolution-.patch - Removes: 0003-Fix-handling-of-preferred-realm-command-line-option.patch - Removes: 0004-nfsiostat-restore-output-format.patch - Removes: 0005-gssd-don-t-give-up-on-machine-credential-if-hostname.patch - Removes: 0006-gssd-fixed-typo-in-machine-cred-name.patch - Removes: skip-on-ENOENT.patch - Removes: mountd-fix-bug-affecting-exports-of-dirs-with-64bit-.patch - Removes: exportfs-exit-with-error-code-if-there-was-any-error.patch - Removes: exportfs-report-failure-if-asked-to-unexport-somethi.patch - Removes: gssd-mount-hang-fix.patch - Removes: udp-fallback-fix.patch - Removes: fedfs-lib-name.patch - 0001-nfsidmap-Keys-need-to-be-invalidated-instead-of-revo.patch This upstream patch is currently reverted until we get a newer version of keyutils. - nfsdcltrack_sbin.patch The kernel expects nfsdcltrack to be in /sbin, so we must put it there. - Remove mkinitrd bits -> we use dracut now which already has nfs stuff provided in its package in: /usr/lib/dracut/modules.d/95nfs/ Remove sources: - mkinitrd-boot.sh - mkinitrd-setup.sh - properly rename patches: udp-fallback.fix -> udp-fallback-fix.patch fedfs-lib-name -> fedfs-lib-name.patch gssd-mount-hang-fix -> gssd-mount-hang-fix.patch - Remove "Start-Before: autofs" from nfs.init. This turns out not to be needed, and is out of place. If anything, autofs should declare a dependency on nfs. (bnc#861489) - fedfs-lib-name, nfs-utils.spec Build with fedfs support so that if fedfs-utils is also installed, federated-filesystems can be exported. (FATE#313522) - udp-fallback.fix: Fix fallback from tcp to udp (bnc#863749) - nfs-utils.spec: Require keyutils for proper idmap lookup. - nfs.init, nfsserver.init: mkdir /run/nfs before trying to create a file in there (bnc#859221) - nfs.init, nfsserver.init: add X-Systemd-RemainAfterExit: true to ensure services aren't shutdown if sm-notify reports an error (bnc#849387) - nfsserver.init: fix that typo properly. Somehow I only fixed part of the problem (bnc#849476) - If nfs-utils and autofs are both installed make sure that the nfs client boot service will be started before autofs as otherwise systemd dependency chain is waiting on nfs client services at shutdown if nfs client is enabled. - nfsserver.init: fix typo in "--nfs-version 4". (bnc#849476) - gssd-mount-hang-fix: An nfs mount will hang indefinitely if mounted by IP address and there is no reverse mapping available. This is caused by a bug in gssd. (bnc#833543) - nfs-utils.spec: add various systemd macros to make sure init scripts are registered properly bnc#845475 - nfs.int, nfsserver.init: run gssd on server as well as on client. This is needed for NFSv4.0 callbacks. bnc#845269 - exportfs-exit-with-error-code-if-there-was-any-error.patch - exportfs-report-failure-if-asked-to-unexport-somethi.patch Return good error code from exportfs. bnc#846064 - mountd-fix-bug-affecting-exports-of-dirs-with-64bit-.patch allow NFS export to work for XFS filesystems with INODE64 (bnc#841971) - nfs.init: run ldconfig directly rather than calling boot.ldconfig. boot.ldconfig had some "optimisations" which are unimportant and inconvenient for NFS, and doesn't exist any more anyway. (bnc#834164). - nfs.init: always start gssd. Recent kernel change means that if gssd isn't running and NFSv4 mount will wait 15 seconds before timing out even if gss security wasn't requested. So just start gssd alway - there is no significant cost in this. (bnc#837262) - skip-on-ENOENT.patch - suppress error message that isn't really an error (bnc#800414) - Include also nfsv2,nfsv3,nfsv4.ko in initrd (bnc#815738) - Remove usage of absolute paths in mkinitrd script - Include also mount.nfs4 - New sysconfig variables NFS4_SERVER_MINOR_VERSION, GSSD_OPTIONS, NFS_GSSD_AVOID_DNS to enable various configurations. - bug fixes to init scripts to avoid unmounting everything(!) and to avoid corrupting /run/nfs/bind.mounts - New upstream release 1.2.8 - mostly bugfixes, many to gssd. No important new functionality - Changes to ./configure command to remove warnings - 8 more patches from upstream 'git' to fix non-trivial bugs including on CVE. - remove sysvinit requires - they are rather harmful these days - nfsserver.init,sysconfig.nfs - Add support for setting rpc.mountd options. - New upstream release 1.2.7. Adds FedFD support to mounted and replaces nfsdcld with nfsdcltrack. This is used to manage client state on NFSv4 servers. Incorporates more local patches. - Replace "/var/run" with "/run" in various scripts. - nfsserver.init: Generate message that "bind=" is deprecated if it is used. - Add dependency on "netcfg" to ensure /etc/services is present (bnc#779851) - nfs4-no-umount: does send MOUNT_UMNT rpcs when unmounting an 'nfs4' filesystem. They are only required for nfs2,3. (bnc#772534) - mount-exit-code.fix: Correct exit code from unmount when fs is busy - allows autofs to work correctly. (bnc#770962) - nfs upstream version 1.2.5. Lots of bug fixes and improved support for pNFS. Adds nfsdcld daemon on osd_login script. Removed some very out-of-date documentation. - nfsserver.init: remove VERSION_LIST. This is unnecessary duplication of VERSION_PARAMS - nfsserver.init: Don't depend on "mount" preserving unknown options - it doesn't any more. This can confuse nfsd_unbind_mounts (bnc#754805) - add libtool as buildrequire to avoid implicit dependency - do not strip the binaries - nfs.init: handle case where kernel adds trailing slash to name in /proc/mounts. (bnc#722431 bnc#720376) - Fix build in arm, portability bug, applications MUST use sysconf(_SC_PAGESIZE) instead of constant PAGE_SIZE - New upstream version 1.2.5 - This adds a new binary blkmapd with man page, This is part of PNFS support. - New upstream version 1.2.4 - plus a few important patches from git. This adds a new binary nfsidmap, with man page. Also: build with libmount enabled to correctly handle /etc/mtab being linked to /proc/self/mounts. (bnc#681106) - nfs.init,nfsserver.init,sysconfig.nfs - Add support for configuring NFS for a fail-over configuration with shared state. (bnc#689622) - rpc.mountd-segfault-fix; fix possible segfault caused by "showmount -e" usage. (bnc#693189) - do-not-error-when-address-family-not-supported - suppress socket error when IPv6 is not loaded (bnc#670449) - addmntent.fix - error check writes to /etc/mtab and cope accordingly. (bnc#689799) - mount-catch-signals - don't abort on SIGXSFZ or other signals while mtab is locked (bnc#689799) - mountd-auth-fix - fix bug that could give away incorrect access to NFS exported filesystems. (bnc#701702) - Fix URLs. - nfsserver.init, sysconfig.nfs: add NFSV4LEASETIME parameter to allow lease time to be set. bnc#681510 - use /var/run/nfs instead of /var/lock/subsys - sysconfig.nfs: now that 'nfs' is not enabled by default, set NFS_START_SERVICES=yes by default and document that 'chkconfig nfs on' is needed. - Make /var/lib/nfs world executable. Otherwise 'df' complains about /var/lib/nfs/rpc_pipefs bnc#675385 - Must up the loopback device, otherwise trying to contact the portmapper (even if it does not actually run) will hang forever- the TCP RST is crucial for mount.nfs - nfs.init: improve handling of paths with spaces. If a path name has a space, it will appear as \040 in fstab and in /proc/mounts. Using 'grep -E' to search for this is problematic as it will interpret the '\'. So use 'grep -F' instead - we know there is only a single space in /proc/mounts. Also use "read -r" so 'read' doesn't interpret the '/'. (bnc#666128) - nfsserver.init: make sure sm-notify runs on restart. If we stop nfsd, that might also stop lockd which would drop locks. So make sure lockd really does drop lock for consistency, and ensure that sm-notify is run when nfsserver is restarted. (bnc#668280) - don't run SuSEfirewall2 from start-statd script. If SuSEfirewall2 is installed and enabled it will be called at the end of the boot process anyways (bnc#668181). - avoid python depdency to avoid bloating the minimal installation - use %set_permissions instead of %run_permissions - give user a hint if portmap isn't running as statd can't be started in that case. - don't enable nfs init script by default. The yast nfs module makes sure the script gets enabled when adding mounts - print a message to tell when file systems are mounted as that could take a while - add sysvinit prereqs to make sure the scripts are there before installation (also for building) - new upstream version 1.2.3, plus some upstream fix-up patches. - new user 'statd' owns /var/lib/nfs so rpc.statd runs as non-root. - New commands 'mountstats' and 'nfsiostat' - ipv6 support enabled as it is believed to be complete. - Change "Requires: portmap" to "Requires: rpcbind". Current nfs-utils does not work properly with portmap due to IPv6 being enabled, so we really need rpcbind. So be explcit about that, else upgrading an old installation will leave portmap in place which won't work. bnc#620346 - Add rpmlintrc since /var/lib/nfs/sm.bak is valid. - nfsserver.init / sysconfig.nfs: allow NFSv3 service to be disabled so only NFSv4 can be used. bnc#598671 - nfs-v2-disable.patch: mountd support for above - nfs.init: unmount bind mounts with '-l' to ensure they really unmount. bnc#598681 - mkinitrd-boot.sh: allow other mkinitrd-setup scripts to request the inclusion of nfs support by setting need_nfs to 1. (bnc#572207) - sysconfig.nfs, nfsserver.init, start-start: handle STATD_OPTIONS so that sysadmin can easily set options like port number. (bnc#595379) - mkinitrd-boot.sh: Do not do anything over if iscsi should be used (bnc#590135). - init.nfs: also call 'udevadm settle' when mounting things other than /usr and /opt. bnc#571540 - init.nfs: if mounting /usr fails, call "udevadm settle" and try again incase network interfaces are still appearing. bnc#571540 - nfs-utils-eperm-fallback.patch: mount.nfs tries a v3 mount after a v4 mount fails with ENOENT. Older linux nfsd servers return EPERM, so fall back in that case too. bnc#557138 - New upsteam release - 1.2.1 Includes new config file: /etc/nfsmount.conf and man page. - nfs.init * implement try-restart in a more gentle fashion so that active mounts are not lost. Also allow for the fact that binary has changed when finding and killing running daemons. (bnc#543911) - start-statd * try-restart the firewall after starting statd as the firewall might need to update to reflect a new port number. - Start nfs services if any nfs related sysctl is set in /etc/sysctl.conf - Kill processes on NFS mounts when unmounting for shutdown. This allows any 'sync' to happen before we turn off the network. (bnc#503640) - Work around broken sysconfig file (bnc#529961) - sysconfig.nfs * add 'NFS_START_SERVICE' option for people who need gssd or idmapd but mount using automount, not fstab. bnc#472438 - nfs.init * 'stop' should stop servies based on what is running, not what is configured to be run. bnc#459021 * force-start added to start NFS services even if nothing is in /etc/fstab. - initrd: Giving the DHCP provided root path a higher priority compared to the fallback from fstab. Command line can still overwrite the DHCP provided root path. (bnc #440192). - gssd-mem-leak * set better expiry date for cached auth info so kernel does not run out of memory bnc#442490 - nfs.init * Don't signal an error if asked to stop 'nfs' when there is nothing to stop. Signalling an error here causes "rpm -e nfs-client" to fail. (bnc#450940) - warn-nfs-udp.patch * Add warnings to nfs.man about usage of UDP and print message pointing to this warning when udp is used. This comes from util-linux-warn-nfsudp.diff in previous releases. - nfs.init * load nfs modules then apply any sysctl setting before mounting any filesystems (bnc#431306, bnc#443118) - nfsserver.init * set lockd sysctls before starting lockd. (bnc#443118) - nfs.init * Don't 'stop' if root is on NFS. If we stop NFS if root is on NFS, then reboot will hang - bnc#439974 - nfs.init * Don't try to kill processes with fuser. it hangs when netowrk is down, and isn't needed as we use lazy unmount bnc#445908 * Don't kill statd if nfsd is still running. - fork-start-statd.patch * Don't use 'system' to run start-statd as this looses our setuid bit. bnc#447812 - export ROOTFS_FSCK=0 to skip fsck for root on NFS (bnc#441234) - rpc.gssd-catch-signal.patch * new patch (not yet upstream) to make sure rpc.gssd gets signals from dnotify. bnc#406832 - sm-notify-no-sync.patch * new upstream patch to avoid sync() in common case of no peers to notify. Important for speeding boot of SLED - nfs-utils.spec: typo in command to install modprobe.d/nfs-utils - nfsserver.init * don't set version if nfsd already running. doing that causes unhelpful error when trying to start nfsserver when it is already running. (bnc#427330) - modprobe.nfs-utils * arrange that when various nfs modules are loaded the relevant values from /etc/sysctl.conf are set (bnc#431306, bnc#443118) - nfs.init * fix typo in handling of "init.d/nfs status" $status should have been $state - nfs.init: * ensure all daemons get killed on stop (including rpc.statd) * unmount rpc_pipefs * let close_usr do the work before the NFS filesystems get unmounted - fix sysconfig filename for changed fillup call - Disable IPv6, completly broken [bnc#431542] - Enable IPv6 [bnc#429853] - Fix nfs.init to check for portmap or rpcbind properly. Either or both can be installed, but as long as one is running, neither 'start' or 'status' will complain. bnc#428436 - Change nfs.init to do nothing if NFS is not mentioend in /etc/fstab, and sure it is always enabled. bnc#331667 - Improve Description fields in fw-server and fs-client. bnc#424432 bnc#424433 - require libevent-devel on 11.1 or newer - Call mkinitrd_setup during %post and %postun (bnc#413709) - remove outdated options in the fillup_and_insserv call - upgrade to nfs-utils-1.1.3 - assorted bugfixes including some that we have fixed in our 1.1.2 release - some work towards client-side IPv6 support - Remove included patches. - Add patches that are still not upstream They relate to mounting from server which does not listen to UDP for portmap - Fix boot script and use correct Stop tags - The nfs boot script uses lazy umount and terminates process on shutdown in case of causing busy mounts - The nfs boot script may parse /etc/fstab only once - Include mkinitrd scriptlets. - Do not install Makefiles for nfs-doc. - nfs.init - parse /etc/fstab correctly. The first two fields are "what where", not "where what" (bnc#364513) - Use autoreconf. - nfs-utils-1.1.2-start-statd.patch - fix so that statd isn't required with "-o remount" (that causes a problem with nfs-root (bnc#397417)) and isn't required for nfsv4. - fix permissions handling of mount.nfs (bnc#304318) - fix prereqs - Fix some lost exit status in init scripts. - nfs-utils-1.1.2-start-statd.patch - statd needs to be started when using 'string' options to kernel was well as when using binary options. - Added SM_NOTIFY_OPTIONS sysconfig - (bnc #379806) - Removed needless rc_status/rc_exit games in nfsserver.init (bnc #380156) - Fixed some sysconfig entries that asked to restart non-existent services (gssd and idmpad have been rolled in to nfs/nfsserver). - fixed more bugs in port information for SuSEfirewall2 (bnc #373969) - fixed typo in port information for SuSEfirewall2 (bnc #373969) - fix path srvinfo.d -> svcinfo.d - remove svcinfo.d dir as it is provided now by filesystem - update to version 1.1.2 - uses libgssglue instead of libgssapi - remove patch nfs-utils-o_create-mode - add rpcbind support [fate#300607] - added gssapi to buildrequires - Cleaned up open(O_CREAT) without file permissions. - Fix sed script used to create bind mounts for NFSv4 export (#279665) - Fail nfs.init if portmap is not running. Normally it will be, but if it isn't nfs can fail strangely. (#325763) - Add SuSEfirewall2 config files for nfs-client and nfs-kernel-server (#247354) - use navigation icons from latex2html in nfs-utils-doc package (#116355) - use "--no-nfs-version 4" for nfsd and mountd if NFS4_SUPPORT is set to "no" (#308661) - drop conflicts with nfs-server (userspace) in nfs-client package showmount has been removed there (#309782) - added README.NFSv4 (#182775) - buildrequire nfsidmap-devel - added split-provides for nfs-client to get nfs-client installed on update from older versions where this was in aaa_base (#286743) - add Obsoletes - update to version 1.1.0: - package mount.nfs, umount.nfs to replace dropped nfs code from util-linux mount. - removed patches: nfs-utils-noroot.patch nfs-utils-gssd-select-ccache.patch nfs-utils-krb5.patch - Package split: nfs-common, nfs-server and nfs-doc - adjust init scripts - remove old Obsoletes/Provides: nfsutils (last used 2001) knfsd (last used 2000) linuxnfs (last used 1999) - update to 1.0.12 - Fix -n option to mountd - Document sensitive gids - upstreamed patches deleted: nfs-utils-anon-uid32.patch - added e2fsprogs-devel (for libblkid) - nhfsXXX binaries and manpages have been removed upstream - moved omc xml file to /usr/share/omc and removed config tag - move srvinfo.d to svcinfo.d (typo in fate entry) - Added handling for NFSv4 bind mounts in init script (#229583) - added nfsserver.xml to /etc/omc/srvinfo.d (fate#301835) - 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 - Fix off-by-one error in rpcgen. - find kerberos ticket files even if /tmp on reiser (#187775) - fix /etc/gssapi_mech.conf for lib64 platforms (#186954) - added support for type 3 filehandles to mountd (#182552) - disable v4 support in rcnfsserver if NFS4_SUPPORT is not set to "yes" (#178633) - added fix for 64bit bigendian platforms in gssd (#172605) - gracefully handle repeated "rcidmapd stop" calls (#169087) - nfs-server rc-script: make force-reload do as reload does (#167152) - nfs-server rc-script: reload idmapd if NFSV4 is on (#167016) - 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) - Load RPCSEC_GSS kernel modules in rcgssd/rcsvcgssd init scripts (#142352) - Enable NFSv4 by default - converted neededforbuild to BuildRequires - nfsserver rcscript: only mount nfsdfs if not mounted already - Don't strip binaries. - fix filelist - fix init scripts: in the stop case, a not running service is not an error (#134904) - packaging /var/lib/nfs/v4recovery directory (#133502) - packaging /var/lib/nfs/rpc_pipefs directory (#114103) - modify nfs-server script to support uml case (#86624) - 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 - fix in init-script (do not try unmount if not mounted) (#91460) - Install correct init script. - Compile with -fpie/-pie - Enabled NFSv4 and RPCSEC_GSS support - do not warn about sync/async for readonly exports (#78369) - make it build with gcc4 - Update to nfs-utils 1.0.7. - Make non-anonymous exports work again. - Use BuildRoot. - update to 1.0.7-pre2 (use 1.0.6.2 as package version) - disable gss and nfsv4 for now - make anonymous exports work again (#46918) - added sysconfig variable to allow running mountd on a defined port - Fix to prevent mountd from crashing on kernel upcalls - Fix a permission problem after using exportfs -u - remove "exportfs -au" from rcnfsserver stop (kernel zaps table on last server exit anyway) (#44049) - added patch from okir to use nobody:nogroup again by default for anonymous (#42288) - remove nfslock start script - remove nfslock dependency - mount nfsd filesystem if possible (#41955) - Remove unpackaged files - Move sm-notify to util-linux [#36737] - remove rpc.statd completely - add sm-notify and call it first in nfslock script (#36737) - disable rquotad already in configure (no need to compile it, if we only remove it later) - Include patch that allows Sun boxes to mount large files - update to version 1.0.6 to fix a possible segfault in statd - support for 2.6 kernels - fix hed/tail calling syntax (#29644) - add restart_on_update/stop_on_removal macros - added sysconfig metadata (#28908) - fix compile for rquotad (unused anyway - add support for STATD_HOSTNAME (#28201) - update to 1.0.5 and adapt patches - overflow patch already included - part of acl patch already included - Switch to officially reserved bit flag for `no_acl' export option: the previous bit was already allocated. - Add `no_acl' export option, replaces the nfs_permission_mode nfsd module parameter. - Fixed off-by-one overflow (#27744) - Add /var/lib/nfs to filelist - fix file list - update to 1.0.3 - added sysconfig metadata (#22663) - rcnfsserver: moved ypbind to should-start (#18952) - rcnfslock: fixed typo killing daemons on "status" (#19046) - changed nfslock from should-start to required-start in nfsserver rc script (is in the same package anyway) - Fixed minor manpage issue (#18326) - fixed symlink rcnfslock (#18171) - move statd and lockd to their own startscript (#17425) - update to 1.0.1 - added prereqs - Help users who do not configure a domain name: when sending out NSM_NOTIFY strip off .local suffix if present. - partial fix for http://bugzilla.suse.de/show_bug.cgi?id=16957 (missing NSM_NOTIFY call when rebooting). - Don't source rc.config (#17025) - run suse_update_config - fixed wrong quotes in init-script (#13939) - ignore returncodes from killing statd and lockd (#13072) - sysconfig/nfs-server -> sysconfig/nfs - removed variable NFS_SERVER (#12742) - moved USE_KERNEL_NFSD_NUMBER to /etc/sysconfig/nfs-server - up to 0.3.3 many fixes to canonicalize hostnames in exports - 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 - Fix path to init script in description [Bug #9494] - Fix comment in runlevel section [Bug #9561] - Make init script LSB conform [Bug #9073] - lockd only started for 2.2 kernels instead of ignoring error - completed rpc.statd to /sbin move in startscript - move rpc.lockd, rpc.statd to /sbin - update to 0.3.1 - ignore lockd error messages - dump filedescriptors before starting kernel threads - renamed package to nfs-utils - Obsoletes and Provides nfsutils - fixed conflicts: nfs-server (#5548) - don't fail if lockd can't be started - fix broken symlinks for %{_mandir}/rpc.{nfs,mount,stat}d.8.gz - Move new initscript to /etc/init.d - exports.4 should be exports.5 - removed k-prefix - added exports.4 man-page - up to 0.2.1 - update to 0.2 - fix for nfsserver.init (check for v3) - ugraded from knfsd to successor package nfs-utils (v.0.1.9.1) - fixed checkproc call in init script - Fix missing format string in syslog call (next rpc.statd security problem) - Fix problem with NULL h_alias field (rpc.statd security problem) - Change conflict from itself to nfsserv - Fix rcnfsserver link - Add rc.config variables and init script from aaa_base - Fill out Copyright and Group field - Remove rquotad from file list, it is already in the quota package [Bug 1571] - manpages to /usr/share using macro - renamed package from linuxnfs to knfsd - Fixed filelist (%ghost) - upgraded to knsfd-1.5.2. Added klockd to file list. Ditto for new /dev/nfsd_netlink. - ran old prepare_spec on spec file to switch to new prepare_spec. - added -fsigned-char to CFLAGS (PPC) - update to 1.4.6 - update to version 1.4 - update to version 1.3.3b - update to version 1.2 - update to 981122 - use lx_hack - added bugfix for statd (by HJL) - update to knfsd-981014 - initial package / for use a 2.1 kernel with knfsd support is needed OBS-URL: https://build.opensuse.org/request/show/1075113 OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=273
379 lines
13 KiB
RPMSpec
379 lines
13 KiB
RPMSpec
#
|
|
# spec file for package nfs-utils
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
%if ! %{defined _fillupdir}
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
%endif
|
|
|
|
Name: nfs-utils
|
|
Version: 2.6.2
|
|
Release: 0
|
|
Summary: Support Utilities for Kernel nfsd
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Networking/NFS
|
|
URL: https://kernel.org/pub/linux/utils/nfs-utils/
|
|
Source0: https://kernel.org/pub/linux/utils/nfs-utils/%{version}/nfs-utils-%{version}.tar.xz
|
|
Source4: sysconfig.nfs
|
|
Source11: idmapd.conf
|
|
Source12: statd-user.conf
|
|
Source13: nfs-utils.rpmlintrc
|
|
Source20: nfs-mountd.options.conf
|
|
Source21: nfs-server.options.conf
|
|
Source22: rpc-gssd.options.conf
|
|
Source23: rpc-statd.options.conf
|
|
Source24: rpc-statd-notify.options.conf
|
|
Source25: rpc-svcgssd.options.conf
|
|
Source26: nfs.conf
|
|
Source27: nfs-kernel-server.tmpfiles.conf
|
|
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
|
Patch5: 0005-modprobe-avoid-error-messages-if-sbin-sysctl-fail.patch
|
|
Patch6: 0006-nfsd-allow-server-scope-to-be-set-with-config-or-com.patch
|
|
Patch7: 0007-mount.nfs-always-include-mountpoint-or-spec-if-error.patch
|
|
Patch8: 0008-nfsd.man-fix-typo-in-section-on-scope.patch
|
|
BuildRequires: e2fsprogs-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: rpcgen
|
|
BuildRequires: sysuser-tools
|
|
BuildRequires: tcpd-devel
|
|
BuildRequires: pkgconfig(devmapper)
|
|
BuildRequires: pkgconfig(kdb)
|
|
BuildRequires: pkgconfig(krb5)
|
|
BuildRequires: pkgconfig(libevent)
|
|
BuildRequires: pkgconfig(libkeyutils)
|
|
BuildRequires: pkgconfig(libtirpc)
|
|
BuildRequires: pkgconfig(mount)
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
Suggests: python-base
|
|
%{?systemd_ordering}
|
|
|
|
%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.
|
|
|
|
%package -n nfs-client
|
|
Summary: Support Utilities for NFS
|
|
Group: Productivity/Networking/NFS
|
|
Requires: keyutils
|
|
Requires: netcfg
|
|
Requires: rpcbind
|
|
Requires(post): %fillup_prereq
|
|
Requires(pre): permissions
|
|
Obsoletes: nfs-utils < 1.1.0
|
|
%sysusers_requires
|
|
|
|
%description -n nfs-client
|
|
This package contains common NFS utilities which are needed for client
|
|
and kernel based server.
|
|
|
|
%package -n nfs-kernel-server
|
|
Summary: Support Utilities for Kernel nfsd
|
|
Group: Productivity/Networking/NFS
|
|
Requires: netcfg
|
|
Requires: nfs-client = %{version}
|
|
Requires: rpcbind
|
|
Requires: (kmod(nfsd.ko) if kernel)
|
|
Conflicts: nfs-server
|
|
Provides: nfs-utils = %{version}
|
|
Obsoletes: nfs-utils < 1.1.0
|
|
PreReq: permissions
|
|
|
|
%description -n nfs-kernel-server
|
|
This package contains support for the kernel based NFS server. 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.
|
|
|
|
%package -n libnfsidmap1
|
|
Summary: NFSv4 ID Mapping Library
|
|
Group: Productivity/Networking/NFS
|
|
Version: 1.0
|
|
Release: 0
|
|
Obsoletes: nfsidmap
|
|
|
|
%package -n nfsidmap-devel
|
|
Summary: NFSv4 ID Mapping Library development libraries
|
|
Group: Development/Libraries/C and C++
|
|
Version: 1.0
|
|
Release: 0
|
|
Requires: libnfsidmap1 = %{version}
|
|
|
|
%description -n libnfsidmap1
|
|
In NFSv4, identities of users are conveyed by names rather than user ID
|
|
and group ID. Both the NFS server and client code in the kernel need to
|
|
translate these to numeric IDs.
|
|
|
|
%description -n nfsidmap-devel
|
|
In NFSv4, identities of users are conveyed by names rather than user ID
|
|
and group ID. Both the NFS server and client code in the kernel need to
|
|
translate these to numeric IDs.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
autoreconf -fvi
|
|
export CFLAGS="%{optflags} -fPIE"
|
|
export LDFLAGS="-pie"
|
|
%configure \
|
|
--with-systemd \
|
|
--enable-nfsv4 \
|
|
--enable-gss \
|
|
--enable-svcgss \
|
|
--enable-ipv6 \
|
|
--enable-nfsdcltrack \
|
|
--enable-mount \
|
|
--enable-libmount-mount \
|
|
--disable-static \
|
|
--disable-sbin-override \
|
|
--with-pluginpath=%{_libdir}/libnfsidmap-1.0.0 \
|
|
--enable-mountconfig
|
|
make %{?_smp_mflags}
|
|
%sysusers_generate_pre %{SOURCE12} statd statd-user.conf
|
|
|
|
%install
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
|
find %{buildroot} -type f -name '*.la' -delete -print
|
|
install -D -m 644 %{SOURCE20} %{buildroot}%{_unitdir}/nfs-mountd.service.d/10-options.conf
|
|
install -D -m 644 %{SOURCE21} %{buildroot}%{_unitdir}/nfs-server.service.d/10-options.conf
|
|
install -D -m 644 %{SOURCE22} %{buildroot}%{_unitdir}/rpc-gssd.service.d/10-options.conf
|
|
install -D -m 644 %{SOURCE23} %{buildroot}%{_unitdir}/rpc-statd.service.d/10-options.conf
|
|
install -D -m 644 %{SOURCE24} %{buildroot}%{_unitdir}/rpc-statd-notify.service.d/10-options.conf
|
|
install -D -m 644 %{SOURCE25} %{buildroot}%{_unitdir}/rpc-svcgssd.service.d/10-options.conf
|
|
install -D -m 644 %{SOURCE26} %{buildroot}%{_sysconfdir}/nfs.conf
|
|
install -D -m 644 %{SOURCE27} %{buildroot}%{_prefix}/lib/tmpfiles.d/nfs-kernel-server.conf
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcnfs-server
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcnfs-client
|
|
# sysconfig-data
|
|
mkdir -p %{buildroot}%{_fillupdir}
|
|
install -m 644 %{SOURCE4} %{buildroot}%{_fillupdir}
|
|
# idmapd setup
|
|
install -D -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/idmapd.conf
|
|
mkdir -p -m 755 %{buildroot}%{_localstatedir}/lib/nfs/rpc_pipefs
|
|
mkdir -p -m 755 %{buildroot}%{_localstatedir}/lib/nfs/v4recovery
|
|
# sm-notify state
|
|
mkdir -p -m 755 %{buildroot}%{_localstatedir}/lib/nfs/sm
|
|
mkdir -p -m 755 %{buildroot}%{_localstatedir}/lib/nfs/sm.bak
|
|
touch %{buildroot}%{_localstatedir}/lib/nfs/state
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
|
|
install -m 644 utils/mount/nfsmount.conf %{buildroot}%{_sysconfdir}/nfsmount.conf
|
|
#
|
|
# hack to avoid automatic python dependency
|
|
chmod 644 `grep -l -r '^#!/usr/bin/python' %{buildroot}%{_sbindir}`
|
|
# Install sysusers.d template
|
|
mkdir -p %{buildroot}%{_sysusersdir}
|
|
install -m 644 %{SOURCE12} %{buildroot}%{_sysusersdir}/
|
|
|
|
%pre -n nfs-client -f statd.pre
|
|
%service_add_pre auth-rpcgss-module.service nfs-idmapd.service nfs-blkmap.service rpc-statd-notify.service rpc-gssd.service rpc-statd.service rpc-svcgssd.service
|
|
|
|
%post -n nfs-client
|
|
# lib/nfs must be root-owned.
|
|
# sm and sm.back and contents should be statd:statd,
|
|
# but only chown if the dirs are currently root-owned.
|
|
# This is needed for some upgraded, but chown is best avoided
|
|
# when not necessary
|
|
chown root:root %{_localstatedir}/lib/nfs > /dev/null 2>&1 || :
|
|
for i in sm sm.bak; do
|
|
p=%{_localstatedir}/lib/nfs/$i
|
|
if [ -d "$b" -a -n "`chown 2> /dev/null -c --from root statd:statd $p`" ]; then
|
|
chown -R statd:statd $p > /dev/null 2>&1 || :
|
|
fi
|
|
done
|
|
### migrate from /var/lock/subsys
|
|
[ -d /run/nfs ] || mkdir /run/nfs
|
|
if [ -f %{_localstatedir}/lock/subsys/nfs-rpc.idmapd ]; then
|
|
mv %{_localstatedir}/lock/subsys/nfs-rpc.idmapd /run/nfs
|
|
fi
|
|
if [ -f %{_localstatedir}/lock/subsys/nfsserver-rpc.idmapd ]; then
|
|
mv %{_localstatedir}/lock/subsys/nfsserver-rpc.idmapd /run/nfs
|
|
fi
|
|
###
|
|
%{fillup_only -n nfs nfs}
|
|
#
|
|
%set_permissions %{_sbindir}/mount.nfs
|
|
/sbin/ldconfig
|
|
%service_add_post auth-rpcgss-module.service nfs-idmapd.service nfs-blkmap.service rpc-statd-notify.service rpc-gssd.service rpc-statd.service rpc-svcgssd.service
|
|
|
|
%preun -n nfs-client
|
|
%service_del_preun auth-rpcgss-module.service nfs-idmapd.service nfs-blkmap.service rpc-statd-notify.service rpc-gssd.service rpc-statd.service rpc-svcgssd.service
|
|
|
|
%postun -n nfs-client
|
|
/sbin/ldconfig
|
|
%service_del_postun auth-rpcgss-module.service nfs-idmapd.service nfs-blkmap.service rpc-statd-notify.service rpc-gssd.service rpc-statd.service rpc-svcgssd.service
|
|
|
|
%verifyscript -n nfs-client
|
|
%verify_permissions -e %{_sbindir}/mount.nfs
|
|
|
|
%pre -n nfs-kernel-server
|
|
%service_add_pre nfs-svcgssd.service nfs-mountd.service nfs-server.service
|
|
|
|
%preun -n nfs-kernel-server
|
|
%service_del_preun nfs-svcgssd.service nfs-mountd.service nfs-server.service
|
|
|
|
%post -n nfs-kernel-server
|
|
### migrate from /var/lock/subsys
|
|
[ -d /run/nfs ] || mkdir /run/nfs
|
|
if [ -f %{_localstatedir}/lock/subsys/nfs-rpc.idmapd ]; then
|
|
mv %{_localstatedir}/lock/subsys/nfs-rpc.idmapd /run/nfs
|
|
fi
|
|
if [ -f %{_localstatedir}/lock/subsys/nfsserver-rpc.idmapd ]; then
|
|
mv %{_localstatedir}/lock/subsys/nfsserver-rpc.idmapd /run/nfs
|
|
fi
|
|
###
|
|
%service_add_post nfs-mountd.service nfs-server.service nfsdcld.service
|
|
%tmpfiles_create nfs-kernel-server.conf
|
|
%set_permissions /var/lib/nfs/rmtab
|
|
|
|
%postun -n nfs-kernel-server
|
|
%service_del_postun nfs-mountd.service nfs-server.service nfsdcld.service
|
|
|
|
%post -n libnfsidmap1 -p /sbin/ldconfig
|
|
%postun -n libnfsidmap1 -p /sbin/ldconfig
|
|
|
|
%verifyscript -n nfs-kernel-server
|
|
%verify_permissions -e /var/lib/nfs/rmtab
|
|
|
|
%files -n nfs-client
|
|
%license COPYING
|
|
%config %{_sysconfdir}/idmapd.conf
|
|
%config %{_sysconfdir}/nfsmount.conf
|
|
%config %{_sysconfdir}/nfs.conf
|
|
%verify(not mode) %attr(0755,root,root) %{_sbindir}/mount.nfs
|
|
%{_sbindir}/mount.nfs4
|
|
%{_sbindir}/umount.nfs
|
|
%{_sbindir}/umount.nfs4
|
|
%attr(0755,root,root) %{_sbindir}/mountstats
|
|
%attr(0755,root,root) %{_sbindir}/nfsiostat
|
|
%{_sbindir}/nfsdcld
|
|
%{_sbindir}/nfsidmap
|
|
%{_sbindir}/nfsstat
|
|
%{_sbindir}/rcnfs-client
|
|
%{_sbindir}/rpc.gssd
|
|
%{_sbindir}/rpc.idmapd
|
|
%{_sbindir}/rpc.statd
|
|
%{_sbindir}/rpcctl
|
|
%{_sbindir}/rpcdebug
|
|
%{_sbindir}/showmount
|
|
%{_sbindir}/sm-notify
|
|
%{_sbindir}/start-statd
|
|
%{_sbindir}/blkmapd
|
|
%{_sbindir}/rpc.svcgssd
|
|
%{_sbindir}/nfsconf
|
|
%{_udevrulesdir}/99-nfs.rules
|
|
%{_unitdir}/auth-rpcgss-module.service
|
|
%{_unitdir}/nfs-blkmap.service
|
|
%{_unitdir}/nfs-client.target
|
|
%{_unitdir}/nfs-idmapd.service
|
|
%{_unitdir}/nfs-utils.service
|
|
%{_unitdir}/nfsdcld.service
|
|
%{_unitdir}/rpc-gssd.service
|
|
%{_unitdir}/rpc-gssd.service.d
|
|
%{_unitdir}/rpc_pipefs.target
|
|
%{_unitdir}/rpc-statd-notify.service
|
|
%{_unitdir}/rpc-statd-notify.service.d
|
|
%{_unitdir}/rpc-statd.service
|
|
%{_unitdir}/rpc-statd.service.d
|
|
%{_unitdir}/rpc-svcgssd.service
|
|
%{_unitdir}/rpc-svcgssd.service.d
|
|
%{_unitdir}/var-lib-nfs-rpc_pipefs.mount
|
|
%dir %{_systemdgeneratordir}
|
|
%{_systemdgeneratordir}/nfs-server-generator
|
|
%{_systemdgeneratordir}/rpc-pipefs-generator
|
|
%{_modprobedir}/50-nfs.conf
|
|
%{_mandir}/man5/idmapd.conf.5%{ext_man}
|
|
%{_mandir}/man5/nfs.5%{ext_man}
|
|
%{_mandir}/man5/nfs.conf.5%{ext_man}
|
|
%{_mandir}/man5/nfsmount.conf.5%{ext_man}
|
|
%{_mandir}/man5/nfsrahead.5%{ext_man}
|
|
%{_mandir}/man7/nfs.systemd.7%{ext_man}
|
|
%{_mandir}/man8/blkmapd.8%{ext_man}
|
|
%{_mandir}/man8/gssd.8%{ext_man}
|
|
%{_mandir}/man8/idmapd.8%{ext_man}
|
|
%{_mandir}/man8/mount.nfs.8%{ext_man}
|
|
%{_mandir}/man8/mountstats.8%{ext_man}
|
|
%{_mandir}/man8/nfsconf.8%{ext_man}
|
|
%{_mandir}/man8/nfsdcld.8%{ext_man}
|
|
%{_mandir}/man8/nfsdclddb.8%{ext_man}
|
|
%{_mandir}/man8/nfsdclnts.8%{ext_man}
|
|
%{_mandir}/man8/nfsidmap.8%{ext_man}
|
|
%{_mandir}/man8/nfsiostat.8%{ext_man}
|
|
%{_mandir}/man8/nfsstat.8%{ext_man}
|
|
%{_mandir}/man8/rpc.gssd.8%{ext_man}
|
|
%{_mandir}/man8/rpc.idmapd.8%{ext_man}
|
|
%{_mandir}/man8/rpc.sm-notify.8%{ext_man}
|
|
%{_mandir}/man8/rpc.statd.8%{ext_man}
|
|
%{_mandir}/man8/rpc.svcgssd.8%{ext_man}
|
|
%{_mandir}/man8/rpcctl.8%{ext_man}
|
|
%{_mandir}/man8/rpcdebug.8%{ext_man}
|
|
%{_mandir}/man8/showmount.8%{ext_man}
|
|
%{_mandir}/man8/sm-notify.8%{ext_man}
|
|
%{_mandir}/man8/statd.8%{ext_man}
|
|
%{_mandir}/man8/svcgssd.8%{ext_man}
|
|
%{_mandir}/man8/umount.nfs.8%{ext_man}
|
|
%{_fillupdir}/sysconfig.nfs
|
|
%{_sysusersdir}/statd-user.conf
|
|
%dir %{_localstatedir}/lib/nfs
|
|
%dir %{_localstatedir}/lib/nfs/rpc_pipefs
|
|
%dir %{_localstatedir}/lib/nfs/v4recovery
|
|
%attr(0700,statd,statd) %dir %{_localstatedir}/lib/nfs/sm
|
|
%attr(0700,statd,statd) %dir %{_localstatedir}/lib/nfs/sm.bak
|
|
%ghost %{_localstatedir}/lib/nfs/state
|
|
%{_libexecdir}/nfsrahead
|
|
|
|
%files -n nfs-kernel-server
|
|
%{_unitdir}/nfs-mountd.service
|
|
%{_unitdir}/nfs-mountd.service.d
|
|
%{_unitdir}/nfs-server.service
|
|
%{_unitdir}/nfs-server.service.d
|
|
%{_unitdir}/proc-fs-nfsd.mount
|
|
%{_prefix}/lib/tmpfiles.d/nfs-kernel-server.conf
|
|
%{_sbindir}/exportfs
|
|
%{_sbindir}/rcnfs-server
|
|
%{_sbindir}/rpc.mountd
|
|
%{_sbindir}/rpc.nfsd
|
|
%{_sbindir}/nfsdcltrack
|
|
%attr(0755,root,root) %{_sbindir}/nfsdclddb
|
|
%attr(0755,root,root) %{_sbindir}/nfsdclnts
|
|
%{_mandir}/man5/exports.5%{ext_man}
|
|
%{_mandir}/man7/nfsd.7%{ext_man}
|
|
%{_mandir}/man8/exportfs.8%{ext_man}
|
|
%{_mandir}/man8/mountd.8%{ext_man}
|
|
%{_mandir}/man8/nfsd.8%{ext_man}
|
|
%{_mandir}/man8/rpc.mountd.8%{ext_man}
|
|
%{_mandir}/man8/rpc.nfsd.8%{ext_man}
|
|
%{_mandir}/man8/nfsdcltrack.8%{ext_man}
|
|
%config(noreplace) %{_localstatedir}/lib/nfs/etab
|
|
%config(noreplace) %{_localstatedir}/lib/nfs/rmtab
|
|
|
|
%files -n libnfsidmap1
|
|
%{_libdir}/libnfsidmap-1.0.0/
|
|
%{_libdir}/libnfsidmap.so.1*
|
|
|
|
%files -n nfsidmap-devel
|
|
%{_libdir}/libnfsidmap.so
|
|
%{_includedir}/*.h
|
|
%{_libdir}/pkgconfig/libnfsidmap.pc
|
|
%{_mandir}/man3/*
|
|
%doc support/nfsidmap/README
|
|
|
|
%changelog
|