commit:     8b98c0d52f768ca21a9285d40dbe60720f9c390f
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 18 14:36:32 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Nov 18 14:36:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b98c0d5

net-mail/postfix-logwatch: add 1.40.06

Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 net-mail/postfix-logwatch/Manifest                 |  1 +
 .../postfix-logwatch-1.40.06.ebuild                | 31 ++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/net-mail/postfix-logwatch/Manifest 
b/net-mail/postfix-logwatch/Manifest
index e33bff96c3b7..8f4805dd2498 100644
--- a/net-mail/postfix-logwatch/Manifest
+++ b/net-mail/postfix-logwatch/Manifest
@@ -1 +1,2 @@
 DIST postfix-logwatch-1.40.05.tar.xz 79504 BLAKE2B 
5d45a43ef2206b77092a90cd463a1718fada286fdd499df4416739aea7246c79b0670503585e7e057174ac715986767e3a72974d9790f33a2cd251221d883687
 SHA512 
15ba438701be110ce75c59bb6803cbb308bd53876428b01a457f42b3fb12e565c9b0c2d4559d71451475ec4986fccfc9f06854760035b4653c72508b968d5a0d
+DIST postfix-logwatch-1.40.06.tar.xz 79408 BLAKE2B 
8f166bd60a70d626628f3f5d96775bb7507f94e790025491bc7e05ec0583f87fa906dc5b8ce6b6ab75bf25ba61f325cf416a29eced46388fdf8d52b3c2d6f7dd
 SHA512 
ea29a0242c3356578b70d898ea5d8be06cdbf8be14edf282437d6446cd261e760375fa28533c492003ac22fd60d68fe9947bae9a598576a72fbaaf7746a2f335

diff --git a/net-mail/postfix-logwatch/postfix-logwatch-1.40.06.ebuild 
b/net-mail/postfix-logwatch/postfix-logwatch-1.40.06.ebuild
new file mode 100644
index 000000000000..db669740de6a
--- /dev/null
+++ b/net-mail/postfix-logwatch/postfix-logwatch-1.40.06.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A log analyzer for postfix"
+HOMEPAGE="https://michael.orlitzky.com/code/postfix-logwatch.xhtml";
+SRC_URI="https://michael.orlitzky.com/code/releases/${P}.tar.xz";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+
+RDEPEND="dev-lang/perl"
+
+src_prepare() {
+       default
+       # 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_install() {
+       dodoc Bugs Changes README ${PN}.conf-topn
+       doman ${PN}.1
+       dobin ${PN}
+       insinto /etc
+       doins ${PN}.conf
+}

Reply via email to