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: Wed, 02 Dec 2015 08:27:59
Message-Id: 1449044866.e2bcf8d877920add0d48a50d7299cad85c80cf74.polynomial-c@gentoo
1 commit: e2bcf8d877920add0d48a50d7299cad85c80cf74
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 08:25:11 2015 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 2 08:27:46 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2bcf8d8
7
8 net-fs/samba: Bump to version 4.3.2
9
10 Package-Manager: portage-2.2.26
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-fs/samba/Manifest | 1 +
14 net-fs/samba/samba-4.3.2.ebuild | 196 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 197 insertions(+)
16
17 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
18 index dab76f2..5007bc2 100644
19 --- a/net-fs/samba/Manifest
20 +++ b/net-fs/samba/Manifest
21 @@ -8,4 +8,5 @@ DIST samba-4.2.4.tar.gz 20735687 SHA256 fb326ea486973ab684f183774e93bb943fc231ab
22 DIST samba-4.2.5.tar.gz 20734836 SHA256 8191c4c0730daf7f9e9a3ea1cc6e680798d76bf855269807778adcccc8d706cf SHA512 b3581bd6ff33ce107ab2fb3cc8797852e441ed296df680083bcb25164941c08f870c2edadf5cf41280648c012bb264274854890ca8704ba17289a30efbbd1709 WHIRLPOOL a35bf488b81ba8f753871db35c611b2ad99b90e8bf6afd97df85785a9c84e1d7ad120a76832c09347031e0c895346e150ae9c7353e6bee16e4beccfbeaf7fad8
23 DIST samba-4.3.0.tar.gz 20417699 SHA256 d8dbb6b29dec1d9aa295655c4aa4eadd1e5367ef7047be22f4d6a18ba8acdb63 SHA512 7edad171dd98a332ebfd51c7c380b1def3d1508399755fc2d333671ce4a7d5e73782871c5760341cb71460d3f7fc4b666d906d61b9e2b28f977301d08bc9a872 WHIRLPOOL cd204bb122cc344b63b01aebc151aeb01e533402eb511ba7c440fc718a568f8004f754a4502c74dfd58869e2e22cfd0f9822c2602e3642da5b69d2bdd2b76d39
24 DIST samba-4.3.1.tar.gz 20424516 SHA256 9908a80d95b9e2583906ed4347a8c80b769539a2788158992fb48ea9fb4d2c82 SHA512 4a7c7e27e0d231b852b47407fb51cbe2b7851138d9a957c8149346afe1b14a2afa8fff66505abdbafe1ea43fc78b53800941c96c925fbc281b9ff24ef5ecfc98 WHIRLPOOL de09a933e222acf60e03a085370d218f26c917d98fde77535f55ca2f4a3bdcda0877fc8e0666c17ab271731ecdfa34e4ad4425fe83460a169d9ee2061007f059
25 +DIST samba-4.3.2.tar.gz 20425622 SHA256 61989195caadf0f6fb51ce6bed5e203e6146facc2c276a26ad41901ad9129a75 SHA512 b01330c3e56731c1749e2179b160233c852c739c394be7999f9792e27891679ae2a15bbad50d8917a08a40b39ae3c6990ae2aa0f6345871d51058d234dad2528 WHIRLPOOL 21f4a6d240c57c66ca2159ecb8898f8f79dcb9ebfb85d66224ac31e2fbb365e2f4227a800af3a2934a50616b27cc6bb636a9a1a5d0e6ce57276c0a2e633d13bf
26 DIST smb_traffic_analyzer_v2.diff.bz2 12226 SHA256 1bae7eafbe8ac2382313d5ab9d43d73ba64b63a714f0f588516952d476fb868d SHA512 aa0e457a0dd282e61e6dfcd5705c29b319832dca9711b1b5baf8373e2f079991399c3537c050219ccb861a93f86353ebff677a5c625d2e3f1f3a13ee5c4087d0 WHIRLPOOL 85ee72a360f67ebe71be5cd400ecd635280a0d7c64ebb8b94656a5ef1a94f74a987de86408af00ce1b81cc8363b1b3cf14726860d29b72ee610d4bab73d6b139
27
28 diff --git a/net-fs/samba/samba-4.3.2.ebuild b/net-fs/samba/samba-4.3.2.ebuild
29 new file mode 100644
30 index 0000000..d53b979
31 --- /dev/null
32 +++ b/net-fs/samba/samba-4.3.2.ebuild
33 @@ -0,0 +1,196 @@
34 +# Copyright 1999-2015 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=5
39 +PYTHON_COMPAT=( python2_7 )
40 +PYTHON_REQ_USE='threads(+)'
41 +
42 +inherit python-single-r1 waf-utils multilib 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 +KEYWORDS="~amd64 ~hppa ~x86"
52 +[[ ${PV} = *_rc* ]] && KEYWORDS="~hppa"
53 +
54 +DESCRIPTION="Samba Suite Version 4"
55 +HOMEPAGE="http://www.samba.org/"
56 +LICENSE="GPL-3"
57 +
58 +SLOT="0"
59 +
60 +IUSE="acl addc addns ads aio avahi client cluster cups dmapi fam gnutls iprint
61 +ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind"
62 +
63 +# sys-apps/attr is an automagic dependency (see bug #489748)
64 +# sys-libs/pam is an automagic dependency (see bug #489770)
65 +CDEPEND="${PYTHON_DEPS}
66 + dev-libs/iniparser:0
67 + dev-libs/popt
68 + sys-libs/readline:=
69 + virtual/libiconv
70 + dev-python/subunit[${PYTHON_USEDEP}]
71 + >=net-libs/socket_wrapper-1.1.3
72 + sys-apps/attr
73 + sys-libs/libcap
74 + >=sys-libs/ldb-1.1.21
75 + sys-libs/ncurses:0=
76 + >=sys-libs/nss_wrapper-1.0.3
77 + >=sys-libs/talloc-2.1.3[python,${PYTHON_USEDEP}]
78 + >=sys-libs/tdb-1.3.7[python,${PYTHON_USEDEP}]
79 + >=sys-libs/tevent-0.9.25
80 + >=sys-libs/uid_wrapper-1.1.0
81 + sys-libs/zlib
82 + virtual/pam
83 + acl? ( virtual/acl )
84 + addns? ( net-dns/bind-tools[gssapi] )
85 + aio? ( dev-libs/libaio )
86 + cluster? ( >=dev-db/ctdb-1.0.114_p1 )
87 + cups? ( net-print/cups )
88 + dmapi? ( sys-apps/dmapi )
89 + fam? ( virtual/fam )
90 + gnutls? ( dev-libs/libgcrypt:0
91 + >=net-libs/gnutls-1.4.0 )
92 + ldap? ( net-nds/openldap )
93 + system-mitkrb5? ( app-crypt/mit-krb5 )
94 + !system-mitkrb5? ( >=app-crypt/heimdal-1.5[-ssl] )
95 + systemd? ( sys-apps/systemd:0= )"
96 +DEPEND="${CDEPEND}
97 + virtual/pkgconfig"
98 +RDEPEND="${CDEPEND}
99 + client? ( net-fs/cifs-utils[ads?] )
100 + selinux? ( sec-policy/selinux-samba )
101 +"
102 +
103 +REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
104 + ads? ( acl gnutls ldap )
105 + ${PYTHON_REQUIRED_USE}"
106 +
107 +S="${WORKDIR}/${MY_P}"
108 +
109 +PATCHES=( "${FILESDIR}/${PN}-4.2.3-heimdal_compilefix.patch" )
110 +
111 +CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
112 +
113 +WAF_BINARY="${S}/buildtools/bin/waf"
114 +
115 +pkg_setup() {
116 + python-single-r1_pkg_setup
117 + if use aio ; then
118 + if ! linux_config_exists || ! linux_chkconfig_present AIO; then
119 + ewarn "You must enable AIO support in your kernel config, "
120 + ewarn "to be able to support asynchronous I/O. "
121 + ewarn "You can find it at"
122 + ewarn
123 + ewarn "General Support"
124 + ewarn " Enable AIO support "
125 + ewarn
126 + ewarn "and recompile your kernel..."
127 + fi
128 + fi
129 + if ! use pam ; then
130 + ewarn "You have pam USE flag disabled!"
131 + ewarn "Unfortunately we still have to hard depend on virtual/pam as samba upstream"
132 + ewarn "still unconditionally links libauth4-samba4.so library to libpam.so once being"
133 + ewarn "found on the sytem."
134 + ewarn "Disabling the pam USE flag only disables installation of samba's pam authenti-"
135 + ewarn "cation modules."
136 + fi
137 +}
138 +
139 +src_prepare() {
140 + epatch ${PATCHES[@]}
141 +}
142 +
143 +src_configure() {
144 + local myconf=()
145 + myconf=(
146 + --enable-fhs
147 + --sysconfdir=/etc
148 + --localstatedir=/var
149 + --with-modulesdir=/usr/$(get_libdir)/samba
150 + --with-piddir=/var/run/${PN}
151 + --bundled-libraries=NONE
152 + --builtin-libraries=NONE
153 + --disable-rpath
154 + --disable-rpath-install
155 + --nopyc
156 + --nopyo
157 + $(use_with acl acl-support)
158 + $(usex addc '' '--without-ad-dc')
159 + $(use_with addns dnsupdate)
160 + $(use_with ads)
161 + $(usex ads '--with-shared-modules=idmap_ad' '')
162 + $(use_with aio aio-support)
163 + $(usex cluster '--with-ctdb-dir=/usr' '')
164 + $(use_enable avahi)
165 + $(use_with cluster cluster-support)
166 + $(use_enable cups)
167 + $(use_with dmapi)
168 + $(use_with fam)
169 + $(use_enable gnutls)
170 + $(use_enable iprint)
171 + $(use_with ldap)
172 + $(use_with pam)
173 + $(use_with pam pam_smbpass)
174 + $(usex pam "--with-pammodulesdir=/$(get_libdir)/security" '')
175 + $(use_with quota quotas)
176 + $(use_with syslog)
177 + $(use_with systemd)
178 + $(usex system-mitkrb5 '--with-system-mitkrb5' '')
179 + $(use_with winbind)
180 + $(usex test '--enable-selftest' '')
181 + )
182 +
183 + CPPFLAGS="-I${SYSROOT}/usr/include/et ${CPPFLAGS}" \
184 + waf-utils_src_configure ${myconf[@]}
185 +}
186 +
187 +src_install() {
188 + waf-utils_src_install
189 +
190 + # install ldap schema for server (bug #491002)
191 + if use ldap ; then
192 + insinto /etc/openldap/schema
193 + doins examples/LDAP/samba.schema
194 + fi
195 +
196 + # Make all .so files executable
197 + find "${D}" -type f -name "*.so" -exec chmod +x {} +
198 +
199 + # install example config file
200 + insinto /etc/samba
201 + doins examples/smb.conf.default
202 +
203 + # Install init script and conf.d file
204 + newinitd "${CONFDIR}/samba4.initd-r1" samba
205 + newconfd "${CONFDIR}/samba4.confd" samba
206 +
207 + systemd_dotmpfilesd "${FILESDIR}"/samba.conf
208 + systemd_dounit "${FILESDIR}"/nmbd.service
209 + systemd_dounit "${FILESDIR}"/smbd.{service,socket}
210 + systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
211 + systemd_dounit "${FILESDIR}"/winbindd.service
212 + systemd_dounit "${FILESDIR}"/samba.service
213 +}
214 +
215 +src_test() {
216 + "${WAF_BINARY}" test || die "test failed"
217 +}
218 +
219 +pkg_postinst() {
220 + ewarn "Be aware the this release contains the best of all of Samba's"
221 + ewarn "technology parts, both a file server (that you can reasonably expect"
222 + ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
223 + ewarn "controller work previously known as 'samba4'."
224 +
225 + elog "For further information and migration steps make sure to read "
226 + elog "http://samba.org/samba/history/${P}.html "
227 + elog "http://samba.org/samba/history/${PN}-4.2.0.html and"
228 + elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
229 +}