aboutsummaryrefslogtreecommitdiff
path: root/security/swatch
diff options
context:
space:
mode:
authorJames FitzGibbon <jfitz@FreeBSD.org>1997-05-03 00:22:09 +0000
committerJames FitzGibbon <jfitz@FreeBSD.org>1997-05-03 00:22:09 +0000
commit3036b701bbd874f9922689d39667587ce9e2a5ce (patch)
tree58479e2586997c479d1226adb54ac4c301ae8080 /security/swatch
parent35e3360758a293c1d42889c4371c48acb36acf0c (diff)
downloadports-3036b701bbd874f9922689d39667587ce9e2a5ce.tar.gz
ports-3036b701bbd874f9922689d39667587ce9e2a5ce.zip
Import of SWATCH, the Simple WATCHer and filter
Notes
Notes: svn path=/head/; revision=6382
Diffstat (limited to 'security/swatch')
-rw-r--r--security/swatch/Makefile24
-rw-r--r--security/swatch/distinfo1
-rw-r--r--security/swatch/files/patch-aa75
-rw-r--r--security/swatch/pkg-comment1
-rw-r--r--security/swatch/pkg-descr43
-rw-r--r--security/swatch/pkg-plist6
6 files changed, 150 insertions, 0 deletions
diff --git a/security/swatch/Makefile b/security/swatch/Makefile
new file mode 100644
index 000000000000..191cd2884029
--- /dev/null
+++ b/security/swatch/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: swatch
+# Version required: 2.2
+# Date created: May 2 97
+# Whom: jfitz
+#
+# $Id$
+#
+
+DISTNAME= swatch-2.2
+CATEGORIES= security sysutils
+MASTER_SITES= ftp://ftp.stanford.edu/general/security-tools/swatch/ \
+ ftp://ftp.cert.dfn.de/pub/tools/audit/swatch/
+
+MAINTAINER= jfitz@FreeBSD.ORG
+
+NO_BUILD= YES
+
+MAN5= swatch.conf.5
+MAN8= swatch.8
+
+do-install:
+ @cd ${WRKSRC}; sh ${WRKSRC}/install.sh
+
+.include <bsd.port.mk>
diff --git a/security/swatch/distinfo b/security/swatch/distinfo
new file mode 100644
index 000000000000..00c29c6eac73
--- /dev/null
+++ b/security/swatch/distinfo
@@ -0,0 +1 @@
+MD5 (swatch-2.2.tar.gz) = 0d787edd73d358eefcf9e7a601fb7cb7
diff --git a/security/swatch/files/patch-aa b/security/swatch/files/patch-aa
new file mode 100644
index 000000000000..c23ce775902b
--- /dev/null
+++ b/security/swatch/files/patch-aa
@@ -0,0 +1,75 @@
+--- install.pl.orig Thu Dec 14 17:17:23 1995
++++ install.pl Fri May 2 20:13:32 1997
+@@ -12,7 +12,7 @@
+
+ # usage: install.pl [full_path_to_perl]
+ #
+-$ENV{'PATH'} = '/usr/ucb:/usr/bin:/bin:/usr/local/bin' ;
++$ENV{'PATH'} = '/usr/bin:/bin:/usr/local/bin' ;
+ $ENV{'IFS'} = '' if $ENV{'IFS'} ne '' ;
+
+
+@@ -21,8 +21,9 @@
+ ##
+ $PERL_LIB_DIR = "/usr/local/lib/perl" ;
+ $PERL_BIN_DIR = "/usr/local/bin" ;
+- $SWATCH_BIN_DIR = "/usr/local/etc" ;
++ $SWATCH_BIN_DIR = "/usr/local/bin" ;
+ $SWATCH_MAN_DIR = "/usr/local/man" ;
++ $SWATCH_LIB_DIR = "/usr/local/lib" ;
+ $SWATCH_PROG_MAN_EXT = "8" ;
+ $SWATCH_CONF_MAN_EXT = "5" ;
+ $SWATCH_DATA_MODE = 444 ;
+@@ -30,14 +31,15 @@
+ $OWNER = "root" ;
+ $GROUP = "wheel" ;
+ $SWATCH_PROG_NAME = "swatch" ;
++ $SWATCH_CONF_NAME = "swatch.conf" ;
+ $SWATCH_PROG_MAN = "swatch.prog.man" ;
+ $SWATCH_CONF_MAN = "swatch.conf.man" ;
+ $SWATCH_ACTION_LIB = "sw_actions.pl" ;
+ $SWATCH_HIST_LIB = "sw_history.pl" ;
+
+ $SED = "/usr/bin/sed" ;
+- $COPY = "/usr/bin/cp" ;
+- $CHMOD = "/usr/bin/chmod" ;
++ $COPY = "/bin/cp" ;
++ $CHMOD = "/bin/chmod" ;
+
+ if ( ! -f $SED ) {
+ $SED = `which sed` ;
+@@ -60,7 +62,7 @@
+ }
+ $PERL_BIN_DIR = substr($PERL_BIN_DIR, 0, rindex($PERL_BIN_DIR, '/')) ;
+
+-$ready = 0 ;
++$ready = 1 ;
+ while (!$ready) {
+ &get_some_answers() ;
+ &print_values() ;
+@@ -69,14 +71,13 @@
+ $ready = 1 if ($ans eq 'y' || $ans eq 'Y') ;
+ }
+
+-print "\nAre you ready for me to start the installation (y or n)? " ;
+-$ans = <STDIN> ; chop $ans ;
+-&do_the_install() if ($ans eq 'y' || $ans eq 'Y') ;
++&do_the_install();
+
+
+ ##
+ ##
+ ##
++
+ sub get_some_answers {
+ local($question) ;
+
+@@ -139,7 +140,7 @@
+ &install_it($swatch_uid, $swatch_gid, $SWATCH_DATA_MODE,
+ $SWATCH_PROG_MAN, "$SWATCH_MAN_DIR/man$SWATCH_PROG_MAN_EXT/$SWATCH_PROG_NAME.$SWATCH_PROG_MAN_EXT") ;
+ &install_it($swatch_uid, $swatch_gid, $SWATCH_DATA_MODE,
+- $SWATCH_CONF_MAN, "$SWATCH_MAN_DIR/man$SWATCH_CONF_MAN_EXT/$SWATCH_PROG_NAME.$SWATCH_CONF_MAN_EXT") ;
++ $SWATCH_CONF_MAN, "$SWATCH_MAN_DIR/man$SWATCH_CONF_MAN_EXT/$SWATCH_CONF_NAME.$SWATCH_CONF_MAN_EXT") ;
+ }
+
+
diff --git a/security/swatch/pkg-comment b/security/swatch/pkg-comment
new file mode 100644
index 000000000000..cb55b5f18e5c
--- /dev/null
+++ b/security/swatch/pkg-comment
@@ -0,0 +1 @@
+The Simple WATCHer and filter
diff --git a/security/swatch/pkg-descr b/security/swatch/pkg-descr
new file mode 100644
index 000000000000..26d994af0016
--- /dev/null
+++ b/security/swatch/pkg-descr
@@ -0,0 +1,43 @@
+SWATCH - The Simple WATCHer and filter
+
+HOW TO INSTALL
+
+ To install Swatch simply type "sh install.sh" and you will be prompted
+for
+ the information that it need to make the installation
+
+NEW FEATURES
+
+ * Now using the getopts.pl library as the command line parser instead
+ of the non-standard library that I was using.
+
+ * No longer writing the watcher script into a temporary file. Instead
+ I store the script internally and run it inside a child process.
+ This also fixed the bug where 2.1 did not remove the watcher script
+ upon exit.
+
+ * Reduced the history reporting to one line.
+
+ * Cleaned up code to follow PERL style rules more closely.
+
+COMING ATTRACTIONS
+
+ * Better history handling
+
+ * Expanded history options
+
+ * Ability to use an easier to read configuration file
+
+ * Color
+
+ * One or two more actions
+
+The latest version of swatch can be found at
+
+ ftp://ftp.stanford.edu/general/security-tools/swatch
+
+You can send you questions, comments, or suggestions to
+
+ Todd.Atkins@CAST.Stanford.EDU
+
+Enjoy
diff --git a/security/swatch/pkg-plist b/security/swatch/pkg-plist
new file mode 100644
index 000000000000..4f23a8825e1d
--- /dev/null
+++ b/security/swatch/pkg-plist
@@ -0,0 +1,6 @@
+bin/swatch
+lib/sw_actions.pl
+lib/sw_history.pl
+man/man5/swatch.conf.5.gz
+man/man8/swatch.8.gz
+