[csw-devel] SF.net SVN: gar:[5002] csw/mgar/pkg/drupal/trunk

valholla at users.sourceforge.net valholla at users.sourceforge.net
Thu May 21 20:19:10 CEST 2009


Revision: 5002
          http://gar.svn.sourceforge.net/gar/?rev=5002&view=rev
Author:   valholla
Date:     2009-05-21 18:19:09 +0000 (Thu, 21 May 2009)

Log Message:
-----------
post install tweaks

Modified Paths:
--------------
    csw/mgar/pkg/drupal/trunk/Makefile
    csw/mgar/pkg/drupal/trunk/files/README.CSW

Modified: csw/mgar/pkg/drupal/trunk/Makefile
===================================================================
--- csw/mgar/pkg/drupal/trunk/Makefile	2009-05-21 17:24:53 UTC (rev 5001)
+++ csw/mgar/pkg/drupal/trunk/Makefile	2009-05-21 18:19:09 UTC (rev 5002)
@@ -51,7 +51,7 @@
 	ginstall -d $(DESTDIR)$(prefix)/apache2/etc/extra
 	ginstall -d $(DESTDIR)$(docdir)/drupal
 	cd $(WORKSRC); /usr/bin/pax -rw -v * $(DESTDIR)$(DRUPAL_INST_DIR)
-	gmv $(DESTDIR)$(SETTINGS_DIR)/default.settings.php $(DESTDIR)$(SETTINGS_DIR)/settings.php.CSW
+	gcp $(DESTDIR)$(SETTINGS_DIR)/default.settings.php $(DESTDIR)$(SETTINGS_DIR)/settings.php.CSW
 	gcp $(DOWNLOADDIR)/httpd-drupal.conf.CSW $(DESTDIR)$(prefix)/apache2/etc/extra
 	gcp $(DOWNLOADDIR)/README.CSW $(DESTDIR)$(docdir)/drupal/
 	gmv $(DESTDIR)$(DRUPAL_BASE_INSTDIR)/$(GARNAME)/$(GARVERSION)/LICENSE.txt $(DESTDIR)$(docdir)/drupal/license
@@ -81,7 +81,6 @@
 if [ -z $${AP2GRP} ]; then
 	AP2GRP=nobody
 fi
-chown -R $${AP2USR}:$${AP2GRP} $(DRUPAL_BASE_INSTDIR)/$(GARNAME)
 
 if [ -f $(SETTINGS_DIR)/settings.php ]; then
     echo "***** $(SETTINGS_DIR)/settings.php Found ***** "
@@ -109,6 +108,7 @@
 Include etc/extra/httpd-drupal.conf
 END
 fi
+chown -R $${AP2USR}:$${AP2GRP} $(DRUPAL_BASE_INSTDIR)/$(GARNAME)
 cat << _EOM_
 
 *********************************************************************

Modified: csw/mgar/pkg/drupal/trunk/files/README.CSW
===================================================================
--- csw/mgar/pkg/drupal/trunk/files/README.CSW	2009-05-21 17:24:53 UTC (rev 5001)
+++ csw/mgar/pkg/drupal/trunk/files/README.CSW	2009-05-21 18:19:09 UTC (rev 5002)
@@ -19,24 +19,22 @@
 Using MySQL
 ===========
 1) if you have not done so, install mysql
-# pkg-get -i mysql5rt mysql5client mysql5
+# pkg-get -i mysql5rt mysql5client mysql5 php5_mysqli
 2) configure and start mysql
 3) Add /opt/csw/mysql5/bin to your PATH
-4) Create the Database
-# mysqladmin -u drupal -p password create drupal
-  ** replace password above with one of your choosing
-5) Set Permissions on the new DB
-# mysql -u drupal -p   
-  ** this will prompt for the password you used in 4)
-At the mysql prompt enter the following command:
-GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER
-ON drupal.* TO drupal at localhost IDENTIFIED BY password;
+4) Set Permissions on the new DB
+# mysql -u root -p   
+  ** root can be any user that has superuser priv for MySQL
+At the mysql prompt enter the following commands:
+CREATE DATABASE drupal ;
+USE drupal;
+GRANT ALL ON drupal.* TO drupal at localhost IDENTIFIED BY 'PASSWORD_CHANGE_ME';
   ** where password is the password from 4)
 
 Using PostgreSQL
 ================
 1) if you have not done so, install postgresql
-# pkg-get -i postgresql
+# pkg-get -i postgresql php5_pgsql
 2) Create DB User
 # createuser --pwprompt --encrypted --no-adduser --no-createdb drupal
   ** this will prompt you for a password for the new drupal user


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list