2 # - sudoscriptd in /etc/rc.d/init.d
3 # - man ss.1 should be gzipped
4 # - better place for pm library
6 Summary: Sudoscript provides an audited shell with sudo(8) and script(1)
11 Group: Applications/System
12 Source0: http://sudoscript.org/%{name}-%{version}.tar.gz
13 # Source0-md5: ac0f8128eef9bf19f06092a1a6d6cf94
14 Patch0: %{name}-init.patch
15 Patch1: %{name}-parallel-make.patch
16 URL: http://sudoscript.org
17 BuildRequires: perl-base
18 BuildRequires: perl-tools-pod
19 Requires: /sbin/chkconfig
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 The sudoscript package provides audited shells using sudo(8) and
30 script(1) The package consists of two components. One is a daemon,
31 sudoscriptd. The other is a front-end program called sudoshell, also
32 aliased to ss. Sudo is used to authenticate and authorize ss to run as
33 another user. The audit trail is produced with script(1). When it has
34 successfully run a new process using sudo, ss runs script(1) with a
35 FIFO (named pipe) maintained by sudoscriptd as the typescript. The
36 daemon reads the FIFO and manages back-end log files to store the
37 session audit. It also adds a session ID and timestamp to the data, so
38 multiple sessions can be seperated in the log. The daemon limits the
39 size of the logs produced, since they can grow quite large.
50 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT \
60 rm -rf $RPM_BUILD_ROOT
63 /sbin/chkconfig --add sudoscriptd
64 %service sudoscriptd restart
67 if [ "$1" = "0" ]; then
68 %service sudoscriptd stop
69 /sbin/chkconfig --del sudoscriptd
73 %defattr(644,root,root,755)
85 %doc sudoscriptd-src.html
86 %doc sudoshell-src.html
87 %doc sudoscript.8.html
88 %doc sudoscriptd.8.html
89 %doc Sudoscript.3pm.html
95 %doc xsl/egbokdoc2fop.xsl
97 %attr(754,root,root) /etc/init.d/sudoscriptd
98 %attr(755,root,root) %{_bindir}/sudoshell
99 %attr(700,root,daemon) %{_sbindir}/sudoscriptd
100 %attr(755,root,root) %{_bindir}/ss
101 %dir %{_prefix}/lib/sudoscript
102 %{_prefix}/lib/sudoscript/Sudoscript.pm
103 %{_mandir}/man1/sudoshell.1*
104 %{_mandir}/man1/ss.1*
105 %{_mandir}/man8/sudoscriptd.8*
106 %{_mandir}/man8/sudoscript.8*
107 %{_mandir}/man3/Sudoscript.3pm*