Index: installers/debian/dotlrn/TODO =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/Attic/TODO,v diff -u -r1.1 -r1.2 --- installers/debian/dotlrn/TODO 12 Mar 2008 12:29:42 -0000 1.1 +++ installers/debian/dotlrn/TODO 13 Mar 2008 13:22:13 -0000 1.2 @@ -1,11 +1,11 @@ -* Modification of the config.tcl according to user and database given by the user on the install. -* Modification of the config.tcl using the FHS routes. -* Set permissions for user www-data. -* Load tsearch sql. -* Enable compatibility postgresql options. -* Remove and purge logic (postrm). -* Lintian errors and warnings. -* Fix control file adding tdom (when there is a tdom debian package) -* Fix control file adding postgresql-contrib as a dependance (for tsearch), and setting all the package in contrib. +[ ] 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. +[ ] 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) +[ ] Fix control file adding postgresql-contrib as a dependance (for tsearch), and setting all the package in contrib. -- Héctor Romojaro Index: installers/debian/dotlrn/postinst =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/postinst,v diff -u -r1.1 -r1.2 --- installers/debian/dotlrn/postinst 12 Mar 2008 12:29:42 -0000 1.1 +++ installers/debian/dotlrn/postinst 13 Mar 2008 13:22:13 -0000 1.2 @@ -55,7 +55,30 @@ get_config db_stop exec 0<&1 + + # Care about the repository + repository=/var/lib/dotlrn + if [ -d $repository ]; then + # set the owner and change rights accordingly + chown -R www-data:www-data $repository + chmod 0755 $repository + fi + # Care about the log directory + logdir=/var/log/aolserver4/dotlrn + if [ -d $logdir ]; then + # set the owner and change rights accordingly + chown -R www-data:www-data $logdir + chmod 0755 $logdir + fi + + # Care about the app dir + appdir=/usr/share/dotlrn + if [ -d $appdir ]; then + # set the owner and change rights accordingly + chown -R www-data:www-data $appdir + fi + # care about the database creation dbname=dotlrn dbserver=$db_host Index: installers/debian/dotlrn/rules =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/rules,v diff -u -r1.1 -r1.2 --- installers/debian/dotlrn/rules 12 Mar 2008 12:29:42 -0000 1.1 +++ installers/debian/dotlrn/rules 13 Mar 2008 13:22:13 -0000 1.2 @@ -52,15 +52,7 @@ find debian/dotlrn/usr -type d -exec chmod 0755 {} \; find debian/dotlrn/usr -type f -name *.pl -exec chmod 0755 {} \; # Perl scripts +x find debian/dotlrn/usr -type f -name *.sh -exec chmod 0755 {} \; # Shell scripts +x - #chmod 755 debian/moodle/usr/share/moodle/lib/editor/htmlarea/plugins/SpellChecker/spell-check-logic.cgi - #chmod 755 debian/moodle/usr/share/moodle/mod/chat/chatd.php - #rm debian/moodle/usr/share/moodle/mod/chat/chatd.php - #chmod 755 debian/moodle/usr/share/moodle/mod/wiki/ewiki/fragments/mkhuge - #chmod 755 debian/moodle/usr/share/moodle/filter/algebra/algebra2tex.pl - #chmod 755 debian/moodle/usr/share/moodle/admin/process_email.php - #rm -f debian/moodle/usr/share/moodle/filter/tex/*mimetex* - #rm -f debian/moodle/usr/share/moodle/admin/delete.php - + dh_installdebconf dh_link dh_compress Index: installers/debian/dotlrn/patches/00list =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/patches/00list,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/dotlrn/patches/00list 13 Mar 2008 13:22:13 -0000 1.1 @@ -0,0 +1 @@ +config.dpatch Index: installers/debian/dotlrn/patches/config.dpatch =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/patches/config.dpatch,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/dotlrn/patches/config.dpatch 13 Mar 2008 13:22:13 -0000 1.1 @@ -0,0 +1,90 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## config.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad dotlrn-2.3.1~/etc/config.tcl dotlrn-2.3.1/etc/config.tcl +--- dotlrn-2.3.1~/etc/config.tcl 2008-03-13 13:27:45.000000000 +0100 ++++ dotlrn-2.3.1/etc/config.tcl 2008-03-13 13:29:38.000000000 +0100 +@@ -19,17 +19,16 @@ + # setting the address to 0.0.0.0 means aolserver listens on all interfaces + set hostname [ns_info hostname] + #set address [ns_info address] +-set address 0.0.0.0 ++set address 127.0.0.1 + + # Note: If port is privileged (usually < 1024), OpenACS must be + # started by root, and, in AOLserver 4, the run script have a + # '-b address' flag which matches the address according to settings (above) + +-set server "service0" +-set servername "New OpenACS Installation - Development" +- +-set serverroot "/var/lib/aolserver/${server}" +- ++set server "dotlrn" ++set servername "dotLRN" ++set serverroot "/usr/share/dotlrn" ++set pidfile /var/run/aolserver4/${server}.pid + #--------------------------------------------------------------------- + # which database do you want? postgres or oracle + set database postgres +@@ -41,15 +40,15 @@ + } else { + set db_host localhost + set db_port "" +- set db_user $server ++ set db_user www-data + } + + #--------------------------------------------------------------------- + # if debug is false, all debugging will be turned off + set debug false + +-set homedir /usr/local/aolserver +-set bindir [file dirname [ns_info nsd]] ++set homedir /usr/lib/aolserver4 ++set bindir /usr/lib/aolserver4/bin + + + set max_file_upload_mb 20 +@@ -101,7 +100,7 @@ + ns_section ns/threads + ns_param mutexmeter true ;# measure lock contention + # The per-thread stack size must be a multiple of 8k for AOLServer to run under MacOS X +- ns_param stacksize [expr 128 * 8192] ++ ns_param stacksize [expr 512 * 8192] + + # + # MIME types. +@@ -660,12 +659,12 @@ + } + + # nsthread library which should become standard in 5.3 +- if {[file exists ${homedir}/lib/thread2.6.4/libthread2.6.4[info sharedlibextension]]} { +- ns_param libthread ${homedir}/lib/thread2.6.4/libthread2.6.4[info sharedlibextension] ++ if {[file exists /usr/lib/tcltk/thread2.6.5/libthread2.6.5.so[info sharedlibextension]]} { ++ ns_param libthread /usr/lib/tcltk/thread2.6.5/libthread2.6.5.so[info sharedlibextension] + } + + ns_log notice "nsd.tcl: using threadsafe tcl: [info exists tcl_platform(threaded)]" + ns_log notice "nsd.tcl: finished reading config file." + if {[ns_info version] >= 4.5} { + ns_limits set default -maxupload [ns_config ns/server/${server}/module/nssock maxinput] +-} +\ No newline at end of file ++} +diff -urNad dotlrn-2.3.1~/etc/daemontools/run dotlrn-2.3.1/etc/daemontools/run +--- dotlrn-2.3.1~/etc/daemontools/run 2008-03-13 13:27:45.000000000 +0100 ++++ dotlrn-2.3.1/etc/daemontools/run 2008-03-13 13:28:54.000000000 +0100 +@@ -9,7 +9,7 @@ + # see http://openacs.org/forums/message-view?message_id=176100 + sleep 4 + +-exec /usr/local/aolserver/bin/nsd-postgres -it /var/lib/aolserver/service0/etc/config.tcl -u service0 -g web ++exec /usr/lib/aolserver4/bin/nsd -it /etc/dotlrn/config.tcl -u www-data -g www-data + + # For AOLserver 4 using privileged ports (usually < 1024), add the flag + # -b youraddress:yourport to the nsd command