mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-07 18:31:54 +01:00
Merge pull request #864 from kinvolk/dongsu/optimize-samba
net-fs/samba: EAPI=7, new USE flags, remove deps on icu
This commit is contained in:
commit
8f866bbe0f
@ -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
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=6
|
EAPI=7
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6,7} )
|
PYTHON_COMPAT=( python3_{6,7} )
|
||||||
PYTHON_REQ_USE='threads(+),xml(+)'
|
PYTHON_REQ_USE='threads(+),xml(+)'
|
||||||
@ -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=(
|
||||||
@ -41,7 +42,7 @@ MULTILIB_WRAPPED_HEADERS=(
|
|||||||
|
|
||||||
CDEPEND="
|
CDEPEND="
|
||||||
>=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
|
>=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
|
||||||
dev-libs/icu:=[${MULTILIB_USEDEP}]
|
spotlight? ( dev-libs/icu:=[${MULTILIB_USEDEP}] )
|
||||||
dev-libs/libbsd[${MULTILIB_USEDEP}]
|
dev-libs/libbsd[${MULTILIB_USEDEP}]
|
||||||
!minimal? ( dev-libs/libtasn1[${MULTILIB_USEDEP}] )
|
!minimal? ( dev-libs/libtasn1[${MULTILIB_USEDEP}] )
|
||||||
dev-libs/popt[${MULTILIB_USEDEP}]
|
dev-libs/popt[${MULTILIB_USEDEP}]
|
||||||
@ -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}
|
||||||
@ -175,8 +185,9 @@ multilib_src_configure() {
|
|||||||
bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
|
bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Flatcar: Don't depend on tons of new packages with broken cross-compilation support.
|
# Flatcar: we need only the mandatory bundled library, ldb by default.
|
||||||
bundled_libs=ALL
|
# Without that, configure will fail because of a missing bundled library.
|
||||||
|
bundled_libs="ldb"
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--enable-fhs
|
--enable-fhs
|
||||||
@ -201,13 +212,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
|
||||||
@ -119,3 +119,6 @@ net-libs/nghttp2 -cxx
|
|||||||
|
|
||||||
# These (qmanifest and qtegrity) are new tools and they pull even more dependencies.
|
# These (qmanifest and qtegrity) are new tools and they pull even more dependencies.
|
||||||
app-portage/portage-utils -qmanifest -qtegrity
|
app-portage/portage-utils -qmanifest -qtegrity
|
||||||
|
|
||||||
|
# Disable unnecessary regedit in samba to minimize the package size.
|
||||||
|
net-fs/samba -regedit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user