summaryrefslogtreecommitdiff
path: root/app-admin/logsentry
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/logsentry
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/logsentry')
-rw-r--r--app-admin/logsentry/Manifest6
-rw-r--r--app-admin/logsentry/logsentry-1.1.1-r2.ebuild69
-rw-r--r--app-admin/logsentry/logsentry-1.1.1.ebuild65
-rw-r--r--app-admin/logsentry/metadata.xml8
4 files changed, 148 insertions, 0 deletions
diff --git a/app-admin/logsentry/Manifest b/app-admin/logsentry/Manifest
new file mode 100644
index 000000000000..c2a784199332
--- /dev/null
+++ b/app-admin/logsentry/Manifest
@@ -0,0 +1,6 @@
+DIST logsentry-1.1.1.tar.gz 30267 SHA256 dfe4cb29305c619dc0a0aca5b11b2bd397baccf3076b48f03457f66f299ab42e SHA512 4be045289259655e7b4da05dd1a07c649b2289fbc6f15dd424dc48ab980478f3ae49501f0e9e2035fddb9a40acaf2f4ab310ff8d95355196d82d41d6fc860143 WHIRLPOOL 0a0d63c135186c6035fc6e9e20dbf5a647cb90f09979ccb0e296cbc9caec18fa83d744c5015e87a79bc42e951383559078b0d893cc6e293491fd229221d70a4e
+EBUILD logsentry-1.1.1-r2.ebuild 1677 SHA256 1b4545d971b08e83b7a72d73d27b4778cd4aae9a3783ff62666636a49390cbe4 SHA512 869e1ae5feece9c7bc54378bfda40a174074bc9cf8ee18624f993a2452264962b477770295924bb5afbad7dcd7a1c52ef05e5c61f3b396d7acaa35a015fbc663 WHIRLPOOL 8db38c86da8187c222bce5d77b9e30a195786ea3cab6d364063d8355590f0c23e2a5ba5235f40b4c37fa7fe315643cd3dfe83efee47a898a3712a9b983952dfa
+EBUILD logsentry-1.1.1.ebuild 1538 SHA256 367757cb8d273763c9f2d64b78879ab91a900b8db83e4a384107255cfa81415b SHA512 69d37361a5d87fd1051a2742ffea623f49afbac03a9ee7b8e1ff256f985500cceb42072c7bd3c13f8b052d78afdd7d22d646489d4ec52681e177f476d365392e WHIRLPOOL 7928451257c266d87174bf75a8e48ff48e49b1d91eaa2aed14edafd016c7a69db46b865f12c5cfdc84241e87e6d75bfaeee6494a4b7c4401d05beae6da666082
+MISC ChangeLog 3280 SHA256 b785f2245beaf7f20f36b313ad3c1f15d66586092faefb4881bb1dd3e6035409 SHA512 31b09d0671327d6160df19fb0782a6465b77fdd407b05a25852ee6a74bc70a04d62e029ff8cd0241f093112f857ee536a48bf83397295b76d97b261f7ff5c492 WHIRLPOOL d3c11370bec1d058fe1cc7da2d12d40073c6fd6a6ac5e911283cb25b79d6c9b006433e2048b2035396232d3b4aecfd7563eeefc15c66a01ded61e530a25dc3db
+MISC ChangeLog-2015 2706 SHA256 90c3338d3abac15352c35936978a4106efbc461e7e085738da99ea88d8fee181 SHA512 edb633a818477f523f91dff486204dfa295f1d8bd031081ffe00d4667f335787ca99635c16e3f773b38119b3be13636c224a8ec2fdda8c8f059f65b141e5745e WHIRLPOOL f843fe88581eb015fc678f6779bb6404c1354a4e5c21a0f4fd205e737e7d817aa9565e1f36584ecab99bbd2a7741d7c479b0534a3f0a3a4207f31e5130056c4d
+MISC metadata.xml 248 SHA256 e36322b1de5fa4d2dd4f54a2f1b57cfa15655a7ef81cc45cb938ae1dbcfe8190 SHA512 52d286d2ecc5d8b66e2468683db28439cdcbcc96c88d8dba8a415049def3c53bc130783853aee9918c6b0dc4ae295aba44d601687d440196399903b25e92b5f9 WHIRLPOOL c88043a53a0fd171df407e36e8283c249c5623babe105a679790f52e1b5a7a6312d03d425cb006914cb5a271102b92ba15ec48fe651109ce9d1172ddee8f3516
diff --git a/app-admin/logsentry/logsentry-1.1.1-r2.ebuild b/app-admin/logsentry/logsentry-1.1.1-r2.ebuild
new file mode 100644
index 000000000000..bc8f5c7ed176
--- /dev/null
+++ b/app-admin/logsentry/logsentry-1.1.1-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4"
+RDEPEND="virtual/mailx"
+
+S="${WORKDIR}"/logcheck-${PV}
+
+src_compile() {
+ einfo "compile and install mixed in the package makefile"
+}
+
+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"
+ make CC="$(tc-getCC)" CFLAGS="${CFLAGS}" linux || die
+
+ 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
+}
diff --git a/app-admin/logsentry/logsentry-1.1.1.ebuild b/app-admin/logsentry/logsentry-1.1.1.ebuild
new file mode 100644
index 000000000000..06bf9e80257a
--- /dev/null
+++ b/app-admin/logsentry/logsentry-1.1.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ~mips ppc s390 sh sparc x86"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4"
+RDEPEND="virtual/mailx"
+
+S="${WORKDIR}"/logcheck-${PV}
+
+src_compile() {
+ einfo "compile and install mixed in the package makefile"
+}
+
+src_install() {
+ dodir /usr/bin /etc/logcheck/tmp
+ cp systems/linux/logcheck.sh{,.orig}
+ sed -i \
+ -e 's:/usr/local/bin:/usr/bin:' \
+ -e 's:/usr/local/etc:/etc/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:\$(CC):& \$(LDFLAGS):" \
+ Makefile || die "sed Makefile failed"
+ make CC="$(tc-getCC)" CFLAGS="${CFLAGS}" linux || die
+
+ dodoc README* CHANGES CREDITS
+ dodoc systems/linux/README.*
+
+ cat << EOF > "${S}"/logsentry.cron
+#!/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
+}
diff --git a/app-admin/logsentry/metadata.xml b/app-admin/logsentry/metadata.xml
new file mode 100644
index 000000000000..83faec9523ff
--- /dev/null
+++ b/app-admin/logsentry/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">sentrytools</remote-id>
+ </upstream>
+</pkgmetadata>