# what the myplc rpm requires
%define name plewww
%define version 4.3
-%define taglevel 40
+%define taglevel 41
# no need to mention pldistro as this module differs in both distros
#%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
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
+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
%clean
/var/www/html/plekit
%changelog
+* Sat Jan 09 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLEWWW-4.3-41
+- disable drupal user registration (hard: patching the user module)
+
* Wed Dec 16 2009 Baris Metin <Talip-Baris.Metin@sophia.inria.fr> - PLEWWW-4.3-40
- * show error messages for update interface
- * 'Add Node' is admin only