summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-03-22 13:15:00 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-03-22 13:15:00 +0000
commitf960d473dd6d930344f377f7fa8a1bed44ceb276 (patch)
tree3443debf189fa474c13c6e49cd33e3ca29ed971e /app-forensics/rkhunter/files
parentRevision bump; Default to SHUTDOWN=no in config. (diff)
downloadgentoo-2-f960d473dd6d930344f377f7fa8a1bed44ceb276.tar.gz
gentoo-2-f960d473dd6d930344f377f7fa8a1bed44ceb276.tar.bz2
gentoo-2-f960d473dd6d930344f377f7fa8a1bed44ceb276.zip
Version bump; tidy old ebuilds.
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-forensics/rkhunter/files')
-rw-r--r--app-forensics/rkhunter/files/digest-rkhunter-1.2.01
-rw-r--r--app-forensics/rkhunter/files/digest-rkhunter-1.2.21
-rw-r--r--app-forensics/rkhunter/files/digest-rkhunter-1.2.31
-rw-r--r--app-forensics/rkhunter/files/rkhunter-1.2.2-fix-broken-test.diff18
-rw-r--r--app-forensics/rkhunter/files/rkhunter-1.2.3-specify-logfile.patch70
5 files changed, 71 insertions, 20 deletions
diff --git a/app-forensics/rkhunter/files/digest-rkhunter-1.2.0 b/app-forensics/rkhunter/files/digest-rkhunter-1.2.0
deleted file mode 100644
index a90a197b912b..000000000000
--- a/app-forensics/rkhunter/files/digest-rkhunter-1.2.0
+++ /dev/null
@@ -1 +0,0 @@
-MD5 126001b10d5cb8c2eca8c3cd7c34d67d rkhunter-1.2.0.tar.gz 116932
diff --git a/app-forensics/rkhunter/files/digest-rkhunter-1.2.2 b/app-forensics/rkhunter/files/digest-rkhunter-1.2.2
deleted file mode 100644
index 8b007d366603..000000000000
--- a/app-forensics/rkhunter/files/digest-rkhunter-1.2.2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 07c6f9450b9af22c63a3821d96f7e1c9 rkhunter-1.2.2.tar.gz 121868
diff --git a/app-forensics/rkhunter/files/digest-rkhunter-1.2.3 b/app-forensics/rkhunter/files/digest-rkhunter-1.2.3
new file mode 100644
index 000000000000..8b5bf2898959
--- /dev/null
+++ b/app-forensics/rkhunter/files/digest-rkhunter-1.2.3
@@ -0,0 +1 @@
+MD5 404ae3f5cde3ede8e3be1ee1f04f52d5 rkhunter-1.2.3.tar.gz 169545
diff --git a/app-forensics/rkhunter/files/rkhunter-1.2.2-fix-broken-test.diff b/app-forensics/rkhunter/files/rkhunter-1.2.2-fix-broken-test.diff
deleted file mode 100644
index a634766f132f..000000000000
--- a/app-forensics/rkhunter/files/rkhunter-1.2.2-fix-broken-test.diff
+++ /dev/null
@@ -1,18 +0,0 @@
---- rkhunter.orig 2005-03-19 09:21:45.000000000 -0500
-+++ rkhunter 2005-03-19 09:20:24.000000000 -0500
-@@ -1,5 +1,6 @@
- #!/bin/bash
-
-+
- #################################################################################
- #
- # Rootkit Hunter
-@@ -3865,7 +3866,7 @@
- USER=`echo "${I}" | cut -d ':' -f1`
- PASSWORD=`echo "${I}" | cut -d ':' -f2`
- # Exclude NIS-user (+::::::)
-- if [ ! ${USER} = "+" -a "${PASSWORD}" = "" ]; then
-+ if [ ${USER} != "+" ] && [ "${PASSWORD}" = "" ]; then
- FOUND=1
- logtext "Warning! Found passwordless account (${USER})"
- logtext "Check this account and give it a password."
diff --git a/app-forensics/rkhunter/files/rkhunter-1.2.3-specify-logfile.patch b/app-forensics/rkhunter/files/rkhunter-1.2.3-specify-logfile.patch
new file mode 100644
index 000000000000..a3f166e0ddc3
--- /dev/null
+++ b/app-forensics/rkhunter/files/rkhunter-1.2.3-specify-logfile.patch
@@ -0,0 +1,70 @@
+diff --exclude='*~' -urN rkhunter.orig/files/development/rkhunter.8 rkhunter/files/development/rkhunter.8
+--- rkhunter.orig/files/development/rkhunter.8 2005-03-22 00:08:59.000000000 -0500
++++ rkhunter/files/development/rkhunter.8 2005-03-22 00:11:41.000000000 -0500
+@@ -60,9 +60,10 @@
+ Use another configuration file, instead of the default one
+ .TP
+ .B
+---createlogfile
+-A plain text file summarizing \fBrkhunter\fP's findings. Default file
+-is /var/log/rkhunter.log.
++--createlogfile <file>
++A plain text file summarizing \fBrkhunter\fP's findings will be
++output to the path/filename specified after the switch. If no
++filename is specified, a default of /var/log/rkhunter.log is used.
+ .TP
+ .B
+ --cronjob
+diff --exclude='*~' -urN rkhunter.orig/files/rkhunter rkhunter/files/rkhunter
+--- rkhunter.orig/files/rkhunter 2005-03-22 00:08:59.000000000 -0500
++++ rkhunter/files/rkhunter 2005-03-22 00:09:22.000000000 -0500
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/bin/bash
+
+ #################################################################################
+ #
+@@ -156,6 +156,11 @@
+ --createlogfile | --createlog | --create-log | --create-logfile)
+ DEBUG=1
+ DEBUGLOG=1
++ if [[ "$2" != -* ]]
++ then
++ shift
++ LOGFILE=$1
++ fi
+ ;;
+ --dbdir)
+ shift
+@@ -235,9 +240,19 @@
+ # Through the drain...
+ DEBUGFILE="/dev/null"
+ else
+- if [ -d "/var/log" ]
++ if [[ -n "${LOGFILE}" ]]
+ then
+- DEBUGFILE="/var/log/rkhunter.log"
++ if ( [[ "${LOGFILE}" == */* ]] && [ -d "${LOGFILE%/*}" ] ) || [ -w ./ ]
++ then
++ DEBUGFILE="${LOGFILE}"
++ fi
++
++ elif [[ -d "/var/log" ]]
++ then
++ DEBUGFILE="/var/log/rkhunter.log"
++ [[ -n "${LOGFILE}" ]] && echo \
++ "${LOGFILE%/*} doesn't exist... trying ${DEBUGFILE}"
++
+ else
+ echo "/var/log doesn't exists... no log file created"
+ DEBUGFILE="/dev/null"
+@@ -5005,7 +5020,8 @@
+ echo $ECHOOPT ""
+ echo $ECHOOPT "Valid parameters:"
+ echo $ECHOOPT "--checkall (-c) : Check system"
+- echo $ECHOOPT "--createlogfile* : Create logfile"
++ echo $ECHOOPT "--createlogfile <file>* : Create logfile (file is optional, defaults to"
++ echo $ECHOOPT " : /var/log/rkhunter.log)"
+ echo $ECHOOPT "--cronjob : Run as cronjob (removes colored layout)"
+ echo $ECHOOPT "--display-logfile : Show logfile at end of the output"
+ echo $ECHOOPT "--help (-h) : Show this help"