summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-02-11 10:51:54 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-02-11 10:51:54 +0000
commit53c66adf842af2ecf0fadc4498c4c6fe3eaf6830 (patch)
tree4679a008bcd33d0a60fab3c56aa29648b098721c /app-forensics
parentppc stable and version cleanout (diff)
downloadgentoo-2-53c66adf842af2ecf0fadc4498c4c6fe3eaf6830.tar.gz
gentoo-2-53c66adf842af2ecf0fadc4498c4c6fe3eaf6830.tar.bz2
gentoo-2-53c66adf842af2ecf0fadc4498c4c6fe3eaf6830.zip
Version bump.
(Portage version: 2.0.51.16)
Diffstat (limited to 'app-forensics')
-rw-r--r--app-forensics/rkhunter/ChangeLog8
-rw-r--r--app-forensics/rkhunter/Manifest19
-rw-r--r--app-forensics/rkhunter/files/digest-rkhunter-1.2.01
-rw-r--r--app-forensics/rkhunter/files/rkhunter-1.2.0-specify-logfile.patch69
-rw-r--r--app-forensics/rkhunter/rkhunter-1.2.0.ebuild63
5 files changed, 146 insertions, 14 deletions
diff --git a/app-forensics/rkhunter/ChangeLog b/app-forensics/rkhunter/ChangeLog
index a9a36bb564e1..8a9517070ed7 100644
--- a/app-forensics/rkhunter/ChangeLog
+++ b/app-forensics/rkhunter/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-forensics/rkhunter
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/ChangeLog,v 1.24 2005/02/11 10:46:56 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/ChangeLog,v 1.25 2005/02/11 10:51:54 ka0ttic Exp $
+
+*rkhunter-1.2.0 (11 Feb 2005)
+
+ 11 Feb 2005; Aaron Walker <ka0ttic@gentoo.org>
+ +files/rkhunter-1.2.0-specify-logfile.patch, +rkhunter-1.2.0.ebuild:
+ Version bump.
11 Feb 2005; Daniel Black <dragonheart@gentoo.org>
-files/rkhunter-1.1.8-specify-logfile.patch, -rkhunter-1.1.8-r1.ebuild,
diff --git a/app-forensics/rkhunter/Manifest b/app-forensics/rkhunter/Manifest
index 365026493796..232739060d03 100644
--- a/app-forensics/rkhunter/Manifest
+++ b/app-forensics/rkhunter/Manifest
@@ -1,17 +1,10 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 9a5d55cb67035809ad5062672f49247e ChangeLog 5990
-MD5 f1608c19ea0727ee36b2a692b1f3470b metadata.xml 264
+MD5 0a2f4120db32e64992a0a0eae955969f rkhunter-1.2.0.ebuild 1696
MD5 023a96c68f424d636a21e1b2cba1f17f rkhunter-1.1.9.ebuild 1697
+MD5 7f38ea4fbcbe27d1d03f2e72135be556 ChangeLog 6158
+MD5 f1608c19ea0727ee36b2a692b1f3470b metadata.xml 264
+MD5 9b82f88f42c67bf2a8b855a851d3cdd7 files/rkhunter-1.2.0-specify-logfile.patch 2439
MD5 4aace52e301a67ef5b8b23d8d2c5ba46 files/rkhunter.cron 3855
-MD5 a8206bcb42fdb2f63d50390afe76a7be files/digest-rkhunter-1.1.9 66
MD5 2473ff095ea8aa159a379872571b5d43 files/rkhunter.bash-completion 2628
MD5 a67c10cf68af091e9f17ad100b38ee7c files/rkhunter-1.1.9-specify-logfile.patch 2379
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.0 (GNU/Linux)
-
-iD8DBQFCDI0mmdTrptrqvGERAuvdAJ9wmCOpeXFNYSPuCFVW/1Wwi7gyVwCgkUmC
-fqEIT81hpuo6/Z1ifK3MR8Y=
-=mePf
------END PGP SIGNATURE-----
+MD5 a8206bcb42fdb2f63d50390afe76a7be files/digest-rkhunter-1.1.9 66
+MD5 109877c6e8a34dfc0c80865daf3102f0 files/digest-rkhunter-1.2.0 66
diff --git a/app-forensics/rkhunter/files/digest-rkhunter-1.2.0 b/app-forensics/rkhunter/files/digest-rkhunter-1.2.0
new file mode 100644
index 000000000000..a90a197b912b
--- /dev/null
+++ b/app-forensics/rkhunter/files/digest-rkhunter-1.2.0
@@ -0,0 +1 @@
+MD5 126001b10d5cb8c2eca8c3cd7c34d67d rkhunter-1.2.0.tar.gz 116932
diff --git a/app-forensics/rkhunter/files/rkhunter-1.2.0-specify-logfile.patch b/app-forensics/rkhunter/files/rkhunter-1.2.0-specify-logfile.patch
new file mode 100644
index 000000000000..64d5f24715c0
--- /dev/null
+++ b/app-forensics/rkhunter/files/rkhunter-1.2.0-specify-logfile.patch
@@ -0,0 +1,69 @@
+diff --exclude='*~' -urN rkhunter.orig/files/development/rkhunter.8 rkhunter/files/development/rkhunter.8
+--- rkhunter.orig/files/development/rkhunter.8 2005-02-10 22:35:07.000000000 -0500
++++ rkhunter/files/development/rkhunter.8 2005-02-11 00:16:43.261318112 -0500
+@@ -60,9 +60,10 @@
+ Use another configuration file, instead of the default one
+ .TP
+ .B
+---createlogfile
++--createlogfile <file>
+ A plain text file summarizing \fBrkhunter\fP's findings will be
+-output to the path/filename specified after the switch
++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-02-10 22:35:07.000000000 -0500
++++ rkhunter/files/rkhunter 2005-02-11 00:46:10.174706448 -0500
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/bin/bash
+
+ #################################################################################
+ #
+@@ -151,6 +151,11 @@
+ --createlogfile | --createlog | --create-log | --create-logfile)
+ DEBUG=1
+ DEBUGLOG=1
++ if [[ "$2" != -* ]]
++ then
++ shift
++ LOGFILE=$1
++ fi
+ ;;
+ --dbdir)
+ shift
+@@ -230,9 +235,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"
+@@ -4982,7 +4997,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"
diff --git a/app-forensics/rkhunter/rkhunter-1.2.0.ebuild b/app-forensics/rkhunter/rkhunter-1.2.0.ebuild
new file mode 100644
index 000000000000..34bc1fb8ffae
--- /dev/null
+++ b/app-forensics/rkhunter/rkhunter-1.2.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/rkhunter-1.2.0.ebuild,v 1.1 2005/02/11 10:51:54 ka0ttic Exp $
+
+inherit eutils bash-completion
+
+DESCRIPTION="Rootkit Hunter scans for known and unknown rootkits, backdoors, and sniffers."
+HOMEPAGE="http://www.rootkit.org/"
+SRC_URI="http://downloads.rootkit.nl/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~alpha ~amd64 ~sparc"
+IUSE=""
+
+DEPEND="app-arch/tar
+ app-arch/gzip
+ virtual/mta"
+RDEPEND="app-shells/bash
+ dev-lang/perl"
+
+S="${WORKDIR}/${PN}/files"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-specify-logfile.patch
+}
+
+src_install() {
+ insinto /usr/lib/rkhunter/db
+ doins *.dat || die "failed to install dat files"
+
+ exeinto /usr/lib/rkhunter/scripts
+ doexe *.pl check_update.sh || die "failed to install scripts"
+
+ dobin rkhunter || die "failed to install rkhunter script"
+
+ insinto /etc
+ doins rkhunter.conf || die "failed to install rkhunter.conf"
+ dosed 's:^#\(DBDIR=.*\)local\(.*\)$:\1lib\2\nINSTALLDIR=/usr:' \
+ /etc/rkhunter.conf || die "sed rkhunter.conf failed"
+
+ doman development/rkhunter.8
+ dodoc CHANGELOG LICENSE README WISHLIST || die "dodoc failed"
+
+ exeinto /etc/cron.daily
+ newexe ${FILESDIR}/rkhunter.cron rkhunter || \
+ die "failed to install cron script"
+ dobashcompletion ${FILESDIR}/${PN}.bash-completion
+}
+
+pkg_postinst() {
+ echo
+ einfo "A cron script has been installed to /etc/cron.daily/rkhunter."
+ einfo "To enable it, edit /etc/cron.daily/rkhunter and follow the"
+ einfo "directions."
+ bash-completion_pkg_postinst
+}
+
+pkg_prerm() {
+ rm -rf /usr/lib/rkhunter/tmp
+}