# # $Id$ # # what the myplc rpm requires %define name plewww %define version 4.3 %define taglevel 13 # no need to mention pldistro as this module differs in both distros #%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} %define release %{taglevel}%{?date:.%{date}} Summary: PlanetLab Europe (PLC) Web Pages Name: %{name} Version: %{version} Release: %{release} License: PlanetLab Group: Applications/Systems Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch Vendor: OneLab Packager: OneLab Distribution: PlanetLab %{version} URL: http://svn.one-lab.org/svn/new_plc_www/ # We use set everywhere #Requires: httpd >= 2.0 Requires: php >= 5.0 Requires: postgresql >= 8.0 Requires: PLCAPI >= 4.3 Requires: drupal = 4.7 Requires: plewww-plekit # this is what MyPLC requires Provides: PLCWWW # on centos5, when rebuilding the full monty, we get: # Error: Missing Dependency: perl(GD) is needed by package PLCWWW # and the perl-GD rpm is nowhere to be found AutoReqProv: no %package plekit Summary: Utilities used by the plewww pages Group: Applications/Systems %description The plewww package is made of the web pages that run on top of the PLCAPI component to provide the Web Interface to MyPLC users. %description plekit This subset of the plewww package has general purpose features for the benefit of other PL-related UI components. %prep %setup -q %build echo "There is no build stage for this component" echo "All files just need to be installed as is from the codebase" %install rm -rf $RPM_BUILD_ROOT # # plewww # xxx : uninstall should undo this # echo "* PLEWWW: Installing web pages" mkdir -p $RPM_BUILD_ROOT/var/www/html # exclude codebase just in case rsync -a --exclude Makefile --exclude httpd --exclude \*.spec --exclude .svn ./ $RPM_BUILD_ROOT/var/www/html/ echo "* PLEWWW: Installing conf files for httpd" mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d install -D -m 644 httpd/*.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/ %post # attempt to perform most of the drupal post-install stuff - assuming version 6.x drupal_settings_dir=/var/www/html/sites/default if [ ! -d $drupal_settings_dir ] ; then echo "Could not find directory $drupal_settings_dir" echo "This suggests that you do not have a planetlab-custom drupal installed" exit 1 fi pushd $drupal_settings_dir # tune $db_url if [ ! -f settings.php.drupal ] ; then cp settings.php settings.php.drupal sed -e 's|^[ \t]*\$db_url.*|require_once("plc_config.php");$db_url="pgsql://" . PLC_DB_USER . ":" . PLC_DB_PASSWORD . "@" . PLC_DB_HOST . ":" . PLC_DB_PORT . "/drupal";|' \ settings.php.drupal > settings.php fi popd # append our own database creation hacks to the drupal database schema pushd /var/www/html/database if [ ! -f database.pgsql.drupal ] ; then cp database.pgsql database.pgsql.drupal cat database.pgsql.drupal ../drupal-hacks/database.pgsql > database.pgsql fi popd # hack the welcome page for MyPLC pushd /var/www/html/modules if [ ! -f node.module.drupal ] ; then cp node.module node.module.drupal [ -f /var/www/html/drupal-hacks/node.module ] && cp -f /var/www/html/drupal-hacks/node.module /var/www/html/modules/node.module fi popd %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) /var/www/html/modules /var/www/html/planetlab /var/www/html/googlemap /var/www/html/drupal-hacks /etc/httpd/conf.d %files plekit /var/www/html/plekit %changelog * Fri May 15 2009 Thierry Parmentelat - PLEWWW-4.3-13 - fix for sites that were displayed as not public - improvements to the python interface to sortable tables for monitor * Fri May 15 2009 Thierry Parmentelat - PLEWWW-4.3-12 - various improvements * Wed May 06 2009 Thierry Parmentelat - PLEWWW-4.3-11 - sliver page now correctly shows sliver tags - support for download-node-usb-partition and various other improvements * Tue Apr 28 2009 Thierry Parmentelat - PLEWWW-4.3-10 - a few tweaks and typos fixed on PLE * Tue Apr 21 2009 Thierry Parmentelat - PLEWWW-4.3-9 - slice_add & node_download dialogs use plekit - slice_add can add people in the slice - various improvements after rollout on PLE * Fri Apr 17 2009 Thierry Parmentelat - PLEWWW-4.3-8 - cosmetic fixes to be in 4.3-rc2 - also a first (unpackaged) draft of the plekit table in python * Tue Apr 14 2009 Thierry Parmentelat - PLEWWW-4.3-7 - search in tables more robust * Thu Apr 09 2009 Baris Metin - PLEWWW-4.3-6 - performance improvements * Thu Apr 09 2009 Thierry Parmentelat - PLEWWW-4.3-5 - detect expired session and redirect to the login page * Thu Apr 09 2009 Thierry Parmentelat - PLEWWW-4.3-4 - improve browser health - was using too many cycles * Tue Apr 07 2009 Thierry Parmentelat - PLEWWW-4.3-3 - more consistency between views, and cosmetic changes * Mon Mar 30 2009 Thierry Parmentelat - PLEWWW-4.3-2 - area for managing slice tags * Tue Mar 24 2009 Thierry Parmentelat - PLEWWW-4.3-1 - first checkpoint tag for PLEWWW - mostly functionally complete, probably a lot of tweaks still needed * Fri Apr 25 2008 Thierry Parmentelat - PLCWWW-onelab.4.2-11 - everyone is welcome to add nodes * Thu Apr 24 2008 Thierry Parmentelat - PLCWWW-onelab.4.2-10 - node-specific bootcd images to include arch in their name * Wed Apr 23 2008 Thierry Parmentelat - PLCWWW-onelab.4.2-9 - remove explicit dep to bootcd as the rpm name has changed * Mon Mar 03 2008 Thierry Parmentelat - PLCWWW-4.2-7 PLCWWW-4.2-8 - noarch * Fri Feb 15 2008 Thierry Parmentelat - PLCWWW-4.2-6 PLCWWW-4.2-7 - should fix yum.conf on nodes after install * Thu Feb 14 2008 Thierry Parmentelat - PLCWWW-4.2-5 PLCWWW-4.2-6 - uses different path for getbootmedium results - should be safer * Sun Feb 10 2008 Thierry Parmentelat - PLCWWW-4.2-4 PLCWWW-4.2-5 - comon icon replaced with the one from the comon website * Fri Feb 08 2008 Thierry Parmentelat - PLCWWW-4.2-3 PLCWWW-4.2-4 - displays rpms in the about page * Thu Feb 07 2008 Thierry Parmentelat - PLCWWW-4.2-2 PLCWWW-4.2-3 - safer, reference-less, way to implement layout mechnism - see - settings.php for details - setting types properly displayed according to user's role - setting deletion : fixed (was still using code from slice attribute) - more comon buttons : in the nodes and peers index pages - comon_button knows about peer_id * Tue Jan 22 2008 Thierry Parmentelat - PLCWWW-4.2-1 PLCWWW-4.2-2 - merged the PlanetLabConf from Princeton's tag PLCWWW-4.1-1 * Mon Apr 16 2007 Thierry Parmentelat - - Initial build.