diff options
author | Sam James <sam@gentoo.org> | 2023-10-06 22:56:50 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-10-06 22:56:50 +0100 |
commit | 5ddb0b9153e2805c720e46d59d5b23e7df543999 (patch) | |
tree | bff054878ce8c8dc07f1af2af13c2745da6ca7d4 /app-admin/rasdaemon | |
parent | net-misc/dhcpcd: add 10.0.3 (diff) | |
download | gentoo-5ddb0b9153e2805c720e46d59d5b23e7df543999.tar.gz gentoo-5ddb0b9153e2805c720e46d59d5b23e7df543999.tar.bz2 gentoo-5ddb0b9153e2805c720e46d59d5b23e7df543999.zip |
app-admin/rasdaemon: add USE=selinux for new sec-policy/selinux-rasdaemon
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin/rasdaemon')
-rw-r--r-- | app-admin/rasdaemon/rasdaemon-0.8.0-r1.ebuild | 85 |
1 files changed, 85 insertions, 0 deletions
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 +} |