[csw-devel] SF.net SVN: gar:[6312] csw/mgar/pkg/sudosh2/trunk

skayser at users.sourceforge.net skayser at users.sourceforge.net
Wed Sep 16 01:28:28 CEST 2009


Revision: 6312
          http://gar.svn.sourceforge.net/gar/?rev=6312&view=rev
Author:   skayser
Date:     2009-09-15 23:28:28 +0000 (Tue, 15 Sep 2009)

Log Message:
-----------
sudosh2: getting release ready

Modified Paths:
--------------
    csw/mgar/pkg/sudosh2/trunk/Makefile
    csw/mgar/pkg/sudosh2/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/sudosh2/trunk/files/002-strip-man-page-blank.patch
    csw/mgar/pkg/sudosh2/trunk/files/003-adjust-sudosh-man-binary-name.patch
    csw/mgar/pkg/sudosh2/trunk/files/changelog.CSW

Modified: csw/mgar/pkg/sudosh2/trunk/Makefile
===================================================================
--- csw/mgar/pkg/sudosh2/trunk/Makefile	2009-09-15 18:02:39 UTC (rev 6311)
+++ csw/mgar/pkg/sudosh2/trunk/Makefile	2009-09-15 23:28:28 UTC (rev 6312)
@@ -1,32 +1,59 @@
 # TODO/Issues
-# - Man pages don't display right now
-# - Set sudosh.conf ownership to root:root?
-# - Compiled in default for logdir /var/adm/..., if not existant sudosh2
-#   totally hangs (^C doesn't work). Change default and include the dir in the
-#   package?
-# - Submit DESTDIR patch upstream
+# - Submit 001- (DESTDIR) and 002- (man page) patches upstream
+# - What about --logdir perms? Any other special perms required?
 GARNAME = sudosh2
 GARVERSION = 1.0.2
 CATEGORIES = apps
 
-DESCRIPTION = Brief description
+DESCRIPTION = Extensive auditing of user shell usage
 define BLURB
-  Long description
+  sudosh can be used as a default login shell or a filter that takes
+  advantage of PTY devices in order to sit between the user's keyboard and
+  a program, in this case a shell. It was designed specifically to be used
+  in conjunction with sudo, and allows the execution of a root or
+  application shell with logging. It is basically a VCR and will record
+  root shell sessions and also has the ability to play back the sessions
+  as they were originally recorded. It records all input/output, keyboard
+  input, and timing information so that the session can be played back in
+  the original format. 
+
+  Sudosh2 is a fork of sudosh (by Douglas Hanks).
 endef
 
 MASTER_SITES = $(SF_MIRRORS)
 DISTFILES  = $(GARNAME)-$(GARVERSION).tgz
 
 CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --with-logdir=/var/opt/csw/sudosh
 
 # No tests available
 TEST_SCRIPTS = 
 
 # Installation for sudosh.conf doesn't honor DESTDIR
-PATCHFILES = 001-installsudosh.conf-destdir.patch
+PATCHFILES  = 001-installsudosh.conf-destdir.patch
+# Man pages contain an empty line that becomes a full first blank page
+PATCHFILES += 002-strip-man-page-blank.patch
+# The binary is called sudosh (not sudosh2 - only leave sudosh2 in the title)
+PATCHFILES += 003-adjust-sudosh-man-binary-name.patch
 
 include gar/category.mk
 
 pre-configure-modulated:
-	perl -pi -e 's|-Werror|-errwarn|g' $(WORKSRC)/Makefile.in $(WORKSRC)/src/Makefile.in
+	# -errwarn bails out with implicit function declarations
+	# http://lists.opencsw.org/pipermail/maintainers/2009-September/004159.html
+	#perl -pi -e 's|-Werror|-errwarn|g' \
+	perl -pi -e 's|-Werror||g' \
+		$(WORKSRC)/src/Makefile.in \
+		$(WORKSRC)/Makefile.in \
+		$(WORKSRC)/configure
 	@$(MAKECOOKIE)
+
+post-install-modulated: DOCDEST=$(DESTDIR)$(docdir)/$(GARNAME)
+post-install-modulated: DOCS=AUTHORS NEWS README
+post-install-modulated:
+	ginstall -d $(DESTDIR)/var/opt/csw/sudosh
+	ginstall -d $(DOCDEST)
+	cp $(addprefix $(WORKSRC)/,$(DOCS)) $(DOCDEST)
+	cp $(WORKSRC)/ChangeLog $(DOCDEST)/changelog
+	cp $(FILEDIR)/changelog.CSW $(DOCDEST)
+	@$(MAKECOOKIE)

Modified: csw/mgar/pkg/sudosh2/trunk/checksums
===================================================================
--- csw/mgar/pkg/sudosh2/trunk/checksums	2009-09-15 18:02:39 UTC (rev 6311)
+++ csw/mgar/pkg/sudosh2/trunk/checksums	2009-09-15 23:28:28 UTC (rev 6312)
@@ -1 +1,4 @@
+652d339ec04952f3d114b9aea838afc5  download/001-installsudosh.conf-destdir.patch
+9752d641a2233caf7789711ecbcd890e  download/002-strip-man-page-blank.patch
+882f7d2ddb59330350dd2d82184aff50  download/003-adjust-sudosh-man-binary-name.patch
 4c837f7739d9db780ad324ed8482e8a7  download/sudosh2-1.0.2.tgz

Added: csw/mgar/pkg/sudosh2/trunk/files/002-strip-man-page-blank.patch
===================================================================
--- csw/mgar/pkg/sudosh2/trunk/files/002-strip-man-page-blank.patch	                        (rev 0)
+++ csw/mgar/pkg/sudosh2/trunk/files/002-strip-man-page-blank.patch	2009-09-15 23:28:28 UTC (rev 6312)
@@ -0,0 +1,36 @@
+diff --git a/sudosh-replay.8.in b/sudosh-replay.8.in
+index e4b93c0..b2159e0 100644
+--- a/sudosh-replay.8.in
++++ b/sudosh-replay.8.in
+@@ -1,7 +1,6 @@
+ .\" Process this file with
+ .\" groff -man -Tascii sudosh-replay.1
+ .\"
+-
+ .TH SUDOSH-REPLAY 8 "December 20 2007" @VERSION@ "User Manuals"
+ .SH NAME
+ sudosh-replay \- view and replay sudosh sessions
+diff --git a/sudosh.1.in b/sudosh.1.in
+index de95301..cd60622 100644
+--- a/sudosh.1.in
++++ b/sudosh.1.in
+@@ -1,7 +1,6 @@
+ .\" Process this file with
+ .\" groff -man -Tascii sudosh.1
+ .\"
+-
+ .TH SUDOSH 1 "December 21th 2007" @VERSION@ "User Manuals"
+ .SH NAME
+ @PACKAGE_NAME@ \- works like a VCR and records shell sessions.
+diff --git a/sudosh.conf.5.in b/sudosh.conf.5.in
+index 9a42617..1d115fe 100644
+--- a/sudosh.conf.5.in
++++ b/sudosh.conf.5.in
+@@ -1,7 +1,6 @@
+ .\" Process this file with
+ .\" groff -man -Tascii sudosh.1
+ .\"
+-
+ .TH SUDOSH.CONF 5 "December 21th 2007" @VERSION@ "User Manuals"
+ .SH NAME
+ sudosh.conf \- configuration file for sudosh

Added: csw/mgar/pkg/sudosh2/trunk/files/003-adjust-sudosh-man-binary-name.patch
===================================================================
--- csw/mgar/pkg/sudosh2/trunk/files/003-adjust-sudosh-man-binary-name.patch	                        (rev 0)
+++ csw/mgar/pkg/sudosh2/trunk/files/003-adjust-sudosh-man-binary-name.patch	2009-09-15 23:28:28 UTC (rev 6312)
@@ -0,0 +1,16 @@
+diff --git a/sudosh.1.in b/sudosh.1.in
+index cd60622..dd46be3 100644
+--- a/sudosh.1.in
++++ b/sudosh.1.in
+@@ -5,9 +5,9 @@
+ .SH NAME
+ @PACKAGE_NAME@ \- works like a VCR and records shell sessions.
+ .SH SYNOPSIS
+-.B @PACKAGE_NAME@ [OPTION]...
++.B sudosh [OPTION]...
+ .SH DESCRIPTION
+-.B @PACKAGE_NAME@
++.B sudosh
+ can be used as a default login shell or as a filter.  sudosh takes advantage of pty devices in order to sit between the user's keyboard and a program, in this case a shell.  It was designed specifically to be used in conjunction with
+ .BR sudo (8)
+ and allows execution of a shell with logging.  It is basically a VCR and will record shell sessions and also has the ability to play back the sessions as they were originally recorded.  It records all input/output, keyboard input, and timing information so that the session acn be played back in the original format.

Added: csw/mgar/pkg/sudosh2/trunk/files/changelog.CSW
===================================================================
--- csw/mgar/pkg/sudosh2/trunk/files/changelog.CSW	                        (rev 0)
+++ csw/mgar/pkg/sudosh2/trunk/files/changelog.CSW	2009-09-15 23:28:28 UTC (rev 6312)
@@ -0,0 +1,5 @@
+sudosh2 (1.0.2,REV=2009.09.16)
+
+  * Initial release.
+
+ -- Sebastian Kayser <skayser at opencsw.org>  Wed, 16 Sep 2009 01:11:30 +0200


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list