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/rasdaemon/
Date: Fri,  6 Oct 2023 21:57:45 +0000 (UTC)	[thread overview]
Message-ID: <1696629410.5ddb0b9153e2805c720e46d59d5b23e7df543999.sam@gentoo> (raw)

commit:     5ddb0b9153e2805c720e46d59d5b23e7df543999
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  6 21:56:50 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct  6 21:56:50 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ddb0b91

app-admin/rasdaemon: add USE=selinux for new sec-policy/selinux-rasdaemon

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

 app-admin/rasdaemon/rasdaemon-0.8.0-r1.ebuild | 85 +++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/app-admin/rasdaemon/rasdaemon-0.8.0-r1.ebuild b/app-admin/rasdaemon/rasdaemon-0.8.0-r1.ebuild
new file mode 100644
index 000000000000..a6e5f6592601
--- /dev/null
+++ b/app-admin/rasdaemon/rasdaemon-0.8.0-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic linux-info systemd
+
+DESCRIPTION="Reliability, Availability and Serviceability logging tool"
+HOMEPAGE="https://github.com/mchehab/rasdaemon"
+# This if can be dropped > 0.8.0, see https://github.com/mchehab/rasdaemon/issues/88
+if [[ ${PV} == 0.8.0 ]] ; then
+	SRC_URI="https://github.com/mchehab/rasdaemon/releases/download/refs%2Fheads%2Fmaster/${P}.tar.bz2"
+else
+	SRC_URI="https://github.com/mchehab/rasdaemon/releases/download/v${PV}/${P}.tar.bz2"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="selinux"
+
+DEPEND="
+	dev-db/sqlite
+	dev-libs/libtraceevent
+	elibc_musl? ( sys-libs/argp-standalone )
+"
+RDEPEND="
+	${DEPEND}
+	dev-perl/DBI
+	dev-perl/DBD-SQLite
+	sys-apps/dmidecode
+	selinux? ( sec-policy/selinux-rasdaemon )
+"
+BDEPEND="sys-devel/gettext"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.8.0-bashisms-configure.patch
+)
+
+pkg_setup() {
+	linux-info_pkg_setup
+	local CONFIG_CHECK="~ACPI_EXTLOG ~DEBUG_FS"
+	check_extra_config
+}
+
+src_prepare() {
+	default
+
+	# Only here for 0.8.0's bashism patch
+	eautoreconf
+}
+
+src_configure() {
+	local myconfargs=(
+		--enable-sqlite3
+		--enable-abrt-report
+		--enable-aer
+		--enable-arm
+		--enable-extlog
+		--enable-hisi-ns-decode
+		--enable-mce
+		--enable-non-standard
+		--enable-devlink
+		--enable-diskerror
+		--enable-memory-ce-pfa
+		--includedir="/usr/include/${PN}"
+		--localstatedir=/var
+	)
+
+	use elibc_musl && append-libs -largp
+
+	econf "${myconfargs[@]}"
+}
+
+src_install() {
+	default
+
+	keepdir "/var/lib/${PN}"
+
+	systemd_dounit misc/*.service
+
+	newinitd "${FILESDIR}/rasdaemon.openrc-r2" rasdaemon
+	newinitd "${FILESDIR}/ras-mc-ctl.openrc-r1" ras-mc-ctl
+	newconfd "${FILESDIR}"/rasdaemon.confd rasdaemon
+}


             reply	other threads:[~2023-10-06 21:57 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-06 21:57 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-13 10:21 [gentoo-commits] repo/gentoo:master commit in: app-admin/rasdaemon/ Sam James
2025-01-12 14:22 Sam James
2025-01-12 13:48 Sam James
2024-11-25  3:01 Sam James
2024-01-13 22:00 Sam James
2024-01-13 22:00 Sam James
2023-11-15 10:39 Sam James
2023-11-15 10:39 Sam James
2023-06-11 20:22 Arthur Zamarin
2023-06-11 19:20 Arthur Zamarin
2023-06-11 19:16 Arthur Zamarin
2023-03-22  5:27 Sam James
2023-03-22  5:27 Sam James
2023-03-04 11:09 Arthur Zamarin
2023-03-04  8:49 Arthur Zamarin
2023-01-22  6:52 Sam James
2023-01-19  1:35 Sam James
2023-01-09  5:41 Sam James
2023-01-09  5:35 Sam James
2023-01-01 22:20 Sam James
2023-01-01 22:20 Sam James
2023-01-01 22:20 Sam James
2022-12-29 17:26 Sam James
2022-12-29 17:26 Sam James
2022-12-29 17:26 Sam James
2022-06-24  2:29 Matthew Thode
2021-08-06 15:13 Matthew Thode
2021-07-05 20:02 Matthew Thode
2021-06-08  2:56 Matthew Thode
2021-01-06 16:35 Andreas K. Hüttel
2020-08-16 19:27 Matthew Thode
2020-01-18 23:28 Matthew Thode
2019-05-31 16:25 Matthew Thode
2018-12-12  7:05 Matthew Thode
2018-07-16  2:58 Matt Thode
2018-06-28 16:25 Matt Thode
2018-06-13 20:29 Matt Thode
2018-01-15 16:14 Matt Thode
2017-12-21 21:46 Matt Thode

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=1696629410.5ddb0b9153e2805c720e46d59d5b23e7df543999.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