From a71d91a57ffac433ccd1b5c7184af55c6c11485f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 3 Dec 2013 10:05:53 -0500 Subject: [PATCH] Add amavis-logwatch from sunrise in preparation for portage. --- net-mail/amavis-logwatch/Manifest | 4 ++ .../amavis-logwatch-1.51.02.ebuild | 54 +++++++++++++++++++ .../files/default_config_location.patch | 11 ++++ net-mail/amavis-logwatch/metadata.xml | 10 ++++ 4 files changed, 79 insertions(+) create mode 100644 net-mail/amavis-logwatch/Manifest create mode 100644 net-mail/amavis-logwatch/amavis-logwatch-1.51.02.ebuild create mode 100644 net-mail/amavis-logwatch/files/default_config_location.patch create mode 100644 net-mail/amavis-logwatch/metadata.xml diff --git a/net-mail/amavis-logwatch/Manifest b/net-mail/amavis-logwatch/Manifest new file mode 100644 index 0000000..31ae6ee --- /dev/null +++ b/net-mail/amavis-logwatch/Manifest @@ -0,0 +1,4 @@ +AUX default_config_location.patch 439 SHA256 661abd73a49b83d47ca87f9ac61ef1b64e27f0baa279e2598a247e59ee4b744b SHA512 5aebcd582931ff083931dbd0b7914df79ef72521b10d855446b39ef76645dc987381587c58936c0cd5cca7af03d4c306ec0eeee06eb25b5fc75f8ae2ebc67fbc WHIRLPOOL eec9dfbfbfdd1542846ffe4052e2fa3eff2b82c9b6236dab2d869cd672c872ed34efeef1980957ca59a174a593526e6f1d3e752c5f39a7837db9dec8a76cae60 +DIST amavis-logwatch-1.51.02.tgz 86314 SHA256 bdbb1c59d4ba08c1d8f2ff4a340d55f1063b4b7044158259cd7fc50cbde8b0fc SHA512 af1153dab6d01b47cd625358dead1ca3cd7b71aca00b43f65a822140b1dfdc9f5bb99d23a5908544f3ccd850a32e0d5600c87d1101b747ddf6600c67cae9019c WHIRLPOOL 2117bf9cc790a2c6bddf587b88f3275fb3f1204f6ec99db94228516becff639c8e720e8204773e4240f055a24cfbe7e9128c067bc52214a4b81ec368b760726e +EBUILD amavis-logwatch-1.51.02.ebuild 1335 SHA256 e19815596c625694069f49e3b98b4c692bad4e8277bb07ea3a68c085c28e619f SHA512 0a50b6b5de94dbec87bd4451e78524409bbecbe23fc24dd010a284e3c428456ecc6c367fb992a79d6382d5ff92a69c87774c684b675cc22d1bbd767f288993e4 WHIRLPOOL 5803d759679e13bc825e16180d956e0079a8ccd407b80f57bb2051ca76f00c08822f015c60e8252e51feb7c075bc6358281d6f7de03947c076fb23df8b8d6acd +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 0000000..fa0b005 --- /dev/null +++ b/net-mail/amavis-logwatch/amavis-logwatch-1.51.02.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils + +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" +IUSE="logwatch" + +RDEPEND="dev-lang/perl" + +src_prepare() { + epatch "${FILESDIR}/default_config_location.patch" +} + +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. + 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/files/default_config_location.patch b/net-mail/amavis-logwatch/files/default_config_location.patch new file mode 100644 index 0000000..bf6a459 --- /dev/null +++ b/net-mail/amavis-logwatch/files/default_config_location.patch @@ -0,0 +1,11 @@ +--- a/amavis-logwatch 2010-11-12 21:35:02.000000000 -0500 ++++ b/amavis-logwatch 2011-07-12 12:57:18.005618573 -0400 +@@ -50,7 +50,7 @@ + our $progname_prefix = 'amavis'; + + # Specifies the default configuration file for use in standalone mode. +-my $config_file = "/usr/local/etc/${progname_prefix}-logwatch.conf"; ++my $config_file = "/etc/${progname_prefix}-logwatch.conf"; + + #MODULE: ../Logreporters/Utils.pm + package Logreporters::Utils; diff --git a/net-mail/amavis-logwatch/metadata.xml b/net-mail/amavis-logwatch/metadata.xml new file mode 100644 index 0000000..67039ac --- /dev/null +++ b/net-mail/amavis-logwatch/metadata.xml @@ -0,0 +1,10 @@ + + + +mjo@gentoo.org + + + Install filters for use with sys-apps/logwatch. + + + -- 2.44.2