Skip to content

Commit

Permalink
add: tmon
Browse files Browse the repository at this point in the history
  • Loading branch information
sadlerm4 committed Dec 16, 2024
1 parent 232a516 commit 1b94dc9
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
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
URL: https://github.com/pondda/tmon
Source0: %{url}/archive/%{commit}.tar.gz

Requires: lm_sensors
Conflicts: kernel-tools

Suggests: nerd-fonts

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());
}

0 comments on commit 1b94dc9

Please sign in to comment.