New upstream release finally; now officially recognizes Gentoo 1.6 (>=sys-apps/basela...
authorAaron Walker <ka0ttic@gentoo.org>
Wed, 29 Dec 2004 10:43:54 +0000 (10:43 +0000)
committerAaron Walker <ka0ttic@gentoo.org>
Wed, 29 Dec 2004 10:43:54 +0000 (10:43 +0000)
app-forensics/rkhunter/ChangeLog
app-forensics/rkhunter/Manifest
app-forensics/rkhunter/files/digest-rkhunter-1.1.9 [new file with mode: 0644]
app-forensics/rkhunter/files/rkhunter-1.1.9-specify-logfile.patch [new file with mode: 0644]
app-forensics/rkhunter/rkhunter-1.1.8-r1.ebuild
app-forensics/rkhunter/rkhunter-1.1.9.ebuild [new file with mode: 0644]

index 2f941f56b7ff208a64b6840c805d8e4eef9a3ac3..ddda8451cd12b9e7fc8016d3310aee4d0f2ea58d 100644 (file)
@@ -1,6 +1,15 @@
 # ChangeLog for app-forensics/rkhunter
 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/ChangeLog,v 1.16 2004/12/28 21:50:07 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/ChangeLog,v 1.17 2004/12/29 10:43:54 ka0ttic Exp $
+
+*rkhunter-1.1.9 (29 Dec 2004)
+
+  29 Dec 2004; Aaron Walker <ka0ttic@gentoo.org>
+  +files/rkhunter-1.1.9-specify-logfile.patch, rkhunter-1.1.8-r1.ebuild,
+  +rkhunter-1.1.9.ebuild:
+  New upstream release finally; now officially recognizes Gentoo 1.6
+  (>=sys-apps/baselayout-1.11.x) w/o whining about an unsupported OS at
+  run-time. Marked 1.1.8-r1 stable on x86.
 
   28 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
   Change encoding to UTF-8 for GLEP 31 compliance
index 2b2973925d32661c2d3335c76170408eddf7a39e..fb04ecb105ed073ed1548de07c5b7d7df3fd9dd6 100644 (file)
@@ -1,9 +1,22 @@
-MD5 c19dcf1d96f8489c3e74a1b9a55b3359 ChangeLog 4929
-MD5 96480362a2e9be199f1f2c885057ff22 rkhunter-1.1.8.ebuild 1548
-MD5 824b611f8625afac8de925079cddf2ac rkhunter-1.1.8-r1.ebuild 2127
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 c12144a702e6c7d884b03dfa1c37e417 rkhunter-1.1.8-r1.ebuild 2126
+MD5 8a6ec6931f4fd1f33480e09be0eb5f21 rkhunter-1.1.9.ebuild 1697
+MD5 71eae7c0707d6b5e9461475488f60920 ChangeLog 5293
 MD5 f1608c19ea0727ee36b2a692b1f3470b metadata.xml 264
-MD5 f1345147c35da8e7f1f51ede053106e6 files/digest-rkhunter-1.1.8 66
-MD5 f1345147c35da8e7f1f51ede053106e6 files/digest-rkhunter-1.1.8-r1 66
-MD5 2473ff095ea8aa159a379872571b5d43 files/rkhunter.bash-completion 2628
+MD5 96480362a2e9be199f1f2c885057ff22 rkhunter-1.1.8.ebuild 1548
 MD5 4aace52e301a67ef5b8b23d8d2c5ba46 files/rkhunter.cron 3855
+MD5 2473ff095ea8aa159a379872571b5d43 files/rkhunter.bash-completion 2628
 MD5 46201344c0b062b490ed6e81dcbfc48f files/rkhunter-1.1.8-specify-logfile.patch 1633
+MD5 a67c10cf68af091e9f17ad100b38ee7c files/rkhunter-1.1.9-specify-logfile.patch 2379
+MD5 f1345147c35da8e7f1f51ede053106e6 files/digest-rkhunter-1.1.8 66
+MD5 a8206bcb42fdb2f63d50390afe76a7be files/digest-rkhunter-1.1.9 66
+MD5 f1345147c35da8e7f1f51ede053106e6 files/digest-rkhunter-1.1.8-r1 66
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFB0oqrEZCkKN40op4RAvrkAJ9QQqMKj7g4cbfTjiCha8jmCiLBzQCggGN0
+gakBeI+x3uy4LLiJWGk7GvI=
+=davt
+-----END PGP SIGNATURE-----
diff --git a/app-forensics/rkhunter/files/digest-rkhunter-1.1.9 b/app-forensics/rkhunter/files/digest-rkhunter-1.1.9
new file mode 100644 (file)
index 0000000..cb3a531
--- /dev/null
@@ -0,0 +1 @@
+MD5 2e24806cb1267124fba6132009e30f1b rkhunter-1.1.9.tar.gz 115254
diff --git a/app-forensics/rkhunter/files/rkhunter-1.1.9-specify-logfile.patch b/app-forensics/rkhunter/files/rkhunter-1.1.9-specify-logfile.patch
new file mode 100644 (file)
index 0000000..82dfe1f
--- /dev/null
@@ -0,0 +1,66 @@
+diff -urN rkhunter.orig/files/development/rkhunter.8 rkhunter/files/development/rkhunter.8
+--- rkhunter.orig/files/development/rkhunter.8 2004-12-28 09:04:06.000000000 -0500
++++ rkhunter/files/development/rkhunter.8      2004-12-28 23:48:02.100576696 -0500
+@@ -54,9 +54,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 -urN rkhunter.orig/files/rkhunter rkhunter/files/rkhunter
+--- rkhunter.orig/files/rkhunter       2004-12-28 12:45:21.000000000 -0500
++++ rkhunter/files/rkhunter    2004-12-28 23:26:33.507472624 -0500
+@@ -146,6 +146,11 @@
+       --createlogfile | --createlog | --create-log | --create-logfile)
+         DEBUG=1
+           DEBUGLOG=1
++        if [[ "$2" != -* ]]
++          then
++              shift
++              LOGFILE=$1
++          fi
+         ;;
+       --dbdir)
+           shift
+@@ -225,12 +230,21 @@
+     # 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"
++        DEBUGFILE="/dev/null"
+     fi
+     # Clear debug file
+     if [ -f ${DEBUGFILE} ]; then
+@@ -4949,7 +4963,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"
index 7933d50cb86d156ccc9e740a7758eaba94c8ca26..b62cdcfbbdbb68da6b036508c97370ce5c32f1ce 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/rkhunter-1.1.8-r1.ebuild,v 1.1 2004/12/07 10:33:36 ka0ttic Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/rkhunter-1.1.8-r1.ebuild,v 1.2 2004/12/29 10:43:54 ka0ttic Exp $
 
 inherit eutils bash-completion
 
@@ -10,7 +10,7 @@ SRC_URI="http://downloads.rootkit.nl/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~x86 ~ppc ~alpha ~amd64 ~sparc"
+KEYWORDS="x86 ~ppc ~alpha ~amd64 ~sparc"
 IUSE=""
 
 DEPEND="app-arch/tar
diff --git a/app-forensics/rkhunter/rkhunter-1.1.9.ebuild b/app-forensics/rkhunter/rkhunter-1.1.9.ebuild
new file mode 100644 (file)
index 0000000..e3cbf67
--- /dev/null
@@ -0,0 +1,63 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/rkhunter-1.1.9.ebuild,v 1.1 2004/12/29 10:43: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
+}