#$Id: sudoscript.spec.src,v 1.5 2004/11/12 03:36:09 hbo Exp $
ExclusiveArch: noarch
Name: sudoscript
Version: ${VMAJ}.${VMIN}.${VTEENY}
Release: 1
Epoch:   0
License: Artistic
Summary: Sudoscript provides an audited shell with sudo(8) and script(1)

Group: Applications/System
Source: http://sudoscript.org/${SRCTBZ}
URL: http://sudoscript.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl

Requires: sudo perl chkconfig
Provides: sudoscriptd sudoshell ss
AutoReqProv: no
%description
The sudoscript package provides audited shells using sudo(8) and 
script(1) The package consists of two components. One is a daemon, 
sudoscriptd. The other is a front-end program called sudoshell, also
aliased to ss. Sudo is used to authenticate and authorize ss to run
as another user. The audit trail is produced with script(1). When
it has successfully run a new process using sudo, ss runs script(1)
with a FIFO (named pipe) maintained by sudoscriptd as the typescript.
The daemon reads the FIFO and manages back-end log files to store the
session audit. It also adds a session ID and timestamp to the data,
so multiple sessions can be seperated in the log. The daemon limits 
the size of the logs produced, since they can grow quite large.

%prep

%setup

%build
make doc

%install
rm -rf $RPM_BUILD_ROOT

make DESTDIR=$RPM_BUILD_ROOT SSRPM="y" INSTALL=install TAR=tar RM=rm install

%clean
rm -rf $RPM_BUILD_ROOT

%post
chkconfig --add sudoscriptd

%preun

%files
%defattr(-,root,root)
%doc README
%doc INSTALL
%doc SECURITY
%doc SUDOCONFIG
%doc PORTING
%doc PROBLEMS
%doc CHANGELOG
%doc RELEASENOTES
%doc PORCMOLSULB.xml
%doc PORCMOLSULB.html
%doc PORCMOLSULB.pdf
%doc sudoscriptd-src.html
%doc sudoshell-src.html
%doc sudoscript.8.html
%doc sudoscriptd.8.html
%doc Sudoscript.3pm.html
%doc sudoshell.1.html
%doc 2.0arch.xml
%doc 2.0arch.html
%doc 2.0arch.gif
%doc xsl/egbokdoc.xsl
%doc xsl/egbokdoc2fop.xsl
%doc dtd/egbokdoc.dtd
%config /etc/init.d/sudoscriptd
%{_bindir}/sudoshell
%attr(700,root,daemon) %{_sbindir}/sudoscriptd
%{_bindir}/ss
%dir %{_libdir}/sudoscript
%{_libdir}/sudoscript/Sudoscript.pm
%{_mandir}/man1/sudoshell.1.gz
%{_mandir}/man1/ss.1.gz
%{_mandir}/man8/sudoscriptd.8.gz
%{_mandir}/man8/sudoscript.8.gz
%{_mandir}/man3/Sudoscript.3pm.gz



%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)


%changelog
