]> git.pld-linux.org Git - SPECS.git/blob - sudoscript.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / sudoscript.spec
1 # TODO:
2 #       - sudoscriptd in /etc/rc.d/init.d
3 #       - man ss.1 should be gzipped
4 #       - better place for pm library
5
6 Summary:        Sudoscript provides an audited shell with sudo(8) and script(1)
7 Name:           sudoscript
8 Version:        2.1.2
9 Release:        1
10 License:        Artistic
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
20 Requires:       perl-base
21 Requires:       sudo
22 Provides:       ss
23 Provides:       sudoscriptd
24 Provides:       sudoshell
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
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.
40
41 %prep
42 %setup -q
43 %patch0 -p1
44 %patch1 -p1
45
46 %build
47 %{__make} doc
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 %{__make} \
52         DESTDIR=$RPM_BUILD_ROOT \
53         SSRPM="n" \
54         INSTALL=install \
55         TAR=tar \
56         RM=rm \
57         install
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post
63 /sbin/chkconfig --add sudoscriptd
64 %service sudoscriptd restart
65
66 %preun
67 if [ "$1" = "0" ]; then
68         %service sudoscriptd stop
69         /sbin/chkconfig --del sudoscriptd
70 fi
71
72 %files
73 %defattr(644,root,root,755)
74 %doc README
75 %doc INSTALL
76 %doc SECURITY
77 %doc SUDOCONFIG
78 %doc PORTING
79 %doc PROBLEMS
80 %doc CHANGELOG
81 %doc RELEASENOTES
82 %doc PORCMOLSULB.xml
83 %doc PORCMOLSULB.html
84 %doc PORCMOLSULB.pdf
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
90 %doc sudoshell.1.html
91 %doc 2.0arch.xml
92 %doc 2.0arch.html
93 %doc 2.0arch.gif
94 %doc xsl/egbokdoc.xsl
95 %doc xsl/egbokdoc2fop.xsl
96 %doc dtd/egbokdoc.dtd
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*
This page took 0.832987 seconds and 3 git commands to generate.