The attached patch for the samba.spec file adds the option with_docs which installs the documentation and image files, many of which are used by ``swat'', the web base configuration tool.
One of the primary reasons we use and recommend others to use swat rather than editing the samba smb.conf file directly is that it provides excellent links to the documentation for all configuration options -- which can be a bit arcane and confusion for the samba clued, much less the casual users. One could argue that the ``using_samba'' documentation isn't really necessary, The entire using_samba directory is about 2.7M. The attached patch is against the 1.3 release version, and would work on current except for the build number part. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Things in our country run in spite of government. Not by aid of it!'' Will Rogers
--- samba.spec.orig Thu Aug 21 22:36:26 2003 +++ samba.spec Thu Aug 21 22:38:39 2003 @@ -33,10 +33,11 @@ Group: Filesystem License: GPL Version: 2.2.8a -Release: 1.3.0 +Release: 20030821 # package options %option with_pam no +%option with_docs yes # list of sources Source0: http://download.samba.org/samba/ftp/samba-%{version}.tar.gz @@ -136,10 +137,12 @@ mv $RPM_BUILD_ROOT%{l_prefix}/bin/$file \ $RPM_BUILD_ROOT%{l_prefix}/libexec/samba/$file done +%if "%{with_docs}" != "yes" rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/samba/using_samba rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/samba/help rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/samba/images rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/samba/include +%endif strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true strip $RPM_BUILD_ROOT%{l_prefix}/libexec/samba/* >/dev/null 2>&1 || true