diff options
Diffstat (limited to 'app-admin/rkhunter/rkhunter-1.0.9.ebuild')
-rw-r--r-- | app-admin/rkhunter/rkhunter-1.0.9.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app-admin/rkhunter/rkhunter-1.0.9.ebuild b/app-admin/rkhunter/rkhunter-1.0.9.ebuild new file mode 100644 index 000000000000..f5ed05dfa799 --- /dev/null +++ b/app-admin/rkhunter/rkhunter-1.0.9.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/rkhunter/rkhunter-1.0.9.ebuild,v 1.1 2004/05/30 06:25:06 solar Exp $ + +DESCRIPTION="Rootkit Hunter scans for known and unknown rootkits, backdoors, and sniffers." +HOMEPAGE="http://www.rootkit.nl/" +SRC_URI="http://downloads.rootkit.nl/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="app-arch/tar + app-arch/gzip + virtual/mta" +RDEPEND="app-shells/bash + dev-lang/perl" + +src_install() { + cd ${WORKDIR}/${PN}/files + dodir /usr/lib/rkhunter + dodir /usr/lib/rkhunter/db + insinto /usr/lib/rkhunter/db + doins *.dat + dodir /usr/lib/rkhunter/scripts + exeinto /usr/lib/rkhunter/scripts + doexe *.pl + insinto /etc + doins rkhunter.conf + dosed "s:#DBDIR=/usr/local/rkhunter/db:DBDIR=/usr/lib/rkhunter/db\nINSTALLDIR=/usr:g" /etc/rkhunter.conf + exeinto /usr/bin + doexe rkhunter + dodoc CHANGELOG LICENSE README WISHLIST +} + +pkg_postinst() { + echo + einfo "Add the following to /etc/crontab to run un Rootkit Hunter as a cronjob:" + einfo "30 5 * * * root /usr/bin/rkhunter -c --cronjob <more options>" + einfo "Rootkit Hunter will now run on a daily basis at 5:30 (AM)" + echo +} + +pkg_prerm() { + rm -rf /usr/lib/rkhunter/tmp +} |