diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2013-12-20 00:31:31 +0000 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2013-12-20 00:31:31 +0000 |
commit | 73497190c1912e161f1156ebc67b0fabdeae1cb2 (patch) | |
tree | be9c02605850e88a1bcf75204365edc3426221c6 /net-mail/amavis-logwatch | |
parent | Automated update. (diff) | |
download | gentoo-2-73497190c1912e161f1156ebc67b0fabdeae1cb2.tar.gz gentoo-2-73497190c1912e161f1156ebc67b0fabdeae1cb2.tar.bz2 gentoo-2-73497190c1912e161f1156ebc67b0fabdeae1cb2.zip |
New package: net-mail/amavis-logwatch, a log analyzer for amavisd-new. Fixes bug #309077.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x6F48D3DA05C2DADB!)
Diffstat (limited to 'net-mail/amavis-logwatch')
-rw-r--r-- | net-mail/amavis-logwatch/ChangeLog | 10 | ||||
-rw-r--r-- | net-mail/amavis-logwatch/Manifest | 3 | ||||
-rw-r--r-- | net-mail/amavis-logwatch/amavis-logwatch-1.51.02.ebuild | 64 | ||||
-rw-r--r-- | net-mail/amavis-logwatch/metadata.xml | 10 |
4 files changed, 87 insertions, 0 deletions
diff --git a/net-mail/amavis-logwatch/ChangeLog b/net-mail/amavis-logwatch/ChangeLog new file mode 100644 index 000000000000..a8bb57bb2de2 --- /dev/null +++ b/net-mail/amavis-logwatch/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-mail/amavis-logwatch +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/amavis-logwatch/ChangeLog,v 1.1 2013/12/20 00:31:31 mjo Exp $ + +*amavis-logwatch-1.51.02 (20 Dec 2013) + + 20 Dec 2013; Michael Orlitzky <mjo@gentoo.org> + +amavis-logwatch-1.51.02.ebuild, +metadata.xml: + New package: net-mail/amavis-logwatch, a log analyzer for amavisd-new. Fixes + bug #309077. diff --git a/net-mail/amavis-logwatch/Manifest b/net-mail/amavis-logwatch/Manifest new file mode 100644 index 000000000000..17a35a068ca1 --- /dev/null +++ b/net-mail/amavis-logwatch/Manifest @@ -0,0 +1,3 @@ +DIST amavis-logwatch-1.51.02.tgz 86314 SHA256 bdbb1c59d4ba08c1d8f2ff4a340d55f1063b4b7044158259cd7fc50cbde8b0fc SHA512 af1153dab6d01b47cd625358dead1ca3cd7b71aca00b43f65a822140b1dfdc9f5bb99d23a5908544f3ccd850a32e0d5600c87d1101b747ddf6600c67cae9019c WHIRLPOOL 2117bf9cc790a2c6bddf587b88f3275fb3f1204f6ec99db94228516becff639c8e720e8204773e4240f055a24cfbe7e9128c067bc52214a4b81ec368b760726e +EBUILD amavis-logwatch-1.51.02.ebuild 1807 SHA256 3826931daad312cd9b6a5b761cfde8c472f8bcc49b2dc6a6bae0c42171f09985 SHA512 dc398cae38733ef46d259b11ec52a0449d9b4cc138e369f43dcd38954ae86ad0c048fdccad503f931b10a1e646fbd599144fa90cb200c1d810aa51a42c52d243 WHIRLPOOL 0415a9152395ffe63cf519cf26399ff4c610ea04458cb35768230daf66895e499e00348887447b541b1826b693578762b7423f947141102e3245eb3f25896273 +MISC metadata.xml 305 SHA256 d26b2b1ced185340a913e1e12a211c68edc8f5e563e7db2724637955147a791f SHA512 5dfdc3bc4e8be9ffb3695b59ea6ef330ef185185a9737d79fd2c067a2cf861dfc10b24a4b712774bdb240ac28ac4ef591d683d8c1e30a887b3476d5947105b97 WHIRLPOOL 4c6896d05e15a6f64d53d3cd8353c3df88ce9c8dd294fee0510fea71743783ec7958df2519eb4a209d31a50bb3b63e95ec91d509419fe05c69239b65335ef7f7 diff --git a/net-mail/amavis-logwatch/amavis-logwatch-1.51.02.ebuild b/net-mail/amavis-logwatch/amavis-logwatch-1.51.02.ebuild new file mode 100644 index 000000000000..cfe3b22b034d --- /dev/null +++ b/net-mail/amavis-logwatch/amavis-logwatch-1.51.02.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/amavis-logwatch/amavis-logwatch-1.51.02.ebuild,v 1.1 2013/12/20 00:31:31 mjo Exp $ + +EAPI=5 + +DESCRIPTION="A log analyzer for amavisd-new" +HOMEPAGE="http://logreporters.sourceforge.net/" +SRC_URI="mirror://sourceforge/logreporters/${P}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +# >sys-apps/logwatch-7.4.0 ships our logwatch scripts and will +# thus obsolete this use flag. +IUSE="logwatch" + +RDEPEND="dev-lang/perl + logwatch? ( !>sys-apps/logwatch-7.4.0 )" + +src_prepare() { + # Replace the default config file location with ours. + local cfg_default='/usr/local/etc/${progname_prefix}-logwatch.conf' + local cfg_gentoo='/etc/${progname_prefix}-logwatch.conf'; + sed -i "s~${cfg_default}~${cfg_gentoo}~" ${PN} \ + || die 'failed to update the default config location' +} + +src_compile() { + # The default make target just outputs instructions. We don't want + # the user to see these, so we avoid the default emake. + : +} + +src_install() { + # There are two different "versions" of the package in the + # tarball: a standalone executable and a logwatch filter. The + # standalone is always installed. However, the logwatch filter is + # only installed with USE="logwatch". + dodoc Bugs Changes README + doman ${PN}.1 + dobin ${PN} + insinto /etc + doins ${PN}.conf + + if use logwatch; then + # Remove the taint mode (-T) switch from the header of the + # standalone executable, and save the result as our logwatch + # filter. + # + # We don't do this for the standalone script because it's nice + # to have the taint flag when it works. + # + sed 's~^#!/usr/bin/perl -T$~#!/usr/bin/perl~' ${PN} > amavis \ + || die 'failed to remove the perl taint switch' + + insinto /etc/logwatch/scripts/services + doins amavis + + insinto /etc/logwatch/conf/services + newins ${PN}.conf amavis.conf + fi +} diff --git a/net-mail/amavis-logwatch/metadata.xml b/net-mail/amavis-logwatch/metadata.xml new file mode 100644 index 000000000000..67039ac9c764 --- /dev/null +++ b/net-mail/amavis-logwatch/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer><email>mjo@gentoo.org</email></maintainer> +<use> + <flag name='logwatch'> + Install filters for use with <pkg>sys-apps/logwatch</pkg>. + </flag> +</use> +</pkgmetadata> |