# what the myplc rpm requires %define name plewww %define version 5.3 %define taglevel 0 # no need to mention pldistro as this module differs in both distros %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 BuildRequires: python # for patching drupal session code BuildRequires: ed Vendor: OneLab Packager: OneLab Distribution: PlanetLab %{version} URL: %{SCMURL} # We use set everywhere #Requires: httpd >= 2.0 Requires: php >= 5.0 Requires: postgresql >= 8.0 Requires: plcapi >= 5.2 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 "Compressing javascript files" make compress %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 jsmin.py --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 for module in user node; do # backup only once [ -f ${module}.module.drupal ] || cp ${module}.module ${module}.module.drupal # always update so a change in our file can make through cp -f /var/www/html/drupal-hacks/${module}.module /var/www/html/modules/${module}.module done popd # hack drupal's session handler for php8 pushd /var/www/html/includes bash /var/www/html/drupal-hacks/patch-session-inc.sh popd # create myslice.log and change its ownership mkdir -p /var/log/myslice touch /var/log/myslice/myslice.log chown apache:apache /var/log/myslice/myslice.log %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 * Sat Apr 30 2022 Thierry Parmentelat - plewww-5.3-0 - for php8 on fedora35 * Wed May 16 2018 Thierry - plewww-5.2-9 - not too clean patches for r2lab: - * search for a file named /etc/planetlab/php/person-registration.txt - that can override the text message for individuals registration - * do not list sites that have the disabled_registration tag set - when listing them for individuals registration - remove omf-friendly checkbox in slice-creation dialog - comment out {Min,Max}SpareServers settings in httpd config * Sun Jul 16 2017 Thierry Parmentelat - plewww-5.2-8 - a few niceties, thanks to Ciro * Sun Jul 10 2016 Thierry Parmentelat - plewww-5.2-7 - remove utf8_deode as per Thomas's suggestion * Fri Jun 26 2015 Thierry Parmentelat - plewww-5.2-6 - Offer the option to set a node in 'upgrade' mode - like reinstall but leaving slices intact * Wed Feb 18 2015 Thierry Parmentelat - plewww-5.2-5 - tweaks in node_downloads.php about memory size and compression scheme * Tue Dec 10 2013 Thierry Parmentelat - plewww-5.2-4 - googlemap widget: support for gmap api v3 + various cosmetic tweaks - can display site names with odd characters * Tue Jun 04 2013 Thierry Parmentelat - plewww-5.2-3 - typo in help message about initscripts * Tue Apr 23 2013 Thierry Parmentelat - plewww-5.2-2 - node page and person page show hrn in details * Thu Mar 07 2013 Thierry Parmentelat - plewww-5.2-1 - late fix of registration for plcapi-5.1-6 * Wed Dec 19 2012 Thierry Parmentelat - plewww-4.3-75 - add extra code to prevent confidentiality leaks - for vicci: $plc->hide_planetlab_block, that should not affect mainstream - return_url for add-person and remove-person - myslice.log now in /var/log/myslice/ (should have been cleaned up..) * Fri Aug 31 2012 Thierry Parmentelat - plewww-4.3-74 - add tags section on site and person pages * Mon Jul 09 2012 Thierry Parmentelat - plewww-4.3-73 - slightly tweak profiling points in slice.php * Mon May 07 2012 Thierry Parmentelat - plewww-4.3-72 - ships with new default images for PLC/PLE from planet-lab.eu * Mon Apr 16 2012 Thierry Parmentelat - plewww-4.3-71 - no change, just make sync for lxc-hosted tests * Fri Feb 24 2012 Thierry Parmentelat - plewww-4.3-70 - refactoring for tophat/columns - should take care of the irritating warning message about columns * Mon Nov 28 2011 Thierry Parmentelat - plewww-4.3-69 - do not display the 'node' role when confusing * Mon Nov 07 2011 Thierry Parmentelat - plewww-4.3-68 - support for setting nodes as reservable - rely more on previous state when deciding to open or not toggles in a view - remove statements for setting maximum memory usage, that sometimes * Mon Sep 26 2011 Thierry Parmentelat - plewww-4.3-67 - node page can edit interfaces even when no interface * Wed Aug 31 2011 Thierry Parmentelat - plewww-4.3-66 - uses a 2-week (!) session * Mon Jun 06 2011 Thierry Parmentelat - plewww-4.3-65 - minor/cosmetic fixes in the leases area * Mon Jun 06 2011 Thierry Parmentelat - plewww-4.3-64 - new jstorage to store stuff in the browser, start to use that to "remember" the open/closed tabs - uses MYSLICE_TOPHAT_AVAILABLE and MYSLICE_COMON_AVAILABLE to decide whether to add extra data - has a feature to 'test' pcu connection - only admins can add users to different sites. - remove dep. to outdated _gen_planetflow.php - rephrased (disabled, or pending registration) - + various fixes * Wed Mar 23 2011 Thierry Parmentelat - plewww-4.3-63 - fix display glitch exposed with dimes initscript * Tue Mar 22 2011 Thierry Parmentelat - plewww-4.3-62 - rename initscript_body into initscript_code * Fri Feb 18 2011 Thierry Parmentelat - plewww-4.3-61 - bugfix for the reservation interface * Thu Feb 17 2011 Thierry Parmentelat - plewww-4.3-60 - reservation page uses ajax - no need to reload after submit - reservation dialogs for offset in the future & # slots - fix the timezone in reservations (actually use php.ini) - reservation visible (and hardwired) in nodes view - have pulled prototype 1.7 but not in used yet * Thu Feb 03 2011 Thierry Parmentelat - plewww-4.3-59 - set both 'omf_control' and 'vref' for omf-friendly slices * Sun Jan 23 2011 Thierry Parmentelat - plewww-4.3-58 - display tags in alphabetic order in node view, tags section, the drop down menu * Thu Dec 09 2010 Thierry Parmentelat - plewww-4.3-57 - on-the-fly retrieval of data at comon & tophat (unused so far) - use accessors to store person's preference of columns - fix in toggle.js for the '?' button, node table layout tab - sort actions logging improved * Tue Dec 07 2010 Thierry Parmentelat - plewww-4.3-56 - keep people from disabling or deleting themselves - cannot become a disabled person - outline people without a role * Wed Dec 01 2010 Thierry Parmentelat - plewww-4.3-55 - needed for plcapi-5.0-19, i.e. tag permissions based on roles * Mon Oct 25 2010 Baris Metin - plewww-4.3-54 - tagging plewww for a new deployment * Fri Oct 15 2010 Thierry Parmentelat - plewww-4.3-53 - add a 'report a problem' link for the RebootNode button - new exp page nodes2.php with consistent selectable-columns layout as myslice - tweaks in the exp. myslice (slices.php) * Wed Oct 13 2010 Thierry Parmentelat - plewww-4.3-52 - new action reboot-node-with-pcu & reboot button on node page (not sure about the status of that though) - my_slice with adjustable set of columns in slices/slice2.php - fix for the 'site registration' page * Mon Sep 20 2010 Thierry Parmentelat - plewww-4.3-51 - show message about leases - leases tab first in nodes section - fix how reservable nodes show up * Mon Sep 06 2010 Thierry Parmentelat - plewww-4.3-50 - cosmetic, rendering of textareas was like password fields * Fri Sep 03 2010 Thierry Parmentelat - plewww-4.3-49 - bugfix in slice page, had wrong (null) expiration date - upgraded to raphael-1.5.2, don't minimize this lib - nicer layout for password fields as well - long tag values in the slice page (ssh keys..) get truncated, plain value show on hovering - marginally optimized slice page (2 GetNodes call down) - minimal profiling cap., and usable in the slice page with _GET[profiling]=1 - _GET[resa_slots] to set number of slots, _GET[resa_offset] to book in the future (in hours) - reservations can cope with a bit more slots - will need scrolling someday - omf text has hyperlinks to the tools * Wed Sep 01 2010 Thierry Parmentelat - plewww-4.3-48 - reservation section now effective - can set omf_control at slice-creation time - can set node as reservable at node-creation time - nicer text input fields + various tweaks * Tue Jul 06 2010 Baris Metin - plewww-4.3-47 - show nodegroups form to add new groups * Wed Jun 16 2010 Baris Metin - plewww-4.3-46 - just tagging plewww again to test module-tag on git * Tue Jun 15 2010 Baris Metin - PLEWWW-4.3-45 - encode strings properly in forms. * Wed Apr 28 2010 S.Çağlar Onur - PLEWWW-4.3-44 - Use readfile() function to reduce the memory footprint * Fri Apr 02 2010 Thierry Parmentelat - PLEWWW-4.3-43 - removed all deprecated functions for PHP-5.3 on fedora 12 * Tue Mar 16 2010 Talip Baris Metin - PLEWWW-4.3-42 - * exclude DNS from subnet checking - * redirect pi's and techs to register wizard. only display 'Insuffieient privs' error to users' - * allow longer abbreviated names - * don't let empty strings kill the server (postgresql and apache) * Sat Jan 09 2010 Thierry Parmentelat - PLEWWW-4.3-41 - disable drupal user registration (hard: patching the user module) * Wed Dec 16 2009 Baris Metin - PLEWWW-4.3-40 - * show error messages for update interface - * 'Add Node' is admin only - * add site selector for 'Add Node' * Thu Nov 26 2009 Thierry Parmentelat - PLEWWW-4.3-39 - new add-interface page : now has a checkbox for non-primary interfaces to chose between virtual or physical - this affects the settings of ifname and alias that were formerly set unconditionally - review the interface-checking javascript code - changed the interface to plekitform, method is now optional and part of an options hash * Tue Nov 17 2009 Thierry Parmentelat - PLEWWW-4.3-38 - can't use php objects for showing node status, this is too slow - fix interface add page * Mon Nov 16 2009 Thierry Parmentelat - PLEWWW-4.3-37 - consistency in the way nodes status is displayed in the node and slice areas - extra tags columns show up on the nodes page as well, tweaked in the process - roles management in person page fixed * Sun Nov 15 2009 Thierry Parmentelat - PLEWWW-4.3-36 - displaying node tags in the nodes page as well - table headers now can have a 'title' that shows up when hovering on the column header * Sat Nov 14 2009 Thierry Parmentelat - PLEWWW-4.3-35 - bugfix for the custom sortAlphaNumeric{Bottom,Top} sortable types * Fri Nov 13 2009 Thierry Parmentelat - PLEWWW-4.3-34 - extensible set of columns in the nodes area of the (my)slice page - nodegroups can be added/deleted/updated - tags management improved marginally * Tue Oct 20 2009 Thierry Parmentelat - PLEWWW-4.3-33 - fix pending sites page - was getting fooled by ext_consortium_id=None * Tue Oct 20 2009 Thierry Parmentelat - PLEWWW-4.3-32 - resetting tag as something went wrong when setting 31 * Wed Oct 07 2009 Thierry Parmentelat - PLEWWW-4.3-30 - nicer look for slice creation, (public) sites - users show with all their sites in the persons page * Fri Sep 18 2009 Thierry Parmentelat - PLEWWW-4.3-29 - reviewed registration pages for persons and sites * Fri Sep 11 2009 Thierry Parmentelat - PLEWWW-4.3-28 - increase memory limit in the nodes page * Thu Sep 10 2009 Thierry Parmentelat - PLEWWW-4.3-27 - fixes one typo * Mon Sep 07 2009 Thierry Parmentelat - PLEWWW-4.3-26 - minor/cosmetic * Mon Aug 10 2009 Stephen Soltesz - PLEWWW-4.3-25 - Add default Interface tags to extra interfaces. - Add clearer 'Add New PCU' link on node page. - Disable user registration for tech and PI roles. * Thu Jul 02 2009 Thierry Parmentelat - PLEWWW-4.3-24 - new 'controller' instantiation state available in add slice page * Thu Jul 02 2009 Baris Metin - PLEWWW-4.3-23 - exclude datepicler.js from jsmin - table sort function for Last Contact columns - drop options for generic boot images * Wed Jul 01 2009 Thierry Parmentelat - PLEWWW-4.3-22 - displays editable mac address for interfaces - properly sorts bandwidths - new 'controller' slice instantiation method - bugfix, division by zero when displaying a just-changed node * Tue Jun 16 2009 Thierry Parmentelat - PLEWWW-4.3-21 - bugfix with linetabs * Tue Jun 16 2009 Thierry Parmentelat - PLEWWW-4.3-20 - fix add interface from the node page * Mon Jun 15 2009 Stephen Soltesz - PLEWWW-4.3-19 - only add users that are enabled and not yet a member of the slice - fix to plc_peers - my sites, my nodes, my persons improvements for users with multiple sites - adds a script to minimize the java script files. * Sun Jun 07 2009 Thierry Parmentelat - PLEWWW-4.3-18 - planetlab module to show 'All My Sites Nodes' link rather than 'My Site Nodes' if several sites * Sun Jun 07 2009 Thierry Parmentelat - PLEWWW-4.3-17 - first draft for pcu-handling features - lighter contrat for PLE/PLC toggles - as many 'my site'-like links as the user has sites * Wed Jun 03 2009 Thierry Parmentelat - PLEWWW-4.3-16 - fix for whitelisted nodes - now links to the node register wizard - can enable sites - various other minor fixes, like broken planetlab.module for techs, and login link * Sat May 30 2009 Thierry Parmentelat - PLEWWW-4.3-15 - plekittable knows how to turn off sort-on-load, and the admin users pages do - + various cosmetic fixes * Tue May 26 2009 Thierry Parmentelat - PLEWWW-4.3-14 - a few minor improvements pushed on PLE * 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.