From 3832eeee6adc95e2d0cde1c89c9678e14724363e Mon Sep 17 00:00:00 2001 From: Amy Liffey Date: Mon, 7 Aug 2017 09:41:08 +0200 Subject: app-admin/logsentry: eapi bump to 6 Package-Manager: Portage-2.3.6, Repoman-2.3.1 --- app-admin/logsentry/logsentry-1.1.1-r1.ebuild | 67 -------------------------- app-admin/logsentry/logsentry-1.1.1-r2.ebuild | 69 +++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 67 deletions(-) delete mode 100644 app-admin/logsentry/logsentry-1.1.1-r1.ebuild create mode 100644 app-admin/logsentry/logsentry-1.1.1-r2.ebuild (limited to 'app-admin') diff --git a/app-admin/logsentry/logsentry-1.1.1-r1.ebuild b/app-admin/logsentry/logsentry-1.1.1-r1.ebuild deleted file mode 100644 index fa0b6cc6a7d..00000000000 --- a/app-admin/logsentry/logsentry-1.1.1-r1.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# 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 /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-r2.ebuild b/app-admin/logsentry/logsentry-1.1.1-r2.ebuild new file mode 100644 index 00000000000..bc8f5c7ed17 --- /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 +} -- cgit v1.2.3-18-g5258