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: Fri, 01 Sep 2017 20:54:48
Message-Id: 1504299278.b5a9aa612bea80bdeda04d287639230d67d5ba56.polynomial-c@gentoo
1 commit: b5a9aa612bea80bdeda04d287639230d67d5ba56
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 1 20:53:03 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 1 20:54:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5a9aa61
7
8 net-fs/samba: Bump to version 4.5.13
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 net-fs/samba/Manifest | 1 +
13 net-fs/samba/samba-4.5.13.ebuild | 280 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 281 insertions(+)
15
16 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
17 index eb8a380e4bf..7c7569f99ba 100644
18 --- a/net-fs/samba/Manifest
19 +++ b/net-fs/samba/Manifest
20 @@ -2,6 +2,7 @@ DIST samba-4.2.14.tar.gz 20883281 SHA256 db820a9947e44f04b0eb25e4aa0c3db32c4042f
21 DIST samba-4.5.10.tar.gz 20989431 SHA256 7cb753f5f6d5527ef40d4c1f47dacafb7c876cb304b4906ccb390c6a18477714 SHA512 046bae9c66083a4fe656d6a7b02b64343c66e0ea4925193a898dbda107b5b158d1897f16c36f4c393a30457a49215fa6ef91720367f4946760ec48ce02a4a68a WHIRLPOOL 2359a40337c2a85c17e3c860a8531c21ec5cf3c180dfd5a1e554f2eb5e10576a8b706464d490e008af441d9ce6a14043112d621d8e140461806c97947362933a
22 DIST samba-4.5.11-disable-python-patches.tar.xz 6292 SHA256 8db451910c3d46fc715203e0b674c49846528cf864c381520dc93de20a3637d3 SHA512 f0e3076e3e1ecaae3f06b3ef30efc81719fb3f63a1041dcbdae4b62ca4cf693732f9eb16f047d046d4930136fed82194e82b455ea888e12cf845b3e6a122d57d WHIRLPOOL 641d429fc4865e12e89bad28110b03ca87c6b658f59943f4d44c0b3a91fc49b5dc90e496a8a9d391c2897aec87fc43ea1c9a26084f3394b1883ad9755fd0eca3
23 DIST samba-4.5.12.tar.gz 21011562 SHA256 f4c17123e3cc852a5ecc7e38884b00deab57632b9519aebc243e2a94b9b5ace4 SHA512 797ef6b1aebd7122f4630e3a591301162d3b3bdab70509ed78aca71a321d53c635164bbfb192922d19245b45e6333ff132e89fc35954f56e33970af4cc5bd604 WHIRLPOOL e7f58275f514652678f760446b5a9a3646e008657bedcacdbee7a625d011abc99c8cc04f04109df0e2b38253f9020387376ec84f233c9ac25554c96499a4fa4b
24 +DIST samba-4.5.13.tar.gz 21013879 SHA256 5fc4762d2259469bfb0067c10f77378cb720f2ebdaf2f37b5ca1918dbe84d04d SHA512 c495dffeee4dd83d710182713c8a0e6730f250fab2d03b62cc0f5354497fbc41d5140d7dea5c4089c026a7e9b820e48c94806bbc44b6594c9e5bad977793eb4a WHIRLPOOL 9e720801f44ac7fab65c748dd24c52763b8568d1af73b64006d847c53604df0a7f3d4febeac2dd467c2fd1c3940b86253c37f99e2e2f39028d43acc4f99668ee
25 DIST samba-4.6.0-disable-python-patches.tar.xz 7544 SHA256 508adeea65604ef8f4da006504de7c27bed56d7003db1166dc5d3b01f5a6be6e SHA512 07de2c0877aff31069ed0ab4fbe1c2272c854ae898ee5300a3b176ba31a218b05acff0b5120a5da0995592e7877c607865d2194c992df17b27c993836f58a654 WHIRLPOOL 12888f2ebf8d4ed5619860b2e6929599022b8ab1245970a5e1258f26e89aca1f87ab58fa54c7300dbd79a0c8fd6955e12c8aca6eeca246cdf06661d53ca3f6dd
26 DIST samba-4.6.6.tar.gz 21120791 SHA256 fc31c809f7d85ae30f2b7dcddcb8404201b626047458cb5f2b743d4f6f3f1a8e SHA512 e06bdc83f44c449212f2e45a902e2ca547505a75e970166259b91d2093fb442cdfd456e724d0e842b674b4b8d5bdbe9072996d768c08ebd979a44b2494a59799 WHIRLPOOL eee4bc7e6d5a102b4ab7146354afd7501bc4ad6a3af1aa63ffecf7eb54dc04f113248048157ca9e8c9cd3c21a0931b0fae1d8dc7232e29a92ebbf5d6cccd4c55
27 DIST samba-4.6.7-disable-python-patches.tar.xz 8896 SHA256 33702adba80e9886625fda8cba46d4017ae603f5d9cf9d3dc78e5ef30ff6f5eb SHA512 c45e548a49735e17b568bebf07dc7409de3de0f93256d1dcf345d2723a27d22a51d860ed921785354fda691f83be4eca3b9d618d5c332438ebf97518a01983eb WHIRLPOOL 1cb176480b8583369e1085c8e122958112c0d13aa8ba78cd57dfd04b17c7d8f0a0664a43d277deba86775f1944eab052f4fb9459f64506215ae25184c86cbe40
28
29 diff --git a/net-fs/samba/samba-4.5.13.ebuild b/net-fs/samba/samba-4.5.13.ebuild
30 new file mode 100644
31 index 00000000000..c02d56fa244
32 --- /dev/null
33 +++ b/net-fs/samba/samba-4.5.13.ebuild
34 @@ -0,0 +1,280 @@
35 +# Copyright 1999-2017 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +PYTHON_COMPAT=( python2_7 )
40 +PYTHON_REQ_USE='threads(+),xml(+)'
41 +
42 +inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
43 +
44 +MY_PV="${PV/_rc/rc}"
45 +MY_P="${PN}-${MY_PV}"
46 +
47 +SRC_PATH="stable"
48 +[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
49 +
50 +SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
51 + https://dev.gentoo.org/~polynomial-c/samba-4.5.11-disable-python-patches.tar.xz"
52 +[[ ${PV} = *_rc* ]] || \
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
54 +
55 +DESCRIPTION="Samba Suite Version 4"
56 +HOMEPAGE="http://www.samba.org/"
57 +LICENSE="GPL-3"
58 +
59 +SLOT="0"
60 +
61 +IUSE="acl addc addns ads client cluster cups dmapi fam gnutls gpg iprint ldap pam
62 +quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
63 +
64 +MULTILIB_WRAPPED_HEADERS=(
65 + /usr/include/samba-4.0/policy.h
66 + /usr/include/samba-4.0/dcerpc_server.h
67 + /usr/include/samba-4.0/ctdb.h
68 + /usr/include/samba-4.0/ctdb_client.h
69 + /usr/include/samba-4.0/ctdb_protocol.h
70 + /usr/include/samba-4.0/ctdb_private.h
71 + /usr/include/samba-4.0/ctdb_typesafe_cb.h
72 + /usr/include/samba-4.0/ctdb_version.h
73 +)
74 +
75 +# sys-apps/attr is an automagic dependency (see bug #489748)
76 +CDEPEND="${PYTHON_DEPS}
77 + >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
78 + dev-lang/perl:=
79 + dev-libs/libaio[${MULTILIB_USEDEP}]
80 + dev-libs/libbsd[${MULTILIB_USEDEP}]
81 + dev-libs/iniparser:0
82 + dev-libs/popt[${MULTILIB_USEDEP}]
83 + dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
84 + sys-apps/attr[${MULTILIB_USEDEP}]
85 + >=sys-libs/ldb-1.1.27[ldap(+)?,python(+),${MULTILIB_USEDEP}]
86 + <sys-libs/ldb-1.1.30[ldap(+)?,python(+),${MULTILIB_USEDEP}]
87 + sys-libs/libcap
88 + sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
89 + sys-libs/readline:0=
90 + >=sys-libs/talloc-2.1.8[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
91 + >=sys-libs/tdb-1.3.10[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
92 + >=sys-libs/tevent-0.9.31-r1[${MULTILIB_USEDEP}]
93 + sys-libs/zlib[${MULTILIB_USEDEP}]
94 + virtual/libiconv
95 + pam? ( virtual/pam )
96 + acl? ( virtual/acl )
97 + addns? ( net-dns/bind-tools[gssapi] )
98 + cluster? ( !dev-db/ctdb )
99 + cups? ( net-print/cups )
100 + dmapi? ( sys-apps/dmapi )
101 + fam? ( virtual/fam )
102 + gnutls? (
103 + dev-libs/libgcrypt:0
104 + >=net-libs/gnutls-1.4.0
105 + )
106 + gpg? ( app-crypt/gpgme )
107 + ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
108 + system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
109 + system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
110 + systemd? ( sys-apps/systemd:0= )"
111 +DEPEND="${CDEPEND}
112 + virtual/pkgconfig
113 + test? (
114 + !system-mitkrb5? (
115 + >=sys-libs/nss_wrapper-1.1.3
116 + >=net-dns/resolv_wrapper-1.1.4
117 + >=net-libs/socket_wrapper-1.1.7
118 + >=sys-libs/uid_wrapper-1.2.1
119 + )
120 + )"
121 +RDEPEND="${CDEPEND}
122 + client? ( net-fs/cifs-utils[ads?] )
123 + selinux? ( sec-policy/selinux-samba )
124 + !dev-perl/Parse-Yapp
125 +"
126 +
127 +REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
128 + ads? ( acl gnutls ldap )
129 + gpg? ( addc )
130 + ?? ( system-heimdal system-mitkrb5 )
131 + ${PYTHON_REQUIRED_USE}"
132 +
133 +S="${WORKDIR}/${MY_P}"
134 +
135 +PATCHES=(
136 + "${FILESDIR}/${PN}-4.4.0-pam.patch"
137 + "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
138 +)
139 +
140 +#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
141 +CONFDIR="${FILESDIR}/4.4"
142 +
143 +WAF_BINARY="${S}/buildtools/bin/waf"
144 +
145 +SHAREDMODS=""
146 +
147 +pkg_setup() {
148 + python-single-r1_pkg_setup
149 + if use cluster ; then
150 + SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
151 + elif use ads ; then
152 + SHAREDMODS="idmap_ad"
153 + fi
154 +}
155 +
156 +src_prepare() {
157 + default
158 +
159 + # install the patches from tarball(s)
160 + eapply "${WORKDIR}/patches"
161 +
162 + # ugly hackaround for bug #592502
163 + cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
164 +
165 + sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
166 + -i source4/dsdb/samdb/ldb_modules/password_hash.c \
167 + || die
168 +
169 + # Friggin' WAF shit
170 + multilib_copy_sources
171 +}
172 +
173 +multilib_src_configure() {
174 + # when specifying libs for samba build you must append NONE to the end to
175 + # stop it automatically including things
176 + local bundled_libs="NONE"
177 + if ! use system-heimdal && ! use system-mitkrb5 ; then
178 + bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
179 + fi
180 +
181 + local myconf=()
182 + myconf=(
183 + --enable-fhs
184 + --sysconfdir="${EPREFIX}/etc"
185 + --localstatedir="${EPREFIX}/var"
186 + --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
187 + --with-piddir="${EPREFIX}/run/${PN}"
188 + --without-lttng
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 +}