summaryrefslogtreecommitdiff
path: root/app-admin/logsentry
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-09-13 10:44:02 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-09-13 10:44:02 +0100
commit57dbe782fa3930bfa59520388f90ca4c2f037785 (patch)
treecab5bb5fd36f7758c6ba15635a713eadc3ee5754 /app-admin/logsentry
parent7bb2a634b4e693c8545db3823c080e6edec25e77 (diff)
gentoo auto-resync : 13:09:2023 - 10:44:02
Diffstat (limited to 'app-admin/logsentry')
-rw-r--r--app-admin/logsentry/Manifest1
-rw-r--r--app-admin/logsentry/logsentry-1.1.1-r3.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/app-admin/logsentry/Manifest b/app-admin/logsentry/Manifest
index 0725f9f520e1..e622f2272d35 100644
--- a/app-admin/logsentry/Manifest
+++ b/app-admin/logsentry/Manifest
@@ -1,3 +1,4 @@
DIST logsentry-1.1.1.tar.gz 30267 BLAKE2B e81fb68484fb05f40d61e2d34bc6e0953e99a46b299f4384592bb4a5a1b53874ca382dfaf68f60ee232d56a9c23ec4840ddc71033fb20b88f653d2fc00384869 SHA512 4be045289259655e7b4da05dd1a07c649b2289fbc6f15dd424dc48ab980478f3ae49501f0e9e2035fddb9a40acaf2f4ab310ff8d95355196d82d41d6fc860143
EBUILD logsentry-1.1.1-r2.ebuild 1688 BLAKE2B fed818af317300bda7b100943a0a78681545aa889efe5b6f648c2327b7e50594e44d9ce95c841c0e9dd909b68bb0c887b3de16a48e47da77e70ac109f6e125e8 SHA512 53dd2f713c984957deff570ce5a185cda052e421b143f0d6976a334b645d1b5268de11df09b5e66a275742472a57991846fc419d655f38f435b31539d6130c07
+EBUILD logsentry-1.1.1-r3.ebuild 1701 BLAKE2B eb0693c2b14a37a8f740e86bf29072c4936366d3de8acb2b19019205ec2106ffafe3cb4c2845cd5b9a277368ce01908b93269cd09e35855a2748ca0ac67fb6ab SHA512 63f78efc57a68c0afd82262fa4012f6c03d6b925664d0e74f455147f83ed3950fc24f0eea4524881d90c3687d690dedef132bfa547beb198ab296bd1ff8d98e6
MISC metadata.xml 249 BLAKE2B c2d4f9860e1a735ee3640357ab6d319cfc6e0211d0b4a8bd69ed80becd0e4f181b9573746a8d625682feb4a8958f54aaa24c982ea5e719dd712090c223a23657 SHA512 ccb92e44ca5070b560c6add1dd03d91aeff56986d8f6e86a980928f69fe1417b49beb2ddf50d7ae73bafa5034fc9f09f907b78f05a59c2ecd59f71b36909ac50
diff --git a/app-admin/logsentry/logsentry-1.1.1-r3.ebuild b/app-admin/logsentry/logsentry-1.1.1-r3.ebuild
new file mode 100644
index 000000000000..a47b42865f23
--- /dev/null
+++ b/app-admin/logsentry/logsentry-1.1.1-r3.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Automatically monitor system logs and mail security violations"
+# Seems that the project has been discontinued by CISCO?
+HOMEPAGE="https://sourceforge.net/projects/sentrytools/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+S="${WORKDIR}"/logcheck-${PV}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~s390 ~sparc ~x86"
+IUSE="selinux"
+
+RDEPEND="
+ virtual/mailx
+ selinux? ( sec-policy/selinux-logsentry )
+"
+
+# compile and install mixed in the package makefile"
+src_compile() { :; }
+
+src_install() {
+ dodir /usr/bin /var/tmp/logcheck /etc/logcheck
+
+ cp systems/linux/logcheck.sh{,.orig} || die
+
+ sed -i \
+ -e 's:/usr/local/bin:/usr/bin:' \
+ -e 's:/usr/local/etc:/etc/logcheck:' \
+ -e 's:/etc/logcheck/tmp:/var/tmp/logcheck:' \
+ systems/linux/logcheck.sh || \
+ die "sed logcheck.sh failed"
+ sed -i \
+ -e "s:/usr/local/bin:${D}/usr/bin:" \
+ -e "s:/usr/local/etc:${D}/etc/logcheck:" \
+ -e "s:/etc/logcheck/tmp:/var/tmp/logcheck:" \
+ -e "s:\$(CC):& \$(LDFLAGS):" \
+ Makefile || die "sed Makefile failed"
+
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" linux
+
+ dodoc README* CHANGES CREDITS
+ dodoc systems/linux/README.*
+
+ cat <<- EOF > "${S}"/logsentry.cron || die
+ #!/bin/sh
+ #
+ # Uncomment the following if you want
+ # logsentry (logcheck) to run hourly
+ #
+ # this is part of the logsentry package
+ #
+ #
+
+ #/bin/sh /etc/logcheck/logcheck.sh
+ EOF
+
+ exeinto /etc/cron.hourly
+ doexe logsentry.cron
+}
+
+pkg_postinst() {
+ elog
+ elog "Uncomment the logcheck line in /etc/cron.hourly/logsentry.cron,"
+ elog "or add directly to root's crontab"
+ elog
+}