From eec42d4c3f364f5fa45fbcd03bfc7438119b6b59 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Thu, 18 Feb 2021 17:10:07 +0100 Subject: [PATCH] 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. --- .../coreos-overlay/net-fs/samba/metadata.xml | 4 ++++ .../net-fs/samba/samba-4.12.9-r2.ebuild | 24 +++++++++++++++---- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/net-fs/samba/metadata.xml b/sdk_container/src/third_party/coreos-overlay/net-fs/samba/metadata.xml index d1bb8bfdd5..e871aa5724 100644 --- a/sdk_container/src/third_party/coreos-overlay/net-fs/samba/metadata.xml +++ b/sdk_container/src/third_party/coreos-overlay/net-fs/samba/metadata.xml @@ -16,12 +16,16 @@ Enables the client part Enable support for clustering Enable support for DMAPI. This currently works only in combination with XFS. + Enable support for Glusterfs filesystem via sys-cluster/glusterfs Use app-crypt/gpgme for AD DC Enable json audit support through dev-libs/jansson Enabling iPrint technology by Novell + Enable support for NTVFS fileserver Enables support for collecting profiling data Enables support for user quotas + Enable support for regedit command-line tool Enable vfs_snapper module (requires sys-apps/dbus) + Enable support for spotlight backend Use app-crypt/heimdal instead of bundled heimdal. Use app-crypt/mit-krb5 instead of diff --git a/sdk_container/src/third_party/coreos-overlay/net-fs/samba/samba-4.12.9-r2.ebuild b/sdk_container/src/third_party/coreos-overlay/net-fs/samba/samba-4.12.9-r2.ebuild index 6e1edaa7f4..c06ae25d4e 100644 --- a/sdk_container/src/third_party/coreos-overlay/net-fs/samba/samba-4.12.9-r2.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/net-fs/samba/samba-4.12.9-r2.ebuild @@ -23,9 +23,10 @@ LICENSE="GPL-3" SLOT="0" -IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gpg iprint -json ldap pam profiling-data python quota selinux snapper syslog -system-heimdal +system-mitkrb5 systemd test winbind zeroconf" +IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam glusterfs +gpg iprint json ldap ntvfs pam profiling-data python quota +regedit selinux +snapper spotlight syslog system-heimdal +system-mitkrb5 systemd test winbind +zeroconf" IUSE+=" +minimal" # Flatcar: Only install libraries, not executables. MULTILIB_WRAPPED_HEADERS=( @@ -79,9 +80,7 @@ CDEPEND=" " DEPEND="${CDEPEND} ${PYTHON_DEPS} - app-text/docbook-xsl-stylesheets dev-lang/perl:= - dev-libs/libxslt >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}] net-libs/libtirpc[${MULTILIB_USEDEP}] virtual/pkgconfig @@ -89,6 +88,10 @@ DEPEND="${CDEPEND} net-libs/rpcsvc-proto =sys-libs/nss_wrapper-1.1.3 @@ -103,12 +106,19 @@ RDEPEND="${CDEPEND} selinux? ( sec-policy/selinux-samba ) " +BDEPEND=" + app-text/docbook-xsl-stylesheets + dev-libs/libxslt +" + REQUIRED_USE=" addc? ( python json winbind ) addns? ( python ) ads? ( acl ldap winbind ) cluster? ( ads ) gpg? ( addc ) + ntvfs? ( addc ) + spotlight? ( json ) test? ( python ) ?? ( system-heimdal system-mitkrb5 ) ${PYTHON_REQUIRED_USE} @@ -201,13 +211,17 @@ multilib_src_configure() { $(multilib_native_use_enable cups) $(multilib_native_use_with dmapi) $(multilib_native_use_with fam) + $(multilib_native_use_enable glusterfs) $(multilib_native_use_with gpg gpgme) $(multilib_native_use_with json) $(multilib_native_use_enable iprint) + $(multilib_native_use_with ntvfs ntvfs-fileserver) $(multilib_native_use_with pam) $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') $(multilib_native_use_with quota quotas) + $(multilib_native_use_with regedit regedit) $(multilib_native_use_enable snapper) + $(multilib_native_use_enable spotlight) $(multilib_native_use_with syslog) $(multilib_native_use_with systemd) --systemd-install-services