mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
app-forensics/lynis: drop 3.1.5
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
This commit is contained in:
parent
687732de31
commit
abd2bd6755
@ -1,2 +1 @@
|
||||
DIST lynis-3.1.5.tar.gz 359814 BLAKE2B 0de766beb94b64d17628537473b5f46549b20be6ed8a74cd4f50d54f3c36e265700e4d409e877bcff5fc4ddbb5a8f93a25313d3d10a0da8b8fad0c8f2098f40c SHA512 78bea0feeaf17110dcfb34a34e63c3db1b813085ff1e9d97d2ef847a93b7917cc8947e28a8b033c70ec1ad0d9d1cb74c66adcaa2778c3557d3e77efab44454b9
|
||||
DIST lynis-3.1.6.tar.gz 362815 BLAKE2B 54971cee772c968f6bdda974c9fb756696f6871ff3d4485d0020189ab764c84936afc4844e1b8fda52e332952feb1bcf7f6829b29873ac338c3268afa268d099 SHA512 d89ec356dc3cff4731d2bb228ee0bc3c4d0835837fa98e185ca51b5def68fbcc62808d6a3b0a0bf4898b13b3e7765313cf0461095697c68f555728d6698656f8
|
||||
|
||||
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit bash-completion-r1 systemd
|
||||
|
||||
DESCRIPTION="Security and system auditing tool"
|
||||
HOMEPAGE="https://cisofy.com/lynis/"
|
||||
SRC_URI="https://github.com/CISOfy/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+cron systemd"
|
||||
|
||||
RDEPEND="
|
||||
app-shells/bash
|
||||
cron? ( !systemd? ( virtual/cron ) )"
|
||||
|
||||
src_install() {
|
||||
doman lynis.8
|
||||
dodoc FAQ README
|
||||
newdoc CHANGELOG.md CHANGELOG
|
||||
|
||||
# Remove the old one during the next stabilize progress
|
||||
exeinto /etc/cron.daily
|
||||
newexe "${FILESDIR}"/lynis.cron-new lynis
|
||||
|
||||
dobashcomp extras/bash_completion.d/lynis
|
||||
|
||||
# stricter default perms - bug 507436
|
||||
diropts -m0700
|
||||
insopts -m0600
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r db/ include/ plugins/
|
||||
|
||||
dosbin lynis
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins default.prf
|
||||
sed -i -e 's/\/path\/to\///' "${S}/extras/systemd/${PN}.service" || die "Sed Failed!"
|
||||
systemd_dounit "${S}/extras/systemd/${PN}.service" || die "Sed Failed!"
|
||||
systemd_dounit "${S}/extras/systemd/${PN}.timer"
|
||||
|
||||
if ! use cron; then
|
||||
ebegin "removing cron files from installation image"
|
||||
rm -rfv "${ED}/etc/cron.daily" || die
|
||||
eend "$?"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use cron; then
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
echo
|
||||
ewarn "Both 'cron' and 'systemd' flags are enabled."
|
||||
ewarn "So both ${PN}.target and cron files were installed."
|
||||
ewarn "Please don't use 2 implementations at the same time."
|
||||
ewarn "Cronjobs are usually enabled by default via /etc/cron.* jobs"
|
||||
ewarn "If you want to use systemd ${PN}.target timers"
|
||||
ewarn "disable 'cron' flag and reinstall ${PN}"
|
||||
echo
|
||||
else
|
||||
einfo "A cron script has been installed to ${ROOT}/etc/cron.daily/lynis."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user