From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DEE85158087 for ; Thu, 13 Jan 2022 05:36:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 29D8B2BC01A; Thu, 13 Jan 2022 05:36:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA3C92BC01A for ; Thu, 13 Jan 2022 05:36:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CEAE7342E52 for ; Thu, 13 Jan 2022 05:36:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0D0AA1D6 for ; Thu, 13 Jan 2022 05:36:02 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1642052142.e0b5d87f903b7c55b3d1f37c93ec0fa09c7fe937.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/chkrootkit/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild X-VCS-Directories: app-forensics/chkrootkit/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e0b5d87f903b7c55b3d1f37c93ec0fa09c7fe937 X-VCS-Branch: master Date: Thu, 13 Jan 2022 05:36:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9222bb68-057a-42cd-bbf9-1f8f93a1ed84 X-Archives-Hash: f2d61797d43a538a93fc854e3fa2bbf1 commit: e0b5d87f903b7c55b3d1f37c93ec0fa09c7fe937 Author: Sam James gentoo org> AuthorDate: Thu Jan 13 05:35:42 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jan 13 05:35:42 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0b5d87f app-forensics/chkrootkit: fix systemd notice Signed-off-by: Sam James gentoo.org> app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild b/app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild index 03cfffb6ef30..0bfac68e7a96 100644 --- a/app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild +++ b/app-forensics/chkrootkit/chkrootkit-0.55-r1.ebuild @@ -15,11 +15,9 @@ SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${GENTOO_PATC LICENSE="BSD-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" -IUSE="+cron systemd" +IUSE="+cron" -DEPEND="systemd? ( sys-apps/systemd )" -RDEPEND="${DEPEND} - cron? ( virtual/cron )" +RDEPEND="cron? ( virtual/cron )" PATCHES=( "${WORKDIR}/${GENTOO_PATCH}" @@ -29,6 +27,7 @@ PATCHES=( src_prepare() { default + sed -e 's:/var/adm/:/var/log/:g' \ -i chklastlog.c || die } @@ -45,21 +44,24 @@ src_install() { exeinto /etc/cron.weekly newexe "${FILESDIR}"/${PN}.cron ${PN} fi + systemd_dounit "${FILESDIR}/${PN}.timer" "${FILESDIR}/${PN}.service" } pkg_postinst() { if use cron ; then elog - elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!" + elog "Edit ${EROOT}/etc/cron.weekly/chkrootkit to activate chkrootkit!" elog fi - if use systemd ; then + + if systemd_is_booted || has_version sys-apps/systemd ; then elog elog "To enable the systemd timer, run the following command:" elog " systemctl enable --now chkrootkit.timer" elog fi + elog elog "Some applications, such as portsentry, will cause chkrootkit" elog "to produce false positives. Read the chkrootkit FAQ at"