|
|
|
@ -1,37 +1,41 @@
|
|
|
|
|
# Copyright 1999-2021 Gentoo Foundation
|
|
|
|
|
# Copyright 1999-2022 Gentoo Foundation
|
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
EAPI=8
|
|
|
|
|
|
|
|
|
|
#PYTHON_COMPAT=( python3_9 )
|
|
|
|
|
PYTHON_COMPAT=( python3_10 )
|
|
|
|
|
|
|
|
|
|
#inherit cmake flag-o-matic python-single-r1
|
|
|
|
|
inherit cmake flag-o-matic
|
|
|
|
|
inherit cmake flag-o-matic python-single-r1
|
|
|
|
|
#inherit cmake flag-o-matic
|
|
|
|
|
|
|
|
|
|
DESCRIPTION="A NFSv3,v4,v4.1 fileserver that runs in user mode on most UNIX/Linux systems"
|
|
|
|
|
HOMEPAGE="https://github.com/nfs-ganesha/nfs-ganesha"
|
|
|
|
|
if [[ ${PV} == *beta* ]] ; then
|
|
|
|
|
MY_PV="$(ver_cut 1)-dev.$(ver_cut 4)"
|
|
|
|
|
SRC_URI="https://github.com/nfs-ganesha/${PN}/archive/V${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
S="${WORKDIR}/${PN}-${MY_PV}/src"
|
|
|
|
|
else
|
|
|
|
|
SRC_URI="https://github.com/nfs-ganesha/${PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
S="${WORKDIR}/${P}/src"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
LICENSE="LGPL-3"
|
|
|
|
|
SLOT="0"
|
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
IUSE="btrfs dbus debug gssapi gui +nfs3 nfsidmap tools vsock"
|
|
|
|
|
FS_SUPPORT=" ceph glusterfs gpfs lustre mem null panfs proxy-v3 proxy-v4 rgw vfs xfs"
|
|
|
|
|
IUSE="btrfs caps dbus debug gssapi gui +nfs3 nfsidmap tools vsock"
|
|
|
|
|
FS_SUPPORT=" ceph glusterfs gpfs lustre mem null proxy-v3 proxy-v4 rgw vfs xfs"
|
|
|
|
|
IUSE+=" ${FS_SUPPORT// / ganesha_fs_}"
|
|
|
|
|
|
|
|
|
|
REQUIRED_USE="gui? ( tools )
|
|
|
|
|
btrfs? ( ganesha_fs_vfs )"
|
|
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
|
dev-libs/jemalloc
|
|
|
|
|
dev-libs/jemalloc:=
|
|
|
|
|
dev-libs/userspace-rcu:=
|
|
|
|
|
net-libs/libnfsidmap
|
|
|
|
|
>=net-libs/ntirpc-3.4:=[gssapi]
|
|
|
|
|
>=net-libs/ntirpc-4.0[gssapi]
|
|
|
|
|
sys-apps/acl
|
|
|
|
|
sys-apps/util-linux
|
|
|
|
|
caps? ( sys-libs/libcap )
|
|
|
|
|
btrfs? ( sys-fs/btrfs-progs )
|
|
|
|
|
gssapi? ( virtual/krb5 )
|
|
|
|
|
dbus? ( sys-apps/dbus )
|
|
|
|
@ -39,6 +43,7 @@ RDEPEND="
|
|
|
|
|
ganesha_fs_glusterfs? ( sys-cluster/glusterfs )
|
|
|
|
|
ganesha_fs_lustre? ( sys-cluster/lustre )
|
|
|
|
|
ganesha_fs_xfs? ( sys-fs/xfsprogs )
|
|
|
|
|
nfsidmap? ( net-libs/libnfsidmap )
|
|
|
|
|
"
|
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
|
sys-devel/bison
|
|
|
|
@ -46,10 +51,6 @@ DEPEND="${RDEPEND}
|
|
|
|
|
virtual/pkgconfig
|
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
#S="${WORKDIR}/${P}/src"
|
|
|
|
|
S="${WORKDIR}/${PN}-${MY_PV}/src"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
|
if use tools || use gui; then
|
|
|
|
|
python-single-r1_pkg_setup
|
|
|
|
@ -76,6 +77,7 @@ src_configure() {
|
|
|
|
|
-DALLOCATOR=jemalloc
|
|
|
|
|
-DUSE_SYSTEM_NTIRPC=ON
|
|
|
|
|
-DTIRPC_EPOLL=ON
|
|
|
|
|
-USE_ACL_MAPPING=ON
|
|
|
|
|
-DUSE_BTRFSUTIL=$(usex btrfs)
|
|
|
|
|
-DUSE_GSS=$(usex gssapi)
|
|
|
|
|
-DUSE_DBUS=$(usex dbus)
|
|
|
|
@ -102,7 +104,6 @@ src_configure() {
|
|
|
|
|
-DUSE_FSAL_LUSTRE=$(usex ganesha_fs_lustre)
|
|
|
|
|
-DUSE_FSAL_MEM=$(usex ganesha_fs_mem)
|
|
|
|
|
-DUSE_FSAL_NULL=$(usex ganesha_fs_null)
|
|
|
|
|
-DUSE_FSAL_PANFS=$(usex ganesha_fs_panfs)
|
|
|
|
|
-DUSE_FSAL_PROXY_V3=$(usex ganesha_fs_proxy-v3)
|
|
|
|
|
-DUSE_FSAL_PROXY_V4=$(usex ganesha_fs_proxy-v4)
|
|
|
|
|
-DUSE_FSAL_RGW=$(usex ganesha_fs_rgw)
|