File: SPEC

package info (click to toggle)
jmon 0.3-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 108 kB
  • ctags: 76
  • sloc: ansic: 569; sh: 77; makefile: 76
file content (50 lines) | stat: -rw-r--r-- 976 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
%define ver       0.3
%define rel       1
%define prefix    /usr

Summary: jMon Distributed Resource Monitor.
Name: jmon
Version: %ver
Release: %rel
Copyright: GPL
Group: Applications/System
Source: jmon-%{ver}.tar.gz
BuildRoot: /tmp/jmon
Packager: Jaco Breitenbach <jjb@dsp.sun.ac.za>
Docdir: %{prefix}/doc

%description
A distributed resource monitor, allowing for the easy monitoring of multiple
machines in a large network.

%prep
%setup

%build
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTROOT=$RPM_BUILD_ROOT install
make DESTROOT=$RPM_BUILD_ROOT install-man
/bin/mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/
cp jmond.init $RPM_BUILD_ROOT/etc/rc.d/init.d/jmond
chmod 755 $RPM_BUILD_ROOT/etc/rc.d/init.d/jmond

%post
/sbin/chkconfig --add jmond
/etc/rc.d/init.d/jmond restart

%preun
/etc/rc.d/init.d/jmond stop
/sbin/chkconfig --del jmond

%files
%{prefix}/bin/*
%{prefix}/sbin/*
%{prefix}/man/man1/*
%{prefix}/man/man8/*
/etc/rc.d/init.d/*

%doc COPYING README jmonrc