[net-fs/nfs-ganesha] bump, still wip

This commit is contained in:
Robert Förster 2021-02-01 02:53:28 +01:00
parent 1fef2940e9
commit aa81d5a2a5
4 changed files with 50 additions and 21 deletions

View File

@ -1 +1 @@
DIST nfs-ganesha-4.0_beta29.tar.gz 1845084 BLAKE2B 5cef2e879ddc799a245679be433c4091fddbb1e585830b1eb8ee3a4bc7d6a814a48355d14088cce5b59efaa74379db7453c497f889850f182f38df04d63411dc SHA512 46fde21768f387c993104d0da9dd0687e2b414b3adeb108f0475263b99909f32fe52340229575fedf270ccb26be3615796021bd93932eeb466b22863e3aaee7c DIST nfs-ganesha-4.0_beta49.tar.gz 1877085 BLAKE2B a6e6d9c4dfe710be9ad0d90115a99137f2da9a9687f21670ba8e7e7dcb9443eb836314363bb417bc37628f861efae0017efd0107e76a1e018d737cabf4776b72 SHA512 f78d3cb02d20cd132b6a0c55cd8cd09a660c6084d0721c6e1d29602b4361619c17c6ed770a61efb367b01e409b6c45a40427eafdbee23b40dcfe2426e2fd094f

View File

@ -3,17 +3,6 @@
<pkgmetadata> <pkgmetadata>
<!-- maintainer-needed --> <!-- maintainer-needed -->
<use> <use>
<flag name="ganesha_fs_ceph">Enables CEPH support</flag>
<flag name="ganesha_fs_glusterfs">Enables GlusterFS support</flag>
<flag name="ganesha_fs_gpfs">Enables support for GPFS</flag>
<flag name="ganesha_fs_lustre">Enables support for LustreFS</flag>
<flag name="ganesha_fs_null">Enables support for NULL</flag>
<flag name="ganesha_fs_panfs">Enables support for PanFS</flag>
<flag name="ganesha_fs_proxy">Enables support for PROXY</flag>
<flag name="ganesha_fs_rgw">Enables support for RGW</flag>
<flag name="ganesha_fs_vfs">Enables support for VFS</flag>
<flag name="ganesha_fs_xfs">Enables support for XFS</flag>
<flag name="ganesha_fs_zfs">Enables support for ZFS</flag>
<flag name="gssapi">Enable GSSAPI support</flag> <flag name="gssapi">Enable GSSAPI support</flag>
<flag name="tools">Install Admin scripts</flag> <flag name="tools">Install Admin scripts</flag>
<flag name="gui">Install GUI Admin scripts</flag> <flag name="gui">Install GUI Admin scripts</flag>

View File

@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Foundation # Copyright 1999-2021 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=7
#PYTHON_COMPAT=( python3_8 ) #PYTHON_COMPAT=( python3_9 )
#inherit cmake flag-o-matic python-single-r1 #inherit cmake flag-o-matic python-single-r1
inherit cmake flag-o-matic inherit cmake flag-o-matic
@ -20,8 +20,8 @@ fi
LICENSE="LGPL-3" LICENSE="LGPL-3"
SLOT="0" SLOT="0"
KEYWORDS="~amd64" KEYWORDS="~amd64"
IUSE="dbus debug gssapi gui nfs3 nfsidmap rdma tools vsock" IUSE="dbus debug gssapi gui +nfs3 nfsidmap tools vsock"
FS_SUPPORT=" ceph glusterfs gpfs lustre mem null panfs proxy rgw vfs xfs" FS_SUPPORT=" ceph glusterfs gpfs lustre mem null panfs proxy-v3 proxy-v4 rgw vfs xfs"
IUSE+=" ${FS_SUPPORT// / ganesha_fs_}" IUSE+=" ${FS_SUPPORT// / ganesha_fs_}"
REQUIRED_USE="gui? ( tools )" REQUIRED_USE="gui? ( tools )"
@ -29,7 +29,7 @@ REQUIRED_USE="gui? ( tools )"
RDEPEND=" RDEPEND="
dev-libs/jemalloc dev-libs/jemalloc
net-libs/libnfsidmap net-libs/libnfsidmap
>=net-libs/ntirpc-3.3:=[rdma?,gssapi] >=net-libs/ntirpc-3.4:=[gssapi]
gssapi? ( virtual/krb5 ) gssapi? ( virtual/krb5 )
dbus? ( sys-apps/dbus ) dbus? ( sys-apps/dbus )
ganesha_fs_ceph? ( sys-cluster/ceph ) ganesha_fs_ceph? ( sys-cluster/ceph )
@ -46,7 +46,13 @@ DEPEND="${RDEPEND}
#S="${WORKDIR}/${P}/src" #S="${WORKDIR}/${P}/src"
S="${WORKDIR}/${PN}-${MY_PV}/src" S="${WORKDIR}/${PN}-${MY_PV}/src"
CMAKE_BUILD_TYPE="Release"
pkg_setup() {
if use tools || use gui; then
python-single-r1_pkg_setup
fi
}
src_prepare() { src_prepare() {
sed \ sed \
@ -57,11 +63,16 @@ src_prepare() {
} }
src_configure() { src_configure() {
if use debug ; then
CMAKE_BUILD_TYPE=Debug
else
CMAKE_BUILD_TYPE=Release
fi
local mycmakeargs=( local mycmakeargs=(
-DALLOCATOR=jemalloc -DALLOCATOR=jemalloc
-DUSE_SYSTEM_NTIRPC=ON -DUSE_SYSTEM_NTIRPC=ON
-DTIRPC_EPOLL=ON -DTIRPC_EPOLL=ON
-DKRB5_FIND_COMPONENTS="gssrpc"
-DUSE_GSS=$(usex gssapi) -DUSE_GSS=$(usex gssapi)
-DUSE_DBUS=$(usex dbus) -DUSE_DBUS=$(usex dbus)
-DUSE_NFSIDMAP=$(usex nfsidmap) -DUSE_NFSIDMAP=$(usex nfsidmap)
@ -70,7 +81,6 @@ src_configure() {
-DUSE_EFENCE=$(usex debug) -DUSE_EFENCE=$(usex debug)
-DDEBUG_SAL=$(usex debug) -DDEBUG_SAL=$(usex debug)
-DENABLE_LOCKTRACE=$(usex debug) -DENABLE_LOCKTRACE=$(usex debug)
-DUSE_NFS_RDMA=$(usex rdma)
-DUSE_NFS3=$(usex nfs3) -DUSE_NFS3=$(usex nfs3)
-DUSE_NFSACL3=$(usex nfs3) -DUSE_NFSACL3=$(usex nfs3)
-DUSE_NLM=$(usex nfs3) -DUSE_NLM=$(usex nfs3)
@ -89,11 +99,24 @@ src_configure() {
-DUSE_FSAL_MEM=$(usex ganesha_fs_mem) -DUSE_FSAL_MEM=$(usex ganesha_fs_mem)
-DUSE_FSAL_NULL=$(usex ganesha_fs_null) -DUSE_FSAL_NULL=$(usex ganesha_fs_null)
-DUSE_FSAL_PANFS=$(usex ganesha_fs_panfs) -DUSE_FSAL_PANFS=$(usex ganesha_fs_panfs)
-DUSE_FSAL_PROXY=$(usex ganesha_fs_proxy) -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) -DUSE_FSAL_RGW=$(usex ganesha_fs_rgw)
-DUSE_FSAL_VFS=$(usex ganesha_fs_vfs) -DUSE_FSAL_VFS=$(usex ganesha_fs_vfs)
-DUSE_FSAL_XFS=$(usex ganesha_fs_xfs) -DUSE_FSAL_XFS=$(usex ganesha_fs_xfs)
-DUSE_FSAL_LIZARDFS=OFF
-DUSE_FSAL_KVSFS=OFF
) )
if use gui || use tools; then
mycmakeargs+=(
-DPython_INCLUDE_DIR="$(python_get_includedir)"
-DPython_LIBRARY="$(python_get_library_path)"
-DPython_EXECUTABLE="${PYTHON}"
)
fi
cmake_src_configure cmake_src_configure
} }
#testing #testing

View File

@ -0,0 +1,17 @@
# Copyright 1999-2021 Gentoo Authors.
# Distributed under the terms of the GNU General Public License v2
# This file contains descriptions of GANESHA_FS USE_EXPAND flags.
ceph - Enables CEPH support
glusterfs - Enables GlusterFS support
gpfs - Enables support for GPFS
lustre - Enables support for LustreFS
null - Enables support for NULL
panfs - Enables support for PanFS
proxy-v3 - Enables support for PROXY_V3
proxy-v4 - Enables support for PROXY_V4
rgw - Enables support for RGW
vfs - Enables support for VFS
xfs - Enables support for XFS
zfs - Enables support for ZFS