mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-forensics/chkrootkit: add 0.59
Closes: https://bugs.gentoo.org/970327 Closes: https://bugs.gentoo.org/919773 Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Part-of: https://github.com/gentoo/gentoo/pull/45849 Closes: https://github.com/gentoo/gentoo/pull/45849 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
committed by
Viorel Munteanu
parent
f2c11d3d13
commit
4ab6f0ea27
@@ -1,2 +1,4 @@
|
||||
DIST chkrootkit-0.58b-gentoo.patch.bz2 5067 BLAKE2B f1690d72f40269429e437c4ea407e0edbb080b760457a85cfd0c32843f69dc7ecdada795545c390887658a34504243cb8a814f082da85fd78eb3c3e9a99f485f SHA512 266b981304fe129117cb11c304a44f39e2c76c9acc634e6aa5a6654ac7ea76480950652b80378e43cab57a3993d3a0c11b413c9b9e9699924f9b44f6f50a9ec1
|
||||
DIST chkrootkit-0.58b.tar.gz 42957 BLAKE2B 92a17d9bb01e2c713791404568a1a625138d2ccd898f2624b1e076dd7d29d6a9154013f6408ffdcf1a5e2cea7236d3c218849ee732dd89f53e1f121cd560d342 SHA512 50829446aa5a320ef3aa678c7bbc03ba2ebc14dca3b4c1f312fb46d3d8206345628d2e94b99cfea33e0d3971afbc025dbd387fb32c4e1135a7466c20eb3afab2
|
||||
DIST chkrootkit-0.59-gentoo.patch.bz2 5132 BLAKE2B 7107435ae5f9fc075d2730b63ca51353d2b44fa6e745854204fe723ac7a956e95f51c2714ccb3d642fdd9b53abe0488c071ac4d31f97ce9a03c744fda31527f9 SHA512 f6cebbbf5a429d2ebd9da9dd50120bc63c0403692c6dbe2bb14bcbd8992d66e72b012e0e1922f6233eea720850eb476b879a2cd90e716a9a3370ee61206d0693
|
||||
DIST chkrootkit-0.59.tar.gz 45088 BLAKE2B ca43a36f8c5f4c063268fad7ca5f1cd3db732b648dd0d0e8e2a94fa3d6a837be05cad186b07eec185eec2b0446e288c71df933d5ddd5c125a9853cbb762cb440 SHA512 b67b726e60e58d1486bae171f6de0ba6422f71822aa62cb14bc9fcc30edbb6e00d84673a58a9cb8cf21da18d41355d0ee14135b848eafb69045315f519ac33e4
|
||||
|
||||
70
app-forensics/chkrootkit/chkrootkit-0.59.ebuild
Normal file
70
app-forensics/chkrootkit/chkrootkit-0.59.ebuild
Normal file
@@ -0,0 +1,70 @@
|
||||
# Copyright 2022-2026 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="https://www.chkrootkit.org/"
|
||||
SRC_URI="ftp://ftp.chkrootkit.org/pub/seg/pac/${P}.tar.gz
|
||||
https://md11.it.cx/download/${PN}/${GENTOO_PATCH}.bz2"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~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
|
||||
}
|
||||
Reference in New Issue
Block a user