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
35 rm -rf $RPM_BUILD_ROOT
39 # Install host startup script and configuration file
40 install -D -m 755 host.init $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/plc
41 install -D -m 644 plc.sysconfig $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/plc
43 # Create convenient symlink
44 install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}
45 ln -sf /plc/data/etc/planetlab $RPM_BUILD_ROOT/%{_sysconfdir}/planetlab
47 # Install root filesystem
48 install -d -m 755 $RPM_BUILD_ROOT/plc/root
49 install -D -m 644 root.img $RPM_BUILD_ROOT/plc/root.img
51 # Install data directory
52 find data | cpio -p -d -u $RPM_BUILD_ROOT/plc/
57 rm -rf $RPM_BUILD_ROOT
60 if [ -n "$SUDO_USER" ] ; then
61 # Allow user to delete the build directory
63 # Some temporary cdroot files like /var/empty/sshd and
64 # /usr/bin/sudo get created with non-readable permissions.
65 find . -not -perm +0600 -exec chmod u+rw {} \;
66 # Allow user to delete the built RPM(s)
67 chown -R $SUDO_USER %{_rpmdir}/%{_arch}
71 if [ -x %{_sysconfdir}/init.d/plc ] ; then
80 # 0 = erase, 1 = upgrade
81 if [ $1 -eq 0 ] ; then
88 %defattr(-,root,root,-)
89 # Host startup script and configuration file
90 %{_sysconfdir}/init.d/plc
91 %{_sysconfdir}/sysconfig/plc
93 # Symlink to /etc/planetlab within data directory
94 %{_sysconfdir}/planetlab
102 %config(noreplace) /plc/data/*
105 * Wed Apr 5 2006 Mark Huang <mlhuang@CS.Princeton.EDU> - 0.2-1
106 - Basic functionality complete. Consolidate into a single package
109 * Fri Mar 17 2006 Mark Huang <mlhuang@CS.Princeton.EDU> - 0.1-1