6 %define name NodeManager
10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
12 Summary: PlanetLab Node Manager
17 Group: System Environment/Daemons
18 URL: %(echo %{url} | cut -d ' ' -f 2)
19 Source0: %{name}-%{version}.tar.gz
20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
23 Packager: PlanetLab Central <support@planet-lab.org>
24 Distribution: PlanetLab %{plrelease}
25 URL: %(echo %{url} | cut -d ' ' -f 2)
28 Obsoletes: sidewinder, sidewinder-common
31 Requires: vserver-reference
32 Requires: util-vserver >= 0.30.208-17
35 Requires: util-vserver-python
43 # Uses function decorators
44 Requires: python >= 2.4
47 The PlanetLab Node Manager manages all aspects of PlanetLab node and
48 slice management once the node has been initialized and configured by
49 the Boot Manager. It periodically contacts its management authority
50 for configuration updates. It provides an XML-RPC API for performing
51 local operations on slices.
57 %{__make} %{?_smp_mflags}
60 rm -rf $RPM_BUILD_ROOT
61 %{__make} %{?_smp_mflags} install DESTDIR="$RPM_BUILD_ROOT"
63 install -D -m 755 conf_files.init $RPM_BUILD_ROOT/%{_initrddir}/conf_files
64 install -D -m 755 nm.init $RPM_BUILD_ROOT/%{_initrddir}/nm
65 install -D -m 644 nm.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/nm
68 chkconfig --add conf_files
69 chkconfig conf_files on
72 if [ "$PL_BOOTCD" != "1" ] ; then
78 # 0 = erase, 1 = upgrade
79 if [ $1 -eq 0 ] ; then
82 chkconfig conf_files off
83 chkconfig --del conf_files
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(-,root,root,-)
92 %dir %{_datadir}/NodeManager
93 %{_datadir}/NodeManager/*
94 %{_bindir}/forward_api_calls
96 %{_initrddir}/conf_files
97 %{_sysconfdir}/logrotate.d/nm
100 * Wed Oct 03 2007 Faiyaz Ahmed <faiyaza@cs.princeton.edu> .
103 * Mon Nov 13 2006 Mark Huang <mlhuang@paris.CS.Princeton.EDU> -