1 %define nodefamily %{pldistro}-%{distroname}-%{_arch}
2 %define extensionfamily %{distroname}-%{_arch}
4 %define name nodeimage-%{nodefamily}
8 # pldistro already in the rpm name
9 #%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
10 %define release %{taglevel}%{?date:.%{date}}
12 # we don't really need the standard postinstall process from rpm that
13 # strips files and byte-compiles python files. all files in this
14 # package are comming from other rpm files and they've already went
15 # through this post install processing. - baris
16 %define __os_install_post %{nil}
19 Packager: PlanetLab Central <support@planet-lab.org>
20 Distribution: PlanetLab %{plrelease}
23 Summary: The PlanetLab nodeimage filesystems for %{nodefamily}
28 Group: System Environment/Base
29 Source0: %{name}-%{version}.tar.gz
30 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
31 # other archs must be able to install this
34 Requires: tar, gnupg, sharutils, bzip2
35 # this is for plc.d/packages that uses ed for hacking yumgroups.xml
38 # 5.1 now uses new name nodeimage
39 Obsoletes: bootstrapfs-%{nodefamily}
40 # 5.0 now has 3-fold nodefamily
41 %define obsolete_nodefamily %{pldistro}-%{_arch}
42 Obsoletes: bootstrapfs-%{obsolete_nodefamily}
45 %define debug_package %{nil}
49 The PlanetLab nodeimage filesystem is downloaded by the
50 BootManager to reinstall a node with a new filesystem.
53 Summary: The (uncompressed) PlanetLab nodeimage filesystem for %{nodefamily}
54 Group: System Environment/Base
56 This package provides the same functions as %{name} but with uncompressed tarball for faster tests.
59 Summary: the MyPLC-side utilities for tweaking nodes yum configs
60 Group: System Environment/Base
61 %description -n nodeyum
62 Utility scripts for configuring node updates. This package is designed
70 ############################## node-side
72 ./build.sh %{pldistro}
73 for tar in *.tar *.tar.bz2; do
74 echo "* Computing SHA1 checksum for $tar"
75 sha1sum $tar > $tar.sha1sum
76 chmod 444 $tar.sha1sum
80 ############################## server-side
81 # ship all fcdistros for multi-fcdistros myplc, and let the php scripts do the right thing
82 pushd nodeimage/nodeconfig/yum
83 # scan fcdistros and catenate all repos in 'stock.repo' so db-config can be distro-independant
84 for fcdistro in $(ls); do
85 [ -d $fcdistro ] || continue
86 # get packages to exclude on nodes for that fcdistro/pldistro
87 NODEYUMEXCLUDE="exclude=$(../../../build/nodeyumexclude.sh $fcdistro %{pldistro})"
88 pushd $fcdistro/yum.myplc.d
89 echo "* Handling NODEYUMEXCLUDE in yum repo for $fcdistro/$pldistro ($NODEYUMEXCLUDE)"
90 for filein in $(find . -name '*.in') ; do
91 file=$(echo $filein | sed -e "s,\.in$,,")
92 sed -e "s,@NODEYUMEXCLUDE@,$NODEYUMEXCLUDE,g" $filein > $file
95 cat *.repo > stock.repo
101 rm -rf $RPM_BUILD_ROOT
103 ############################## node-side
105 for out in *.tar *.tar.bz2 ; do
106 echo "* Installing $out"
107 install -D -m 644 $out $RPM_BUILD_ROOT/var/www/html/boot/$out
109 for out in *.sha1sum; do
110 echo "* Installing $out"
111 install -D -m 444 $out $RPM_BUILD_ROOT/var/www/html/boot/$out
115 ############################## server-side
116 # ship all fcdistros for multi-fcdistros myplc, and let the php scripts do the right thing
118 echo "* Installing MyPLC-side nodes yum config utilities (support for multi-fcdistro)"
119 mkdir -p $RPM_BUILD_ROOT/var/www/html/yum/
120 rsync -av ./nodeconfig/yum/ $RPM_BUILD_ROOT/var/www/html/yum/
122 # Install initscripts
123 echo "* Installing plc.d initscripts"
124 find plc.d | cpio -p -d -u ${RPM_BUILD_ROOT}/etc/
125 chmod 755 ${RPM_BUILD_ROOT}/etc/plc.d/*
127 echo "* Installing db-config.d files"
128 mkdir -p ${RPM_BUILD_ROOT}/etc/planetlab/db-config.d
129 cp db-config.d/* ${RPM_BUILD_ROOT}/etc/planetlab/db-config.d
130 chmod 444 ${RPM_BUILD_ROOT}/etc/planetlab/db-config.d/*
134 rm -rf $RPM_BUILD_ROOT
138 %defattr(-,root,root,-)
139 /var/www/html/boot/bootstrapfs*.tar.bz2
140 /var/www/html/boot/bootstrapfs*.tar.bz2.sha1sum
143 %defattr(-,root,root,-)
144 /var/www/html/boot/bootstrapfs*.tar
145 /var/www/html/boot/bootstrapfs*.tar.sha1sum
148 %defattr(-,root,root,-)
150 /etc/planetlab/db-config.d
154 * Thu Feb 16 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootstrapfs-2.0-14
155 - changes needed for build with yumexcludes defined in a separate pkgs file
157 * Wed Aug 31 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootstrapfs-2.0-13
158 - plc.d/packages: rewrote comments about some corner cases where it fails
159 - plc.d/packages: marginally more robust
161 * Fri Jun 10 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootstrapfs-2.0-12
162 - minor tweak in plc.d/packages
164 * Mon Jun 06 2011 Baris Metin <bmetin@verivue.com> - bootstrapfs-2.0-11
167 * Thu Feb 17 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootstrapfs-2.0-10
168 - bugfix for multi-flavour deployments
170 * Fri Feb 04 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootstrapfs-2.0-9
171 - for multi-flavours : 'packages' step in plc.d now handles vserver links and related hacks in yumgroups
173 * Thu Jan 27 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootstrapfs-2.0-8
174 - no semantic change - attempt to speed up build
176 * Sun Jan 23 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootstrapfs-2.0-7
177 - yum repo template for f14 nodes
178 - tweaks the way /etc/plc.d/packages works
180 * Mon Jul 05 2010 Baris Metin <Talip-Baris.Metin@sophia.inria.fr> - BootstrapFS-2.0-6
182 - module name changes
184 * Tue Apr 27 2010 Talip Baris Metin <Talip-Baris.Metin@sophia.inria.fr> - BootstrapFS-2.0-5
185 - support different flavours of vservers on nodes
187 * Mon Apr 12 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-2.0-4
188 - fix unmatched $ in URL svn keywords
190 * Fri Apr 02 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-2.0-3
191 - choice between various pldistros is not made at build time, but at run time
192 - relies on GetNodeFlavour to expose the node's fcdistro - requires PLCAPI-5.0-5
193 - in addition, the baseurl for the myplc repo is http:// and not https:// anymore
194 - the https method does not work on fedora 12, and GPG is used below anyway
196 * Fri Mar 12 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-2.0-2
197 - new slicerepo package for exposing stuff to slivers
199 * Fri Jan 29 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-2.0-1
200 - first working version of 5.0:
201 - pld.c/, db-config.d/ and nodeconfig/ scripts should now sit in the module they belong to
202 - nodefailiy is 3-fold with pldistro-fcdistro-arch
203 - new module nodeyum; first draft has the php scripts and conf_files for tweaking nodes yum config
205 * Mon Jan 04 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-11
206 - for building on fedora12
208 * Thu Oct 22 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-10
209 - cosmetic change in message at build-time
211 * Fri Oct 09 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-9
212 - can use groups in the pkgs file with +++ for space
214 * Tue Apr 07 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-8
215 - bugfix for when a .post script is not needed
217 * Tue Apr 07 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-7
218 - search post-install scripts (.post) in path (distro, then planetlab)
219 - mostly useful for externally-defined pldistros
221 * Thu Jan 08 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-6
222 - fix build bug when dealing with extensions
224 * Thu Dec 04 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-5
225 - optional package bootstrapfs-<pldiftr>-<arch>-plain comes with uncompressed images for faster tests
227 * Fri Nov 14 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-4
228 - cosmetic changes in build: displays duration, and shows up in summary
230 * Mon Sep 01 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-3
231 - Do not overwrite yumgroups.xml upon updates of noderepo
233 * Thu Jul 03 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-2
234 - uses the right yum.conf when building images
236 * Mon May 05 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-1.0-1
237 - rpm release tag does not need pldistro as it is already part of the rpm name
239 * Wed Mar 26 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootstrapFS-0.1-2 BootstrapFS-1.0-0
240 - naming scheme changed, tarball name now contains ''nodefamily'' as <pldistro>-<arch>
241 - new package named 'noderepo' allows to ship the full set of node rpms to another (arch) myplc
243 * Fri Jan 18 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootstrapfs-0.1-1 bootstrapfs-0.1-2
244 - search more carefully for alternate pkgs files
245 - handling of sysconfig/crontab and creation of site_admin reviewed
246 - (this tag is set with module-tag.py)
248 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -
251 %define module_current_branch 1.0