diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-admin/logsentry | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-admin/logsentry')
-rw-r--r-- | app-admin/logsentry/Manifest | 1 | ||||
-rw-r--r-- | app-admin/logsentry/logsentry-1.1.1-r1.ebuild | 68 | ||||
-rw-r--r-- | app-admin/logsentry/logsentry-1.1.1.ebuild | 66 | ||||
-rw-r--r-- | app-admin/logsentry/metadata.xml | 8 |
4 files changed, 143 insertions, 0 deletions
diff --git a/app-admin/logsentry/Manifest b/app-admin/logsentry/Manifest new file mode 100644 index 000000000000..b4e937619869 --- /dev/null +++ b/app-admin/logsentry/Manifest @@ -0,0 +1 @@ +DIST logsentry-1.1.1.tar.gz 30267 SHA256 dfe4cb29305c619dc0a0aca5b11b2bd397baccf3076b48f03457f66f299ab42e SHA512 4be045289259655e7b4da05dd1a07c649b2289fbc6f15dd424dc48ab980478f3ae49501f0e9e2035fddb9a40acaf2f4ab310ff8d95355196d82d41d6fc860143 WHIRLPOOL 0a0d63c135186c6035fc6e9e20dbf5a647cb90f09979ccb0e296cbc9caec18fa83d744c5015e87a79bc42e951383559078b0d893cc6e293491fd229221d70a4e diff --git a/app-admin/logsentry/logsentry-1.1.1-r1.ebuild b/app-admin/logsentry/logsentry-1.1.1-r1.ebuild new file mode 100644 index 000000000000..5a4b0036c53d --- /dev/null +++ b/app-admin/logsentry/logsentry-1.1.1-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="automatically monitor system logs and mail security violations on a periodic basis" +# Seems that the project has been discontinued by CISCO? +HOMEPAGE="http://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} + 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 +#!/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..9aa361bbf776 --- /dev/null +++ b/app-admin/logsentry/logsentry-1.1.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="automatically monitor system logs and mail security violations on a periodic basis" +# Seems that the project has been discontinued by CISCO? +HOMEPAGE="http://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..59e2b8f78cb5 --- /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> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> +</pkgmetadata> |