From fceda01e06410d5d69b20616dd81de14d1bf283f Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Tue, 17 May 2022 12:03:32 +0200 Subject: [PATCH] initial package creation Signed-off-by: Toshaan Bharvani --- SOURCES/nmon.1 | 47 ++++++++++++++++++++++++++ SPECS/nmon.spec | 87 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+) create mode 100644 SOURCES/nmon.1 create mode 100644 SPECS/nmon.spec diff --git a/SOURCES/nmon.1 b/SOURCES/nmon.1 new file mode 100644 index 0000000..45f788e --- /dev/null +++ b/SOURCES/nmon.1 @@ -0,0 +1,47 @@ +.TH NMON "1" "August 2009" "nmon " "User Commands" +.SH NAME +nmon \- systems administrator, tuner, benchmark tool. +.SH DESCRIPTION +This manual page documents briefly the +.B nmon +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBnmon\fP is is a systems administrator, tuner, benchmark tool. +It can display the CPU, memory, network, disks (mini graphs or numbers), +file systems, NFS, top processes, resources (Linux version & processors) and +on Power micro-partition information. +.SH OPTIONS +.B nmon +follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +nmon [\-h] [\-s ] [\-c ] [\-f \fB\-d\fR \fB\-t\fR \fB\-r\fR ] [\-x] +A summary of options is included below. +.TP +\fB\-h\fR +FULL help information +.IP +Interactive\-Mode: +read startup banner and type: "h" once it is running +For Data\-Collect\-Mode (\fB\-f\fR) +.TP +\fB\-f\fR spreadsheet output format [note: default \fB\-s300\fR \fB\-c288]\fR +optional +.TP +\fB\-s\fR between refreshing the screen [default 2] +.TP +\fB\-c\fR of refreshes [default millions] +.TP +\fB\-d\fR to increase the number of disks [default 256] +.TP +\fB\-t\fR spreadsheet includes top processes +.TP +\fB\-x\fR capacity planning (15 min for 1 day = \fB\-fdt\fR \fB\-s\fR 900 \fB\-c\fR 96) +.PP +.SH AUTHOR +nmon was written by Nigel Griffiths +.PP +This manual page was written by Giuseppe Iuculano , +for the Debian project (but may be used by others). + diff --git a/SPECS/nmon.spec b/SPECS/nmon.spec new file mode 100644 index 0000000..9b2c2d1 --- /dev/null +++ b/SPECS/nmon.spec @@ -0,0 +1,87 @@ +Name: nmon +Version: 16n +Release: 1%{?dist} +Summary: Nigel's performance Monitor for Linux +License: GPLv3 +URL: http://nmon.sourceforge.net +Source0: http://downloads.sourceforge.net/%{name}/lmon%{version}.c +Source1: http://downloads.sourceforge.net/%{name}/Documentation.txt +# Manpage available from the patch archive: +# http://sourceforge.net/tracker/?func=detail&aid=2833213&group_id=271307&atid=1153693 +Source2: %{name}.1 +BuildRequires: ncurses-devel + + +%description +nmon is a systems administrator, tuner, benchmark tool, which provides +information about CPU, disks, network, etc., all in one view. + + +%prep +%setup -T -c -n %{name} +sed -e "s/\r//" %{SOURCE1} > Documentation.txt +touch -c -r %{SOURCE1} Documentation.txt +cp %{SOURCE0} . + + +%build +%{__cc} \ + %{optflags} \ + -D JFS \ + -D GETUSER \ + -D LARGEMEM \ +%ifarch ppc64 ppc64le + -D POWER \ +%endif +%ifarch x86_64 + -D X86 \ +%endif + -D RHEL7 \ + -D KERNEL_2_6_18 \ + -lncurses -Wall -g -lm lmon%{version}.c -o %{name} + + +%install +install -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name} +install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1 + + +%files +%doc Documentation.txt +%{_mandir}/man1/%{name}.1.* +%{_bindir}/%{name} + + +%changelog +* Sun Aug 17 2014 Fedora Release Engineering - 14i-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 14i-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Aug 13 2013 Palle Ravn - 14i-6 +- Update to version 14i +- GCC options modified for x86 + +* Sat Aug 03 2013 Fedora Release Engineering - 14h-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jul 18 2013 Palle Ravn 14h-4 +- Update to version 14h + +* Mon Mar 18 2013 Palle Ravn 14g-3 +- Streamline download links +- Include manpage from sourceforges patch section +- No longer mark manpage as %%doc +- Only handle manpage in %%install + +* Fri Mar 1 2013 Palle Ravn 14g-2 +- Add name macro to source links +- Add name macro to compile and install commands +- Add support for PowerPC compilation +- Remove redundant compile flags +- Changed to arbitrary manpage compression +- Preserve timestamps of Source1 + +* Mon Feb 25 2013 Palle Ravn 14g-1 +- Initial package