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