public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/metalog/
Date: Sun,  3 Apr 2022 03:41:29 +0000 (UTC)	[thread overview]
Message-ID: <1648957270.86dfb8826aa9d44a6feb31d5ca202784544d7761.sam@gentoo> (raw)

commit:     86dfb8826aa9d44a6feb31d5ca202784544d7761
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  3 03:03:02 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  3 03:41:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86dfb882

app-admin/metalog: add 20220214

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-admin/metalog/Manifest                |  1 +
 app-admin/metalog/metalog-20220214.ebuild | 66 +++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/app-admin/metalog/Manifest b/app-admin/metalog/Manifest
index d99dd76fd94a..d52b72138402 100644
--- a/app-admin/metalog/Manifest
+++ b/app-admin/metalog/Manifest
@@ -1 +1,2 @@
 DIST metalog-20200113.tar.gz 40276 BLAKE2B f2fcaccf610f3b7f1974aa97f2c7b5181f3c625c9e28d72832ba1570cfa369873887c83468bcea6a9f3d3080356bd1dd62849ec34a5d03c1272ada7f476946f6 SHA512 d399d86f988c69c9f74553cd682a5fe04886bca458e6f8bb3132fe1fb9f522510a428cfde8af0857c5ba22531b276b04fa05183e0006c2d28ef0f0aead488f93
+DIST metalog-20220214.tar.gz 40898 BLAKE2B 7ef04b9e0cd1ba878a11d988ec4b4bffa3d733f86c6b8cec57d32dcf837fe48a001a233a2b09378443b26f6e69869b8de7afeb25f11bb7729b66e1aa3a305f67 SHA512 44a1443e8f9e92460f128aa35125d50ae247ba4f2ce8fd8cc32b96a491e29963cdc27be12a6db28f286e2d5a2bc6243e126a77ae3eb642e7c969d58446a18fcd

diff --git a/app-admin/metalog/metalog-20220214.ebuild b/app-admin/metalog/metalog-20220214.ebuild
new file mode 100644
index 000000000000..a774d0a007e2
--- /dev/null
+++ b/app-admin/metalog/metalog-20220214.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools systemd
+
+DESCRIPTION="A highly configurable replacement for syslogd/klogd"
+HOMEPAGE="https://github.com/hvisage/metalog"
+SRC_URI="https://github.com/hvisage/${PN}/archive/${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${P}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin"
+IUSE="unicode"
+
+RDEPEND="dev-libs/libpcre2"
+DEPEND="${RDEPEND}"
+BDEPEND="sys-devel/autoconf-archive
+	virtual/pkgconfig"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.9-metalog-conf.patch
+)
+
+src_prepare() {
+	default
+
+	eautoreconf
+}
+
+src_configure() {
+	econf $(use_with unicode)
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+	dodoc AUTHORS ChangeLog README NEWS metalog.conf
+
+	into /
+	newsbin "${FILESDIR}"/consolelog.sh-r1 consolelog.sh
+
+	newinitd "${FILESDIR}"/metalog.initd-r1 metalog
+	newconfd "${FILESDIR}"/metalog.confd metalog
+	systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service
+}
+
+pkg_preinst() {
+	if [[ -d "${ROOT}"/etc/metalog && ! -e "${ROOT}"/etc/metalog.conf ]] ; then
+		mv -f "${ROOT}"/etc/metalog/metalog.conf "${ROOT}"/etc/metalog.conf
+		rmdir "${ROOT}"/etc/metalog
+		export MOVED_METALOG_CONF=true
+	else
+		export MOVED_METALOG_CONF=false
+	fi
+}
+
+pkg_postinst() {
+	if ${MOVED_METALOG_CONF} ; then
+		ewarn "The default metalog.conf file has been moved"
+		ewarn "from ${EROOT}/etc/metalog/metalog.conf to just"
+		ewarn "${EROOT}/etc/metalog.conf.  If you had a standard"
+		ewarn "setup, the file has been moved for you."
+	fi
+}


             reply	other threads:[~2022-04-03  3:41 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-03  3:41 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-01 20:30 [gentoo-commits] repo/gentoo:master commit in: app-admin/metalog/ Arthur Zamarin
2023-09-07 20:16 Sam James
2022-10-29 21:32 Sam James
2022-06-14  5:54 Jakov Smolić
2022-06-13 16:29 Sam James
2022-06-13  7:13 Agostino Sarubbo
2022-06-13  7:12 Agostino Sarubbo
2022-06-13  7:11 Agostino Sarubbo
2022-06-13  7:10 Agostino Sarubbo
2022-06-13  7:09 Agostino Sarubbo
2022-06-13  7:07 Agostino Sarubbo
2022-02-02 10:48 Sam James
2021-04-12  1:09 Sam James
2021-04-07 22:45 Sam James
2021-04-07 22:44 Sam James
2021-04-07 22:42 Sam James
2021-04-06 19:53 Sam James
2021-04-06 19:53 Sam James
2021-04-06 15:42 Sergei Trofimovich
2021-04-05 19:01 Thomas Deutschmann
2020-02-15 18:01 Patrick McLean
2019-05-05 18:57 Mikle Kolyada
2019-05-02 21:56 Mikle Kolyada
2019-05-02 21:56 Mikle Kolyada
2019-05-02 21:56 Mikle Kolyada
2019-04-26 20:54 Mikle Kolyada
2019-04-21 17:07 Sergei Trofimovich
2019-04-20 18:43 Mikle Kolyada
2019-04-18 20:32 Thomas Deutschmann
2019-04-17 20:01 Sergei Trofimovich
2019-04-13 13:54 Mikle Kolyada
2019-04-13  5:11 Aaron Bauman
2019-02-28 14:38 Michael Haubenwallner
2018-12-20 16:17 Benda XU
2018-11-15 22:55 Patrick McLean
2018-01-11 23:27 Mike Frysinger
2017-12-17 15:06 Mikle Kolyada
2017-12-17 15:05 Mikle Kolyada
2017-11-27 19:46 Sergei Trofimovich
2017-11-23 11:54 Tobias Klausmann
2017-11-20 13:30 Manuel Rüger
2017-11-19 20:44 Sergei Trofimovich
2017-11-19 19:23 Sergei Trofimovich
2017-11-19 13:03 Sergei Trofimovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1648957270.86dfb8826aa9d44a6feb31d5ca202784544d7761.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox