1 |
commit: f56707f471411831a59ee29b943ee0f8f43c934f |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 19:51:42 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 19:52:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f56707f4 |
7 |
|
8 |
net-fs/samba: Removed old. |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-fs/samba/Manifest | 3 - |
14 |
net-fs/samba/samba-4.3.8.ebuild | 248 ---------------------------------------- |
15 |
net-fs/samba/samba-4.4.2.ebuild | 231 ------------------------------------- |
16 |
3 files changed, 482 deletions(-) |
17 |
|
18 |
diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest |
19 |
index b2159bb..c5cadda 100644 |
20 |
--- a/net-fs/samba/Manifest |
21 |
+++ b/net-fs/samba/Manifest |
22 |
@@ -4,13 +4,10 @@ DIST samba-3.6.25.tar.gz 34121828 SHA256 8f2c8a7f2bd89b0dfd228ed917815852f7c625b |
23 |
DIST samba-4.2.11.tar.gz 20875348 SHA256 75bce53c922e51352933c9846f2c4b1e251fabb80927adb426a773a321ee01f8 SHA512 293365f2718e756b66ccaec4b0dbce7044ade615b332f58968cf42dd1ec6b6445576590eaf5bd35fa00ba9aa4ba3be7720afc33763652e97731eebc3149f4820 WHIRLPOOL 1e04fd527e55c8d438c96a43d9a25a9b3e09a3edc504a2a5fe44bc8f9101c833c90e3ba3188b8872b046370916f3798e4fce0ffa7848b65f452b5c51ec7107f1 |
24 |
DIST samba-4.2.12.tar.gz 20878216 SHA256 b334a86a92a1c2759c0b3dce20965e7fe820f0abafee38e6fd82eb9c5cd80514 SHA512 0edf606e03fbfbf8efda6e918f5ab0fd4284d38ae1b0c829f30ea01646eca73dd61b1239363960371a8dc64eaeaffbc4b1c216872ae431f7dfef2139b620e0be WHIRLPOOL f1de51eedd5172cc7c8fb3d0093be5aa1678de1f0b7a686be2c9eb962abb3219ed9232e79d03065c58a14f0b6482cb8bf5c8b3e166fec95911ace2b5dced0782 |
25 |
DIST samba-4.2.9.tar.gz 20750339 SHA256 ba0229485e8bebac22bd3ae98b1e393e7127f3a958cc90e205a6d752e575354c SHA512 438196f268c0ca0b83e8e7e9eb8e9a8b503d6408d5e2b0dca1d041185e06cfc08147122d5495b72c46ce58dc3cb4be4766551f0101c69b2620b89e749d89ad98 WHIRLPOOL aa7a655a3d2f2bf81d2747d83c86a0c7d464a31414b6e27a413461e1e0ad0ce3d3af5d756d8ce213e775f5141c44ef9c41a792e88d246bcab002b7623552260a |
26 |
-DIST samba-4.3.8.tar.gz 20568773 SHA256 379dc66c3a0a483bf5bed37be6e5d182934db7c4102b21929a6c4602b32b2b10 SHA512 cb88b19733da2aad7c6843d31e5f017ac83e7021a4bf96e193661eec8d29be32512e04d0d427bea326c1ea955c120553e78bddca24bd354129ab65502c8afe43 WHIRLPOOL 5e8664e32d4cb5787d19729dc10208ef5ad0fa8ca8248a2e673a25271294d8c941a48cd680e369ec0fb4d07c3bcb4c6899c9f85614068c2721266fa140353df8 |
27 |
DIST samba-4.3.9.tar.gz 20570849 SHA256 1f22c61a7f24c5357a9ef4d10833a2cd161f40f3db03bcbe586d7cd3a56139f3 SHA512 bc90c88d8defd3acec7c671e8ceacec31e3111540aabee7ec6f11cdeaf61bbd993525e2b765e3b50801c8079e1168cf496b3e5e6a56118d6493ae5da60d34c41 WHIRLPOOL e33efba4bfbaab5278ec62cbadb5f14fe2220d4b4ad1e57a4d26233d8b6bdf4318ad86d839b2638a490a195c04aabb02dafff67bb1e2999fab4f116b3c6367cc |
28 |
-DIST samba-4.4.2.tar.gz 20711230 SHA256 eaecd41a85ebb9507b8db9856ada2a949376e9d53cf75664b5493658f6e5926a SHA512 ba965ee32d9cfd9c54ef523fc2ed4179000de956a563fdd91625d2bbcf6f07dd787c8b7e3dc4c824f46c87eea0aa97e7123d759992080fdfb2fde8554d18e3b7 WHIRLPOOL a4a51e8af98902bfed109fc126ad53c9222b498d947555bfe1223ae4dee5ea951561d8a4392e15221cf6010b2385df23688915b348852dbdc538dc84942a6b1d |
29 |
DIST samba-4.4.3.tar.gz 20705861 SHA256 031e6ada6d15deae6850845eed41497af32207fb679d6c6c74f19acc99d437ba SHA512 25c447f476a54c7e5992d3010957401373eb99b89bcab3e80d7a5aee08413fab87d0dc87d43e7c541b4fa1778a8707121639f56a208dd634e0b1f905eb8afa7c WHIRLPOOL 4c62e58cf9d851ca114f3d3eea20350a589006acbe5fb9209c7be0617f435cee0c4a706906238a354a78d97aa6fdd45d40aef699a2c179ced3671f996fb2afc7 |
30 |
DIST samba-disable-python-patches-4.2.12.tar.xz 6052 SHA256 8903eacbabdfaf7b64cbde03d7c367d1efdc92e54090f0f4b9ed5d2a462b1c18 SHA512 c527d0a052d3211e5b12c17bc94db56cc5e5545189ed65a760c0656c94c22e27a4b159e6439eb0370873e1619873a741f3b3bd10d3876b38eb3914a87eace372 WHIRLPOOL ad63db55d5dc96f56e6c9b30c2092e2f6e206b0ed5d13c249879d10753c8db2f475c5d4e651e2fc042ad992b648d3b4465f1b28c6b4bbf821cf503d27f741f7e |
31 |
DIST samba-disable-python-patches-4.2.9.tar.xz 6016 SHA256 222d0153f03dddde28a0b906ee2b27076223ac88b84a998aaa285f658861edfa SHA512 02fc666a36f8e733e522663d80775d130fabee9d5fb4e1c261d28815e07be425ae8977213f9216c7af62dd8b2619e7e13d71f9a25780b058c8119901c2115a18 WHIRLPOOL ebba3a6d41a41844621759672aa8c984d26f44d12007c8e929405470c381bc262523ec68d3972e86cf675c45f092fa287496167e42940e70d704790753e47b03 |
32 |
-DIST samba-disable-python-patches-4.3.6.tar.xz 6076 SHA256 95f9194abcba917aa5e2e9623e897eb41127a8c74352ebf6a9bf0f4ba82fd1c0 SHA512 601026aae1fd960e3f4cf53c0f68e843a118f6dd4fc776d9a6503fd16f9789e743eb92b7ebf84179d63aaff20d1ddb1989cb995fc1da3cd2e843f6830f04f08f WHIRLPOOL 5afb076857f049469e65a13eb46af98f21b249d9c7ef9d731bd6f3aeb6e9512efc781b5392c0c7aaeb7a818e9e896f336a70b306122280d3ad432372bc6b0024 |
33 |
DIST samba-disable-python-patches-4.3.9.tar.xz 6116 SHA256 83206112e04c375e170e86ea6b29d6dc2c172b55ba9fb89130be14708d758cf5 SHA512 ca8b62337afd1cc6059b9aefc0a3972d18ba90fba3f043d9730f6967e1b80c40bc918b0445b8ae8a1f3df74d3551f90c721df3c0514edccb881ed0b4fc54e1b5 WHIRLPOOL 3aebd6758e5e7dc2920b1e8f8825d2b7b7efac7c5f2d91d5ed6fed75597bfdced1b27d9e2a00385af5df19e5462a4e014df6a7274c0b25a660702268235ef746 |
34 |
DIST samba-disable-python-patches-4.4.2.tar.xz 6244 SHA256 774994cc6b1fcb7099667769159fe2f49eccbdadfc579793f733fe93e7e19874 SHA512 c79fa89b49d558e64e3e4406e2794651d300b8cf678a6714e03aa85352e3aeb21f8012f37fc6e488a39e7a13e86b92a82ee9fb3aabc2dfc86e5928f805a1a989 WHIRLPOOL 66fd03d0edb9b58c36c7e1beb7db6ddf60b194fe6d83f7c3b046a02cab565175e3332c92822f4ba0245f69d1d9f32f2ede2b5b5fe42d51ba17acbdca797ce3c8 |
35 |
DIST smb_traffic_analyzer_v2.diff.bz2 12226 SHA256 1bae7eafbe8ac2382313d5ab9d43d73ba64b63a714f0f588516952d476fb868d SHA512 aa0e457a0dd282e61e6dfcd5705c29b319832dca9711b1b5baf8373e2f079991399c3537c050219ccb861a93f86353ebff677a5c625d2e3f1f3a13ee5c4087d0 WHIRLPOOL 85ee72a360f67ebe71be5cd400ecd635280a0d7c64ebb8b94656a5ef1a94f74a987de86408af00ce1b81cc8363b1b3cf14726860d29b72ee610d4bab73d6b139 |
36 |
|
37 |
diff --git a/net-fs/samba/samba-4.3.8.ebuild b/net-fs/samba/samba-4.3.8.ebuild |
38 |
deleted file mode 100644 |
39 |
index 5b2cfe0..0000000 |
40 |
--- a/net-fs/samba/samba-4.3.8.ebuild |
41 |
+++ /dev/null |
42 |
@@ -1,248 +0,0 @@ |
43 |
-# Copyright 1999-2016 Gentoo Foundation |
44 |
-# Distributed under the terms of the GNU General Public License v2 |
45 |
-# $Id$ |
46 |
- |
47 |
-EAPI=6 |
48 |
-PYTHON_COMPAT=( python2_7 ) |
49 |
-PYTHON_REQ_USE='threads(+),xml(+)' |
50 |
- |
51 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils |
52 |
- |
53 |
-MY_PV="${PV/_rc/rc}" |
54 |
-MY_P="${PN}-${MY_PV}" |
55 |
- |
56 |
-SRC_PATH="stable" |
57 |
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc" |
58 |
- |
59 |
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz |
60 |
- https://dev.gentoo.org/~polynomial-c/samba-disable-python-patches-4.3.6.tar.xz" |
61 |
-KEYWORDS="~amd64 ~hppa ~x86" |
62 |
-[[ ${PV} = *_rc* ]] && KEYWORDS="~hppa" |
63 |
- |
64 |
-DESCRIPTION="Samba Suite Version 4" |
65 |
-HOMEPAGE="http://www.samba.org/" |
66 |
-LICENSE="GPL-3" |
67 |
- |
68 |
-SLOT="0" |
69 |
- |
70 |
-IUSE="acl addc addns ads aio avahi client cluster cups dmapi fam gnutls iprint |
71 |
-ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind" |
72 |
- |
73 |
-MULTILIB_WRAPPED_HEADERS=( |
74 |
- /usr/include/samba-4.0/policy.h |
75 |
- /usr/include/samba-4.0/dcerpc_server.h |
76 |
- /usr/include/samba-4.0/ctdb.h |
77 |
- /usr/include/samba-4.0/ctdb_client.h |
78 |
- /usr/include/samba-4.0/ctdb_protocol.h |
79 |
- /usr/include/samba-4.0/ctdb_private.h |
80 |
- /usr/include/samba-4.0/ctdb_typesafe_cb.h |
81 |
- /usr/include/samba-4.0/ctdb_version.h |
82 |
-) |
83 |
- |
84 |
-# sys-apps/attr is an automagic dependency (see bug #489748) |
85 |
-CDEPEND="${PYTHON_DEPS} |
86 |
- >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
87 |
- dev-libs/libbsd[${MULTILIB_USEDEP}] |
88 |
- dev-libs/iniparser:0 |
89 |
- dev-libs/popt[${MULTILIB_USEDEP}] |
90 |
- sys-libs/readline:= |
91 |
- virtual/libiconv |
92 |
- dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
93 |
- sys-apps/attr[${MULTILIB_USEDEP}] |
94 |
- sys-libs/libcap |
95 |
- >=sys-libs/ldb-1.1.24[${MULTILIB_USEDEP}] |
96 |
- sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
97 |
- >=sys-libs/talloc-2.1.3[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
98 |
- >=sys-libs/tdb-1.3.7[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
99 |
- >=sys-libs/tevent-0.9.25[${MULTILIB_USEDEP}] |
100 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
101 |
- virtual/pam |
102 |
- acl? ( virtual/acl ) |
103 |
- addns? ( net-dns/bind-tools[gssapi] ) |
104 |
- aio? ( dev-libs/libaio ) |
105 |
- cluster? ( !dev-db/ctdb ) |
106 |
- cups? ( net-print/cups ) |
107 |
- dmapi? ( sys-apps/dmapi ) |
108 |
- fam? ( virtual/fam ) |
109 |
- gnutls? ( dev-libs/libgcrypt:0 |
110 |
- >=net-libs/gnutls-1.4.0 ) |
111 |
- ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
112 |
- system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] ) |
113 |
- !system-mitkrb5? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
114 |
- systemd? ( sys-apps/systemd:0= )" |
115 |
-DEPEND="${CDEPEND} |
116 |
- virtual/pkgconfig" |
117 |
-RDEPEND="${CDEPEND} |
118 |
- client? ( net-fs/cifs-utils[ads?] ) |
119 |
- selinux? ( sec-policy/selinux-samba ) |
120 |
-" |
121 |
- |
122 |
-REQUIRED_USE="addc? ( gnutls !system-mitkrb5 ) |
123 |
- ads? ( acl gnutls ldap ) |
124 |
- ${PYTHON_REQUIRED_USE}" |
125 |
- |
126 |
-S="${WORKDIR}/${MY_P}" |
127 |
- |
128 |
-PATCHES=( |
129 |
- "${FILESDIR}/${PN}-4.2.3-heimdal_compilefix.patch" |
130 |
- "${FILESDIR}/${PN}-4.2.7-pam.patch" |
131 |
-) |
132 |
- |
133 |
-CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
134 |
- |
135 |
-WAF_BINARY="${S}/buildtools/bin/waf" |
136 |
- |
137 |
-SHAREDMODS="" |
138 |
- |
139 |
-pkg_setup() { |
140 |
- python-single-r1_pkg_setup |
141 |
- if use aio ; then |
142 |
- if ! linux_config_exists || ! linux_chkconfig_present AIO; then |
143 |
- ewarn "You must enable AIO support in your kernel config, " |
144 |
- ewarn "to be able to support asynchronous I/O. " |
145 |
- ewarn "You can find it at" |
146 |
- ewarn |
147 |
- ewarn "General Support" |
148 |
- ewarn " Enable AIO support " |
149 |
- ewarn |
150 |
- ewarn "and recompile your kernel..." |
151 |
- fi |
152 |
- fi |
153 |
- if use cluster ; then |
154 |
- SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad" |
155 |
- fi |
156 |
-} |
157 |
- |
158 |
-src_prepare() { |
159 |
- default |
160 |
- |
161 |
- # install the patches from tarball(s) |
162 |
- eapply "${WORKDIR}/patches/" |
163 |
- |
164 |
- multilib_copy_sources |
165 |
-} |
166 |
- |
167 |
-multilib_src_configure() { |
168 |
- local myconf=() |
169 |
- myconf=( |
170 |
- --enable-fhs |
171 |
- --sysconfdir=/etc |
172 |
- --localstatedir=/var |
173 |
- --with-modulesdir=/usr/$(get_libdir)/samba |
174 |
- --with-piddir=/run/${PN} |
175 |
- --bundled-libraries=NONE |
176 |
- --builtin-libraries=NONE |
177 |
- --disable-rpath |
178 |
- --disable-rpath-install |
179 |
- --nopyc |
180 |
- --nopyo |
181 |
- ) |
182 |
- if multilib_is_native_abi ; then |
183 |
- myconf+=( |
184 |
- $(use_with acl acl-support) |
185 |
- $(usex addc '' '--without-ad-dc') |
186 |
- $(use_with addns dnsupdate) |
187 |
- $(use_with ads) |
188 |
- $(usex ads '--with-shared-modules=idmap_ad' '') |
189 |
- $(use_with aio aio-support) |
190 |
- $(use_enable avahi) |
191 |
- $(use_with cluster cluster-support) |
192 |
- $(use_enable cups) |
193 |
- $(use_with dmapi) |
194 |
- $(use_with fam) |
195 |
- $(use_enable gnutls) |
196 |
- $(use_enable iprint) |
197 |
- $(use_with ldap) |
198 |
- $(use_with pam) |
199 |
- $(use_with pam pam_smbpass) |
200 |
- $(usex pam "--with-pammodulesdir=/$(get_libdir)/security" '') |
201 |
- $(use_with quota quotas) |
202 |
- $(use_with syslog) |
203 |
- $(use_with systemd) |
204 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
205 |
- $(use_with winbind) |
206 |
- $(usex test '--enable-selftest' '') |
207 |
- --with-shared-modules=${SHAREDMODS} |
208 |
- ) |
209 |
- else |
210 |
- myconf+=( |
211 |
- --without-acl-support |
212 |
- --without-ad-dc |
213 |
- --without-dnsupdate |
214 |
- --without-ads |
215 |
- --without-aio-support |
216 |
- --disable-avahi |
217 |
- --without-cluster-support |
218 |
- --disable-cups |
219 |
- --without-dmapi |
220 |
- --without-fam |
221 |
- --disable-gnutls |
222 |
- --disable-iprint |
223 |
- $(use_with ldap) |
224 |
- --without-pam |
225 |
- --without-pam_smbpass |
226 |
- --without-quotas |
227 |
- --without-syslog |
228 |
- --without-systemd |
229 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
230 |
- --without-winbind |
231 |
- --disable-python |
232 |
- ) |
233 |
- fi |
234 |
- |
235 |
- CPPFLAGS="-I${SYSROOT}/usr/include/et ${CPPFLAGS}" \ |
236 |
- waf-utils_src_configure ${myconf[@]} |
237 |
-} |
238 |
- |
239 |
-multilib_src_install() { |
240 |
- waf-utils_src_install |
241 |
- |
242 |
- # Make all .so files executable |
243 |
- find "${D}" -type f -name "*.so" -exec chmod +x {} + |
244 |
- |
245 |
- if multilib_is_native_abi; then |
246 |
- # install ldap schema for server (bug #491002) |
247 |
- if use ldap ; then |
248 |
- insinto /etc/openldap/schema |
249 |
- doins examples/LDAP/samba.schema |
250 |
- fi |
251 |
- |
252 |
- # create symlink for cups (bug #552310) |
253 |
- if use cups ; then |
254 |
- dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb |
255 |
- fi |
256 |
- |
257 |
- # install example config file |
258 |
- insinto /etc/samba |
259 |
- doins examples/smb.conf.default |
260 |
- |
261 |
- # Install init script and conf.d file |
262 |
- newinitd "${CONFDIR}/samba4.initd-r1" samba |
263 |
- newconfd "${CONFDIR}/samba4.confd" samba |
264 |
- |
265 |
- systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
266 |
- systemd_dounit "${FILESDIR}"/nmbd.service |
267 |
- systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
268 |
- systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
269 |
- systemd_dounit "${FILESDIR}"/winbindd.service |
270 |
- systemd_dounit "${FILESDIR}"/samba.service |
271 |
- fi |
272 |
-} |
273 |
- |
274 |
-multilib_src_test() { |
275 |
- if multilib_is_native_abi ; then |
276 |
- "${WAF_BINARY}" test || die "test failed" |
277 |
- fi |
278 |
-} |
279 |
- |
280 |
-pkg_postinst() { |
281 |
- ewarn "Be aware the this release contains the best of all of Samba's" |
282 |
- ewarn "technology parts, both a file server (that you can reasonably expect" |
283 |
- ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
284 |
- ewarn "controller work previously known as 'samba4'." |
285 |
- |
286 |
- elog "For further information and migration steps make sure to read " |
287 |
- elog "http://samba.org/samba/history/${P}.html " |
288 |
- elog "http://samba.org/samba/history/${PN}-4.2.0.html and" |
289 |
- elog "http://wiki.samba.org/index.php/Samba4/HOWTO " |
290 |
-} |
291 |
|
292 |
diff --git a/net-fs/samba/samba-4.4.2.ebuild b/net-fs/samba/samba-4.4.2.ebuild |
293 |
deleted file mode 100644 |
294 |
index 7a5a301..0000000 |
295 |
--- a/net-fs/samba/samba-4.4.2.ebuild |
296 |
+++ /dev/null |
297 |
@@ -1,231 +0,0 @@ |
298 |
-# Copyright 1999-2016 Gentoo Foundation |
299 |
-# Distributed under the terms of the GNU General Public License v2 |
300 |
-# $Id$ |
301 |
- |
302 |
-EAPI=6 |
303 |
-PYTHON_COMPAT=( python2_7 ) |
304 |
-PYTHON_REQ_USE='threads(+),xml(+)' |
305 |
- |
306 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils |
307 |
- |
308 |
-MY_PV="${PV/_rc/rc}" |
309 |
-MY_P="${PN}-${MY_PV}" |
310 |
- |
311 |
-SRC_PATH="stable" |
312 |
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc" |
313 |
- |
314 |
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz |
315 |
- https://dev.gentoo.org/~axs/distfiles/samba-disable-python-patches-4.4.2.tar.xz" |
316 |
-KEYWORDS="~amd64 ~hppa ~x86" |
317 |
-[[ ${PV} = *_rc* ]] && KEYWORDS="~hppa" |
318 |
- |
319 |
-DESCRIPTION="Samba Suite Version 4" |
320 |
-HOMEPAGE="http://www.samba.org/" |
321 |
-LICENSE="GPL-3" |
322 |
- |
323 |
-SLOT="0" |
324 |
- |
325 |
-IUSE="acl addc addns ads avahi client cluster cups dmapi fam gnutls iprint |
326 |
-ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind" |
327 |
- |
328 |
-MULTILIB_WRAPPED_HEADERS=( |
329 |
- /usr/include/samba-4.0/policy.h |
330 |
- /usr/include/samba-4.0/dcerpc_server.h |
331 |
- /usr/include/samba-4.0/ctdb.h |
332 |
- /usr/include/samba-4.0/ctdb_client.h |
333 |
- /usr/include/samba-4.0/ctdb_protocol.h |
334 |
- /usr/include/samba-4.0/ctdb_private.h |
335 |
- /usr/include/samba-4.0/ctdb_typesafe_cb.h |
336 |
- /usr/include/samba-4.0/ctdb_version.h |
337 |
-) |
338 |
- |
339 |
-# sys-apps/attr is an automagic dependency (see bug #489748) |
340 |
-CDEPEND="${PYTHON_DEPS} |
341 |
- >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
342 |
- dev-libs/libbsd[${MULTILIB_USEDEP}] |
343 |
- dev-libs/iniparser:0 |
344 |
- dev-libs/popt[${MULTILIB_USEDEP}] |
345 |
- sys-libs/readline:= |
346 |
- virtual/libiconv |
347 |
- dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
348 |
- sys-apps/attr[${MULTILIB_USEDEP}] |
349 |
- sys-libs/libcap |
350 |
- >=sys-libs/ldb-1.1.26[${MULTILIB_USEDEP}] |
351 |
- sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
352 |
- >=sys-libs/talloc-2.1.6[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
353 |
- >=sys-libs/tdb-1.3.8[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
354 |
- >=sys-libs/tevent-0.9.28[${MULTILIB_USEDEP}] |
355 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
356 |
- virtual/pam |
357 |
- acl? ( virtual/acl ) |
358 |
- addns? ( net-dns/bind-tools[gssapi] ) |
359 |
- cluster? ( !dev-db/ctdb ) |
360 |
- cups? ( net-print/cups ) |
361 |
- dmapi? ( sys-apps/dmapi ) |
362 |
- fam? ( virtual/fam ) |
363 |
- gnutls? ( dev-libs/libgcrypt:0 |
364 |
- >=net-libs/gnutls-1.4.0 ) |
365 |
- ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
366 |
- system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] ) |
367 |
- !system-mitkrb5? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
368 |
- systemd? ( sys-apps/systemd:0= )" |
369 |
-DEPEND="${CDEPEND} |
370 |
- virtual/pkgconfig" |
371 |
-RDEPEND="${CDEPEND} |
372 |
- client? ( net-fs/cifs-utils[ads?] ) |
373 |
- selinux? ( sec-policy/selinux-samba ) |
374 |
-" |
375 |
- |
376 |
-REQUIRED_USE="addc? ( gnutls !system-mitkrb5 ) |
377 |
- ads? ( acl gnutls ldap ) |
378 |
- ${PYTHON_REQUIRED_USE}" |
379 |
- |
380 |
-S="${WORKDIR}/${MY_P}" |
381 |
- |
382 |
-PATCHES=( |
383 |
- "${FILESDIR}/${PN}-4.2.3-heimdal_compilefix.patch" |
384 |
- "${FILESDIR}/${PN}-4.4.0-pam.patch" |
385 |
-) |
386 |
- |
387 |
-CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
388 |
- |
389 |
-WAF_BINARY="${S}/buildtools/bin/waf" |
390 |
- |
391 |
-SHAREDMODS="" |
392 |
- |
393 |
-pkg_setup() { |
394 |
- python-single-r1_pkg_setup |
395 |
- if use cluster ; then |
396 |
- SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad" |
397 |
- fi |
398 |
-} |
399 |
- |
400 |
-src_prepare() { |
401 |
- default |
402 |
- |
403 |
- # install the patches from tarball(s) |
404 |
- eapply "${WORKDIR}/patches/" |
405 |
- |
406 |
- multilib_copy_sources |
407 |
-} |
408 |
- |
409 |
-multilib_src_configure() { |
410 |
- local myconf=() |
411 |
- myconf=( |
412 |
- --enable-fhs |
413 |
- --sysconfdir=/etc |
414 |
- --localstatedir=/var |
415 |
- --with-modulesdir=/usr/$(get_libdir)/samba |
416 |
- --with-piddir=/run/${PN} |
417 |
- --bundled-libraries=NONE |
418 |
- --builtin-libraries=NONE |
419 |
- --disable-rpath |
420 |
- --disable-rpath-install |
421 |
- --nopyc |
422 |
- --nopyo |
423 |
- ) |
424 |
- if multilib_is_native_abi ; then |
425 |
- myconf+=( |
426 |
- $(use_with acl acl-support) |
427 |
- $(usex addc '' '--without-ad-dc') |
428 |
- $(use_with addns dnsupdate) |
429 |
- $(use_with ads) |
430 |
- $(usex ads '--with-shared-modules=idmap_ad' '') |
431 |
- $(use_enable avahi) |
432 |
- $(use_with cluster cluster-support) |
433 |
- $(use_enable cups) |
434 |
- $(use_with dmapi) |
435 |
- $(use_with fam) |
436 |
- $(use_enable gnutls) |
437 |
- $(use_enable iprint) |
438 |
- $(use_with ldap) |
439 |
- $(use_with pam) |
440 |
- $(usex pam "--with-pammodulesdir=/$(get_libdir)/security" '') |
441 |
- $(use_with quota quotas) |
442 |
- $(use_with syslog) |
443 |
- $(use_with systemd) |
444 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
445 |
- $(use_with winbind) |
446 |
- $(usex test '--enable-selftest' '') |
447 |
- --with-shared-modules=${SHAREDMODS} |
448 |
- ) |
449 |
- else |
450 |
- myconf+=( |
451 |
- --without-acl-support |
452 |
- --without-ad-dc |
453 |
- --without-dnsupdate |
454 |
- --without-ads |
455 |
- --disable-avahi |
456 |
- --without-cluster-support |
457 |
- --disable-cups |
458 |
- --without-dmapi |
459 |
- --without-fam |
460 |
- --disable-gnutls |
461 |
- --disable-iprint |
462 |
- $(use_with ldap) |
463 |
- --without-pam |
464 |
- --without-quotas |
465 |
- --without-syslog |
466 |
- --without-systemd |
467 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
468 |
- --without-winbind |
469 |
- --disable-python |
470 |
- ) |
471 |
- fi |
472 |
- |
473 |
- CPPFLAGS="-I${SYSROOT}/usr/include/et ${CPPFLAGS}" \ |
474 |
- waf-utils_src_configure ${myconf[@]} |
475 |
-} |
476 |
- |
477 |
-multilib_src_install() { |
478 |
- waf-utils_src_install |
479 |
- |
480 |
- # Make all .so files executable |
481 |
- find "${D}" -type f -name "*.so" -exec chmod +x {} + |
482 |
- |
483 |
- if multilib_is_native_abi; then |
484 |
- # install ldap schema for server (bug #491002) |
485 |
- if use ldap ; then |
486 |
- insinto /etc/openldap/schema |
487 |
- doins examples/LDAP/samba.schema |
488 |
- fi |
489 |
- |
490 |
- # create symlink for cups (bug #552310) |
491 |
- if use cups ; then |
492 |
- dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb |
493 |
- fi |
494 |
- |
495 |
- # install example config file |
496 |
- insinto /etc/samba |
497 |
- doins examples/smb.conf.default |
498 |
- |
499 |
- # Install init script and conf.d file |
500 |
- newinitd "${CONFDIR}/samba4.initd-r1" samba |
501 |
- newconfd "${CONFDIR}/samba4.confd" samba |
502 |
- |
503 |
- systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
504 |
- systemd_dounit "${FILESDIR}"/nmbd.service |
505 |
- systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
506 |
- systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
507 |
- systemd_dounit "${FILESDIR}"/winbindd.service |
508 |
- systemd_dounit "${FILESDIR}"/samba.service |
509 |
- fi |
510 |
-} |
511 |
- |
512 |
-multilib_src_test() { |
513 |
- if multilib_is_native_abi ; then |
514 |
- "${WAF_BINARY}" test || die "test failed" |
515 |
- fi |
516 |
-} |
517 |
- |
518 |
-pkg_postinst() { |
519 |
- ewarn "Be aware the this release contains the best of all of Samba's" |
520 |
- ewarn "technology parts, both a file server (that you can reasonably expect" |
521 |
- ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
522 |
- ewarn "controller work previously known as 'samba4'." |
523 |
- |
524 |
- elog "For further information and migration steps make sure to read " |
525 |
- elog "http://samba.org/samba/history/${P}.html " |
526 |
- elog "http://samba.org/samba/history/${PN}-4.2.0.html and" |
527 |
- elog "http://wiki.samba.org/index.php/Samba4/HOWTO " |
528 |
-} |