> It is now up to Mitel to meld our changes into a samba update blade. I > believe Gordon's e-smith-samba-1.1.0-03.noarch.rpm was the first step to > move smb.conf fragments out of e-smith-base into a separate rpm to > facilitate this. As part of this process, it seem like it might be a good idea to repackage the Samba RPM to remove those deamons and associated files currently not being used by the e-smith/SME server. Having looked at the Samba 2.2.1a RPM spec file, I think the following could be removed and/or slightly modified.
<REMOVE> mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include,using_samba} mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/{figs,gifs} <MODIFY TO NOT INSTALL SWAT> # Install secure binary files for i in smbd nmbd swat smbmount smbumount smbmnt debug2html do install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin doneve those Samba services that <REMOVE> # Install SWAT helper files for i in swat/help/*.html docs/htmldocs/*.html do install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help done for i in swat/images/*.gif do install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images done for i in swat/include/*.html do install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include done <REMOVE> # Add swat entry to /etc/services if not already there. if !( grep ^[:space:]*swat /etc/services > /dev/null ) then echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services fi <REMOVE> # Add swat entry to /etc/inetd.conf if needed. if [ -f /etc/inetd.conf ]; then if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then echo 'swat stream tcp nowait.400 root %{prefix}/sbin/swat swat' >> /etc/inetd.conf killall -1 inetd || : fi fi <REMOVE> # Add swat entry to xinetd.d if needed. if [ -d $RPM_BUILD_ROOT/etc/xinetd.d ]; then mv /etc/samba/samba.xinetd /etc/xinetd.d/swat else rm -f /etc/samba/samba.xinetd fi -- Please report bugs to [EMAIL PROTECTED] Please mail [EMAIL PROTECTED] (only) to discuss security issues Support for registered customers and partners to [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org