SPECS (AC-branch): samba.spec - updated to 3.0.25a (fixes CVE-2007...

hawk hawk at pld-linux.org
Thu Jun 14 13:43:00 CEST 2007


Author: hawk                         Date: Thu Jun 14 11:43:00 2007 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- updated to 3.0.25a (fixes CVE-2007-2444, CVE-2007-2446, CVE-2007-2447)
- removed libsmbclient-libnscd_link.patch, seems to be applied upstream
- updated samba-vscan to 0.3.6c beta4 (older doesn't compile)
- include smbsh in client subpackage
- updated %files sections for 3.0.25a
- new subpackage: vfs-readahead
- adapterized, updated TODO
- builds, not tested, release 0.1

---- Files affected:
SPECS:
   samba.spec (1.348.2.1 -> 1.348.2.2) 

---- Diffs:

================================================================
Index: SPECS/samba.spec
diff -u SPECS/samba.spec:1.348.2.1 SPECS/samba.spec:1.348.2.2
--- SPECS/samba.spec:1.348.2.1	Tue Apr  3 22:36:05 2007
+++ SPECS/samba.spec	Thu Jun 14 13:42:55 2007
@@ -1,6 +1,17 @@
 # $Revision$, $Date$
 # TODO:
 # - look into other distro specs for valid %descriptions for samba 3
+# - pl for vfs-readahead
+# - unpackaged man pages for modules that are not built by default,
+#   maybe we should build them?
+#   /usr/share/man/man8/vfs_cacheprime.8.gz
+#   /usr/share/man/man8/vfs_catia.8.gz
+#   /usr/share/man/man8/vfs_commit.8.gz
+#   /usr/share/man/man8/vfs_extd_audit.8.gz
+#   /usr/share/man/man8/vfs_full_audit.8.gz
+#   /usr/share/man/man8/vfs_gpfs.8.gz
+#   /usr/share/man/man8/vfs_notify_fam.8.gz
+#   /usr/share/man/man8/vfs_prealloc.8.gz
 #
 # Conditional build:
 %bcond_without	ads		# without ActiveDirectory support
@@ -13,7 +24,7 @@
 %if !%{with krb5} || !%{with ldap}
 %undefine	with_ads
 %endif
-%define		vscan_version 0.3.6b
+%define		vscan_version 0.3.6c-beta4
 Summary:	SMB server
 Summary(cs):	Server SMB
 Summary(da):	SMB server
@@ -31,28 +42,27 @@
 Summary(uk):	SMB ËĚŚ¤ÎÔ ÔÁ ÓĹŇ×ĹŇ
 Summary(zh_CN):	Samba żÍť§śËşÍˇţÎńĆ÷
 Name:		samba
-Version:	3.0.24
-Release:	1
+Version:	3.0.25a
+Release:	0.1
 Epoch:		1
 License:	GPL v2
 Group:		Networking/Daemons
 Source0:	http://us1.samba.org/samba/ftp/%{name}-%{version}.tar.gz
-# Source0-md5:	89273f67a6d8067cbbecefaa13747153
+# Source0-md5:	cbd33bb5d904ccd8a294a4019743745d
 Source1:	smb.init
 Source2:	%{name}.pamd
 Source3:	swat.inetd
 Source4:	%{name}.sysconfig
 Source5:	%{name}.logrotate
 Source6:	smb.conf
-Source7:	http://dl.sourceforge.net/openantivirus/%{name}-vscan-%{vscan_version}.tar.bz2
-# Source7-md5:	900502ba36b80620229b94e5129bc856
+Source7:	http://www.openantivirus.org/download/%{name}-vscan-%{vscan_version}.tar.gz
+# Source7-md5:	c40acad9691ef5284a164c024124ca78
 Source8:	winbind.init
 Source9:	winbind.sysconfig
 Patch0:		%{name}-lib64.patch
 Patch1:		%{name}-FHS.patch
 Patch2:		%{name}-c++-nofail.patch
 Patch3:		%{name}-pthread.patch
-Patch4:		%{name}-libsmbclient-libnscd_link.patch
 URL:		http://www.samba.org/
 BuildRequires:	acl-devel
 BuildRequires:	autoconf
@@ -61,8 +71,8 @@
 BuildRequires:	dmapi-devel
 %{?with_krb5:BuildRequires:	heimdal-devel >= 0.7}
 BuildRequires:	iconv
-BuildRequires:	libnscd-devel
 BuildRequires:	libmagic-devel
+BuildRequires:	libnscd-devel
 BuildRequires:	libtool >= 2:1.4d
 BuildRequires:	ncurses-devel >= 5.2
 %{?with_ldap:BuildRequires:	openldap-devel >= 2.3.0}
@@ -629,6 +639,31 @@
 %description vfs-recycle -l pl
 Moduł VFS dodający możliwość kosza do zasobu samby.
 
+%package vfs-readahead
+Summary:	VFS module for pre-loading the kernel buffer cache
+Group:		Networking/Daemons
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+
+%description vfs-readahead
+This VFS module detects read requests at multiples of a given offset
+(hex 0x80000 by default) and then tells the kernel via either the
+readahead system call (on Linux) or the posix_fadvise system call to
+pre-fetch this data into the buffer cache.
+
+This module is useful for Windows Vista clients reading data using the
+Windows Explorer program, which asynchronously does multiple file read
+requests at offset boundaries of 0x80000 bytes.
+
+The offset multiple used is given by the readahead:offset option,
+which defaults to 0x80000.
+
+The size of the disk read operations performed by vfs_readahead is
+determined by the readahead:length option. By default this is set to
+the same value as the readahead:offset option and if not set
+explicitly will use the current value of readahead:offset.
+
+This module is stackable.
+
 %package vfs-readonly
 Summary:	VFS module for read-only limitation for specified share
 Summary(pl):	Moduł VFS do ograniczania określonego udziału tylko do odczytu
@@ -871,32 +906,29 @@
 %description doc-html
 Samba HTML documentation, consists of:
 
-1. SAMBA Developers Guide
-This book is a collection of documents that might be useful for
-people developing samba or those interested in doing so. It's nothing
-more than a collection of documents written by samba developers about
-the internals of various parts of samba and the SMB protocol. It's
-still (and will always be) incomplete.
-
-2. Samba-3 by Example
-Practical Exercises in Successful Samba Deployment.
-
-3. The Official Samba-3 HOWTO and Reference Guide
-This book provides example configurations, it documents key aspects
-of Microsoft Windows networking, provides in-depth insight into the
-important configuration of Samba-3, and helps to put all of these
-into a useful framework.
-
-4. Using Samba, 2nd Edition
-Using Samba, Second Edition is a comprehensive guide to Samba
-administration. It covers all versions of Samba from 2.0 to 2.2,
-including selected features from an alpha version of 3.0, as well as
-the SWAT graphical configuration tool. Updated for Windows 2000, ME,
-and XP, the book also explores Samba's new role as a primary domain
-controller and domain member server, its support for the use of
-Windows NT/2000/XP authentication and filesystem security on the host
-Unix system, and accessing shared files and printers from Unix
-clients.
+1. SAMBA Developers Guide This book is a collection of documents that
+might be useful for people developing samba or those interested in
+doing so. It's nothing more than a collection of documents written by
+samba developers about the internals of various parts of samba and the
+SMB protocol. It's still (and will always be) incomplete.
+
+2. Samba-3 by Example Practical Exercises in Successful Samba
+Deployment.
+
+3. The Official Samba-3 HOWTO and Reference Guide This book provides
+example configurations, it documents key aspects of Microsoft Windows
+networking, provides in-depth insight into the important configuration
+of Samba-3, and helps to put all of these into a useful framework.
+
+4. Using Samba, 2nd Edition Using Samba, Second Edition is a
+comprehensive guide to Samba administration. It covers all versions of
+Samba from 2.0 to 2.2, including selected features from an alpha
+version of 3.0, as well as the SWAT graphical configuration tool.
+Updated for Windows 2000, ME, and XP, the book also explores Samba's
+new role as a primary domain controller and domain member server, its
+support for the use of Windows NT/2000/XP authentication and
+filesystem security on the host Unix system, and accessing shared
+files and printers from Unix clients.
 
 5. Man pages The Samba man pages in HTML.
 
@@ -911,21 +943,19 @@
 %description doc-pdf
 Samba PDF documentation, consists of:
 
-1. SAMBA Developers Guide
-This book is a collection of documents that might be useful for
-people developing samba or those interested in doing so. It's nothing
-more than a collection of documents written by samba developers about
-the internals of various parts of samba and the SMB protocol. It's
-still (and will always be) incomplete.
-
-2. Samba-3 by Example
-Practical Exercises in Successful Samba Deployment.
-
-3. The Official Samba-3 HOWTO and Reference Guide
-This book provides example configurations, it documents key aspects
-of Microsoft Windows networking, provides in-depth insight into the
-important configuration of Samba-3, and helps to put all of these
-into a useful framework.
+1. SAMBA Developers Guide This book is a collection of documents that
+might be useful for people developing samba or those interested in
+doing so. It's nothing more than a collection of documents written by
+samba developers about the internals of various parts of samba and the
+SMB protocol. It's still (and will always be) incomplete.
+
+2. Samba-3 by Example Practical Exercises in Successful Samba
+Deployment.
+
+3. The Official Samba-3 HOWTO and Reference Guide This book provides
+example configurations, it documents key aspects of Microsoft Windows
+networking, provides in-depth insight into the important configuration
+of Samba-3, and helps to put all of these into a useful framework.
 
 %description doc-pdf -l pl
 Documentacja samby w formacie PDF.
@@ -938,16 +968,15 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
 
 cd examples/VFS
-tar xjf %{SOURCE7}
+tar xzf %{SOURCE7}
 mv README{,.vfs}
 
 %build
 cd source
 %{__libtoolize}
-%{__autoconf}
+%{__autoconf} -I lib/replace
 
 # Removed options (default or not supported by configure script)
 #	--with-mmap \
@@ -972,7 +1001,6 @@
 	--with-quotas \
 	--with-readline \
 	--with-smbmount \
-	--with-smbwrapper \
 	--with-swatdir=%{_datadir}/swat \
 	--with-syslog \
 	--with-utmp \
@@ -984,7 +1012,10 @@
 %{__make} proto
 %{__make} everything pam_smbpass bin/smbget bin/mount.cifs bin/vfstest
 
-cd ../examples/VFS
+cd ../examples/libsmbclient/smbwrapper
+%{__make}
+
+cd ../../VFS
 %{__autoconf}
 %configure \
 	CFLAGS="%{rpmcflags} -fPIC"
@@ -1038,11 +1069,17 @@
 
 install source/include/libsmbclient.h $RPM_BUILD_ROOT%{_includedir}
 
+# smbwrapper
+install examples/libsmbclient/smbwrapper/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper.so.0
+ln -s smbwrapper.so.0 $RPM_BUILD_ROOT%{_libdir}/smbwrapper.so
+install examples/libsmbclient/smbwrapper/smbsh $RPM_BUILD_ROOT%{_bindir}
+install docs/manpages/smbsh.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
 # these are needed to build samba-pdbsql
 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/{smbwrapper,tdb,nsswitch}
 cp -a source/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
-cp -a source/smbwrapper/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/smbwrapper
-cp -a source/tdb/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
+cp -a examples/libsmbclient/smbwrapper/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/smbwrapper
+cp -a source/tdb/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
 cp -a source/nsswitch/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
 
 # vscan modules
@@ -1203,6 +1240,7 @@
 %attr(755,root,root) %{_bindir}/net
 %attr(755,root,root) %{_bindir}/smbmnt
 %attr(755,root,root) %{_bindir}/smbmount
+%attr(755,root,root) %{_bindir}/smbsh
 %attr(755,root,root) %{_bindir}/smbtree
 %attr(755,root,root) %{_bindir}/smbumount
 %{_mandir}/man1/smbtree.1*
@@ -1241,6 +1279,7 @@
 %attr(755,root,root) %{_bindir}/testparm
 %attr(755,root,root) %{_bindir}/vfstest
 %dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/libsmbsharemodes.so
 %{_libdir}/%{name}/*.dat
 %dir %{_libdir}/%{name}/auth
 %attr(755,root,root) %{_libdir}/%{name}/auth/script.so
@@ -1255,6 +1294,13 @@
 %{_mandir}/man5/lmhosts.5*
 %{_mandir}/man5/smb.conf.5*
 %{_mandir}/man8/pdbedit.8*
+%{_mandir}/man8/eventlogadm.8*
+%{_mandir}/man8/idmap_ad.8*
+%{_mandir}/man8/idmap_ldap.8*
+%{_mandir}/man8/idmap_nss.8*
+%{_mandir}/man8/idmap_rid.8*
+%{_mandir}/man8/idmap_tdb.8*
+%{_mandir}/man8/tdbtool.8*
 
 %files swat
 %defattr(644,root,root,755)
@@ -1272,6 +1318,7 @@
 %lang(tr) %{_datadir}/swat/lang/tr
 %lang(de) %{_libdir}/%{name}/de.msg
 %{_libdir}/%{name}/en.msg
+%lang(fr) %{_libdir}/%{name}/fi.msg
 %lang(fr) %{_libdir}/%{name}/fr.msg
 %lang(it) %{_libdir}/%{name}/it.msg
 %lang(ja) %{_libdir}/%{name}/ja.msg
@@ -1299,12 +1346,14 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libmsrpc.so.*
 %attr(755,root,root) %{_libdir}/libsmbclient.so.*
+%attr(755,root,root) %{_libdir}/smbwrapper.so.*
 %{_mandir}/man7/libsmbclient.7*
 
 %files -n libsmbclient-devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libmsrpc.so
 %attr(755,root,root) %{_libdir}/libsmbclient.so
+%attr(755,root,root) %{_libdir}/smbwrapper.so
 %{_includedir}/libmsrpc.h
 %{_includedir}/libsmbclient.h
 
@@ -1336,14 +1385,17 @@
 %attr(755,root,root) %{_vfsdir}/audit.so
 %attr(755,root,root) %{_vfsdir}/extd_audit.so
 %attr(755,root,root) %{_vfsdir}/full_audit.so
+%{_mandir}/man8/vfs_audit.8*
 
 %files vfs-cap
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_vfsdir}/cap.so
+%{_mandir}/man8/vfs_cap.8*
 
 %files vfs-default_quota
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_vfsdir}/default_quota.so
+%{_mandir}/man8/vfs_default_quota.8*
 
 %files vfs-expand_msdfs
 %defattr(644,root,root,755)
@@ -1352,22 +1404,32 @@
 %files vfs-fake_perms
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_vfsdir}/fake_perms.so
+%{_mandir}/man8/vfs_fake_perms.8*
 
 %files vfs-netatalk
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_vfsdir}/netatalk.so
+%{_mandir}/man8/vfs_netatalk.8*
+
+%files vfs-readahead
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_vfsdir}/readahead.so
+%{_mandir}/man8/vfs_readahead.8*
 
 %files vfs-readonly
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_vfsdir}/readonly.so
+%{_mandir}/man8/vfs_readonly.8*
 
 %files vfs-recycle
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_vfsdir}/recycle.so
+%{_mandir}/man8/vfs_recycle.8*
 
 %files vfs-shadow_copy
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_vfsdir}/shadow_copy.so
+%{_mandir}/man8/vfs_shadow_copy.8*
 
 %files vfs-vscan-antivir
 %defattr(644,root,root,755)
@@ -1457,6 +1519,16 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.348.2.2  2007/06/14 11:42:55  hawk
+- updated to 3.0.25a (fixes CVE-2007-2444, CVE-2007-2446, CVE-2007-2447)
+- removed libsmbclient-libnscd_link.patch, seems to be applied upstream
+- updated samba-vscan to 0.3.6c beta4 (older doesn't compile)
+- include smbsh in client subpackage
+- updated %files sections for 3.0.25a
+- new subpackage: vfs-readahead
+- adapterized, updated TODO
+- builds, not tested, release 0.1
+
 Revision 1.348.2.1  2007/04/03 20:36:05  zawadaa
 - up to 3.0.24
 - resolves CVE-2007-0452, CVE-2007-0453, CVE-2007-0454
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/samba.spec?r1=1.348.2.1&r2=1.348.2.2&f=u



More information about the pld-cvs-commit mailing list