# $Id$ # repo: RE # restrictions: # # Copyright (c) 2008 Mike Arnold # # Please submit bugfixes or comments via http://rpm.razorsedge.org/bugs/ # Summary: Logged root shell that can be used for auditing Name: sudosh2 Version: 1.0.5 Release: 2 License: Open Software License v. 2.0 Group: Applications/System URL: http://sourceforge.net/projects/sudosh2/ Source0: http://sudosh2.sourceforge.net/sudosh2-%{version}.tgz Patch0: sudosh2-1.0.5-DESTDIR.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: sudo Provides: sudosh Obsoletes: sudosh %description Sudosh2 is a tool which can provide systems administrators with extensive auditing of user shell usage. There are two distinct modes of operation for sudosh2: as a filter for sudo, and directly as a login shell. In either case, you will be able to audit user sessions by replaying them to your screen, much like a VCR. %prep %setup -q %patch0 -p1 %build %configure --program-transform-name= %{__make} %{?_smp_mflags} %install [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT %{__make} DESTDIR=$RPM_BUILD_ROOT install %{__install} -m 0755 -Dp bash_profile ${RPM_BUILD_ROOT}%{_sysconfdir}/profile.d/sudosh2.sh %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO bash_profile %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sudosh.conf %{_sysconfdir}/profile.d/sudosh2.sh %{_bindir}/* %doc %{_mandir}/*/* %changelog * Mon May 5 2014 Scott R. Shinn - 1.0.5 - Update to 1.0.5 * Wed Jul 30 2008 RazorsEdge Packaging 1.0.2-1 - First build.