4 %define url $URL: svn+ssh://thierry@svn.planet-lab.org/svn/WWW/trunk/PLCWWW.spec $
6 %define name nodeconfig
10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
12 Summary: PlanetLab Central (PLC) nodes configuration files generator
17 Group: System Environment/Daemons
18 Source0: %{name}-%{version}.tar.gz
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
20 # cannot do this as of f12
24 Packager: PlanetLab Central <support@planet-lab.org>
25 Distribution: PlanetLab %{plrelease}
26 URL: %(echo %{url} | cut -d ' ' -f 2)
28 # We use set everywhere
30 Requires: PLCAPI >= 4.3
31 # need the apache user at install-time
36 The nodeconfig package provides various php scripts that are used to
37 generate configuration files for nodes. It is taken out of the PLCWWW
38 module because it has crucial impact on nodes, while PLCWWW can and
39 does have several implementations at this moment. For historical
40 reasons these scripts get installed in /var/www/html/PlanetLabConf.
48 KEXCLUDE="exclude=$(../../build/getkexcludes.sh)"
50 # expand list of kexcludes
51 for filein in $(find . -name '*.in') ; do
52 file=$(echo $filein | sed -e "s,\.in$,,")
53 sed -e "s,@KEXCLUDE@,$KEXCLUDE,g" $filein > $file
56 # scan fcdistros and catenate all repos in 'stock.repo' so db-config can be distro-independant
58 for fcdistro in $(ls); do
59 [ -d $fcdistro ] || continue
60 pushd $fcdistro/yum.myplc.d
62 cat *.repo > stock.repo
69 rm -rf $RPM_BUILD_ROOT
73 echo "* nodeconfig: Installing PlanetLabConf pages"
75 for dir in boot PlanetLabConf PLCAPI ; do
76 mkdir -p $RPM_BUILD_ROOT/var/www/html/$dir
77 rsync -a --exclude .svn ./$dir/ $RPM_BUILD_ROOT/var/www/html/$dir/
80 # the yum area -- se db-config
81 # expose (fixed) myplc.repo.php as https://<plc>/yum/myplc.repo.php
82 install -D -m 644 ./yum/myplc.repo.php $RPM_BUILD_ROOT/var/www/html/yum/myplc.repo.php
83 # expose the fcdistro-dependant yum.conf as https://<plc>/yum/yum.conf
84 install -D -m 644 ./yum/%{distroname}/yum.conf $RPM_BUILD_ROOT/var/www/html/yum/yum.conf
85 # expose the (fcdistro-dependant) stock.repo as https://<plc>/yum/stock.repo
86 install -D -m 644 ./yum/%{distroname}/yum.myplc.d/stock.repo $RPM_BUILD_ROOT/var/www/html/yum/stock.repo
91 rm -rf $RPM_BUILD_ROOT
94 # the boot manager upload area
96 chown apache:apache /var/log/bm
100 %defattr(-,root,root,-)
102 /var/www/html/PlanetLabConf
107 * Sun Nov 22 2009 Marc Fiuczynski <mef@cs.princeton.edu> - nodeconfig-4.3-6
108 - For all MyPLC nodes deployed at Polish Telecom (PLC, PLE and CoBlitz),
109 - use the TP local NTP servers.
111 * Mon Sep 07 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - nodeconfig-4.3-5
112 - new script for updating the exentions set
114 - cleanup useless scripts
116 * Sat Jul 04 2009 Stephen Soltesz <soltesz@cs.princeton.edu> - nodeconfig-4.3-4
117 - add two views to the PLC config data, limited and unlimited.
118 - unlimited view reports all values. Requires the 'infrastructure=1' tag and
119 - that the call originates from the node.
121 * Fri May 15 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - nodeconfig-4.3-3
122 - changes to sysctl.conf for co* relating to tcp window scaling
124 * Tue Mar 24 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - nodeconfig-4.3-2
126 - new script upload-bmlog.php
127 - attempts to ship decent yum configs for stock repos to nodes
129 - attempts to be 4.2 compatible
131 * Wed Sep 10 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - nodeconfig-4.3-1
132 - reflects new names from the data model
134 * Tue Apr 22 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - nodeconfig-4.2-4
135 - keys.php know about monitor
136 - new sudoers.php script
138 * Thu Apr 03 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - nodeconfig-4.2-2 nodeconfig-4.2-3
139 - Added support for centralized PlanetFlow.
141 * Wed Mar 26 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - nodeconfig-4.2-1 nodeconfig-4.2-2
142 - integrated /var/www/html/{boot,PLCAPI} from PLCWWW
143 - former content has moved down into PlanetLabConf
146 %define module_current_branch 4.2