Gentoo Archives: gentoo-commits

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