1 |
patrick 09/03/29 16:49:58 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: samba-3.0.34.ebuild |
5 |
Log: |
6 |
Bump to 3.0.34. Fixes #256778 |
7 |
(Portage version: 2.2_rc28/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.353 net-fs/samba/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?rev=1.353&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?rev=1.353&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?r1=1.352&r2=1.353 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v |
19 |
retrieving revision 1.352 |
20 |
retrieving revision 1.353 |
21 |
diff -u -r1.352 -r1.353 |
22 |
--- ChangeLog 4 Jan 2009 17:51:15 -0000 1.352 |
23 |
+++ ChangeLog 29 Mar 2009 16:49:58 -0000 1.353 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-fs/samba |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.352 2009/01/04 17:51:15 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.353 2009/03/29 16:49:58 patrick Exp $ |
29 |
+ |
30 |
+*samba-3.0.34 (29 Mar 2009) |
31 |
+ |
32 |
+ 29 Mar 2009; Patrick Lauer <patrick@g.o> +samba-3.0.34.ebuild: |
33 |
+ Bump to 3.0.34. Fixes #256778 |
34 |
|
35 |
04 Jan 2009; Raúl Porcel <armin76@g.o> samba-3.0.33.ebuild: |
36 |
s390/sh stable wrt #247620 |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-fs/samba/samba-3.0.34.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/samba-3.0.34.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/samba-3.0.34.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: samba-3.0.34.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.0.34.ebuild,v 1.1 2009/03/29 16:49:58 patrick Exp $ |
50 |
|
51 |
inherit autotools eutils pam python multilib versionator confutils |
52 |
|
53 |
VSCAN_P="samba-vscan-0.3.6c-beta5" |
54 |
MY_P=${PN}-${PV/_/} |
55 |
|
56 |
DESCRIPTION="A suite of SMB and CIFS client/server programs for UNIX" |
57 |
HOMEPAGE="http://www.samba.org/" |
58 |
SRC_URI="mirror://samba/${MY_P}.tar.gz |
59 |
mirror://samba/old-versions/${MY_P}.tar.gz |
60 |
oav? ( http://www.openantivirus.org/download/${VSCAN_P}.tar.gz )" |
61 |
LICENSE="GPL-3 oav? ( GPL-2 LGPL-2.1 )" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
64 |
IUSE="acl ads async automount caps cups debug doc examples ipv6 kernel_linux ldap fam |
65 |
pam python quotas readline selinux swat syslog winbind oav" |
66 |
|
67 |
RDEPEND="dev-libs/popt |
68 |
virtual/libiconv |
69 |
acl? ( kernel_linux? ( sys-apps/acl ) ) |
70 |
cups? ( net-print/cups ) |
71 |
ipv6? ( sys-apps/xinetd ) |
72 |
ads? ( virtual/krb5 ) |
73 |
ldap? ( net-nds/openldap ) |
74 |
pam? ( virtual/pam ) |
75 |
python? ( dev-lang/python ) |
76 |
readline? ( sys-libs/readline ) |
77 |
selinux? ( sec-policy/selinux-samba ) |
78 |
swat? ( sys-apps/xinetd ) |
79 |
syslog? ( virtual/logger ) |
80 |
fam? ( virtual/fam ) |
81 |
caps? ( sys-libs/libcap )" |
82 |
DEPEND="${RDEPEND}" |
83 |
|
84 |
# Tests are broken now :-( |
85 |
RESTRICT="test" |
86 |
|
87 |
S=${WORKDIR}/${MY_P} |
88 |
CONFDIR=${FILESDIR}/config |
89 |
PRIVATE_DST=/var/lib/samba/private |
90 |
|
91 |
pkg_setup() { |
92 |
confutils_use_depend_all ads ldap |
93 |
} |
94 |
|
95 |
src_unpack() { |
96 |
unpack ${A} |
97 |
cd "${S}/source" |
98 |
|
99 |
# lazyldflags.patch: adds "-Wl,-z,now" to smb{mnt,umount} |
100 |
# invalid-free-fix.patch: Bug #196015 (upstream: #5021) |
101 |
|
102 |
epatch \ |
103 |
"${FILESDIR}/3.0.26a-lazyldflags.patch" \ |
104 |
"${FILESDIR}/3.0.26a-invalid-free-fix.patch" \ |
105 |
"${FILESDIR}/3.0.28-fix_broken_readdir_detection.patch" \ |
106 |
"${FILESDIR}/3.0.28a-wrong_python_ldflags.patch" |
107 |
|
108 |
eautoconf -I. -Ilib/replace |
109 |
|
110 |
# Ok, agreed, this is ugly. But it avoids a patch we |
111 |
# need for every samba version and we don't need autotools |
112 |
sed -i \ |
113 |
-e 's|"lib32" ||' \ |
114 |
-e 's|if test -d "$i/$l" ;|if test -d "$i/$l" -o -L "$i/$l";|' \ |
115 |
configure || die "sed failed" |
116 |
|
117 |
rm "${S}/docs/manpages"/{mount,umount}.cifs.8 |
118 |
|
119 |
} |
120 |
|
121 |
src_compile() { |
122 |
cd "${S}/source" |
123 |
|
124 |
local myconf |
125 |
local mylangs |
126 |
local mymod_shared |
127 |
|
128 |
python_version |
129 |
myconf="--with-python=no" |
130 |
use python && myconf="--with-python=${python}" |
131 |
|
132 |
use winbind && mymod_shared="--with-shared-modules=idmap_rid" |
133 |
if use ldap ; then |
134 |
myconf="${myconf} $(use_with ads)" |
135 |
use winbind && mymod_shared="${mymod_shared},idmap_ad" |
136 |
fi |
137 |
|
138 |
[[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie" |
139 |
use hppa && myconf="${myconf} --disable-pie" |
140 |
|
141 |
use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no |
142 |
|
143 |
# Otherwise we get the whole swat stuff installed |
144 |
if ! use swat ; then |
145 |
sed -i \ |
146 |
-e 's/^\(install:.*\)installswat \(.*\)/\1\2/' \ |
147 |
Makefile.in || die "sed failed" |
148 |
fi |
149 |
|
150 |
econf \ |
151 |
--with-fhs \ |
152 |
--sysconfdir=/etc/samba \ |
153 |
--localstatedir=/var \ |
154 |
--with-configdir=/etc/samba \ |
155 |
--with-libdir=/usr/$(get_libdir)/samba \ |
156 |
--with-pammodulesdir=$(getpam_mod_dir) \ |
157 |
--with-swatdir=/usr/share/doc/${PF}/swat \ |
158 |
--with-piddir=/var/run/samba \ |
159 |
--with-lockdir=/var/cache/samba \ |
160 |
--with-logfilebase=/var/log/samba \ |
161 |
--with-privatedir=${PRIVATE_DST} \ |
162 |
--with-libsmbclient \ |
163 |
--enable-socket-wrapper \ |
164 |
--with-cifsmount=no \ |
165 |
$(use_with acl acl-support) \ |
166 |
$(use_with async aio-support) \ |
167 |
$(use_with automount) \ |
168 |
$(use_enable cups) \ |
169 |
$(use_enable debug) \ |
170 |
$(use_enable fam) \ |
171 |
$(use_with ads krb5) \ |
172 |
$(use_with ldap) \ |
173 |
$(use_with pam) $(use_with pam pam_smbpass) \ |
174 |
$(use_with quotas) $(use_with quotas sys-quotas) \ |
175 |
$(use_with readline) \ |
176 |
$(use_with kernel_linux smbmount) \ |
177 |
$(use_with syslog) \ |
178 |
$(use_with winbind) \ |
179 |
${myconf} ${mylangs} ${mymod_shared} |
180 |
|
181 |
emake proto || die "emake proto failed" |
182 |
emake everything || die "emake everything failed" |
183 |
|
184 |
if use python ; then |
185 |
emake python_ext || die "emake python_ext failed" |
186 |
fi |
187 |
|
188 |
if use oav ; then |
189 |
# maintainer-info: |
190 |
# - there are no known releases of mks or kavdc, |
191 |
# setting to builtin to disable auto-detection |
192 |
cd "${WORKDIR}/${VSCAN_P}" |
193 |
econf \ |
194 |
--with-fhs \ |
195 |
--with-samba-source="${S}/source" \ |
196 |
--with-libmksd-builtin \ |
197 |
--with-libkavdc-builtin \ |
198 |
--without-symantec \ |
199 |
--with-filetype \ |
200 |
--with-fileregexp \ |
201 |
$(use_enable debug) |
202 |
emake || die "emake oav plugins failed" |
203 |
fi |
204 |
} |
205 |
|
206 |
src_test() { |
207 |
cd "${S}/source" |
208 |
emake test || die "tests failed" |
209 |
} |
210 |
|
211 |
src_install() { |
212 |
cd "${S}/source" |
213 |
|
214 |
emake DESTDIR="${D}" install-everything || die "emake install-everything failed" |
215 |
|
216 |
# Extra rpctorture progs |
217 |
local extra_bins="rpctorture" |
218 |
for i in ${extra_bins} ; do |
219 |
[[ -x "${S}/bin/${i}" ]] && dobin "${S}/bin/${i}" |
220 |
done |
221 |
|
222 |
# remove .old stuff from /usr/bin: |
223 |
rm -f "${D}"/usr/bin/*.old |
224 |
|
225 |
# Removing executable bits from header-files |
226 |
fperms 644 /usr/include/lib{msrpc,smbclient}.h |
227 |
|
228 |
# Nsswitch extensions. Make link for wins and winbind resolvers |
229 |
if use winbind ; then |
230 |
dolib.so nsswitch/libnss_wins.so |
231 |
dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2 |
232 |
dolib.so nsswitch/libnss_winbind.so |
233 |
dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2 |
234 |
fi |
235 |
|
236 |
if use kernel_linux ; then |
237 |
# Warning: this can byte you if /usr is |
238 |
# on a separate volume and you have to mount |
239 |
# a smb volume before the local mount |
240 |
dosym ../usr/bin/smbmount /sbin/mount.smbfs |
241 |
fperms 4755 /usr/bin/smbmnt |
242 |
fperms 4755 /usr/bin/smbumount |
243 |
fi |
244 |
|
245 |
# bug #46389: samba doesn't create symlink anymore |
246 |
# beaviour seems to be changed in 3.0.6, see bug #61046 |
247 |
dosym samba/libsmbclient.so /usr/$(get_libdir)/libsmbclient.so.0 |
248 |
dosym samba/libsmbclient.so /usr/$(get_libdir)/libsmbclient.so |
249 |
|
250 |
# make the smb backend symlink for cups printing support (bug #133133) |
251 |
if use cups ; then |
252 |
dodir $(cups-config --serverbin)/backend |
253 |
dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb |
254 |
fi |
255 |
|
256 |
if use python ; then |
257 |
emake DESTDIR="${D}" python_install || die "emake installpython failed" |
258 |
# We're doing that manually |
259 |
find "${D}/usr/$(get_libdir)/python${PYVER}/site-packages" -iname "*.pyc" -delete |
260 |
fi |
261 |
|
262 |
cd "${S}/source" |
263 |
|
264 |
# General config files |
265 |
insinto /etc/samba |
266 |
doins "${CONFDIR}"/{smbusers,lmhosts} |
267 |
newins "${CONFDIR}/smb.conf.example-samba3" smb.conf.example |
268 |
|
269 |
newpamd "${CONFDIR}/samba.pam" samba |
270 |
use winbind && dopamd "${CONFDIR}/system-auth-winbind" |
271 |
if use swat ; then |
272 |
insinto /etc/xinetd.d |
273 |
newins "${CONFDIR}/swat.xinetd" swat |
274 |
else |
275 |
rm -f "${D}/usr/sbin/swat" |
276 |
rm -f "${D}/usr/share/man/man8/swat.8" |
277 |
fi |
278 |
|
279 |
newinitd "${FILESDIR}/samba-init" samba |
280 |
newconfd "${FILESDIR}/samba-conf" samba |
281 |
|
282 |
if use ldap ; then |
283 |
insinto /etc/openldap/schema |
284 |
doins "${S}/examples/LDAP/samba.schema" |
285 |
fi |
286 |
|
287 |
if use ipv6 ; then |
288 |
insinto /etc/xinetd.d |
289 |
newins "${FILESDIR}/samba-xinetd" smb |
290 |
fi |
291 |
|
292 |
# dirs |
293 |
diropts -m0700 ; keepdir "${PRIVATE_DST}" |
294 |
diropts -m1777 ; keepdir /var/spool/samba |
295 |
|
296 |
diropts -m0755 |
297 |
keepdir /var/{log,run,cache}/samba |
298 |
keepdir /var/lib/samba/{netlogon,profiles} |
299 |
keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR} |
300 |
keepdir /usr/$(get_libdir)/samba/{rpc,idmap,auth} |
301 |
|
302 |
# docs |
303 |
dodoc "${FILESDIR}/README.gentoo" |
304 |
dodoc "${S}"/{MAINTAINERS,README,Roadmap,WHATSNEW.txt} |
305 |
dodoc "${CONFDIR}/nsswitch.conf-wins" |
306 |
use winbind && dodoc "${CONFDIR}/nsswitch.conf-winbind" |
307 |
|
308 |
if use examples ; then |
309 |
insinto /usr/share/doc/${PF} |
310 |
doins -r "${S}/examples/" |
311 |
find "${D}/usr/share/doc/${PF}" -type d -print0 | xargs -0 chmod 755 |
312 |
find "${D}/usr/share/doc/${PF}/examples" ! -type d -print0 | xargs -0 chmod 644 |
313 |
if use python ; then |
314 |
insinto /usr/share/doc/${PF}/python |
315 |
doins -r "${S}/source/python/examples" |
316 |
fi |
317 |
fi |
318 |
|
319 |
if ! use doc ; then |
320 |
if ! use swat ; then |
321 |
rm -rf "${D}/usr/share/doc/${PF}/swat" |
322 |
else |
323 |
rm -rf "${D}/usr/share/doc/${PF}/swat/help"/{guide,howto,devel} |
324 |
rm -rf "${D}/usr/share/doc/${PF}/swat/using_samba" |
325 |
fi |
326 |
else |
327 |
cd "${S}/docs" |
328 |
insinto /usr/share/doc/${PF} |
329 |
doins *.pdf |
330 |
doins -r registry |
331 |
dohtml -r htmldocs/* |
332 |
fi |
333 |
|
334 |
if use oav ; then |
335 |
cd "${WORKDIR}/${VSCAN_P}" |
336 |
emake DESTDIR="${D}" install || die "emake install oav plugins failed" |
337 |
docinto samba-vscan |
338 |
dodoc AUTHORS ChangeLog FAQ INSTALL NEWS README TODO |
339 |
find . -iname "*.conf" -print0 | xargs -0 dodoc |
340 |
fi |
341 |
} |
342 |
|
343 |
pkg_preinst() { |
344 |
local PRIVATE_SRC=/etc/samba/private |
345 |
if [[ ! -r "${ROOT}/${PRIVATE_DST}/secrets.tdb" \ |
346 |
&& -r "${ROOT}/${PRIVATE_SRC}/secrets.tdb" ]] ; then |
347 |
ebegin "Copying "${ROOT}"/${PRIVATE_SRC}/* to ${ROOT}/${PRIVATE_DST}/" |
348 |
mkdir -p "${D}/${PRIVATE_DST}" |
349 |
cp -pPRf "${ROOT}/${PRIVATE_SRC}"/* "${D}/${PRIVATE_DST}/" |
350 |
eend $? |
351 |
fi |
352 |
|
353 |
if [[ ! -f "${ROOT}/etc/samba/smb.conf" ]] ; then |
354 |
touch "${D}/etc/samba/smb.conf" |
355 |
fi |
356 |
} |
357 |
|
358 |
pkg_postinst() { |
359 |
if use python ; then |
360 |
python_version |
361 |
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/samba |
362 |
fi |
363 |
|
364 |
if use swat ; then |
365 |
einfo "swat must be enabled by xinetd:" |
366 |
einfo " change the /etc/xinetd.d/swat configuration" |
367 |
fi |
368 |
|
369 |
if use ipv6 ; then |
370 |
einfo "ipv6 support must be enabled by xinetd:" |
371 |
einfo " change the /etc/xinetd.d/smb configuration" |
372 |
fi |
373 |
|
374 |
elog "It is possible to start/stop daemons separately:" |
375 |
elog " Create a symlink from /etc/init.d/samba.{smbd,nmbd,winbind} to" |
376 |
elog " /etc/init.d/samba. Calling /etc/init.d/samba directly will start" |
377 |
elog " the daemons configured in /etc/conf.d/samba" |
378 |
|
379 |
elog "The mount/umount.cifs helper applications are not included anymore." |
380 |
elog "Please install net-fs/mount-cifs instead." |
381 |
|
382 |
if use oav ; then |
383 |
elog "The configure snippets for various antivirus plugins are available here:" |
384 |
elog " /usr/share/doc/${PF}/samba-vscan" |
385 |
fi |
386 |
|
387 |
ewarn "If you're upgrading from 3.0.24 or earlier, please make sure to" |
388 |
ewarn "restart your clients to clear any cached information about the server." |
389 |
ewarn "Otherwise they might not be able to connect to the volumes." |
390 |
} |
391 |
|
392 |
pkg_postrm() { |
393 |
if use python ; then |
394 |
python_version |
395 |
python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/samba |
396 |
fi |
397 |
} |