Skip to content

Commit

Permalink
packaging: Remove SWAT references from RHEL-CTDB
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: David Disseldorp <[email protected]>
  • Loading branch information
cryptomilk committed May 10, 2017
1 parent 0a23cde commit 219505f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 52 deletions.
2 changes: 0 additions & 2 deletions packaging/RHEL-CTDB/configure.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE -O3" ./configure -C \
--mandir=${_mandir} \
--with-piddir=/var/run \
--with-privatedir=${_sysconfdir}/samba \
--with-sambabook=${_datadir}/swat/using_samba \
--with-swatdir=${_datadir}/swat \
--disable-cups \
--with-acl-support \
--with-ads \
Expand Down
38 changes: 3 additions & 35 deletions packaging/RHEL-CTDB/samba.spec.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,6 @@ packages of Samba.



#######################################################################
%package swat
Summary: The Samba SMB server configuration program.
Group: Applications/System
Requires: samba = %{version} xinetd
Provides: samba-swat = %{version}-%{release}

%description swat
The samba-swat package includes the new SWAT (Samba Web Administration
Tool), for remotely managing Samba's smb.conf file using your favorite
Web browser.


#######################################################################
%package doc
Summary: Samba Documentation
Expand All @@ -120,9 +107,9 @@ Provides: samba-doc = %{version}-%{release}
Requires: /usr/bin/find /bin/rm /usr/bin/xargs

%description doc
The samba-doc package includes the HTML versions of the Samba manpages
utilized by SWAT as well as the HTML and PDF version of "Using Samba",
"Samba By Example", and "The Official Samba HOWTO and Reference Guide".
The samba-doc package includes the HTML versions of the Samba manpages as well
as the HTML and PDF version of "Using Samba", "Samba By Example", and "The
Official Samba HOWTO and Reference Guide".


#######################################################################
Expand Down Expand Up @@ -226,7 +213,6 @@ find examples docs -type f | xargs -r chmod -x
rm -rf $RPM_BUILD_ROOT

# Create the target build directory hierarchy
mkdir -p $RPM_BUILD_ROOT%{_datadir}/samba/swat/{help,include,using_samba/{figs,gifsa}}
mkdir -p $RPM_BUILD_ROOT%{_includedir}
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
mkdir -p $RPM_BUILD_ROOT{%{_libarchdir},%{_includedir}}
Expand Down Expand Up @@ -280,7 +266,6 @@ cp -p source3/bin/winbind_krb5_locator.so ${RPM_BUILD_ROOT}/%{_libarchdir}/krb5/
# Install the miscellany
echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts

install -m644 setup/swat $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/swat
install -m644 setup/samba.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/samba
install -m755 setup/smb.init $RPM_BUILD_ROOT%{initdir}/smb
install -m755 setup/winbind.init $RPM_BUILD_ROOT%{initdir}/winbind
Expand Down Expand Up @@ -339,12 +324,6 @@ exit 0

#%postun

%post swat
# Add swat entry to /etc/services if not already there.
if [ ! "`grep ^\s**swat /etc/services`" ]; then
echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services
fi

%post common
/sbin/ldconfig

Expand Down Expand Up @@ -463,17 +442,6 @@ exit 0

##########

%files swat
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/xinetd.d/swat
%dir %{_datadir}/samba/swat
%{_datadir}/samba/swat/*
%{_sbindir}/swat
%{_mandir}/man8/swat.8*
%attr(755,root,root) %{_datadir}/samba/codepages/*.msg

##########

%files client
%defattr(-,root,root)

Expand Down
15 changes: 0 additions & 15 deletions packaging/RHEL-CTDB/setup/swat

This file was deleted.

0 comments on commit 219505f

Please sign in to comment.