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