summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorundefine2006-09-21 19:22:58 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commitbf296c6d7a340d795590836ce19637b8e90c471d (patch)
treee620e3a3b3470186ada23f166ead8b561bb06279
parentea4b03c808810be1df60ed9c87358096d6a01c4b (diff)
downloadsysmon-bf296c6d7a340d795590836ce19637b8e90c471d.zip
sysmon-bf296c6d7a340d795590836ce19637b8e90c471d.tar.gz
- new by pi3ter
Changed files: sysmon.spec -> 1.1
-rw-r--r--sysmon.spec77
1 files changed, 77 insertions, 0 deletions
diff --git a/sysmon.spec b/sysmon.spec
new file mode 100644
index 0000000..33d5617
--- /dev/null
+++ b/sysmon.spec
@@ -0,0 +1,77 @@
+# TODO:
+# - subpackages with stuff from OtherClients
+Summary: Network monitoring tool
+Summary(pl): Narzędzie do monitorowania sieci
+Name: sysmon
+Version: 0.92.2
+Release: 0.1
+License: GPL
+Group: Applications
+Source0: ftp://puck.nether.net/pub/jared/%{name}-%{version}.tar.gz
+# Source0-md5: be9304964bfd131be6098c4b7b502cd1
+Source1: %{name}.init
+# Source1-md5: d41d8cd98f00b204e9800998ecf8427e
+Source2: %{name}.sysconfig
+# Source2-md5: 0d7745e331beea331749ba874eb4b5da
+Patch0: %{name}-DESTDIR-headers.patch
+URL: http://www.sysmon.org
+BuildRequires: automake
+BuildRequires: ncurses-devel
+Requires(post,preun): /sbin/chkconfig
+Requires: rc-scripts
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sysmon is a network monitoring tool designed to provide high
+performance and accurate network monitoring. Currently supported
+protocols include SMTP, IMAP, HTTP, TCP, UDP, NNTP, and PING tests.
+
+%description -l pl
+Sysmon to narzędzie monitorujace działanie sieci. Obecnie obsługiwane
+protokoły to: SMTP, IMAP, HTTP, TCP, UDP, NNTP, oraz testy poprzez
+PING.
+
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure
+%{__make} -C src
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_mandir}/man1,%{_mandir}/man5,/etc/sysconfig}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sysmond
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/sysmond
+install src/sysmon{,d} $RPM_BUILD_ROOT%{_bindir}
+install docs/sysmon.man $RPM_BUILD_ROOT%{_mandir}/man1/sysmon.1
+install docs/sysmon.conf.man $RPM_BUILD_ROOT%{_mandir}/man5/sysmon.conf.5
+install examples/sysmon.conf.dist $RPM_BUILD_ROOT%{_sysconfdir}/sysmon.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add sysmond
+%service sysmond restart
+
+%preun
+if [ "$1" = "0" ] ; then
+ %service sysmond stop
+ /sbin/chkconfig --del sysmond
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE WISHLIST docs/[A-Z]* docs/*.jpg docs/*.html examples
+%attr(755,root,root) %{_bindir}/*
+%attr(754,root,root) /etc/rc.d/init.d/sysmond
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sysmond
+%{_sysconfdir}/sysmon.conf
+%{_mandir}/man1/sysmon*
+%{_mandir}/man5/sysmon.conf*