Diff chkrootkit-0.55 with a chkrootkit-0.55-r1

/usr/portage/app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild 2023-10-09 14:52:28.748368331 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit toolchain-funcs
6
inherit systemd toolchain-funcs
7 7

  
8 8
GENTOO_PATCH="${PN}-0.55-gentoo.patch"
9 9

  
......
27 27

  
28 28
src_prepare() {
29 29
	default
30

  
30 31
	sed -e 's:/var/adm/:/var/log/:g' \
31 32
		-i chklastlog.c || die
32 33
}
......
43 44
		exeinto /etc/cron.weekly
44 45
		newexe "${FILESDIR}"/${PN}.cron ${PN}
45 46
	fi
47

  
48
	systemd_dounit "${FILESDIR}/${PN}.timer" "${FILESDIR}/${PN}.service"
46 49
}
47 50

  
48 51
pkg_postinst() {
49 52
	if use cron ; then
50 53
		elog
51
		elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
54
		elog "Edit ${EROOT}/etc/cron.weekly/chkrootkit to activate chkrootkit!"
55
		elog
56
	fi
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"
52 62
		elog
53 63
	fi
54 64

  
Thank you!