add sysalert

This commit is contained in:
Fredrik Eriksson 2024-07-14 12:51:13 +02:00
parent 1f799f1c74
commit c662a43789
Signed by: feffe
GPG Key ID: E6B5580B853D322B
4 changed files with 43 additions and 1 deletions

View File

@ -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

View File

@ -23,3 +23,4 @@
*app-portage/gentoolkit
*mail-client/mailx
*net-analyzer/tcpdump
*sys-apps/sysalert

View File

@ -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

View File

@ -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
}