#! /bin/sh /usr/share/dpatch/dpatch-run ## config.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Adaptation of config.tcl and daemontools/run to debian install. @DPATCH@ diff -urNad openacs-5.4.1~/etc/config.tcl openacs-5.4.1/etc/config.tcl --- openacs-5.4.1~/etc/config.tcl 2008-02-01 04:24:30.000000000 +0100 +++ openacs-5.4.1/etc/config.tcl 2008-04-09 14:24:53.000000000 +0200 @@ -24,10 +24,11 @@ # 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 server "openacs" +set servername "New OpenACS Installation" -set serverroot "/var/www/${server}" +set serverroot "/usr/share/openacs" +set pidfile /var/run/aolserver4/${server}.pid #--------------------------------------------------------------------- # which database do you want? postgres or oracle @@ -38,9 +39,8 @@ if { $database eq "oracle" } { set db_password "mysitepassword" } else { - set db_host localhost - set db_port "" - set db_user $server +## Beginning of the conf changed by debconf ## +############################################## } #--------------------------------------------------------------------- @@ -85,7 +85,7 @@ ns_param maxbackup 5 ns_param debug $debug # ns_param mailhost localhost - + ns_param pidfile ${pidfile} # setting to Unicode by default # see http://dqd.com/~mayoff/encoding-doc.html ns_param HackContentType 1 @@ -100,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. @@ -659,9 +659,7 @@ } # 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] - } + ns_param libthread [lindex [glob /usr/lib/tcltk/thread*/libthread*-aolserver[info sharedlibextension]] 0] if {[ns_info version] >= 4.5} { ns_limits set default -maxupload [ns_config ns/server/${server}/module/nssock maxinput] @@ -671,4 +669,4 @@ 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 openacs-5.4.1~/etc/daemontools/run openacs-5.4.1/etc/daemontools/run --- openacs-5.4.1~/etc/daemontools/run 2008-01-14 10:35:56.000000000 +0100 +++ openacs-5.4.1/etc/daemontools/run 2008-04-09 14:25:23.000000000 +0200 @@ -9,7 +9,7 @@ # see http://openacs.org/forums/message-view?message_id=176100 sleep 4 -exec /usr/lib/aolserver4/bin/nsd -it /var/www/service0/etc/config.tcl -u service0 -g web +exec /usr/lib/aolserver4/bin/nsd -it /etc/openacs/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