1 |
commit: e0b5d87f903b7c55b3d1f37c93ec0fa09c7fe937 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 13 05:35:42 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 13 05:35:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0b5d87f |
7 |
|
8 |
app-forensics/chkrootkit: fix systemd notice |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild | 14 ++++++++------ |
13 |
1 file changed, 8 insertions(+), 6 deletions(-) |
14 |
|
15 |
diff --git a/app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild b/app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild |
16 |
index 03cfffb6ef30..0bfac68e7a96 100644 |
17 |
--- a/app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild |
18 |
+++ b/app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild |
19 |
@@ -15,11 +15,9 @@ SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${GENTOO_PATC |
20 |
LICENSE="BSD-2" |
21 |
SLOT="0" |
22 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
23 |
-IUSE="+cron systemd" |
24 |
+IUSE="+cron" |
25 |
|
26 |
-DEPEND="systemd? ( sys-apps/systemd )" |
27 |
-RDEPEND="${DEPEND} |
28 |
- cron? ( virtual/cron )" |
29 |
+RDEPEND="cron? ( virtual/cron )" |
30 |
|
31 |
PATCHES=( |
32 |
"${WORKDIR}/${GENTOO_PATCH}" |
33 |
@@ -29,6 +27,7 @@ PATCHES=( |
34 |
|
35 |
src_prepare() { |
36 |
default |
37 |
+ |
38 |
sed -e 's:/var/adm/:/var/log/:g' \ |
39 |
-i chklastlog.c || die |
40 |
} |
41 |
@@ -45,21 +44,24 @@ src_install() { |
42 |
exeinto /etc/cron.weekly |
43 |
newexe "${FILESDIR}"/${PN}.cron ${PN} |
44 |
fi |
45 |
+ |
46 |
systemd_dounit "${FILESDIR}/${PN}.timer" "${FILESDIR}/${PN}.service" |
47 |
} |
48 |
|
49 |
pkg_postinst() { |
50 |
if use cron ; then |
51 |
elog |
52 |
- elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!" |
53 |
+ elog "Edit ${EROOT}/etc/cron.weekly/chkrootkit to activate chkrootkit!" |
54 |
elog |
55 |
fi |
56 |
- if use systemd ; then |
57 |
+ |
58 |
+ if systemd_is_booted || has_version sys-apps/systemd ; then |
59 |
elog |
60 |
elog "To enable the systemd timer, run the following command:" |
61 |
elog " systemctl enable --now chkrootkit.timer" |
62 |
elog |
63 |
fi |
64 |
+ |
65 |
elog |
66 |
elog "Some applications, such as portsentry, will cause chkrootkit" |
67 |
elog "to produce false positives. Read the chkrootkit FAQ at" |