diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /net-fs/samba | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'net-fs/samba')
-rw-r--r-- | net-fs/samba/Manifest | 20 | ||||
-rw-r--r-- | net-fs/samba/samba-4.10.10.ebuild | 2 | ||||
-rw-r--r-- | net-fs/samba/samba-4.10.2.ebuild | 2 | ||||
-rw-r--r-- | net-fs/samba/samba-4.10.8.ebuild | 2 | ||||
-rw-r--r-- | net-fs/samba/samba-4.11.1.ebuild | 2 | ||||
-rw-r--r-- | net-fs/samba/samba-4.11.2.ebuild | 2 | ||||
-rw-r--r-- | net-fs/samba/samba-4.8.12.ebuild | 2 | ||||
-rw-r--r-- | net-fs/samba/samba-4.8.6-r3.ebuild | 2 | ||||
-rw-r--r-- | net-fs/samba/samba-4.9.13.ebuild | 2 | ||||
-rw-r--r-- | net-fs/samba/samba-4.9.15.ebuild | 2 | ||||
-rw-r--r-- | net-fs/samba/samba-4.9.16.ebuild | 308 |
11 files changed, 328 insertions, 18 deletions
diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest index 0094c8f5379e..844d137c2e7f 100644 --- a/net-fs/samba/Manifest +++ b/net-fs/samba/Manifest @@ -26,15 +26,17 @@ DIST samba-4.8.12.tar.gz 17764832 BLAKE2B d2c0c8b9090da7c94b9343fd3f416e9aafad64 DIST samba-4.8.6.tar.gz 17723841 BLAKE2B 38da52e14b4417f26462eef2226c4498e54d2c276b4056e8c6d6c66079f33bcda24c1eab30b29bc7413280ec89a74a55e043e8274ac50f9a25bae7563717ff34 SHA512 f6afab5ca466bd8653a56c205b71ce94ecf0ad0c6e4c9d64cbba7b1e56f1987bc2022e6b629d87eb6078e3f6ba53833c19cfb41e40b6d589e4317ea9d85de273 DIST samba-4.9.13.tar.gz 18109481 BLAKE2B 948ef6b0e1a9796c70635119f5aea5887e9f1c1d2a5264d072f3f3d218dfae3b6a16c640233063c9df0670dc7835a92a8c97447f57518aa9d387bc5d04831675 SHA512 ce80486c9ab093d44ee68b0e2ab28f9af97c7ed00cca1b8a0c65de18254ae40759a1e9fcb9a0ba18006aa296c6a6fbadf53dcd730785a96ac0c167efdbe9d3ae DIST samba-4.9.15.tar.gz 18110369 BLAKE2B fb09601f424b7e0368328023a80c3dbfcfc48e6d66d59bf13b828e9706d3e663b8fc80f0baecdc6b646855750e64f96d961edbeaf2110b6432568f600f9ddad6 SHA512 6eb589ad3a5070b5649f1c76bafd2d691c3efbef264a100f5cdda457ccdb633fcbe64a9c4f7f0b8a5422fa08aa73534dc6f87248c6c871a1fa09577364e962c0 -EBUILD samba-4.10.10.ebuild 9237 BLAKE2B 0c8e936d96e4e3837e30eb0c5c024474a9d5491e91f782bd4e4d95e2c492d5d0b519c279937151a69ce17a088c8a136e4828013d1a19a417a81b05b4a1e9bb14 SHA512 fb902ea2efa7bee1e2345b47af815841f53e67e4ca20795a0b1defedc052c833a4efda2f6d3dd3a7365308d6e8771d978fde9b9cbea96752d5cfc8242764ae4c -EBUILD samba-4.10.2.ebuild 9100 BLAKE2B b8f92f3fd5b1934a43297cf52364b5accf5ec320d9f09a80d63bb49b538d169186e6059a116cd434bad56f772529f43ec40dd6aa488e363d4b3320f5c6762325 SHA512 08ad17bd5ea1ecc8f516302a02564cc3b57a214923dfc392444fa011927350310adb407d5c91159c891d1fb8bec96e83b9bebce1f6c97d008263497b187e20ee -EBUILD samba-4.10.8.ebuild 9237 BLAKE2B 7566cf19195dbb23f46e73b99de7dfde560536ce098a32807abbc322d4e93369a5c88bf05aa44841c2ec07822621b8683c924af711aa16736451ddeaa6118bdc SHA512 e355a47f796d3e9d9e45aa2f75023f08d159c72e01d6d7298b10ade4c202f99753fd1ce7dd355f0e7e7559892f4a072effff435c6bbc5406a9df8f0e9106f59b -EBUILD samba-4.11.1.ebuild 9129 BLAKE2B b4f5029773eb2054b121f05140a8ab9dc15784608aa028e9bfeeb24e333ead5dd51b017299584377c9390ddee28c2c9f80d4077d81fa18a3aa0541c3665d5719 SHA512 720708602f681936423891dc031c0ed507f1f5d3e4adc96306db4aef7564b3758c68aabbd8df39e9f1d1b8c83b99479327ba22f0036b9ce84f9f4de37ef39b65 -EBUILD samba-4.11.2.ebuild 9129 BLAKE2B b4f5029773eb2054b121f05140a8ab9dc15784608aa028e9bfeeb24e333ead5dd51b017299584377c9390ddee28c2c9f80d4077d81fa18a3aa0541c3665d5719 SHA512 720708602f681936423891dc031c0ed507f1f5d3e4adc96306db4aef7564b3758c68aabbd8df39e9f1d1b8c83b99479327ba22f0036b9ce84f9f4de37ef39b65 +DIST samba-4.9.16.tar.gz 18110660 BLAKE2B 5a75fb9b0010ce7a2eec00e911744a2b180525eea06ca08126bbfd558928e4165ed32da449ee31ee8e7f1bc705949548b9a6da8ed60de23a616bdb0acd020690 SHA512 bd9e7ee68351f0a7d006b47ed102bbd2984c08b483b20f4cf1db0354bef725d2e77816f7f3c3a20da46f69c4c9a476a18d22b8197414ea427abbd3acf6be6db0 +EBUILD samba-4.10.10.ebuild 9230 BLAKE2B 09314c37068f12da89a3d3c049efab5639c3d0f69d10e857a0d0e229ca08e7b9508f76fe57c24edc6196a7cfa0d9d8eddb77522de0397d2687544ffce7722ae1 SHA512 b8312593ebf58f42454b4517a6ae5bdc6fcf57c4f11eab9a95ecd27685294ba9b5f2fd17e78f34b24ae6c72d6900cc3d8bc6c427b8d614b801caf1a9d6343d9f +EBUILD samba-4.10.2.ebuild 9093 BLAKE2B caf7aad5a5b17b0e0e9572010b8178648a03d474fa863c4bff7800f61d5b89dc948f243f9db29edaf539def301539e8922e83bf7dd50ccf1c53de7288c905a55 SHA512 8a2cfdea16e67ad5ab81aabd1c05629465e8fb482cc34e1d84a68f06124823916ba4048acf001d52c1abdf6ed61469e3c68d01af609516b6b3ba32f046877d3c +EBUILD samba-4.10.8.ebuild 9230 BLAKE2B 366620e44d8c27a48277cd7609807113b438a229f2860e0a4ba53ffdd0772c19a11681087c878c4b31d4e596e948e32590ccd1a91d8acdb2657959abd0368c78 SHA512 4966c5a5fdb300892a6a8cfe34b314972ed4c28b74e1f0b580902518057a419adf501e7e254328e07c510f86cedf2878acca6619ee0018fc5a4110508c5329c3 +EBUILD samba-4.11.1.ebuild 9122 BLAKE2B cf950e7f6b9d6a3d8d5e275f76400794b3e3e37958df60fa45ace21a683315eff70d4cfdd0884ef1f35da66d48e6f1b0e2cec07a729fc8050e2f261d28617af8 SHA512 5a59bee38acdf87389407fe9efa694b76236e4648f5f6715858c0884fe9688dc4aa0928d0d39505ea456d9a71a4f650cff2d26c859d2730fe1a0816a6c76a0eb +EBUILD samba-4.11.2.ebuild 9122 BLAKE2B cf950e7f6b9d6a3d8d5e275f76400794b3e3e37958df60fa45ace21a683315eff70d4cfdd0884ef1f35da66d48e6f1b0e2cec07a729fc8050e2f261d28617af8 SHA512 5a59bee38acdf87389407fe9efa694b76236e4648f5f6715858c0884fe9688dc4aa0928d0d39505ea456d9a71a4f650cff2d26c859d2730fe1a0816a6c76a0eb EBUILD samba-4.5.16.ebuild 8193 BLAKE2B ddc187ed358b6f2bd6727d3fe74bca0872dd46fbe6b12a606b2f7cf4c3903314bfdae35ea186be3999f9cc01a4b2f1d725f13a655707d71aef162a21f2914599 SHA512 2aecf97660ff948ec8341da21c7b43a8ed8c465ba19e7a157ca591b1d21e0cff12ceaa4fe57740aba7416eb0b780dd8b4f4549ba90634ec7c5c0028bbe09c000 -EBUILD samba-4.8.12.ebuild 8931 BLAKE2B 076ec80561f4c716e44704384ec9b362430bffe21ea7ea1a1ae6b7bc30735a15c141d89149e042ade63d76d0fc4fcc7cc6dc3cc10c3c40d139d212850113eae8 SHA512 5b0a5ec029d83772320058eb7f711d12e527fc1672ca50e94058efe618166db756e29530d3247bcd9c5013cb082d88bf89d0a1d17d82c3e339481d6a95f18282 +EBUILD samba-4.8.12.ebuild 8924 BLAKE2B 4ea486ecca9964519c4739195d14ce22e013acb7a9a9308cb9ce43b3ed6aa9cf64ab2a4a3bff13983e13f217b511d12a8726a57bb97d19952f99bb53b15a2db1 SHA512 f795b98e9a0580c034247fe8f64f1b7158ed239630b92666686cf32945907ab9159acc93ac541b3f9f04d2132da9f820e72ea80e242c440d72605d5ccd500578 EBUILD samba-4.8.6-r2.ebuild 8497 BLAKE2B 4db3c17b11ef2146db59131877014b44c136ba0b720c906a407f6f7b6c405a858fe3fb0e0b31a7e17df8af68f02d881849b270ca8141b47dd401beb5a6465e92 SHA512 063682dafc10fa9505be914e2986f8abde6eaab92bcbda68a06f0d2a153f0659e1c75f7eef63153862e9699be5bec56de73b74b41f8988aa8b06f09eaccf2ca6 -EBUILD samba-4.8.6-r3.ebuild 8892 BLAKE2B 6b420c9beaa63a5c7600319207c357351bfe5201dc9c1ece32de526f4c34b05e08cd31ffb2661c671c634e6b7c0a40d363c1d75ff3bd8304d7c489dbcaa34861 SHA512 50a42f5462d72f59132243799d1089c2ca8bfe57fd15b97fe74be2dc4518f4f645497b2b8e9bd0f1fc37fb270cab3867949b19ef7146146bce6fbfb976293393 -EBUILD samba-4.9.13.ebuild 9090 BLAKE2B 74428d7674025d10d70f2a542b3aa7cfc2f000431a34bc48d49f6c21a8f77ecb16f46bc76ab81dacb198a8c63a30a7f1e6033edecb9db0b9ff8fa7c6240678c0 SHA512 52bc2908e250bd1ec0f450e1b68a6d03339c21a071937a283161bf4e510837e4bd0e2754f0cfe2699cdbfbf5c8efa987c4b3409500ca0e47eabd232b5f7c5f39 -EBUILD samba-4.9.15.ebuild 9090 BLAKE2B 86b23b461d9004af26e77d0af3f2f1fe262050bd5b94f7d7740f0bcb1cb83a87828feb2e80bcc00558def1da643da8296b79670bbf6f96bb83857ce37e130c26 SHA512 84faf0c69cc849ce0289d1308076c8ebf3660765ee3b4e24fbfd57fb23574c6a5f82c9bab1b9f4484120f066c2cfbc60ed2d8977a54a6461e92a12d15fcf56df +EBUILD samba-4.8.6-r3.ebuild 8885 BLAKE2B cc2ee57e0463f6daaaeecd0bd149538f838e39534589f2a94d7f331981563c544d27a2e94860b4a701f6ad1150f20891590af93a5cd9db229615033063251c10 SHA512 bed25be8178f0b2899fcca57bb577a86c917075d901abeb8ba46462c82629c2a832ebf5f7b36e95cffea7189eca082b3863a3b79ad29c972569826d3ac906ac9 +EBUILD samba-4.9.13.ebuild 9083 BLAKE2B 3ab11deaa3d0e13a7db15c41bd6572bdb7eecc4152362c7c7f8acd9ce2463cfbac705e06e75655964bc3dd1e7e8d164b9c2c4a65b211fa44c1b49fe1435c8a87 SHA512 6d525b03ad5b247803da393c1289f8a3e4e4f1f5f5a8945ad7aa68869161fb13c8e459b3538b803e419944e5bf7d24fa90fabbc60e0d9ca046e83883774e5aa8 +EBUILD samba-4.9.15.ebuild 9083 BLAKE2B bf4afc1b617c0515e5a4055bf696c655d6c5bf935d692f8ccfb55fc9685425acdbdc2aaae953d89774ef70a2e71b1b9ce633edb1fab3e47b9bbec7d61cce1d3a SHA512 ac72300aac950bf9b7c829aeeaf454a9706638c68b0917cf5e113c91c4bcf7ae3e540e11a678f9c41f7c6dfe5aaeecca14e50ecd3d55ac1d68980783614cf6cc +EBUILD samba-4.9.16.ebuild 9083 BLAKE2B bf4afc1b617c0515e5a4055bf696c655d6c5bf935d692f8ccfb55fc9685425acdbdc2aaae953d89774ef70a2e71b1b9ce633edb1fab3e47b9bbec7d61cce1d3a SHA512 ac72300aac950bf9b7c829aeeaf454a9706638c68b0917cf5e113c91c4bcf7ae3e540e11a678f9c41f7c6dfe5aaeecca14e50ecd3d55ac1d68980783614cf6cc MISC metadata.xml 1756 BLAKE2B 74fcabbc9a00bd2e2b91d527354edde5e44c36755d81c849c2a81c03590794f1be30a92ad7cade453fdb183754ace37f7ddc2c171eab657689cf34d83e840aed SHA512 65ee3dbcb246c068278ffb6a8eaaa439bea10fa86662504d2aacfb1bcf58a215d915e50c4c6ea6c6e989870f7a9d9974b7a1a33d2a2f0077b9e263a6adf94279 diff --git a/net-fs/samba/samba-4.10.10.ebuild b/net-fs/samba/samba-4.10.10.ebuild index d24131ca91cb..1f0de6ef9a86 100644 --- a/net-fs/samba/samba-4.10.10.ebuild +++ b/net-fs/samba/samba-4.10.10.ebuild @@ -280,7 +280,7 @@ multilib_src_install() { newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind # bugs #376853 and #590374 insinto /etc/security - doins examples/pam_winbind/pam_winbind.conf || die + doins examples/pam_winbind/pam_winbind.conf fi keepdir /var/cache/samba diff --git a/net-fs/samba/samba-4.10.2.ebuild b/net-fs/samba/samba-4.10.2.ebuild index a1e8acf7aed2..7517cb4afc56 100644 --- a/net-fs/samba/samba-4.10.2.ebuild +++ b/net-fs/samba/samba-4.10.2.ebuild @@ -279,7 +279,7 @@ multilib_src_install() { newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind # bugs #376853 and #590374 insinto /etc/security - doins examples/pam_winbind/pam_winbind.conf || die + doins examples/pam_winbind/pam_winbind.conf fi keepdir /var/cache/samba diff --git a/net-fs/samba/samba-4.10.8.ebuild b/net-fs/samba/samba-4.10.8.ebuild index 66119026d236..b675f8c85a89 100644 --- a/net-fs/samba/samba-4.10.8.ebuild +++ b/net-fs/samba/samba-4.10.8.ebuild @@ -280,7 +280,7 @@ multilib_src_install() { newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind # bugs #376853 and #590374 insinto /etc/security - doins examples/pam_winbind/pam_winbind.conf || die + doins examples/pam_winbind/pam_winbind.conf fi keepdir /var/cache/samba diff --git a/net-fs/samba/samba-4.11.1.ebuild b/net-fs/samba/samba-4.11.1.ebuild index e971356a350a..8a88f65a21d8 100644 --- a/net-fs/samba/samba-4.11.1.ebuild +++ b/net-fs/samba/samba-4.11.1.ebuild @@ -276,7 +276,7 @@ multilib_src_install() { newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind # bugs #376853 and #590374 insinto /etc/security - doins examples/pam_winbind/pam_winbind.conf || die + doins examples/pam_winbind/pam_winbind.conf fi keepdir /var/cache/samba diff --git a/net-fs/samba/samba-4.11.2.ebuild b/net-fs/samba/samba-4.11.2.ebuild index e971356a350a..8a88f65a21d8 100644 --- a/net-fs/samba/samba-4.11.2.ebuild +++ b/net-fs/samba/samba-4.11.2.ebuild @@ -276,7 +276,7 @@ multilib_src_install() { newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind # bugs #376853 and #590374 insinto /etc/security - doins examples/pam_winbind/pam_winbind.conf || die + doins examples/pam_winbind/pam_winbind.conf fi keepdir /var/cache/samba diff --git a/net-fs/samba/samba-4.8.12.ebuild b/net-fs/samba/samba-4.8.12.ebuild index a16b7a81e761..ad3cf03c2386 100644 --- a/net-fs/samba/samba-4.8.12.ebuild +++ b/net-fs/samba/samba-4.8.12.ebuild @@ -275,7 +275,7 @@ multilib_src_install() { newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind # bugs #376853 and #590374 insinto /etc/security - doins examples/pam_winbind/pam_winbind.conf || die + doins examples/pam_winbind/pam_winbind.conf fi keepdir /var/cache/samba diff --git a/net-fs/samba/samba-4.8.6-r3.ebuild b/net-fs/samba/samba-4.8.6-r3.ebuild index 6be58e9b9728..9d93bd81c79e 100644 --- a/net-fs/samba/samba-4.8.6-r3.ebuild +++ b/net-fs/samba/samba-4.8.6-r3.ebuild @@ -273,7 +273,7 @@ multilib_src_install() { newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind # bugs #376853 and #590374 insinto /etc/security - doins examples/pam_winbind/pam_winbind.conf || die + doins examples/pam_winbind/pam_winbind.conf fi keepdir /var/cache/samba diff --git a/net-fs/samba/samba-4.9.13.ebuild b/net-fs/samba/samba-4.9.13.ebuild index d2b15f5811ff..b65c53c68ed6 100644 --- a/net-fs/samba/samba-4.9.13.ebuild +++ b/net-fs/samba/samba-4.9.13.ebuild @@ -279,7 +279,7 @@ multilib_src_install() { newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind # bugs #376853 and #590374 insinto /etc/security - doins examples/pam_winbind/pam_winbind.conf || die + doins examples/pam_winbind/pam_winbind.conf fi keepdir /var/cache/samba diff --git a/net-fs/samba/samba-4.9.15.ebuild b/net-fs/samba/samba-4.9.15.ebuild index 0253eb32433a..3ad0587ccb32 100644 --- a/net-fs/samba/samba-4.9.15.ebuild +++ b/net-fs/samba/samba-4.9.15.ebuild @@ -279,7 +279,7 @@ multilib_src_install() { newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind # bugs #376853 and #590374 insinto /etc/security - doins examples/pam_winbind/pam_winbind.conf || die + doins examples/pam_winbind/pam_winbind.conf fi keepdir /var/cache/samba diff --git a/net-fs/samba/samba-4.9.16.ebuild b/net-fs/samba/samba-4.9.16.ebuild new file mode 100644 index 000000000000..3ad0587ccb32 --- /dev/null +++ b/net-fs/samba/samba-4.9.16.ebuild @@ -0,0 +1,308 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE='threads(+),xml(+)' + +inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam + +MY_PV="${PV/_rc/rc}" +MY_P="${PN}-${MY_PV}" + +SRC_PATH="stable" +[[ ${PV} = *_rc* ]] && SRC_PATH="rc" + +SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz" +[[ ${PV} = *_rc* ]] || \ +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +DESCRIPTION="Samba Suite Version 4" +HOMEPAGE="https://www.samba.org/" +LICENSE="GPL-3" + +SLOT="0" + +IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg +iprint json ldap pam profiling-data python quota selinux syslog system-heimdal ++system-mitkrb5 systemd test winbind zeroconf" + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/samba-4.0/policy.h + /usr/include/samba-4.0/dcerpc_server.h + /usr/include/samba-4.0/ctdb.h + /usr/include/samba-4.0/ctdb_client.h + /usr/include/samba-4.0/ctdb_protocol.h + /usr/include/samba-4.0/ctdb_private.h + /usr/include/samba-4.0/ctdb_typesafe_cb.h + /usr/include/samba-4.0/ctdb_version.h +) + +# sys-apps/attr is an automagic dependency (see bug #489748) +CDEPEND=" + >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] + dev-lang/perl:= + dev-libs/libaio[${MULTILIB_USEDEP}] + dev-libs/libbsd[${MULTILIB_USEDEP}] + dev-libs/iniparser:0 + dev-libs/popt[${MULTILIB_USEDEP}] + dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] + >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] + net-libs/libnsl:=[${MULTILIB_USEDEP}] + sys-apps/attr[${MULTILIB_USEDEP}] + >=sys-libs/ldb-1.4.8[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] + <sys-libs/ldb-1.5.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] + sys-libs/libcap + sys-libs/ncurses:0=[${MULTILIB_USEDEP}] + sys-libs/readline:0= + >=sys-libs/talloc-2.1.14[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] + >=sys-libs/tdb-1.3.16[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] + >=sys-libs/tevent-0.9.37[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] + sys-libs/zlib[${MULTILIB_USEDEP}] + virtual/libiconv + pam? ( sys-libs/pam ) + acl? ( virtual/acl ) + addns? ( + net-dns/bind-tools[gssapi] + dev-python/dnspython:=[${PYTHON_USEDEP}] + ) + ceph? ( sys-cluster/ceph ) + cluster? ( + net-libs/rpcsvc-proto + !dev-db/ctdb + ) + cups? ( net-print/cups ) + debug? ( dev-util/lttng-ust ) + dmapi? ( sys-apps/dmapi ) + fam? ( virtual/fam ) + gnutls? ( + dev-libs/libgcrypt:0 + >=net-libs/gnutls-1.4.0 + ) + gpg? ( app-crypt/gpgme ) + json? ( dev-libs/jansson ) + ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) + system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) + system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] ) + systemd? ( sys-apps/systemd:0= ) + zeroconf? ( net-dns/avahi ) +" +DEPEND="${CDEPEND} + ${PYTHON_DEPS} + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + net-libs/libtirpc[${MULTILIB_USEDEP}] + virtual/pkgconfig + || ( + net-libs/rpcsvc-proto + <sys-libs/glibc-2.26[rpc(+)] + ) + test? ( + !system-mitkrb5? ( + >=sys-libs/nss_wrapper-1.1.3 + >=net-dns/resolv_wrapper-1.1.4 + >=net-libs/socket_wrapper-1.1.9 + >=sys-libs/uid_wrapper-1.2.1 + ) + )" +RDEPEND="${CDEPEND} + python? ( ${PYTHON_DEPS} ) + client? ( net-fs/cifs-utils[ads?] ) + selinux? ( sec-policy/selinux-samba ) + !dev-perl/Parse-Yapp +" + +REQUIRED_USE=" + addc? ( python gnutls json winbind ) + addns? ( python ) + ads? ( acl gnutls ldap winbind ) + cluster? ( ads ) + gpg? ( addc ) + test? ( python ) + ?? ( system-heimdal system-mitkrb5 ) + ${PYTHON_REQUIRED_USE} +" + +# the test suite is messed, it uses system-installed samba +# bits instead of what was built, tests things disabled via use +# flags, and generally just fails to work in a way ebuilds could +# rely on in its current state +RESTRICT="test" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/${PN}-4.4.0-pam.patch" + "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch" + "${FILESDIR}/${PN}-4.9.2-timespec.patch" +) + +#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" +CONFDIR="${FILESDIR}/4.4" + +WAF_BINARY="${S}/buildtools/bin/waf" + +SHAREDMODS="" + +pkg_setup() { + python-single-r1_pkg_setup + if use cluster ; then + SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad" + elif use ads ; then + SHAREDMODS="idmap_ad" + fi +} + +src_prepare() { + default + + # un-bundle dnspython + sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die + + # unbundle iso8601 unless tests are enabled + if ! use test ; then + sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die + fi + + # ugly hackaround for bug #592502 + cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die + + sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ + -i source4/dsdb/samdb/ldb_modules/password_hash.c \ + || die + + # Friggin' WAF shit + multilib_copy_sources +} + +multilib_src_configure() { + # when specifying libs for samba build you must append NONE to the end to + # stop it automatically including things + local bundled_libs="NONE" + if ! use system-heimdal && ! use system-mitkrb5 ; then + bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" + fi + + local myconf=( + --enable-fhs + --sysconfdir="${EPREFIX}/etc" + --localstatedir="${EPREFIX}/var" + --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" + --with-piddir="${EPREFIX}/run/${PN}" + --bundled-libraries="${bundled_libs}" + --builtin-libraries=NONE + --disable-rpath + --disable-rpath-install + --nopyc + --nopyo + $(multilib_native_use_with acl acl-support) + $(multilib_native_usex addc '' '--without-ad-dc') + $(multilib_native_use_with addns dnsupdate) + $(multilib_native_use_with ads) + $(multilib_native_use_enable ceph cephfs) + $(multilib_native_use_with cluster cluster-support) + $(multilib_native_use_enable cups) + $(multilib_native_use_with dmapi) + $(multilib_native_use_with fam) + $(multilib_native_use_with gpg gpgme) + $(multilib_native_use_with json json-audit) + $(multilib_native_use_enable iprint) + $(multilib_native_use_with pam) + $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') + $(multilib_native_use_with quota quotas) + $(multilib_native_use_with syslog) + $(multilib_native_use_with systemd) + $(multilib_native_use_with winbind) + $(multilib_native_usex python '' '--disable-python') + $(multilib_native_use_enable zeroconf avahi) + $(multilib_native_usex test '--enable-selftest' '') + $(usex system-mitkrb5 "--with-system-mitkrb5 $(multilib_native_usex addc --with-experimental-mit-ad-dc '')" '') + $(use_enable gnutls) + $(use_with debug lttng) + $(use_with ldap) + $(use_with profiling-data) + ) + multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} ) + + CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ + waf-utils_src_configure ${myconf[@]} +} + +multilib_src_compile() { + waf-utils_src_compile +} + +multilib_src_install() { + waf-utils_src_install + + # Make all .so files executable + find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die + + if multilib_is_native_abi ; then + # install ldap schema for server (bug #491002) + if use ldap ; then + insinto /etc/openldap/schema + doins examples/LDAP/samba.schema + fi + + # create symlink for cups (bug #552310) + if use cups ; then + dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb + fi + + # install example config file + insinto /etc/samba + doins examples/smb.conf.default + + # Fix paths in example file (#603964) + sed \ + -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ + -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ + -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ + -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ + -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ + -i "${ED%/}"/etc/samba/smb.conf.default || die + + # Install init script and conf.d file + newinitd "${CONFDIR}/samba4.initd-r1" samba + newconfd "${CONFDIR}/samba4.confd" samba + + systemd_dotmpfilesd "${FILESDIR}"/samba.conf + systemd_dounit "${FILESDIR}"/nmbd.service + systemd_dounit "${FILESDIR}"/smbd.{service,socket} + systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' + systemd_dounit "${FILESDIR}"/winbindd.service + systemd_dounit "${FILESDIR}"/samba.service + fi + + if use pam && use winbind ; then + newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind + # bugs #376853 and #590374 + insinto /etc/security + doins examples/pam_winbind/pam_winbind.conf + fi + + keepdir /var/cache/samba + keepdir /var/lib/ctdb + keepdir /var/lib/samba/{bind-dns,private} + keepdir /var/lock/samba + keepdir /var/log/samba + keepdir /var/run/{ctdb,samba} +} + +multilib_src_test() { + if multilib_is_native_abi ; then + "${WAF_BINARY}" test || die "test failed" + fi +} + +pkg_postinst() { + ewarn "Be aware the this release contains the best of all of Samba's" + ewarn "technology parts, both a file server (that you can reasonably expect" + ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" + ewarn "controller work previously known as 'samba4'." + + elog "For further information and migration steps make sure to read " + elog "https://samba.org/samba/history/${P}.html " + elog "https://wiki.samba.org/index.php/Samba4/HOWTO " +} |