2 Packager: PlanetLab Central <support@planet-lab.org>
3 Distribution: PlanetLab 3.0
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
27 Summary: MyPLC installation based on Fedora Core 2
28 Group: Applications/Systems
31 This package installs a MyPLC installation based on Fedora Core 2.
38 ./build.sh -r 2 -d %{_datadir}
39 # Not until we can get the build server to run Fedora Core 4 or an
40 # updated version of yum.
41 #./build.sh -r 4 -d %{_datadir}
44 # If run under sudo, allow user to delete the build directory
45 if [ -n "$SUDO_USER" ] ; then
47 # Some temporary chroot files like /var/empty/sshd and
48 # /usr/bin/sudo get created with non-readable permissions.
49 find . -not -perm +0600 -exec chmod u+rw {} \;
53 rm -rf $RPM_BUILD_ROOT
56 install -D -m 755 host.init $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/plc
57 install -D -m 644 plc.sysconfig $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/plc
58 #for releasever in 2 4 ; do
59 for releasever in 2 ; do
60 install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/plc/fc$releasever
61 install -D -m 644 fc$releasever.img $RPM_BUILD_ROOT/%{_datadir}/plc/fc$releasever.img
62 find data$releasever | cpio -p -d -u $RPM_BUILD_ROOT/%{_datadir}/plc/
67 rm -rf $RPM_BUILD_ROOT
69 # If run under sudo, allow user to delete the built RPM
70 if [ -n "$SUDO_USER" ] ; then
71 chown $SUDO_USER %{_rpmdir}/%{_arch}/%{name}-%{version}-%{release}.%{_arch}.rpm
79 # 0 = erase, 1 = upgrade
80 if [ $1 -eq 0 ] ; then
86 %defattr(-,root,root,-)
87 %{_sysconfdir}/init.d/plc
88 %config(noreplace) %{_sysconfdir}/sysconfig/plc
91 %defattr(-,root,root,-)
92 %dir %{_datadir}/plc/fc2
93 %{_datadir}/plc/fc2.img
94 %config(noreplace) %{_datadir}/plc/data2
97 * Fri Mar 17 2006 Mark Huang <mlhuang@CS.Princeton.EDU> - 0.1-1