1
- # Copyright 1999-2023 Gentoo Authors
1
+ # Copyright 1999-2024 Gentoo Authors
2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
4
EAPI=8
5
5
6
6
PYTHON_COMPAT=( python3_{10..11} )
7
7
PYTHON_REQ_USE=" threads(+),xml(+)"
8
- TMPFILES_OPTIONAL=1
9
8
inherit python-single-r1 flag-o-matic waf-utils multilib-minimal linux-info systemd pam tmpfiles
10
9
11
10
DESCRIPTION=" Samba Suite Version 4"
@@ -14,9 +13,9 @@ HOMEPAGE="https://samba.org/"
14
13
MY_PV=" ${PV/ _rc/ rc} "
15
14
MY_P=" ${PN} -${MY_PV} "
16
15
if [[ ${PV} == * _rc* ]]; then
17
- SRC_URI=" mirror:/ /samba/rc/${MY_P} .tar.gz"
16
+ SRC_URI=" https://download.samba.org/pub /samba/rc/${MY_P} .tar.gz"
18
17
else
19
- SRC_URI=" mirror:/ /samba/stable/${MY_P} .tar.gz"
18
+ SRC_URI=" https://download.samba.org/pub /samba/stable/${MY_P} .tar.gz"
20
19
KEYWORDS=" ~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv sparc x86"
21
20
fi
22
21
S=" ${WORKDIR} /${MY_P} "
@@ -27,7 +26,6 @@ IUSE="acl addc ads ceph client cluster cpu_flags_x86_aes cups debug fam glusterf
27
26
IUSE+=" iprint json ldap llvm-libunwind pam profiling-data python quota +regedit selinux"
28
27
IUSE+=" snapper spotlight syslog system-heimdal +system-mitkrb5 systemd test unwind winbind"
29
28
IUSE+=" zeroconf"
30
- IUSE+=" +minimal" # Flatcar: Only install libraries, not executables.
31
29
32
30
REQUIRED_USE=" ${PYTHON_REQUIRED_USE}
33
31
addc? ( json python !system-mitkrb5 winbind )
@@ -61,13 +59,14 @@ TALLOC_VERSION="2.4.0"
61
59
TDB_VERSION=" 1.4.8"
62
60
TEVENT_VERSION=" 0.14.1"
63
61
64
- # Flatcar: exclude perl, icu, libtasn1, Parse-Yapp from DEPEND
65
62
COMMON_DEPEND="
66
63
>=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} ]
68
66
dev-libs/libbsd[${MULTILIB_USEDEP} ]
69
- !minimal? ( dev-libs/libtasn1:=[${MULTILIB_USEDEP} ] )
67
+ dev-libs/libtasn1:=[${MULTILIB_USEDEP} ]
70
68
dev-libs/popt[${MULTILIB_USEDEP} ]
69
+ dev-perl/Parse-Yapp
71
70
>=net-libs/gnutls-3.4.7:=[${MULTILIB_USEDEP} ]
72
71
>=sys-fs/e2fsprogs-1.46.4-r51[${MULTILIB_USEDEP} ]
73
72
>=sys-libs/ldb-2.7.2:=[ldap(+)?,${MULTILIB_USEDEP} ]
@@ -118,9 +117,8 @@ COMMON_DEPEND="
118
117
)
119
118
zeroconf? ( net-dns/avahi[dbus] )
120
119
"
121
- # Flatcar: pull in JSON only if json is enabled
122
120
DEPEND=" ${COMMON_DEPEND}
123
- json? ( dev-perl/JSON )
121
+ dev-perl/JSON
124
122
net-libs/libtirpc[${MULTILIB_USEDEP} ]
125
123
net-libs/rpcsvc-proto
126
124
spotlight? ( dev-libs/glib )
@@ -140,8 +138,6 @@ RDEPEND="${COMMON_DEPEND}
140
138
selinux? ( sec-policy/selinux-samba )
141
139
"
142
140
BDEPEND=" ${PYTHON_DEPS}
143
- dev-lang/perl:=
144
- dev-perl/Parse-Yapp
145
141
app-text/docbook-xsl-stylesheets
146
142
dev-libs/libxslt
147
143
virtual/pkgconfig
@@ -252,10 +248,6 @@ multilib_src_configure() {
252
248
EOF
253
249
fi
254
250
255
- # Flatcar: we need only the mandatory bundled library, ldb by default.
256
- # Without that, configure will fail because of a missing bundled library.
257
- bundled_libs=" ldb"
258
-
259
251
local myconf=(
260
252
--enable-fhs
261
253
--sysconfdir=" ${EPREFIX} /etc"
@@ -366,8 +358,7 @@ multilib_src_install() {
366
358
newinitd " ${CONFDIR} /samba4.initd-r1" samba
367
359
newconfd " ${CONFDIR} /samba4.confd" samba
368
360
369
- # Flatcar: do not create samba config if minimal enabled
370
- use minimal || dotmpfiles " ${FILESDIR} " /samba.conf
361
+ dotmpfiles " ${FILESDIR} " /samba.conf
371
362
if ! use addc ; then
372
363
rm " ${D} /$( systemd_get_systemunitdir) /samba.service" \
373
364
|| die
@@ -385,22 +376,8 @@ multilib_src_install() {
385
376
insinto /etc/security
386
377
doins examples/pam_winbind/pam_winbind.conf
387
378
fi
388
-
389
- # Flatcar: clean up unnecessary files
390
- rm -f " ${ED%/ } " /etc/samba/*
391
- rm -f " ${ED%/ } " /usr/lib* /samba/ldb/*
392
- if use minimal ; then
393
- mv " ${ED%/ } " /usr/bin/net " ${T} " /
394
- rm -f " ${ED%/ } " /usr/bin/* " ${ED%/ } " /usr/sbin/*
395
- mv " ${T} " /net " ${ED%/ } " /usr/bin/net
396
- rm -rf ${ED%/ } /lib* /security
397
- rm -rf ${ED%/ } /usr/lib/systemd
398
- rm -rf ${ED%/ } /usr/lib* /perl*
399
- rm -rf ${ED%/ } /usr/lib* /python*
400
- rm -rf ${ED%/ } /var
401
- fi
402
379
}
403
380
404
381
pkg_postinst () {
405
- use minimal || tmpfiles_process samba.conf
382
+ tmpfiles_process samba.conf
406
383
}
0 commit comments