From c662a4378926e4d8c32d06c0c51bfb841706dcd6 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Sun, 14 Jul 2024 12:51:13 +0200 Subject: [PATCH] add sysalert --- profiles/targets/desktop/packages | 2 +- profiles/targets/server/packages | 1 + sys-apps/sysalert/Manifest | 2 ++ sys-apps/sysalert/sysalert-0.1.0.ebuild | 39 +++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 sys-apps/sysalert/sysalert-0.1.0.ebuild diff --git a/profiles/targets/desktop/packages b/profiles/targets/desktop/packages index 218b45e..cadf7be 100644 --- a/profiles/targets/desktop/packages +++ b/profiles/targets/desktop/packages @@ -5,8 +5,8 @@ dev-libs/bemenu gui-wm/sway media-video/mpv -x11-terms/alacritty www-client/firefox +gui-apps/foot media-fonts/noto media-fonts/noto-emoji diff --git a/profiles/targets/server/packages b/profiles/targets/server/packages index 3cd7ab2..e12fd26 100644 --- a/profiles/targets/server/packages +++ b/profiles/targets/server/packages @@ -23,3 +23,4 @@ *app-portage/gentoolkit *mail-client/mailx *net-analyzer/tcpdump +*sys-apps/sysalert diff --git a/sys-apps/sysalert/Manifest b/sys-apps/sysalert/Manifest index 29ed61a..2df7385 100644 --- a/sys-apps/sysalert/Manifest +++ b/sys-apps/sysalert/Manifest @@ -1 +1,3 @@ +DIST sysalert-0.1.0.tar.gz 7685 BLAKE2B 7baded94b67c0bfc195fd7753fb7f87e94773d7ef4ffee131c982c45ea986dfa3909412827374b37c7c1feaacb95bada2103062c57657cb8950e6ce0568f368a SHA512 521775540c2a15382edf3a075d2decbed0cb4509ced6fcc161a4a7c60e7366470b2bf89a96fd14d1da9cbde9c90bc6a502fec5916e8ddf8026498cfad2225dbb +EBUILD sysalert-0.1.0.ebuild 956 BLAKE2B cf5e6500b7ad2fcf09315470970831d360547a70af69291051d591ef2b079dc85d6afbf3a5b3cd20bfc6a311101b6bcf1d6f401557478bd6338887e013eb694f SHA512 8f0184f2bd5e310e2e66ddeeb71119cf710b89defb026956779359fdb1dec29330fd5b594c2ba17df97f827b814775eb5c036f53b087e6e9158c5efa6e0d8f47 EBUILD sysalert-9999.ebuild 956 BLAKE2B cf5e6500b7ad2fcf09315470970831d360547a70af69291051d591ef2b079dc85d6afbf3a5b3cd20bfc6a311101b6bcf1d6f401557478bd6338887e013eb694f SHA512 8f0184f2bd5e310e2e66ddeeb71119cf710b89defb026956779359fdb1dec29330fd5b594c2ba17df97f827b814775eb5c036f53b087e6e9158c5efa6e0d8f47 diff --git a/sys-apps/sysalert/sysalert-0.1.0.ebuild b/sys-apps/sysalert/sysalert-0.1.0.ebuild new file mode 100644 index 0000000..ee8c7c0 --- /dev/null +++ b/sys-apps/sysalert/sysalert-0.1.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11,12,13} ) + +inherit distutils-r1 systemd + +DESCRIPTION="Systemd failure handler" +HOMEPAGE="https://gitea.fulh.ax/feffe/sysalert" +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://gitea.fulh.ax/feffe/sysalert.git" + inherit git-r3 + KEYWORDS="~amd64 ~arm64" +else + SRC_URI="https://gitea.fulh.ax/feffe/sysalert/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/sysalert" + KEYWORDS="amd64 arm64" +fi + +RESTRICT="mirror" +LICENSE="MIT" +SLOT="0" + +DEPEND="" +RDEPEND="${DEPEND} dev-python/python-systemd" +BDEPEND="" + +src_install() { + distutils-r1_src_install + systemd_dounit systemd/sysalert-*.service + systemd_install_dropin sysalert-.service systemd/overrides/sysalert-.service.d.conf + systemd_install_dropin service systemd/overrides/service.d.conf + insinto /etc + doins config/sysalert.ini +}