summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-05-30 22:01:43 +0000
committerMike Frysinger <vapier@gentoo.org>2009-05-30 22:01:43 +0000
commitb367f0fbe3119773e7ea58c2d5eacb1b6ef6550b (patch)
treefbf05046b4ea520f78a1b9e01898254e46cd4c3e /net-fs/nfs-utils
parentmask mplayer + libnut dep on all but x86/amd64 (diff)
downloadgentoo-2-b367f0fbe3119773e7ea58c2d5eacb1b6ef6550b.tar.gz
gentoo-2-b367f0fbe3119773e7ea58c2d5eacb1b6ef6550b.tar.bz2
gentoo-2-b367f0fbe3119773e7ea58c2d5eacb1b6ef6550b.zip
Have nfs init.d depend on rpc.idmapd by default when USE=nfsv4, but allow people to disable it via conf.d #234132 by roger.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'net-fs/nfs-utils')
-rw-r--r--net-fs/nfs-utils/ChangeLog7
-rw-r--r--net-fs/nfs-utils/files/nfs.confd4
-rwxr-xr-xnet-fs/nfs-utils/files/nfs.initd4
-rw-r--r--net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild6
4 files changed, 16 insertions, 5 deletions
diff --git a/net-fs/nfs-utils/ChangeLog b/net-fs/nfs-utils/ChangeLog
index bcac3c49ade1..9aeba17da75b 100644
--- a/net-fs/nfs-utils/ChangeLog
+++ b/net-fs/nfs-utils/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-fs/nfs-utils
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.157 2009/05/30 21:47:12 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.158 2009/05/30 22:01:42 vapier Exp $
+
+ 30 May 2009; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.1.6-r1.ebuild,
+ files/nfs.confd, files/nfs.initd:
+ Have nfs init.d depend on rpc.idmapd by default when USE=nfsv4, but allow
+ people to disable it via conf.d #234132 by roger.
30 May 2009; Mike Frysinger <vapier@gentoo.org>
+nfs-utils-1.1.6-r1.ebuild, metadata.xml:
diff --git a/net-fs/nfs-utils/files/nfs.confd b/net-fs/nfs-utils/files/nfs.confd
index 98a143a654d1..ad9e34f2a912 100644
--- a/net-fs/nfs-utils/files/nfs.confd
+++ b/net-fs/nfs-utils/files/nfs.confd
@@ -3,6 +3,10 @@
# If you wish to set the port numbers for lockd,
# please see /etc/sysctl.conf
+# Optional services to include in default `/etc/init.d/nfs start`
+# For NFSv4 users, you'll want to add "rpc.idmapd" here.
+NFS_NEEDED_SERVICES=""
+
# Number of servers to be started up by default
OPTS_RPC_NFSD="8"
diff --git a/net-fs/nfs-utils/files/nfs.initd b/net-fs/nfs-utils/files/nfs.initd
index 78de312df467..6f6ba98ceb94 100755
--- a/net-fs/nfs-utils/files/nfs.initd
+++ b/net-fs/nfs-utils/files/nfs.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.18 2009/02/27 01:41:55 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.19 2009/05/30 22:01:43 vapier Exp $
opts="reload"
@@ -23,7 +23,7 @@ depend() {
fi
fi
config /etc/exports
- need portmap rpc.statd ${myneed}
+ need portmap 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/nfs-utils-1.1.6-r1.ebuild b/net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild
index 2148e972ebff..1b27837ea30a 100644
--- a/net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild
+++ b/net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild,v 1.1 2009/05/30 21:47:12 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild,v 1.2 2009/05/30 22:01:42 vapier Exp $
EAPI="1"
@@ -78,8 +78,9 @@ src_install() {
insinto /etc
doins "${FILESDIR}"/exports
- local f list=""
+ local f list="" opt_need=""
if use nfsv4 ; then
+ opt_need="rpc.idmapd"
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
@@ -87,6 +88,7 @@ src_install() {
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
done
newconfd "${FILESDIR}"/nfs.confd nfs
+ dosed "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" /etc/conf.d/nfs #234132
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then