Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/samba/
Date: Sat, 08 Jul 2017 21:16:07
Message-Id: 1499548558.33b7ce2027c3c12a56277c02428464635dfd7e5d.polynomial-c@gentoo
1 commit: 33b7ce2027c3c12a56277c02428464635dfd7e5d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 8 21:13:26 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 8 21:15:58 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33b7ce20
7
8 net-fs/samba: Bump to version 4.5.11
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 net-fs/samba/Manifest | 2 +
13 net-fs/samba/samba-4.5.11.ebuild | 279 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 281 insertions(+)
15
16 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
17 index adb86d341f5..eb4634aac2a 100644
18 --- a/net-fs/samba/Manifest
19 +++ b/net-fs/samba/Manifest
20 @@ -1,6 +1,8 @@
21 DIST samba-4.2.11.tar.gz 20875348 SHA256 75bce53c922e51352933c9846f2c4b1e251fabb80927adb426a773a321ee01f8 SHA512 293365f2718e756b66ccaec4b0dbce7044ade615b332f58968cf42dd1ec6b6445576590eaf5bd35fa00ba9aa4ba3be7720afc33763652e97731eebc3149f4820 WHIRLPOOL 1e04fd527e55c8d438c96a43d9a25a9b3e09a3edc504a2a5fe44bc8f9101c833c90e3ba3188b8872b046370916f3798e4fce0ffa7848b65f452b5c51ec7107f1
22 DIST samba-4.2.14.tar.gz 20883281 SHA256 db820a9947e44f04b0eb25e4aa0c3db32c4042fca541775ee8e2905093e888e6 SHA512 269dd74ba788657434f51ac70953a293c94bcf98280eaa6f44634c5da54169a5ea7865d543a7c23860c4750a40cdee7caeaf5c7fc3dbc137f444e90f31a09890 WHIRLPOOL 925369c2f9c222d718bf4aacc7b1a83b8275acd96bbc1eca52ad96c86847327807560674ee9b180173d17a1e6109307ec4f70f1acbebe2efc8a9e67f2141e17d
23 DIST samba-4.5.10.tar.gz 20989431 SHA256 7cb753f5f6d5527ef40d4c1f47dacafb7c876cb304b4906ccb390c6a18477714 SHA512 046bae9c66083a4fe656d6a7b02b64343c66e0ea4925193a898dbda107b5b158d1897f16c36f4c393a30457a49215fa6ef91720367f4946760ec48ce02a4a68a WHIRLPOOL 2359a40337c2a85c17e3c860a8531c21ec5cf3c180dfd5a1e554f2eb5e10576a8b706464d490e008af441d9ce6a14043112d621d8e140461806c97947362933a
24 +DIST samba-4.5.11-disable-python-patches.tar.xz 6292 SHA256 8db451910c3d46fc715203e0b674c49846528cf864c381520dc93de20a3637d3 SHA512 f0e3076e3e1ecaae3f06b3ef30efc81719fb3f63a1041dcbdae4b62ca4cf693732f9eb16f047d046d4930136fed82194e82b455ea888e12cf845b3e6a122d57d WHIRLPOOL 641d429fc4865e12e89bad28110b03ca87c6b658f59943f4d44c0b3a91fc49b5dc90e496a8a9d391c2897aec87fc43ea1c9a26084f3394b1883ad9755fd0eca3
25 +DIST samba-4.5.11.tar.gz 20998338 SHA256 b0b4a99c41395c8848e159d01b7a8bde0680cc390aadff52793bb3406e91511f SHA512 9ceb94dbf3aba2f18353cf8b40e676d0fa99b116cdb3787a864063e3678af41a0d7b3ed6e132f60a11643ebfac8ec1be404b19b5e3f673b27f52eab91888e12e WHIRLPOOL 01a65f69c07c70fbd7b212e88f5cd024d0b58c70e4839f9bb862967f145b141b7159df99614eef3bad20b98e14bea7d5d16e54d08d2e4d5ccaec7ab8a98506af
26 DIST samba-4.6.0-disable-python-patches.tar.xz 7544 SHA256 508adeea65604ef8f4da006504de7c27bed56d7003db1166dc5d3b01f5a6be6e SHA512 07de2c0877aff31069ed0ab4fbe1c2272c854ae898ee5300a3b176ba31a218b05acff0b5120a5da0995592e7877c607865d2194c992df17b27c993836f58a654 WHIRLPOOL 12888f2ebf8d4ed5619860b2e6929599022b8ab1245970a5e1258f26e89aca1f87ab58fa54c7300dbd79a0c8fd6955e12c8aca6eeca246cdf06661d53ca3f6dd
27 DIST samba-4.6.4.tar.gz 21108045 SHA256 4ac67329d18e5586dc75db50e23b81c1f6c45a2d5bb9752ea6d90dcca08d9a61 SHA512 c20e6ad35b701816c35959fd242470dd899fb1b0bf02277ebdc87624dc1059199854b8d759374ab8b23f4842aa01347389a34319635091ade5afb5a94810eac1 WHIRLPOOL 98cf75b77a3937dda5cedc9110254042d628454d4ca5c2b44a0afb72e1fa35c792852e0e1529a18f1d22e03484001b719a4e0b1eff7bca2b26397d85300bb847
28 DIST samba-4.6.5.tar.gz 21111639 SHA256 c06901e1d318b425b8c3ecea3ef23a91e7371312a9ea7adbf34fb8eb42ca3b84 SHA512 045d7288e164a0682e84a6cb1d1811c3469c656f6f2c58f73fa350d611ade689b9a108941ebca482abd7d4a636a95571e2e613fcc7dbdc3c516d6fb370c208cb WHIRLPOOL 6e6997363b972b49f8732be0db8b416763761ff5cb08a303e2fb1b44ed45c66216623df6246630b4cbfd0b25fe13534896e1d6e07e926576f78a32fa1261b39f
29
30 diff --git a/net-fs/samba/samba-4.5.11.ebuild b/net-fs/samba/samba-4.5.11.ebuild
31 new file mode 100644
32 index 00000000000..41e0d7a5ba9
33 --- /dev/null
34 +++ b/net-fs/samba/samba-4.5.11.ebuild
35 @@ -0,0 +1,279 @@
36 +# Copyright 1999-2017 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=6
40 +PYTHON_COMPAT=( python2_7 )
41 +PYTHON_REQ_USE='threads(+),xml(+)'
42 +
43 +inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
44 +
45 +MY_PV="${PV/_rc/rc}"
46 +MY_P="${PN}-${MY_PV}"
47 +
48 +SRC_PATH="stable"
49 +[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
50 +
51 +SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
52 + https://dev.gentoo.org/~polynomial-c/samba-4.5.11-disable-python-patches.tar.xz"
53 +[[ ${PV} = *_rc* ]] || \
54 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
55 +
56 +DESCRIPTION="Samba Suite Version 4"
57 +HOMEPAGE="http://www.samba.org/"
58 +LICENSE="GPL-3"
59 +
60 +SLOT="0"
61 +
62 +IUSE="acl addc addns ads client cluster cups dmapi fam gnutls gpg iprint ldap pam
63 +quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
64 +
65 +MULTILIB_WRAPPED_HEADERS=(
66 + /usr/include/samba-4.0/policy.h
67 + /usr/include/samba-4.0/dcerpc_server.h
68 + /usr/include/samba-4.0/ctdb.h
69 + /usr/include/samba-4.0/ctdb_client.h
70 + /usr/include/samba-4.0/ctdb_protocol.h
71 + /usr/include/samba-4.0/ctdb_private.h
72 + /usr/include/samba-4.0/ctdb_typesafe_cb.h
73 + /usr/include/samba-4.0/ctdb_version.h
74 +)
75 +
76 +# sys-apps/attr is an automagic dependency (see bug #489748)
77 +CDEPEND="${PYTHON_DEPS}
78 + >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
79 + dev-lang/perl:=
80 + dev-libs/libaio[${MULTILIB_USEDEP}]
81 + dev-libs/libbsd[${MULTILIB_USEDEP}]
82 + dev-libs/iniparser:0
83 + dev-libs/popt[${MULTILIB_USEDEP}]
84 + dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
85 + sys-apps/attr[${MULTILIB_USEDEP}]
86 + >=sys-libs/ldb-1.1.27[ldap(+)?,python(+),${MULTILIB_USEDEP}]
87 + <sys-libs/ldb-1.1.30[ldap(+)?,python(+),${MULTILIB_USEDEP}]
88 + sys-libs/libcap
89 + sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
90 + sys-libs/readline:0=
91 + >=sys-libs/talloc-2.1.8[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
92 + >=sys-libs/tdb-1.3.10[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
93 + >=sys-libs/tevent-0.9.31-r1[${MULTILIB_USEDEP}]
94 + sys-libs/zlib[${MULTILIB_USEDEP}]
95 + virtual/libiconv
96 + pam? ( virtual/pam )
97 + acl? ( virtual/acl )
98 + addns? ( net-dns/bind-tools[gssapi] )
99 + cluster? ( !dev-db/ctdb )
100 + cups? ( net-print/cups )
101 + dmapi? ( sys-apps/dmapi )
102 + fam? ( virtual/fam )
103 + gnutls? (
104 + dev-libs/libgcrypt:0
105 + >=net-libs/gnutls-1.4.0
106 + )
107 + gpg? ( app-crypt/gpgme )
108 + ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
109 + system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
110 + system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
111 + systemd? ( sys-apps/systemd:0= )"
112 +DEPEND="${CDEPEND}
113 + virtual/pkgconfig
114 + test? (
115 + !system-mitkrb5? (
116 + >=sys-libs/nss_wrapper-1.1.3
117 + >=net-dns/resolv_wrapper-1.1.4
118 + >=net-libs/socket_wrapper-1.1.7
119 + >=sys-libs/uid_wrapper-1.2.1
120 + )
121 + )"
122 +RDEPEND="${CDEPEND}
123 + client? ( net-fs/cifs-utils[ads?] )
124 + selinux? ( sec-policy/selinux-samba )
125 + !dev-perl/Parse-Yapp
126 +"
127 +
128 +REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
129 + ads? ( acl gnutls ldap )
130 + gpg? ( addc )
131 + ?? ( system-heimdal system-mitkrb5 )
132 + ${PYTHON_REQUIRED_USE}"
133 +
134 +S="${WORKDIR}/${MY_P}"
135 +
136 +PATCHES=(
137 + "${FILESDIR}/${PN}-4.4.0-pam.patch"
138 + "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
139 +)
140 +
141 +#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
142 +CONFDIR="${FILESDIR}/4.4"
143 +
144 +WAF_BINARY="${S}/buildtools/bin/waf"
145 +
146 +SHAREDMODS=""
147 +
148 +pkg_setup() {
149 + python-single-r1_pkg_setup
150 + if use cluster ; then
151 + SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
152 + elif use ads ; then
153 + SHAREDMODS="idmap_ad"
154 + fi
155 +}
156 +
157 +src_prepare() {
158 + default
159 +
160 + # install the patches from tarball(s)
161 + eapply "${WORKDIR}/patches"
162 +
163 + # ugly hackaround for bug #592502
164 + cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
165 +
166 + sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
167 + -i source4/dsdb/samdb/ldb_modules/password_hash.c \
168 + || die
169 +
170 + # Friggin' WAF shit
171 + multilib_copy_sources
172 +}
173 +
174 +multilib_src_configure() {
175 + # when specifying libs for samba build you must append NONE to the end to
176 + # stop it automatically including things
177 + local bundled_libs="NONE"
178 + if ! use system-heimdal && ! use system-mitkrb5 ; then
179 + bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
180 + fi
181 +
182 + local myconf=()
183 + myconf=(
184 + --enable-fhs
185 + --sysconfdir="${EPREFIX}/etc"
186 + --localstatedir="${EPREFIX}/var"
187 + --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
188 + --with-piddir="${EPREFIX}/run/${PN}"
189 + --bundled-libraries="${bundled_libs}"
190 + --builtin-libraries=NONE
191 + --disable-rpath
192 + --disable-rpath-install
193 + --nopyc
194 + --nopyo
195 + )
196 + if multilib_is_native_abi ; then
197 + myconf+=(
198 + $(use_with acl acl-support)
199 + $(usex addc '' '--without-ad-dc')
200 + $(use_with addns dnsupdate)
201 + $(use_with ads)
202 + $(use_with cluster cluster-support)
203 + $(use_enable cups)
204 + $(use_with dmapi)
205 + $(use_with fam)
206 + $(use_enable gnutls)
207 + $(use_with gpg gpgme)
208 + $(use_enable iprint)
209 + $(use_with ldap)
210 + $(use_with pam)
211 + $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
212 + $(use_with quota quotas)
213 + $(use_with syslog)
214 + $(use_with systemd)
215 + $(usex system-mitkrb5 '--with-system-mitkrb5' '')
216 + $(use_with winbind)
217 + $(usex test '--enable-selftest' '')
218 + $(use_enable zeroconf avahi)
219 + --with-shared-modules=${SHAREDMODS}
220 + )
221 + else
222 + myconf+=(
223 + --without-acl-support
224 + --without-ad-dc
225 + --without-dnsupdate
226 + --without-ads
227 + --disable-avahi
228 + --without-cluster-support
229 + --disable-cups
230 + --without-dmapi
231 + --without-fam
232 + --disable-gnutls
233 + --without-gpgme
234 + --disable-iprint
235 + $(use_with ldap)
236 + --without-pam
237 + --without-quotas
238 + --without-syslog
239 + --without-systemd
240 + $(usex system-mitkrb5 '--with-system-mitkrb5' '')
241 + --without-winbind
242 + --disable-python
243 + )
244 + fi
245 +
246 + CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
247 + waf-utils_src_configure ${myconf[@]}
248 +}
249 +
250 +multilib_src_compile() {
251 + waf-utils_src_compile
252 +}
253 +
254 +multilib_src_install() {
255 + waf-utils_src_install
256 +
257 + # Make all .so files executable
258 + find "${D}" -type f -name "*.so" -exec chmod +x {} +
259 +
260 + if multilib_is_native_abi; then
261 + # install ldap schema for server (bug #491002)
262 + if use ldap ; then
263 + insinto /etc/openldap/schema
264 + doins examples/LDAP/samba.schema
265 + fi
266 +
267 + # create symlink for cups (bug #552310)
268 + if use cups ; then
269 + dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
270 + fi
271 +
272 + # install example config file
273 + insinto /etc/samba
274 + doins examples/smb.conf.default
275 +
276 + # Fix paths in example file (#603964)
277 + sed \
278 + -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
279 + -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
280 + -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
281 + -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
282 + -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
283 + -i "${ED%/}"/etc/samba/smb.conf.default || die
284 +
285 + # Install init script and conf.d file
286 + newinitd "${CONFDIR}/samba4.initd-r1" samba
287 + newconfd "${CONFDIR}/samba4.confd" samba
288 +
289 + systemd_dotmpfilesd "${FILESDIR}"/samba.conf
290 + systemd_dounit "${FILESDIR}"/nmbd.service
291 + systemd_dounit "${FILESDIR}"/smbd.{service,socket}
292 + systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
293 + systemd_dounit "${FILESDIR}"/winbindd.service
294 + systemd_dounit "${FILESDIR}"/samba.service
295 + fi
296 +}
297 +
298 +multilib_src_test() {
299 + if multilib_is_native_abi ; then
300 + "${WAF_BINARY}" test || die "test failed"
301 + fi
302 +}
303 +
304 +pkg_postinst() {
305 + ewarn "Be aware the this release contains the best of all of Samba's"
306 + ewarn "technology parts, both a file server (that you can reasonably expect"
307 + ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
308 + ewarn "controller work previously known as 'samba4'."
309 +
310 + elog "For further information and migration steps make sure to read "
311 + elog "http://samba.org/samba/history/${P}.html "
312 + elog "http://samba.org/samba/history/${PN}-4.5.0.html and"
313 + elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
314 +}