Skip to content

Commit 843cbaa

Browse files
committed
net-fs/samba: Sync with Gentoo
It's from Gentoo commit 75c0e03f350aa2025ba1b08171fcad66522614b8.
1 parent fd33dfd commit 843cbaa

File tree

3 files changed

+9
-89
lines changed

3 files changed

+9
-89
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DIST samba-4.18.4.tar.gz 41311410 BLAKE2B 1f1aab7eb933111b9b1c72af8c3dd379fe34014085129e9d5cc400b4e434742e1c08ad4fdf2a98291d6063ce9b2ddc811e9ab5dbb133a85e97f2158f83dd7c96 SHA512 bc8d792b510061556c07b6844a825801a4271eed45e01133a4718c1839d123e2908fa0e31e67af43098500e98a9082eb104052e711a8a034fac23d86e15c29ee
1+
DIST samba-4.18.8.tar.gz 41335959 BLAKE2B d25711f1e781ed16fc224476979a07a5362f92ac943dd0bccfdf445434d0e6838281d5ceae27963267f914720ad6db647078520dc0e78c6ae652faec7d773e73 SHA512 2924c360f6299129527457547b13c1b282e2907a0ecde1036dbca894c752935d693914b4846a9eab436b33798c53c9974692e51fd071301b1174598be944a246

sdk_container/src/third_party/coreos-overlay/net-fs/samba/files/samba-4.18.4-bug-15418-windows-update-secure-channel.patch

Lines changed: 0 additions & 56 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/net-fs/samba/samba-4.18.4.ebuild renamed to sdk_container/src/third_party/coreos-overlay/net-fs/samba/samba-4.18.8.ebuild

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ EAPI=8
55

66
PYTHON_COMPAT=( python3_{10..11} )
77
PYTHON_REQ_USE="threads(+),xml(+)"
8-
TMPFILES_OPTIONAL=1
98
inherit python-single-r1 flag-o-matic waf-utils multilib-minimal linux-info systemd pam tmpfiles
109

1110
DESCRIPTION="Samba Suite Version 4"
@@ -27,7 +26,6 @@ IUSE="acl addc ads ceph client cluster cpu_flags_x86_aes cups debug fam glusterf
2726
IUSE+=" iprint json ldap llvm-libunwind pam profiling-data python quota +regedit selinux"
2827
IUSE+=" snapper spotlight syslog system-heimdal +system-mitkrb5 systemd test unwind winbind"
2928
IUSE+=" zeroconf"
30-
IUSE+=" +minimal" # Flatcar: Only install libraries, not executables.
3129

3230
REQUIRED_USE="${PYTHON_REQUIRED_USE}
3331
addc? ( json python !system-mitkrb5 winbind )
@@ -61,13 +59,14 @@ TALLOC_VERSION="2.4.0"
6159
TDB_VERSION="1.4.8"
6260
TEVENT_VERSION="0.14.1"
6361

64-
# Flatcar: exclude perl, icu, libtasn1, Parse-Yapp from DEPEND
6562
COMMON_DEPEND="
6663
>=app-arch/libarchive-3.1.2:=[${MULTILIB_USEDEP}]
67-
spotlight? ( dev-libs/icu:=[${MULTILIB_USEDEP}] )
64+
dev-lang/perl:=
65+
dev-libs/icu:=[${MULTILIB_USEDEP}]
6866
dev-libs/libbsd[${MULTILIB_USEDEP}]
69-
!minimal? ( dev-libs/libtasn1:=[${MULTILIB_USEDEP}] )
67+
dev-libs/libtasn1:=[${MULTILIB_USEDEP}]
7068
dev-libs/popt[${MULTILIB_USEDEP}]
69+
dev-perl/Parse-Yapp
7170
>=net-libs/gnutls-3.4.7:=[${MULTILIB_USEDEP}]
7271
>=sys-fs/e2fsprogs-1.46.4-r51[${MULTILIB_USEDEP}]
7372
>=sys-libs/ldb-2.7.2:=[ldap(+)?,${MULTILIB_USEDEP}]
@@ -109,7 +108,7 @@ COMMON_DEPEND="
109108
sys-libs/tevent[python,${PYTHON_SINGLE_USEDEP}]
110109
)
111110
snapper? ( sys-apps/dbus )
112-
system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
111+
system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl(-),${MULTILIB_USEDEP}] )
113112
system-mitkrb5? ( >=app-crypt/mit-krb5-1.19[${MULTILIB_USEDEP}] )
114113
systemd? ( sys-apps/systemd:= )
115114
unwind? (
@@ -118,9 +117,8 @@ COMMON_DEPEND="
118117
)
119118
zeroconf? ( net-dns/avahi[dbus] )
120119
"
121-
# Flatcar: pull in JSON only if json is enabled
122120
DEPEND="${COMMON_DEPEND}
123-
json? ( dev-perl/JSON )
121+
dev-perl/JSON
124122
net-libs/libtirpc[${MULTILIB_USEDEP}]
125123
net-libs/rpcsvc-proto
126124
spotlight? ( dev-libs/glib )
@@ -140,16 +138,13 @@ RDEPEND="${COMMON_DEPEND}
140138
selinux? ( sec-policy/selinux-samba )
141139
"
142140
BDEPEND="${PYTHON_DEPS}
143-
dev-lang/perl:=
144-
dev-perl/Parse-Yapp
145141
app-text/docbook-xsl-stylesheets
146142
dev-libs/libxslt
147143
virtual/pkgconfig
148144
"
149145

150146
PATCHES=(
151147
"${FILESDIR}"/${PN}-4.18.4-pam.patch
152-
"${FILESDIR}"/${PN}-4.18.4-bug-15418-windows-update-secure-channel.patch
153148
"${FILESDIR}"/ldb-2.5.2-skip-wav-tevent-check.patch
154149
)
155150

@@ -253,10 +248,6 @@ multilib_src_configure() {
253248
EOF
254249
fi
255250

256-
# Flatcar: we need only the mandatory bundled library, ldb by default.
257-
# Without that, configure will fail because of a missing bundled library.
258-
bundled_libs="ldb"
259-
260251
local myconf=(
261252
--enable-fhs
262253
--sysconfdir="${EPREFIX}/etc"
@@ -367,8 +358,7 @@ multilib_src_install() {
367358
newinitd "${CONFDIR}/samba4.initd-r1" samba
368359
newconfd "${CONFDIR}/samba4.confd" samba
369360

370-
# Flatcar: do not create samba config if minimal enabled
371-
use minimal || dotmpfiles "${FILESDIR}"/samba.conf
361+
dotmpfiles "${FILESDIR}"/samba.conf
372362
if ! use addc ; then
373363
rm "${D}/$(systemd_get_systemunitdir)/samba.service" \
374364
|| die
@@ -386,22 +376,8 @@ multilib_src_install() {
386376
insinto /etc/security
387377
doins examples/pam_winbind/pam_winbind.conf
388378
fi
389-
390-
# Flatcar: clean up unnecessary files
391-
rm -f "${ED%/}"/etc/samba/*
392-
rm -f "${ED%/}"/usr/lib*/samba/ldb/*
393-
if use minimal ; then
394-
mv "${ED%/}"/usr/bin/net "${T}"/
395-
rm -f "${ED%/}"/usr/bin/* "${ED%/}"/usr/sbin/*
396-
mv "${T}"/net "${ED%/}"/usr/bin/net
397-
rm -rf ${ED%/}/lib*/security
398-
rm -rf ${ED%/}/usr/lib/systemd
399-
rm -rf ${ED%/}/usr/lib*/perl*
400-
rm -rf ${ED%/}/usr/lib*/python*
401-
rm -rf ${ED%/}/var
402-
fi
403379
}
404380

405381
pkg_postinst() {
406-
use minimal || tmpfiles_process samba.conf
382+
tmpfiles_process samba.conf
407383
}

0 commit comments

Comments
 (0)