On Thu, Aug 21, 2003, Bill Campbell wrote:

> 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.

Hmm... good point, but because the stuff is for SWAT only, how about
making it a with_swat option and even remove swat also if this option is
not a set?

Index: samba.spec
===================================================================
RCS file: /e/openpkg/cvs/openpkg-src/samba/samba.spec,v
retrieving revision 1.57
diff -u -d -u -d -u -d -r1.57 samba.spec
--- samba.spec  1 Aug 2003 09:42:51 -0000       1.57
+++ samba.spec  22 Aug 2003 08:04:06 -0000
@@ -37,6 +37,7 @@

 #   package options
 %option       with_pam  no
+%option       with_swat no

 #   list of sources
 Source0:      http://download.samba.org/samba/ftp/samba-%{version}.tar.gz
@@ -137,9 +138,12 @@
            $RPM_BUILD_ROOT%{l_prefix}/libexec/samba/$file
     done
     rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/samba/using_samba
+%if "%{with_swat}" != "yes"
     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
+    rm -f  $RPM_BUILD_ROOT%{l_prefix}/sbin/swat
+%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

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to