Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/rkhunter/
Date: Tue, 08 Aug 2017 06:00:42
Message-Id: 1502172027.d58ded4487b28996f96dcc96ca256d2995c16721.polynomial-c@gentoo
1 commit: d58ded4487b28996f96dcc96ca256d2995c16721
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 8 06:00:27 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 8 06:00:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d58ded44
7
8 app-forensics/rkhunter: Bump to version 1.4.4
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 app-forensics/rkhunter/Manifest | 1 +
13 app-forensics/rkhunter/rkhunter-1.4.4.ebuild | 65 ++++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/app-forensics/rkhunter/Manifest b/app-forensics/rkhunter/Manifest
17 index cf1cea219dd..2a6fab9b9d8 100644
18 --- a/app-forensics/rkhunter/Manifest
19 +++ b/app-forensics/rkhunter/Manifest
20 @@ -1 +1,2 @@
21 DIST rkhunter-1.4.2.tar.gz 277707 SHA256 789cc84a21faf669da81e648eead2e62654cfbe0b2d927119d8b1e55b22b65c3 SHA512 a4e45caaaf5b8262619ebb890784c75c4e30db4c6c0eba305f86d419142b4796c95bc55fe8846dce8d58bc7636bdb365a4a8c41707f64d4d81373687c5a3b0d4 WHIRLPOOL 911ed8e37e112516adba3afb63e3d4862d061ea35cd4b8becea455922d6b2a744f4b8e7cf92685cff29c3192c594dfc58ba3c194f371dd4d95530bd4c09c5d84
22 +DIST rkhunter-1.4.4.tar.gz 297626 SHA256 a8807c83f9f325312df05aa215fa75ad697c7a16163175363c2066baa26dda77 SHA512 87e9c617220765678cc4519eee27d1d56185c3a7fb1d6338c8fb984ac4f5176c31bb54b69e1de615d66a0cf1e72b672e66b368e37851a459def69463cbb8661e WHIRLPOOL 92c92a693443c978aa7f49944e84075b116c8c4295ff8e9ad54e2bee8242299aaea2d591a9a184dc484b73b33f61210c8b87cfdcea4f2437e386f633ba12f2cb
23
24 diff --git a/app-forensics/rkhunter/rkhunter-1.4.4.ebuild b/app-forensics/rkhunter/rkhunter-1.4.4.ebuild
25 new file mode 100644
26 index 00000000000..14a44125016
27 --- /dev/null
28 +++ b/app-forensics/rkhunter/rkhunter-1.4.4.ebuild
29 @@ -0,0 +1,65 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit bash-completion-r1
36 +
37 +DESCRIPTION="Rootkit Hunter scans for known and unknown rootkits, backdoors, and sniffers"
38 +HOMEPAGE="http://rkhunter.sf.net/"
39 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~mips ~ppc ~x86"
44 +IUSE=""
45 +
46 +RDEPEND="
47 + app-shells/bash
48 + dev-lang/perl
49 + sys-process/lsof[rpc]
50 + virtual/cron
51 + virtual/mailx
52 +"
53 +
54 +S="${WORKDIR}/${P}/files"
55 +
56 +src_prepare() {
57 + default
58 + eapply -p2 "${FILESDIR}/${PN}-1.4.2.conf.patch"
59 +}
60 +
61 +src_install() {
62 + # rkhunter requires to be root
63 + dosbin ${PN}
64 +
65 + insinto /etc
66 + doins ${PN}.conf
67 +
68 + exeinto /usr/lib/${PN}/scripts
69 + doexe *.pl
70 +
71 + insinto /var/lib/${PN}/db
72 + doins *.dat
73 +
74 + insinto /var/lib/${PN}/db/i18n
75 + doins i18n/*
76 +
77 + doman ${PN}.8
78 + dodoc ACKNOWLEDGMENTS CHANGELOG FAQ README
79 +
80 + exeinto /etc/cron.daily
81 + newexe "${FILESDIR}/${PN}-1.3.cron" ${PN}
82 +
83 + newbashcomp "${FILESDIR}/${PN}.bash-completion" ${PN}
84 +}
85 +
86 +pkg_postinst() {
87 + elog "A cron script has been installed to /etc/cron.daily/rkhunter."
88 + elog "To enable it, edit /etc/cron.daily/rkhunter and follow the"
89 + elog "directions."
90 + elog "If you want ${PN} to send mail, you will need to install"
91 + elog "virtual/mailx or alter the EMAIL_CMD variable in the"
92 + elog "cron script and possibly the MAIL_CMD variable in the"
93 + elog "${PN}.conf file to use another mail client."
94 +}