--- net-fs/nfs-utils/nfs-utils-2.6.1.ebuild 2022-05-07 20:40:33.000000000 +0200 +++ net-fs/nfs-utils/nfs-utils-2.6.1.ebuild 2022-06-01 15:12:19.011372063 +0200 @@ -19,7 +19,7 @@ LICENSE="GPL-2" SLOT="0" -IUSE="caps junction kerberos ldap +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 sasl selinux tcpd +uuid" +IUSE="caps junction kerberos ldap +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 nis sasl selinux tcpd +uuid" REQUIRED_USE="kerberos? ( nfsv4 )" RESTRICT="test" #315573 @@ -32,6 +32,7 @@ net-libs/libtirpc:= >=net-nds/rpcbind-0.2.4 sys-fs/e2fsprogs + virtual/rpcgen[nis=] caps? ( sys-libs/libcap ) ldap? ( net-nds/openldap:= @@ -66,7 +67,6 @@ ) " BDEPEND=" - net-libs/rpcsvc-proto virtual/pkgconfig " @@ -85,6 +85,7 @@ } src_prepare() { + use nis || eapply "${FILESDIR}"/${PN}-2.3.3-no-nis.patch default sed \ @@ -108,7 +109,6 @@ --enable-tirpc --with-tirpcinclude="${ESYSROOT}"/usr/include/tirpc/ --with-pluginpath="${EPREFIX}"/usr/$(get_libdir)/libnfsidmap - --with-rpcgen --with-systemd="$(systemd_get_systemunitdir)" --without-gssglue $(use_enable caps) @@ -124,6 +124,11 @@ $(use_enable uuid) $(use_with tcpd tcp-wrappers) ) + if use nis ; then + myeconfargs+=( --with-rpcgen ) + else + myeconfargs+=( --with-rpcgen=internal ) + fi econf "${myeconfargs[@]}" }