summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2013-12-03 13:28:25 +0000
committerMichael Orlitzky <mjo@gentoo.org>2013-12-03 13:28:25 +0000
commit4cec02eaa40e8178156ec97d47a172bc6a7a91b9 (patch)
tree5eef4e470a1a97ee8a2f381ce5abc1a8ed0cd0c8 /net-mail/postfix-logwatch
parentStable for amd64 wrt bug #491524 (diff)
downloadgentoo-2-4cec02eaa40e8178156ec97d47a172bc6a7a91b9.tar.gz
gentoo-2-4cec02eaa40e8178156ec97d47a172bc6a7a91b9.tar.bz2
gentoo-2-4cec02eaa40e8178156ec97d47a172bc6a7a91b9.zip
New package: net-mail/postfix-logwatch, a log analyzer for postfix. Fixes bug #309075.
(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'net-mail/postfix-logwatch')
-rw-r--r--net-mail/postfix-logwatch/ChangeLog10
-rw-r--r--net-mail/postfix-logwatch/Manifest3
-rw-r--r--net-mail/postfix-logwatch/metadata.xml10
-rw-r--r--net-mail/postfix-logwatch/postfix-logwatch-1.39.07.ebuild48
4 files changed, 71 insertions, 0 deletions
diff --git a/net-mail/postfix-logwatch/ChangeLog b/net-mail/postfix-logwatch/ChangeLog
new file mode 100644
index 000000000000..4b844d870cfd
--- /dev/null
+++ b/net-mail/postfix-logwatch/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-mail/postfix-logwatch
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix-logwatch/ChangeLog,v 1.1 2013/12/03 13:28:25 mjo Exp $
+
+*postfix-logwatch-1.39.07 (03 Dec 2013)
+
+ 03 Dec 2013; <mjo@gentoo.org> +metadata.xml,
+ +postfix-logwatch-1.39.07.ebuild:
+ New package: net-mail/postfix-logwatch, a log analyzer for postfix. Fixes bug
+ #309075.
diff --git a/net-mail/postfix-logwatch/Manifest b/net-mail/postfix-logwatch/Manifest
new file mode 100644
index 000000000000..f4bec91655f2
--- /dev/null
+++ b/net-mail/postfix-logwatch/Manifest
@@ -0,0 +1,3 @@
+DIST postfix-logwatch-1.39.07.tgz 114032 SHA256 85d53a8748e0210e1890cf1558c03b1fb27935f2b3a1fc056718d5a3abbe6b12 SHA512 9fd4451e35af5b73c9a26eed6263490a70b31cf4ec65e5f1e7c5070166388e4ef91cb418bee3454a1efef9313a918d491a1a923112c215119cfe2d95d6b81a68 WHIRLPOOL 968e3a57e1dab9575d200424f99a008dd1768098ab6aac88bd26f976b4afb24419311d3a0ebd7d0601a44e0c65b33fa98f41e620914be81397957df21d3b46f3
+EBUILD postfix-logwatch-1.39.07.ebuild 1265 SHA256 9c117a192d2046eef697b169957ab26e7a6523150984c13f4b07bfc5a6a3d153 SHA512 dabe3b089f8151c81721de5a7eb85dd6733bd00be71c14fdfc5777cd99319c1a4996d3eb8f8d3fac9d6ecf6b412d84ab62ccfc86a216ffe1adce6f4dd0682ad9 WHIRLPOOL 1d58ad7f06f7c9e54d0bcd87a8fd919fc2cffa8ec894477fd7047b8e5ae2cbf0761292114475c18cb7959ca28bc77b5003c580e224dedb1c440b534dba7dc40f
+MISC metadata.xml 305 SHA256 d26b2b1ced185340a913e1e12a211c68edc8f5e563e7db2724637955147a791f SHA512 5dfdc3bc4e8be9ffb3695b59ea6ef330ef185185a9737d79fd2c067a2cf861dfc10b24a4b712774bdb240ac28ac4ef591d683d8c1e30a887b3476d5947105b97 WHIRLPOOL 4c6896d05e15a6f64d53d3cd8353c3df88ce9c8dd294fee0510fea71743783ec7958df2519eb4a209d31a50bb3b63e95ec91d509419fe05c69239b65335ef7f7
diff --git a/net-mail/postfix-logwatch/metadata.xml b/net-mail/postfix-logwatch/metadata.xml
new file mode 100644
index 000000000000..67039ac9c764
--- /dev/null
+++ b/net-mail/postfix-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>
diff --git a/net-mail/postfix-logwatch/postfix-logwatch-1.39.07.ebuild b/net-mail/postfix-logwatch/postfix-logwatch-1.39.07.ebuild
new file mode 100644
index 000000000000..ab85c5b2bb9b
--- /dev/null
+++ b/net-mail/postfix-logwatch/postfix-logwatch-1.39.07.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix-logwatch/postfix-logwatch-1.39.07.ebuild,v 1.1 2013/12/03 13:28:25 mjo Exp $
+
+EAPI=5
+
+DESCRIPTION="A log analyzer for postfix"
+HOMEPAGE="http://logreporters.sourceforge.net/"
+SRC_URI="mirror://sourceforge/logreporters/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="logwatch"
+
+RDEPEND="dev-lang/perl"
+
+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 ${PN}.conf-topn
+ 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} > postfix \
+ || die "failed to remove the perl taint switch"
+
+ insinto /etc/logwatch/scripts/services
+ doins postfix
+
+ insinto /etc/logwatch/conf/services
+ newins ${PN}.conf postfix.conf
+ fi
+}