summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jackson <mjo@gentoo.org>2010-03-17 21:54:35 +0000
committerMartin Jackson <mjo@gentoo.org>2010-03-17 21:54:35 +0000
commit1c5de9c146ee882c1ad97c5c863c777d51ba3c10 (patch)
tree86b24fa5ada3da622cd79bac17d2cccce6c70869 /net-mail
parentdev-python/pymongo: Version bump. Remove redundant test code (diff)
downloadsunrise-1c5de9c146ee882c1ad97c5c863c777d51ba3c10.tar.gz
sunrise-1c5de9c146ee882c1ad97c5c863c777d51ba3c10.tar.bz2
sunrise-1c5de9c146ee882c1ad97c5c863c777d51ba3c10.zip
net-mail/amavis-logwatch: New ebuild to address bug 309077.
svn path=/sunrise/; revision=10297
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/amavis-logwatch/ChangeLog8
-rw-r--r--net-mail/amavis-logwatch/Manifest4
-rw-r--r--net-mail/amavis-logwatch/amavis-logwatch-1.50.02.ebuild49
-rw-r--r--net-mail/amavis-logwatch/metadata.xml8
4 files changed, 69 insertions, 0 deletions
diff --git a/net-mail/amavis-logwatch/ChangeLog b/net-mail/amavis-logwatch/ChangeLog
new file mode 100644
index 000000000..50e7c66a6
--- /dev/null
+++ b/net-mail/amavis-logwatch/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-mail/amavis-logwatch
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 17 Mar 2010; Michael Orlitzky <michael@orlitzky.com>
+ +amavis-logwatch-1.50.02.ebuild, +metadata.xml:
+ New ebuild to address bug 309077.
+
diff --git a/net-mail/amavis-logwatch/Manifest b/net-mail/amavis-logwatch/Manifest
new file mode 100644
index 000000000..cd770db38
--- /dev/null
+++ b/net-mail/amavis-logwatch/Manifest
@@ -0,0 +1,4 @@
+DIST amavis-logwatch-1.50.02.tgz 92690 RMD160 694c6f36f2aa9c51ddb53a1b13f82f1192fa3922 SHA1 1efe4154e0b761189aa5ad0a2e75f9e144ee02b5 SHA256 6ad9662b8885bb4417557d3c7354566d6a7d6f84f748ce49320090cd1bb78e59
+EBUILD amavis-logwatch-1.50.02.ebuild 1582 RMD160 f63cb9dda0eca1966ee71e1cc9663a5ea06cccb9 SHA1 268fddbee269b3025c2519f503a706db60d1fcef SHA256 14484ffe9a7784081312653aa367d991f72879479d5e00c4e31a63c626f67e90
+MISC ChangeLog 267 RMD160 540a92c890483c01fa0e3db584c62df0d073531a SHA1 2760cdf360a332678d26932acb260e5d63b6f922 SHA256 44bcf2956b012d04ad7033f717d4f1a4562398a1aeb121fcadc0a2e6f3075df1
+MISC metadata.xml 273 RMD160 0dac457c6273ae4054c501e2470737f98ed6e2d2 SHA1 e378e7e440ca21f7490e07731a44170259221b8d SHA256 85365f3b9d586f4fb14cd47295e40e9fbb72f70a4dfb0fc4aaabda4088104d8d
diff --git a/net-mail/amavis-logwatch/amavis-logwatch-1.50.02.ebuild b/net-mail/amavis-logwatch/amavis-logwatch-1.50.02.ebuild
new file mode 100644
index 000000000..c87c7f948
--- /dev/null
+++ b/net-mail/amavis-logwatch/amavis-logwatch-1.50.02.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="A log analyzer for amavisd-new"
+HOMEPAGE="http://www.mikecappella.com/logwatch/"
+SRC_URI="${HOMEPAGE}/release/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="logwatch"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ # The default make target just outputs instructions. We don't want
+ # the user to see these, so we avoid 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 || die "failed to install documentation"
+ doman ${PN}.1 || die "failed to install man page"
+ dohtml ${PN}.1.html || die "failed to install html documentation"
+ dobin ${PN} || die "failed to install executable"
+ insinto /etc
+ doins ${PN}.conf || die "failed to install config file"
+
+ 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 || die "failed to install the 'amavis' logwatch filter"
+
+ insinto /etc/logwatch/conf/services
+ newins ${PN}.conf amavis.conf \
+ || die "failed to install the logwatch 'amavis.conf' file"
+ fi
+}
diff --git a/net-mail/amavis-logwatch/metadata.xml b/net-mail/amavis-logwatch/metadata.xml
new file mode 100644
index 000000000..dab3714f9
--- /dev/null
+++ b/net-mail/amavis-logwatch/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+<use>
+ <flag name='logwatch'>Install filters for use with <pkg>sys-apps/logwatch</pkg>.</flag>
+</use>
+</pkgmetadata>