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 B7DC615800F for ; Mon, 20 Feb 2023 20:58:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E27FE0CA2; Mon, 20 Feb 2023 20:58:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 CF6F0E0CA2 for ; Mon, 20 Feb 2023 20:58:02 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E0DAC340E96 for ; Mon, 20 Feb 2023 20:58:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 469D97D0 for ; Mon, 20 Feb 2023 20:58:00 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1676926663.fab60edcf958481fec5cb76ee34a80543f138ee0.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/chkrootkit/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-forensics/chkrootkit/Manifest app-forensics/chkrootkit/chkrootkit-0.57.ebuild X-VCS-Directories: app-forensics/chkrootkit/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: fab60edcf958481fec5cb76ee34a80543f138ee0 X-VCS-Branch: master Date: Mon, 20 Feb 2023 20:58:00 +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: f49bdcf3-bdb6-4d2e-ad90-1fcee8adbac8 X-Archives-Hash: d43b451d641d906e6f36d7b22e163b29 commit: fab60edcf958481fec5cb76ee34a80543f138ee0 Author: Martin Dummer gmx net> AuthorDate: Sun Feb 19 21:04:34 2023 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Mon Feb 20 20:57:43 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fab60edc app-forensics/chkrootkit: add 0.57 Closes: https://bugs.gentoo.org/891387 Signed-off-by: Martin Dummer gmx.net> Closes: https://github.com/gentoo/gentoo/pull/29672 Signed-off-by: Alfredo Tupone gentoo.org> app-forensics/chkrootkit/Manifest | 2 + app-forensics/chkrootkit/chkrootkit-0.57.ebuild | 70 +++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/app-forensics/chkrootkit/Manifest b/app-forensics/chkrootkit/Manifest index f0bd77cfc441..b797fbd24363 100644 --- a/app-forensics/chkrootkit/Manifest +++ b/app-forensics/chkrootkit/Manifest @@ -2,3 +2,5 @@ DIST chkrootkit-0.54-gentoo.diff.xz 4848 BLAKE2B 25d1736bb839533fae36550518b311e DIST chkrootkit-0.54.tar.gz 41461 BLAKE2B 61384fda7db08ca2a52ab060ee4ea3edb7311cb9908599a511459dac22340f28e75d732b10d827aaeed89a1ecb6fc7f69ab8fef970aae5a73bae8c7949944831 SHA512 fe8955ac33abaabf304f5580b6f12929f8bf02329ab442380eaa6298440cf1cb0eee2db8e5667ea7d78b89ee2bceb82c10ebb732a71d6bcdda9400569cd587fd DIST chkrootkit-0.55-gentoo.patch.bz2 5028 BLAKE2B f8f809252d89b9195601953c6741c9a653b658d86669f149380dc94da91085921f58fef7e6f232cc421cf62f7321630120a85ec4dfdf369d6e92c0a7ae81e0f1 SHA512 bdae4fed6f8c61337e855235bf84b20faa363a3dfad9b2f22a017bd232aaf7f4bc0680f2b5567d6545ef3cb6ce7d41cc2287f4f0a2baf68ce3c56c68df8c77b8 DIST chkrootkit-0.55.tar.gz 42630 BLAKE2B 0e6bc4d411a7836cd8ab72782027e5bd80b5c8845d8de1f48ff57bc0617a368cff2471835a66c30d007f4cfc243639110e0c39e02eecc3ec9c5c0a66a4b7891b SHA512 742dca90a761ecff149d8704cb3a252adfe8f9d5e15dd060e9db4d5f6dcd3820933ae13cbee99ea5a8c6144932cf97c0616a177af3ba5a1726b51bb304e7d63e +DIST chkrootkit-0.57-gentoo.patch.bz2 5143 BLAKE2B 2b6018881b12121d6317f45d1b761a0b27e13bcfe4d936a468a13968357039419bb85650a4e0aa85f475226cd196fc17d3bac1222dc5be39f715c3d01a64b8a6 SHA512 21a389bfe1fc838cbf527db107ac7081ad61a90da04ab96d7a1bdd352f1e40745b0a5e31559fde7ff8f4214718510a281f9eb67de38df33f13b9ac2e3c640251 +DIST chkrootkit-0.57.tar.gz 41948 BLAKE2B b75bec7e5f582aad363c84308c57de9881facf0176ef8c32adcdffdb04182f248b1dcc40b6df439bb9014580383b7f43e7503877098e8ecba6740c21b46b23a1 SHA512 ff35f01042bc68bdd10c4e26dbde7af7127768442c7a10f114260188dcc7e357e2c48d157c0b83b99e2fd465db3ed3933c84ae12fa411c5c28f64b955e742ff7 diff --git a/app-forensics/chkrootkit/chkrootkit-0.57.ebuild b/app-forensics/chkrootkit/chkrootkit-0.57.ebuild new file mode 100644 index 000000000000..c012d5714e9b --- /dev/null +++ b/app-forensics/chkrootkit/chkrootkit-0.57.ebuild @@ -0,0 +1,70 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd toolchain-funcs + +GENTOO_PATCH="${P}-gentoo.patch" + +DESCRIPTION="Tool to locally check for signs of a rootkit" +HOMEPAGE="http://www.chkrootkit.org/" +SRC_URI="ftp://chkrootkit.org/pub/seg/pac/${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~tupone/distfiles/${CATEGORY}/${PN}/${GENTOO_PATCH}.bz2" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="+cron" + +RDEPEND="cron? ( virtual/cron )" + +PATCHES=( + "${WORKDIR}/${P}-gentoo.patch" + "${FILESDIR}/${PN}-0.55-fcntl_h.patch" + "${FILESDIR}/${PN}-0.55-limits_h.patch" +) + +src_prepare() { + default + + sed -e 's:/var/adm/:/var/log/:g' \ + -i chklastlog.c || die +} + +src_compile() { + emake CC="$(tc-getCC)" STRIP=/bin/true sense +} + +src_install() { + dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp chkutmp ifpromisc strings-static + dodoc ACKNOWLEDGMENTS README* + + if use cron ; then + 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 ${EROOT}/etc/cron.weekly/chkrootkit to activate chkrootkit!" + elog + fi + + 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" + elog "http://www.chkrootkit.org/ for more information." + elog +}