Index: installers/debian/dotlrn/README.Debian =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/README.Debian,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/dotlrn/README.Debian 1 Apr 2008 10:35:41 -0000 1.1 @@ -0,0 +1,9 @@ +Documentation +------------- + +You can read the doc at: + + * http://openacs.org/doc/current/ + * http://openacs.org/xowiki/ + + -- Hector Romojaro Index: installers/debian/dotlrn/README.tsearch =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/README.tsearch,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/dotlrn/README.tsearch 1 Apr 2008 10:35:41 -0000 1.1 @@ -0,0 +1,18 @@ +Install Full Text Search using Tsearch2 +--------------------------------------- + +NOTE: tsearch doesn't works on postgresql 8.3, use 8.2 instead. + +1) Install postgresql-contrib-8.2 package on postgresql server. + + # apt-get install postgresql-contrib-8.2 + +2) Load tsearch sql into dotlrn database (do it as a postgresql super-user). + + $ psql dotlrn < /usr/share/postgresql/8.2/contrib/tsearch2.sql + +3) Read about how to enable it on dotlrn: + + http://openacs.org/doc/current/install-full-text-search-tsearch2.html + + -- Hector Romojaro Index: installers/debian/dotlrn/TODO =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/Attic/TODO,v diff -u -r1.9 -r1.10 --- installers/debian/dotlrn/TODO 28 Mar 2008 11:46:18 -0000 1.9 +++ installers/debian/dotlrn/TODO 1 Apr 2008 10:35:41 -0000 1.10 @@ -1,12 +1,12 @@ [X] Modification of the config.tcl according to user and database given by the user on the install. [X] Modification of the config.tcl using the FHS routes. [X] Set permissions for user www-data. -[ ] Load tsearch sql. +[X] Load tsearch sql. (checks if it is loaded or not, and points a file with info on how to enable it). [X] Enable compatibility postgresql options. [X] Remove and purge logic (postrm). [ ] Lintian errors and warnings. [ ] Fix control file adding tdom (when there is a tdom debian package) [X] Debian libthread not loading properly -[ ] Add some docs +[X] Add some docs -- Héctor Romojaro Index: installers/debian/dotlrn/config =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/config,v diff -u -r1.1 -r1.2 --- installers/debian/dotlrn/config 12 Mar 2008 12:29:42 -0000 1.1 +++ installers/debian/dotlrn/config 1 Apr 2008 10:35:41 -0000 1.2 @@ -7,7 +7,7 @@ db_capb backup STATE=1 -while [ "$STATE" != 0 -a "$STATE" != 11 ] +while [ "$STATE" != 0 -a "$STATE" != 12 ] do case "$STATE" in 1) @@ -111,9 +111,39 @@ ;; 10) + # Check if tsearch tables exists + dbname=template1 + db_get dotlrn/db_host + dbserver="$RET" + db_type="postgres7" + db_port=5432 + db_get dotlrn/dba_name + dbadmin="$RET" + db_get dotlrn/dba_password + dbadmpass="$RET" + dbuser=$dbadmin + dbpass=$dbadmpass + + . /usr/share/wwwconfig-common/pgsql.get + + OUT=$($pgsqlcmd -d $dbname -c "select * from pg_ts_dict, pg_ts_parser, pg_ts_cfg, pg_ts_cfgmap;" 2>/dev/null | head -n1) + if [ "x$OUT" = "x" ]; then + # Warning tsearch not available + db_input critical dotlrn/tsearch_not_enabled || true + db_go + fi + if [ "$status" = "error" ] + then + err=1 + echo $error + fi + STATE=11 + ;; + + 11) db_input critical dotlrn/create_tables || true db_go - STATE=11 + STATE=12 ;; esac done Index: installers/debian/dotlrn/docs =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/docs,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/dotlrn/docs 1 Apr 2008 10:35:41 -0000 1.1 @@ -0,0 +1 @@ +debian/README.tsearch Index: installers/debian/dotlrn/postinst =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/postinst,v diff -u -r1.5 -r1.6 --- installers/debian/dotlrn/postinst 28 Mar 2008 10:33:16 -0000 1.5 +++ installers/debian/dotlrn/postinst 1 Apr 2008 10:35:41 -0000 1.6 @@ -98,9 +98,6 @@ then err=1 echo $error - # Install language plpgsql on the database - - su - $dbadmin -C createlang plpgsql $dbname fi # Modify config.tcl with debconf values @@ -143,10 +140,6 @@ echo "-------------------------------------------------------------" fi - # Install the init script and start it (not necessary, using debhelper at rules file) - #update-rc.d dotlrn defaults - #/etc/init.d/dotlrn start - ;; abort-upgrade|abort-remove|abort-deconfigure) Index: installers/debian/dotlrn/templates =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/templates,v diff -u -r1.3 -r1.4 --- installers/debian/dotlrn/templates 28 Mar 2008 10:33:16 -0000 1.3 +++ installers/debian/dotlrn/templates 1 Apr 2008 10:35:41 -0000 1.4 @@ -50,6 +50,14 @@ Please note that you have not completed the dotLRN configuration. For completing it, please use "dpkg-reconfigure dotlrn" later. +Template: dotlrn/tsearch_not_enabled +Type: note +Description: Warning - Full Text Search not enabled + Full Text Search will not be enabled because tsearch + tables are not found. + . + To enable it, please read /usr/share/doc/README.tsearch. + Template: dotlrn/create_tables Type: note Description: Warning - dotLRN database tables not created