root/morphix/trunk/clusterix/openmosix-tools-0.3.6-2/openmosix-tools.spec

Revision 2, 5.2 kB (checked in by nextime, 2 years ago)

Initial import, branching from morphix svn

Line 
1 Summary: The userland tools of the openMosix-system
2 Name: openmosix-tools
3 Version: 0.3.6
4 Release: 2
5 URL: http://openmosix.sourceforge.net/
6 License: GPL
7 Group: System Environment/Kernel
8 BuildRoot: %{_tmppath}/%{name}
9 Source0: %{name}-%{version}-%{release}.tar.gz
10
11
12 %description
13 openMosix is a Linux kernel extension for single-system image
14 clustering. This package contains the necessary user-land tools for an
15 openMosix cluster. It also contains openMosix versions of ps and top
16 (mps and mtop) that has an additional column which shows on what node
17 the processes are running.
18
19 %prep
20
21 %setup -n %{name}-%{version}-%{release}
22
23 %build
24 ./configure --bindir=/bin --sbindir=/sbin --includedir=/usr/include --mandir=/usr/share/man --libdir=/lib --with-kerneldir=/usr/src/linux-openmosix
25 make all
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29 make install DESTDIR=$RPM_BUILD_ROOT
30
31 %clean
32 rm -rf $RPM_BUILD_ROOT
33
34 %pre
35
36 %post
37 /sbin/ldconfig
38 chkconfig --add openmosix
39 if [ "$1" = "1" ] ; then  # first install
40    # Add mosrun-commands in /etc/inittab
41    perl -pi -e 's!:(/etc/rc.d/rc)!:/bin/mosrun -h $1!' /etc/inittab
42    perl -pi -e 's!:(/sbin/update)!:/bin/mosrun -h $1!' /etc/inittab
43    perl -pi -e 's!:(/sbin/shutdown)!:/bin/mosrun -h $1!' /etc/inittab
44    # Add nolock-command in /etc/init.d/sshd
45    perl -i -e 'local $/; $_ = <>; s!(start\(\)\s+{\n)!$1\ttest -f /proc/\$\$/lock && echo 0 \> /proc/\$\$/lock\n\n!; print' /etc/init.d/sshd
46    # Add mfs to slocate.cron
47    perl -pi -e 's!(/usr/bin/updatedb -f \"nfs)!$1,mfs!' /etc/cron.daily/slocate.cron
48    # Tell user to edit mosix.map
49    echo -e "\nEdit /etc/openmosix.map if you don't want to use the autodiscovery daemon.\n"
50 fi
51
52
53 %preun
54 if [ "$1" = "0" ] ; then # last uninstall
55    # Remove links to startup-script
56    chkconfig --del openmosix
57    # Remove mosrun-commands in /etc/inittab
58    perl -pi -e 's!:/bin/mosrun -h !:!' /etc/inittab
59    # Remove nolock-command in /etc/rc.d/init.d/sshd
60    perl -i -e 'local $/; $_ = <>; s!\ttest -f /proc/\$\$/lock && echo 0 \> /proc/\$\$/lock\n\n!!g; print' /etc/init.d/sshd
61    # Remove mfs from slocate.cron
62    perl -pi -e 's/mfs,//' /etc/cron.daily/slocate.cron
63 fi
64
65
66 %postun
67 /sbin/ldconfig
68
69
70 %files
71 %defattr(-,root,root)
72 %dir /etc/openmosix
73 %config /etc/openmosix.map
74 %config /etc/openmosix/openmosix.config
75 %config /etc/init.d/openmosix
76 %doc /usr/share/man/man1/*
77 /bin/*
78 /lib/*
79 /sbin/*
80 /usr/include/*
81
82 %changelog
83 * Thu Jul 8 2004 Aaron Peterson <aaron@aaronp.com>
84 - fixed mosmon compatability with 2.4.24 (Moreno Baricevic)
85
86 * Wed Jun 23 2004 Aaron Peterson <aaron@aaronp.com>
87 - updated to version 0.3.6 (Aaron Peterson)
88 - updated mosmon to version 2 (Moreno Baricevic)
89 - compiled against kernel 2.4.24-om1 (Aaron Peterson)
90 - small documentation fix (Aaron Peterson)
91 - fixed various small bugs in the build system (Aaron Peterson)
92 - changed init script to exit if not root (Aaron Peterson)
93 - changed make install to not overwrite openmosix.map if exists (Aaron Peterson)
94
95 * Sun Nov 30 2003 Mirko Caserta <mirko@mcaserta.com>
96 - minor bug fixes/improvements to mps/mtop, updated manpages (Moreno Baricevic)
97 - added handling for more oM files to mps (Moreno Baricevic)
98 - added "nmigs" info to mtop (Moreno Baricevic)
99 - added the new ompsinfo command plus man page (Moreno Baricevic)
100 - fixed a compile issue with regard to 2.4.22-2 (Vincent Hanquez)
101 - fixed path to mosrun in mosrun/*.sh input scripts (Vance Morgan)
102 - added the new ompsinfo command plus man page (Moreno Baricevic)
103 - added a --with-mosrundir option with a default of /bin (Peter Willis)
104 - fixed an install path issue in scripts/Makefile.am (Peter Willis)
105
106 * Sun Jun 22 2003 Mirko Caserta <mirko@mcaserta.com>
107 - Updated to version 0.3.4 (Mirko Caserta)
108 - added moslimit tool (Cristiano De Michele)
109 - minor fixes to the moslimit man page (Mirko Caserta)
110 - mosrun is now installed in /bin since it is used at boot time by
111   /etc/inittab (Cristiano De Michele)
112
113 * Tue Jun 12 2003 Mirko Caserta <mirko@mcaserta.com>
114 - Updated to version 0.3.3 (Mirko Caserta)
115 - minor bug fixes in autoconf stuff (Cristiano De Michele)
116 - fixed README file (Mirko Caserta)
117 - autoconfiscated the whole thing (Cristiano De Michele)
118 - special thanks to Jens Finkhoer for the hints about autoconf
119 - fixed wrong path to openmosix.config in init-script found
120   by Mirko Caserta (Matt Rechenburg)
121 - Makefiles cleanup, now supports DESTDIR and easy rpm-creation (Martin Høy)
122 - Added the mps package (mps and mtop commands) (Martin Høy)
123 - New startup-script which starts omdiscd in case of no or invalid
124   static map-file (Martin Høy)
125
126 * Fri Aug  9 2002 Martin Høy <martin.hoy@pvv.ntnu.no>
127 - Updated to version 0.2.4
128 - Disabled ALPHA-mode for autodiscovery
129
130 * Fri Jul  5 2002 Martin Høy <martin.hoy@pvv.ntnu.no>
131 - Updated to version 0.2.2
132
133 * Tue Apr 23 2002 Martin Høy <martin.hoy@pvv.ntnu.no>
134 - Updated to version 0.2.0
135
136 * Tue Mar 19 2002 Martin Høy <martin.hoy@pvv.ntnu.no>
137 - Moved mosrun to /bin and setpe to /sbin
138 - Changed init-file to touch /var/lock/subsys/openmosix, not mosix
139
140 * Mon Mar 18 2002 Martin Høy <martin.hoy@pvv.ntnu.no>
141 - Added scripts to run when installing/removing. The scripts changes these
142   files: /etc/inittab, /etc/rc.d/init.d/sshd and /etc/cron.daily/slocate.cron
143 - Added an empty mosix.map to the package
144
145 * Thu Mar 14 2002 Martin Høy <martin.hoy@pvv.ntnu.no>
146 - Initial build.
147
148
Note: See TracBrowser for help on using the browser.