Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: tmon #2653

Merged
merged 4 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions anda/devs/tmon/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "tmon.spec"
}
}
46 changes: 46 additions & 0 deletions anda/devs/tmon/tmon.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
%global commit e8cae0d88dc8d51cb0e34e3fd3553bcbdaf04ca5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20241215
%global debug_package %{nil}

Name: tmon
Version: %{commit_date}.git~%{shortcommit}
Release: 1%{?dist}
Summary: A tiny system monitor for Linux

License: GPL-3.0
sadlerm4 marked this conversation as resolved.
Show resolved Hide resolved
URL: https://github.com/pondda/tmon
Source0: %{url}/archive/%{commit}.tar.gz

Requires: lm_sensors
Conflicts: kernel-tools

Suggests: nerd-fonts
sadlerm4 marked this conversation as resolved.
Show resolved Hide resolved

BuildRequires: make gcc-c++ ncurses-devel

%description
%{summary}

%prep
%autosetup -n %{name}-%{commit}

%build
%make_build

%install
install -m 0755 -vd %{buildroot}/%{_bindir}
install -m 0755 -vp tmon %{buildroot}/%{_bindir}/tmon
install -m 0755 -vd %{buildroot}/%{_sysconfdir}/tmon
install -m 0644 -vp default.conf %{buildroot}/%{_sysconfdir}/tmon/

%files
%license LICENSE
%doc README.md
%{_bindir}/tmon
%{_sysconfdir}/tmon/default.conf

%changelog
* Tue Dec 17 2024 sadlerm <[email protected]>
- Initial package

6 changes: 6 additions & 0 deletions anda/devs/tmon/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rpm.global("commit", gh_commit("pondda/tmon"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}

Loading