--- net-fs/nfs-utils/nfs-utils-2.6.1.ebuild 2022-08-10 07:10:41.000000000 +0200 +++ net-fs/nfs-utils/nfs-utils-2.6.1.ebuild 2022-10-18 05:22:45.789707024 +0200 @@ -6,9 +6,9 @@ inherit autotools linux-info systemd DESCRIPTION="NFS client and server daemons" -HOMEPAGE="http://linux-nfs.org/ https://git.linux-nfs.org/?p=steved/nfs-utils.git" +HOMEPAGE="http://linux-nfs.org/" -if [[ ${PV} == *_rc* ]] ; then +if [[ "${PV}" = *_rc* ]] ; then MY_PV="$(ver_rs 1- -)" SRC_URI="http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=snapshot;h=refs/tags/${PN}-${MY_PV};sf=tgz -> ${P}.tar.gz" S="${WORKDIR}/${PN}-${PN}-${MY_PV}" @@ -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 " @@ -108,7 +108,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 +123,11 @@ $(use_enable uuid) $(use_with tcpd tcp-wrappers) ) + if use nis ; then + myeconfargs+=( --with-rpcgen ) + else + myeconfargs+=( --with-rpcgen=internal ) + fi econf "${myeconfargs[@]}" }