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 all commits
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"
}
}
48 changes: 48 additions & 0 deletions anda/devs/tmon/tmon.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
%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-only
URL: https://github.com/pondda/%{name}
Source0: %{url}/archive/%{commit}.tar.gz

Requires: lm_sensors
Conflicts: kernel-tools

Recommends: google-noto-color-emoji-fonts

BuildRequires: make gcc-c++ ncurses-devel

Packager: sadlerm <[email protected]>

%description
%{summary}.

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

%build
%make_build

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

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_sysconfdir}/%{name}/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