net-fs/samba: new USE flags spotlight, regedit, glusterfs, ntvfs

Introduce a USE flag spotlight, to be able to disable the spotlight
backend by default, as it is not needed by Linux.

Introduce a USE flag rededit, to be able to disable the rededit
tool if needed.

Introduce a USE flag glusterfs, to be able to disable the glusterfs
by default.

Introduce a USE flag ntvfs, to be able to disable the ntvfs-fileserver
by default.

Since the docbook-xsl-stylesheets and libxslt are needed only
at build time, we should move those deps to BDEPEND.
This commit is contained in:
Dongsu Park 2021-02-18 17:10:07 +01:00
parent 61eb799b82
commit eec42d4c3f
2 changed files with 23 additions and 5 deletions

View File

@ -16,12 +16,16 @@
<flag name="client">Enables the client part</flag> <flag name="client">Enables the client part</flag>
<flag name="cluster">Enable support for clustering</flag> <flag name="cluster">Enable support for clustering</flag>
<flag name="dmapi">Enable support for DMAPI. This currently works only in combination with XFS.</flag> <flag name="dmapi">Enable support for DMAPI. This currently works only in combination with XFS.</flag>
<flag name="glusterfs">Enable support for Glusterfs filesystem via <pkg>sys-cluster/glusterfs</pkg></flag>
<flag name="gpg">Use <pkg>app-crypt/gpgme</pkg> for AD DC</flag> <flag name="gpg">Use <pkg>app-crypt/gpgme</pkg> for AD DC</flag>
<flag name="json">Enable json audit support through <pkg>dev-libs/jansson</pkg></flag> <flag name="json">Enable json audit support through <pkg>dev-libs/jansson</pkg></flag>
<flag name="iprint">Enabling iPrint technology by Novell</flag> <flag name="iprint">Enabling iPrint technology by Novell</flag>
<flag name="ntvfs">Enable support for NTVFS fileserver</flag>
<flag name="profiling-data">Enables support for collecting profiling data</flag> <flag name="profiling-data">Enables support for collecting profiling data</flag>
<flag name="quota">Enables support for user quotas</flag> <flag name="quota">Enables support for user quotas</flag>
<flag name="regedit">Enable support for regedit command-line tool</flag>
<flag name="snapper">Enable vfs_snapper module (requires <pkg>sys-apps/dbus</pkg>)</flag> <flag name="snapper">Enable vfs_snapper module (requires <pkg>sys-apps/dbus</pkg>)</flag>
<flag name="spotlight">Enable support for spotlight backend</flag>
<flag name="system-heimdal">Use <pkg>app-crypt/heimdal</pkg> instead of <flag name="system-heimdal">Use <pkg>app-crypt/heimdal</pkg> instead of
bundled heimdal.</flag> bundled heimdal.</flag>
<flag name="system-mitkrb5">Use <pkg>app-crypt/mit-krb5</pkg> instead of <flag name="system-mitkrb5">Use <pkg>app-crypt/mit-krb5</pkg> instead of

View File

@ -23,9 +23,10 @@ LICENSE="GPL-3"
SLOT="0" SLOT="0"
IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gpg iprint IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam glusterfs
json ldap pam profiling-data python quota selinux snapper syslog gpg iprint json ldap ntvfs pam profiling-data python quota +regedit selinux
system-heimdal +system-mitkrb5 systemd test winbind zeroconf" snapper spotlight syslog system-heimdal +system-mitkrb5 systemd test winbind
zeroconf"
IUSE+=" +minimal" # Flatcar: Only install libraries, not executables. IUSE+=" +minimal" # Flatcar: Only install libraries, not executables.
MULTILIB_WRAPPED_HEADERS=( MULTILIB_WRAPPED_HEADERS=(
@ -79,9 +80,7 @@ CDEPEND="
" "
DEPEND="${CDEPEND} DEPEND="${CDEPEND}
${PYTHON_DEPS} ${PYTHON_DEPS}
app-text/docbook-xsl-stylesheets
dev-lang/perl:= dev-lang/perl:=
dev-libs/libxslt
>=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}] >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
net-libs/libtirpc[${MULTILIB_USEDEP}] net-libs/libtirpc[${MULTILIB_USEDEP}]
virtual/pkgconfig virtual/pkgconfig
@ -89,6 +88,10 @@ DEPEND="${CDEPEND}
net-libs/rpcsvc-proto net-libs/rpcsvc-proto
<sys-libs/glibc-2.26[rpc(+)] <sys-libs/glibc-2.26[rpc(+)]
) )
spotlight? (
app-misc/tracker
dev-libs/glib
)
test? ( test? (
!system-mitkrb5? ( !system-mitkrb5? (
>=sys-libs/nss_wrapper-1.1.3 >=sys-libs/nss_wrapper-1.1.3
@ -103,12 +106,19 @@ RDEPEND="${CDEPEND}
selinux? ( sec-policy/selinux-samba ) selinux? ( sec-policy/selinux-samba )
" "
BDEPEND="
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
"
REQUIRED_USE=" REQUIRED_USE="
addc? ( python json winbind ) addc? ( python json winbind )
addns? ( python ) addns? ( python )
ads? ( acl ldap winbind ) ads? ( acl ldap winbind )
cluster? ( ads ) cluster? ( ads )
gpg? ( addc ) gpg? ( addc )
ntvfs? ( addc )
spotlight? ( json )
test? ( python ) test? ( python )
?? ( system-heimdal system-mitkrb5 ) ?? ( system-heimdal system-mitkrb5 )
${PYTHON_REQUIRED_USE} ${PYTHON_REQUIRED_USE}
@ -201,13 +211,17 @@ multilib_src_configure() {
$(multilib_native_use_enable cups) $(multilib_native_use_enable cups)
$(multilib_native_use_with dmapi) $(multilib_native_use_with dmapi)
$(multilib_native_use_with fam) $(multilib_native_use_with fam)
$(multilib_native_use_enable glusterfs)
$(multilib_native_use_with gpg gpgme) $(multilib_native_use_with gpg gpgme)
$(multilib_native_use_with json) $(multilib_native_use_with json)
$(multilib_native_use_enable iprint) $(multilib_native_use_enable iprint)
$(multilib_native_use_with ntvfs ntvfs-fileserver)
$(multilib_native_use_with pam) $(multilib_native_use_with pam)
$(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
$(multilib_native_use_with quota quotas) $(multilib_native_use_with quota quotas)
$(multilib_native_use_with regedit regedit)
$(multilib_native_use_enable snapper) $(multilib_native_use_enable snapper)
$(multilib_native_use_enable spotlight)
$(multilib_native_use_with syslog) $(multilib_native_use_with syslog)
$(multilib_native_use_with systemd) $(multilib_native_use_with systemd)
--systemd-install-services --systemd-install-services