From 95dda901c884558cac1b8957bfc65e53dc7f8063 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 3 Dec 2013 20:05:32 -0500 Subject: [PATCH] Add postfix-logwatch from portage. --- net-mail/postfix-logwatch/Manifest | 4 ++ net-mail/postfix-logwatch/metadata.xml | 10 ++++ .../postfix-logwatch-1.39.07.ebuild | 48 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 net-mail/postfix-logwatch/Manifest create mode 100644 net-mail/postfix-logwatch/metadata.xml create mode 100644 net-mail/postfix-logwatch/postfix-logwatch-1.39.07.ebuild diff --git a/net-mail/postfix-logwatch/Manifest b/net-mail/postfix-logwatch/Manifest new file mode 100644 index 0000000..9e482a3 --- /dev/null +++ b/net-mail/postfix-logwatch/Manifest @@ -0,0 +1,4 @@ +DIST postfix-logwatch-1.39.07.tgz 114032 SHA256 85d53a8748e0210e1890cf1558c03b1fb27935f2b3a1fc056718d5a3abbe6b12 SHA512 9fd4451e35af5b73c9a26eed6263490a70b31cf4ec65e5f1e7c5070166388e4ef91cb418bee3454a1efef9313a918d491a1a923112c215119cfe2d95d6b81a68 WHIRLPOOL 968e3a57e1dab9575d200424f99a008dd1768098ab6aac88bd26f976b4afb24419311d3a0ebd7d0601a44e0c65b33fa98f41e620914be81397957df21d3b46f3 +EBUILD postfix-logwatch-1.39.07.ebuild 1381 SHA256 87fdc9987946b7a24bd254bb2e966013c39d709a668ac6918c5d8b6a84e65968 SHA512 5c1779801a99a91f393b45c1a467c88bda1f0fe498023d5f565a2eb383a95da704b49447e701c0b73b3372be83e5e3434ed16a1909a0a4f423b733b2bd86f643 WHIRLPOOL 558121e81b959e564208eb16c937dc4c96babb7a9870cbcb56f264123dfd62aff64dd4cf6ac3dbfbacfc74a9d4936863b0bd492ee6812b2419d63c787ec43c9a +MISC ChangeLog 452 SHA256 a20aea5ee84fbe4aedfeddc47640709efe9cf86cb3832d963db3347be2aeb718 SHA512 0bb2283494e19166db0d8d3d7c050753a3340630c6dd10031e307f3d5d754fbb834e2997566ddad1515d5bfdbfde2de5ac1469f5d5e6216c0d28b72780bbd66c WHIRLPOOL dc0f7550a379e934a75996cbb45c9e7694d64eb2ef219f0ec10319b86051316071d8e9ec4fef384f0dc4d3713b48520aea5776aa603150cf6ca17c06f1d65b94 +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 0000000..67039ac --- /dev/null +++ b/net-mail/postfix-logwatch/metadata.xml @@ -0,0 +1,10 @@ + + + +mjo@gentoo.org + + + Install filters for use with sys-apps/logwatch. + + + 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 0000000..ab85c5b --- /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 +} -- 2.44.2