2 Packager: PlanetLab Central <support@planet-lab.org>
3 Distribution: PlanetLab 3.3
4 URL: http://cvs.planet-lab.org/cvs/myplc
6 Summary: PlanetLab Central (PLC) Portable Installation
9 Release: 1%{?pldistro:.%{pldistro}}%{?date:.%{date}}
11 Group: Applications/Systems
12 Source0: %{name}-%{version}.tar.gz
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15 %define debug_package %{nil}
18 MyPLC is a complete PlanetLab Central (PLC) portable installation
19 contained within a chroot jail. The default installation consists of a
20 web server, an XML-RPC API server, a boot server, and a database
21 server: the core components of PLC. The installation may be customized
22 through a graphical interface. All PLC services are started up and
23 shut down through a single System V init script installed in the host
32 # Not until we can get the build server to run Fedora Core 4 or an
33 # updated version of yum.
38 rm -rf $RPM_BUILD_ROOT
42 # Install host startup script and configuration file
43 install -D -m 755 host.init $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/plc
44 install -D -m 644 plc.sysconfig $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/plc
46 # Create convenient symlink
47 install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}
48 ln -sf /plc/data/etc/planetlab $RPM_BUILD_ROOT/%{_sysconfdir}/planetlab
50 # Install root filesystem
51 install -d -m 755 $RPM_BUILD_ROOT/plc/root
52 install -D -m 644 root.img $RPM_BUILD_ROOT/plc/root.img
54 # Install data directory
55 find data | cpio -p -d -u $RPM_BUILD_ROOT/plc/
60 rm -rf $RPM_BUILD_ROOT
63 if [ -n "$SUDO_USER" ] ; then
64 # Allow user to delete the build directory
66 # Some temporary cdroot files like /var/empty/sshd and
67 # /usr/bin/sudo get created with non-readable permissions.
68 find . -not -perm +0600 -exec chmod u+rw {} \;
69 # Allow user to delete the built RPM(s)
70 chown -R $SUDO_USER %{_rpmdir}/%{_arch}
78 # 0 = erase, 1 = upgrade
79 if [ $1 -eq 0 ] ; then
85 %defattr(-,root,root,-)
86 # Host startup script and configuration file
87 %{_sysconfdir}/init.d/plc
88 %{_sysconfdir}/sysconfig/plc
90 # Symlink to /etc/planetlab within data directory
91 %{_sysconfdir}/planetlab
98 %dir %config(noreplace) /plc/data
101 * Wed Apr 5 2006 Mark Huang <mlhuang@CS.Princeton.EDU> - 0.2-1
102 - Basic functionality complete. Consolidate into a single package
105 * Fri Mar 17 2006 Mark Huang <mlhuang@CS.Princeton.EDU> - 0.1-1