diff options
author | Mike Gilbert <floppym@gentoo.org> | 2024-02-26 11:42:09 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2024-02-26 11:43:59 -0500 |
commit | 6999ece65148c52357bee19b2dc766262708d4a4 (patch) | |
tree | 0c63515b80e981d3b392d19eaf0c1ce0760a0827 /net-fs | |
parent | net-vpn/eduvpn-client: add dependency to dev-python/sphinx-rtd-theme (diff) | |
download | gentoo-6999ece65148c52357bee19b2dc766262708d4a4.tar.gz gentoo-6999ece65148c52357bee19b2dc766262708d4a4.tar.bz2 gentoo-6999ece65148c52357bee19b2dc766262708d4a4.zip |
net-fs/nfs-utils: remove 'need portmap' from init scripts (-nfsv3)
Closes: https://bugs.gentoo.org/925459
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/nfs-utils/files/nfs.initd | 3 | ||||
-rw-r--r-- | net-fs/nfs-utils/files/nfsclient.initd | 3 | ||||
-rw-r--r-- | net-fs/nfs-utils/files/rpc.gssd.initd | 3 | ||||
-rw-r--r-- | net-fs/nfs-utils/files/rpc.idmapd.initd | 3 | ||||
-rw-r--r-- | net-fs/nfs-utils/files/rpc.svcgssd.initd | 3 | ||||
-rw-r--r-- | net-fs/nfs-utils/nfs-utils-2.6.4-r11.ebuild (renamed from net-fs/nfs-utils/nfs-utils-2.6.4-r10.ebuild) | 11 |
6 files changed, 18 insertions, 8 deletions
diff --git a/net-fs/nfs-utils/files/nfs.initd b/net-fs/nfs-utils/files/nfs.initd index 7c1de560d1da..88a13a85db38 100644 --- a/net-fs/nfs-utils/files/nfs.initd +++ b/net-fs/nfs-utils/files/nfs.initd @@ -24,7 +24,8 @@ depend() { }' /etc/exports /etc/exports.d/*.exports 2>/dev/null )" config /etc/exports /etc/exports.d/*.exports - need portmap rpc.statd ${myneed} ${NFS_NEEDED_SERVICES} + need portmap + need rpc.statd ${myneed} ${NFS_NEEDED_SERVICES} use ypbind net dns rpc.rquotad rpc.idmapd rpc.svcgssd after quota } diff --git a/net-fs/nfs-utils/files/nfsclient.initd b/net-fs/nfs-utils/files/nfsclient.initd index 6724e913d10f..e278cbde0539 100644 --- a/net-fs/nfs-utils/files/nfsclient.initd +++ b/net-fs/nfs-utils/files/nfsclient.initd @@ -14,7 +14,8 @@ depend() { done fi config /etc/fstab - need portmap rpc.statd rpc.idmapd ${myneed} + need portmap + need rpc.statd rpc.idmapd ${myneed} use ypbind dns } diff --git a/net-fs/nfs-utils/files/rpc.gssd.initd b/net-fs/nfs-utils/files/rpc.gssd.initd index 445d44c44473..7bfe920b3d54 100644 --- a/net-fs/nfs-utils/files/rpc.gssd.initd +++ b/net-fs/nfs-utils/files/rpc.gssd.initd @@ -6,7 +6,8 @@ depend() { use ypbind net - need portmap rpc.pipefs + need portmap + need rpc.pipefs after quota } diff --git a/net-fs/nfs-utils/files/rpc.idmapd.initd b/net-fs/nfs-utils/files/rpc.idmapd.initd index 61cfd4de2e73..9cb36000b5ed 100644 --- a/net-fs/nfs-utils/files/rpc.idmapd.initd +++ b/net-fs/nfs-utils/files/rpc.idmapd.initd @@ -8,7 +8,8 @@ rpc_bin=/usr/sbin/rpc.idmapd depend() { use ypbind net - need portmap rpc.pipefs + need portmap + need rpc.pipefs after quota } diff --git a/net-fs/nfs-utils/files/rpc.svcgssd.initd b/net-fs/nfs-utils/files/rpc.svcgssd.initd index c714e36076f4..11bc4265eddd 100644 --- a/net-fs/nfs-utils/files/rpc.svcgssd.initd +++ b/net-fs/nfs-utils/files/rpc.svcgssd.initd @@ -6,7 +6,8 @@ depend() { use ypbind net - need portmap rpc.pipefs + need portmap + need rpc.pipefs after quota } diff --git a/net-fs/nfs-utils/nfs-utils-2.6.4-r10.ebuild b/net-fs/nfs-utils/nfs-utils-2.6.4-r11.ebuild index a50758b8b9eb..b64941485bd6 100644 --- a/net-fs/nfs-utils/nfs-utils-2.6.4-r10.ebuild +++ b/net-fs/nfs-utils/nfs-utils-2.6.4-r11.ebuild @@ -167,14 +167,19 @@ src_install() { doins "${FILESDIR}"/exports keepdir /etc/exports.d - local f list=() opt_need="" + local f list=() if use nfsv4 ; then - opt_need="rpc.idmapd" list+=( rpc.idmapd rpc.pipefs ) use kerberos && list+=( rpc.gssd rpc.svcgssd ) fi + + local sedexp=( -e '#placehoder' ) + use nfsv3 || sedexp+=( -e '/need portmap/d' ) + + mkdir -p "${T}/init.d" || die for f in nfs nfsclient rpc.statd "${list[@]}" ; do - newinitd "${FILESDIR}"/${f}.initd ${f} + sed "${sedexp[@]}" "${FILESDIR}/${f}.initd" > "${T}/init.d/${f}" || die + doinitd "${T}/init.d/${f}" done local systemd_systemunitdir="$(systemd_get_systemunitdir)" |