Index: installers/debian/openacs/README =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/README,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/README 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,10 @@ +These are the files of the debian directory of the package tree. +To build the package, just untar the openacs tarball on the parent directory and do: + + $ dpkg-buildpackage -d -rfakeroot + +Please read the TODO file to know what is to be done. + +Note: e-mail addressess are not shown on control, changelog, copyright and po/templates.pot files to avoid spam. + + -- Héctor Romojaro Index: installers/debian/openacs/README.Debian =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/README.Debian,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/README.Debian 4 Apr 2008 14:10:31 -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/openacs/README.tsearch =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/README.tsearch,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/README.tsearch 4 Apr 2008 14:10:31 -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 openacs database (do it as a postgresql super-user). + + $ psql openacs < /usr/share/postgresql/8.2/contrib/tsearch2.sql + +3) Read about how to enable it on openacs: + + http://openacs.org/doc/current/install-full-text-search-tsearch2.html + + -- Hector Romojaro Index: installers/debian/openacs/TODO =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/TODO,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/TODO 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +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. +[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 +[X] Add some docs + + -- Héctor Romojaro Index: installers/debian/openacs/changelog =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/changelog,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/changelog 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,6 @@ +openacs (5.4.0) unstable; urgency=low + + * Initial release + + -- Hector Romojaro Tue, 04 Mar 2008 13:54:52 +0100 + Index: installers/debian/openacs/compat =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/compat,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/compat 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1 @@ +5 Index: installers/debian/openacs/config =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/config,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/config 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,155 @@ +#!/bin/sh -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +db_version 2.0 +db_capb backup + +STATE=1 +while [ "$STATE" != 0 -a "$STATE" != 12 ] + do + case "$STATE" in + 1) + db_input critical openacs/db_host || true + if db_go; then + db_get openacs/db_host || true + if [ ! -z "$RET" ]; then + STATE=2 + fi + else + STATE=1 + fi + ;; + + 2) + db_input critical openacs/dba_name || true + if db_go; then + db_get openacs/dba_name || true + if [ ! -z "$RET" ]; then + STATE=3 + fi + else + STATE=1 + fi + ;; + + 3) + db_input critical openacs/dba_password || true + if db_go; then + db_get openacs/dba_password || true + STATE=4 + else + STATE=2 + fi + ;; + + 4) + db_input critical openacs/dba_confirm || true + if db_go; then + db_get openacs/dba_confirm || true + CONFIRM="$RET" + db_get openacs/dba_password || true + if [ "$RET" != "$CONFIRM" ]; then + STATE=5 + else + STATE=6 + fi + else + STATE=2 + fi + ;; + + 5) + db_input critical openacs/mismatch || true + db_go + STATE=3 + ;; + + 6) + db_input critical openacs/dbu_name || true + if db_go; then + db_get openacs/dbu_name || true + if [ ! -z "$RET" ]; then + STATE=7 + fi + else + STATE=2 + fi + ;; + + 7) + db_input critical openacs/dbu_password || true + if db_go; then + db_get openacs/dbu_password || true + STATE=8 + else + STATE=6 + fi + ;; + + 8) + db_input critical openacs/dbu_confirm || true + if db_go; then + db_get openacs/dbu_confirm || true + CONFIRM="$RET" + db_get openacs/dbu_password || true + if [ "$RET" != "$CONFIRM" ]; then + STATE=9 + else + STATE=10 + fi + else + STATE=6 + fi + ;; + + 9) + db_input critical openacs/mismatch || true + db_go + STATE=6 + ;; + + 10) + # Check if tsearch tables exists + dbname=template1 + db_get openacs/db_host + dbserver="$RET" + db_type="postgres7" + db_port=5432 + db_get openacs/dba_name + dbadmin="$RET" + db_get openacs/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 openacs/tsearch_not_enabled || true + db_go + fi + if [ "$status" = "error" ] + then + err=1 + echo $error + fi + STATE=11 + ;; + + 11) + db_input critical openacs/create_tables || true + db_go + STATE=12 + ;; + esac +done + +if [ "$STATE" = 0 ]; then + db_input critical openacs/notconfigured || true + db_go + exit 1 +fi Index: installers/debian/openacs/control =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/control,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/control 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,15 @@ +Source: openacs +Section: web +Priority: optional +Maintainer: Hector Romojaro +Build-Depends-Indep: po-debconf +Build-Depends: debhelper (>= 4.1.13), dpatch +Standards-Version: 3.7.3 + +Package: openacs +Architecture: all +Depends: ${misc:Depends}, aolserver4, aolserver4-nscache, aolserver4-nspostgres, aolserver4-nssha1, postgresql-client, adduser, tclthread (>= 1:2.6.5-3), tcllib, tcl8.4, wwwconfig-common, debconf, xotcl, aolserver4-xotcl, imagemagick +Recommends: postgresql-8.2, daemontools-installer +Description: OpenACS (Open Architecture Community System) + OpenACS (Open Architecture Community System) is a toolkit for building + scalable, community-oriented web applications. Index: installers/debian/openacs/copyright =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/copyright,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/copyright 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,81 @@ +This package was debianized by Hector Romojaro on +Tue Mar 4 12:00:08 CET 2008 + +It was downloaded from http://openacs.org + +The original ACS was Copyright (C) 1995-2000 ArsDigita Corporation +and, in some cases, individual authors. + +License: + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You can find the license on Debian systems in the file + /usr/share/common-licenses/GPL + + This package also includes other pieces of software: + Xotcl, licensed under a BSD license (see below) + htmlArea, licensed under a BSD license (see below) + + GPL can be found in the file /usr/share/common-licenses/GPL, and + BSD license can be found in the file /usr/share/common-licenses/BSD + +-------------------------------------------------------------------------------- +Xotcl License (based on BSD license) +Copyright (C) 2005 Gustaf Neumann, xxxxxxxx@xxx.xx at + +Vienna University of Economics and Business Administration + Institute of Information Systems and New Media + A-1090, Augasse 2-6 + Vienna, Austria + +This is a BSD-Style license applicable for the files in this +directory and below, except when stated explicitly different. + +Permission to use, copy, modify, distribute, and sell this +software and its documentation for any purpose is hereby granted +without fee, provided that the above copyright notice appear in +all copies and that both that copyright notice and this permission +notice appear in supporting documentation. We make no +representations about the suitability of this software for any +purpose. It is provided "as is" without express or implied +warranty. +-------------------------------------------------------------------------------- +htmlArea License (based on BSD license) +Copyright (c) 2002-2004, interactivetools.com, inc. +Copyright (c) 2003-2005 dynarch.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1) Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +2) Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3) Neither the name of interactivetools.com, inc. nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +-------------------------------------------------------------------------------- Index: installers/debian/openacs/dirs =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/dirs,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/dirs 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,4 @@ +usr/share/openacs +var/lib/openacs +var/log/aolserver4/openacs +etc/openacs Index: installers/debian/openacs/docs =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/docs,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/docs 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1 @@ +debian/README.tsearch Index: installers/debian/openacs/links =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/links,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/links 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,3 @@ +var/log/aolserver4/openacs usr/share/openacs/log +etc/openacs usr/share/openacs/etc +var/lib/openacs/content-repository-content-files usr/share/openacs/content-repository-content-files Index: installers/debian/openacs/openacs.init =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/openacs.init,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/openacs.init 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,79 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: openacs +# Required-Start: $local_fs $remote_fs $network $syslog +# Required-Stop: $local_fs $remote_fs $network $syslog +# Should-Start: $postgresql +# Should-Stop: $postgresql +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: OpenACS community system +### END INIT INFO +# +# Start the AOLServer HTTP server with OpenACS. +# + +NAME=openacs +USER=www-data +GROUP=www-data +CONF=/etc/openacs/config.tcl +ADDRESS=$(grep "^set address" $CONF | sed 's/set//;s/address//;s/^[ \t]*//') +PORT=$(grep "^set httpport" $CONF | sed 's/set//;s/httpport//;s/^[ \t]*//') +PIDFILE=/var/run/aolserver4/$NAME.pid +PATH=/bin:/usr/bin:/sbin:/usr/sbin +DAEMON=/usr/sbin/aolserver4-nsd + +trap "" 1 + +[ -f $DAEMON ] || exit 0 + +start() +{ + echo -n "Starting web server: $NAME" + + start-stop-daemon --start --quiet --exec $DAEMON --pidfile $PIDFILE --oknodo -- \ + -u $USER -g $GROUP -b $ADDRESS:$PORT -t $CONF >/dev/null 2>&1 + if [ $? != 0 ]; then + echo " ... failed" + exit 1 + else + echo "." + fi +} + +stop() +{ + echo -n "Stopping web server: $NAME" + start-stop-daemon --stop --quiet --pidfile $PIDFILE --oknodo >/dev/null 2>&1 + if [ $? != 0 ]; then + echo " ... failed" + exit 2 + else + echo "." + fi +} + + +case "$1" in + start) + start + ;; + + stop) + stop + ;; + + reload|force-reload|restart) + stop + sleep 2 + start + ;; + + *) + echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" + exit 1 + ;; +esac + +exit 0 + Index: installers/debian/openacs/openacs.install =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/openacs.install,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/openacs.install 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,11 @@ +ChangeLog usr/share/openacs +install.xml usr/share/openacs +license.txt usr/share/openacs +readme.txt usr/share/openacs +bin usr/share/openacs +packages usr/share/openacs +tcl usr/share/openacs +www usr/share/openacs +log/* var/log/aolserver4/openacs +content-repository-content-files var/lib/openacs +etc/* etc/openacs Index: installers/debian/openacs/openacs.lintian-overrides =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/openacs.lintian-overrides,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/openacs.lintian-overrides 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,22 @@ +# Override lintian warnings about non-executable scripts, because they are documentation samples. +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/export-oracle.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/listener8i.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/nsd-oracle.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/nsd-postgres.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/openacs.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/oracle8i.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/postgresql.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/qmail-send-log-run.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/qmail-send-run.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/qmail-smtpd-log-run.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/qmail-smtpd-run.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/qmail.rc.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/qmailctl.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/restart-aolserver.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/run.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/startlsnr.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/stoplsnr.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/svgroup.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-developer-support/www/doc/editlocal.sh.txt +openacs: script-not-executable ./usr/share/openacs/packages/acs-core-docs/www/files/deploy Index: installers/debian/openacs/postinst =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/postinst,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/postinst 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,162 @@ +#! /bin/sh -e +# postinst script for openacs +# +# see: dh_installdeb(1) +# +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +get_config() { + db_get openacs/db_host + db_host="$RET" + + db_type="postgres7" + db_port=5432 + + db_get openacs/dba_name + dba_name="$RET" + + db_get openacs/dba_password + dba_password="$RET" + + db_get openacs/dbu_name + dbu_name="$RET" + + db_get openacs/dbu_password + dbu_password="$RET" +} + +db_not_installed() { + echo "Please install the chosen OpenACS SGBD: postgresql, then try" + echo "dpkg-reconfigure openacs" +} + +case "$1" in + configure) + . /usr/share/debconf/confmodule + db_version 2.0 + + # Read debconf and edit the config file accordingly + get_config + db_stop + exec 0<&1 + + # Care about the repository + repository=/var/lib/openacs + 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/openacs + 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/openacs + 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=openacs + dbserver=$db_host + dbadmin=$dba_name + dbadmpass=$dba_password + dbuser=$dbu_name + dbpass=$dbu_password + + . /usr/share/wwwconfig-common/pgsql-createuser.sh + if [ "$status" = "error" ] + then + err=1 + echo $error + fi + . /usr/share/wwwconfig-common/pgsql-createdb.sh + if [ "$status" = "error" ] + then + err=1 + echo $error + fi + + # Modify config.tcl with debconf values + + sed -i "/^ set db_host/,/^ set db_user/d;s/## Beginning of the conf changed by debconf ##/&\n set db_host $dbserver\n set db_password \"$dbpass\"\n set db_port \"5432\"\n set db_user $dbuser/" /etc/openacs/config.tcl + + # Install tsearch2 + #. /usr/share/wwwconfig-common/pgsql-exec.sh + #if [ "$status" = "error" ] + #then + # err=1 + # echo $error + #fi + + # Install plpgsql on database and enable compatibility options + dbuser=$dba_name + dbpass=$dba_password + sqlfile=/tmp/openacs-create-plpgsql.sql + echo "CREATE LANGUAGE plpgsql; + ALTER DATABASE openacs SET add_missing_from = on; + ALTER DATABASE openacs SET default_with_oids = on; + ALTER DATABASE openacs SET regex_flavor = extended; + " > $sqlfile + . /usr/share/wwwconfig-common/pgsql-exec.sh + rm -f $sqlfile + if [ "$status" = "error" ] + then + err=1 + echo $error + fi + + + if [ "$err" = "1" ] + then + echo "-------------------------------------------------------------" + echo "I've tried my best to create the OpenACS user and database" + echo "but an error has occurred" + echo "-------------------------------------------------------------" + echo "You will have to set up the OpenACS user and database yourself" + echo "-------------------------------------------------------------" + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Index: installers/debian/openacs/postrm =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/postrm,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/postrm 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,50 @@ +#! /bin/sh -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + purge) + . /usr/share/debconf/confmodule + db_version 2.0 + + rm -rf /usr/share/openacs + ucf --purge /etc/openacs/config.tcl + rm -rf /etc/openacs + rm -rf /var/lib/openacs + rm -f /etc/init.d/openacs + ;; + + remove) + . /usr/share/debconf/confmodule + db_version 2.0 + + rm -rf /usr/share/openacs + rm -f /etc/init.d/openacs + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Index: installers/debian/openacs/rules =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/rules,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/rules 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,69 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +build: + +clean: clean1 unpatch +clean1: + dh_testdir + dh_testroot + + dh_clean + +install: patch-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + +# Build architecture-dependent files here. +binary-arch: install +# We have nothing to do by default. + +# Build architecture-independent files here. +binary-indep: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_installinit +# dh_installcron + dh_lintian + + # Deleting extra licenses + rm debian/openacs/usr/share/openacs/license.txt + rm debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/htmlarea/license.txt + rm debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/license.txt + + # Deleting some unneeded files + rm debian/openacs/var/log/aolserver4/openacs/log.txt + rm debian/openacs/usr/share/openacs/packages/theme-selva/www/resources/Selva/default/images/.DS_Store + rm debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/img/Thumbs.db + + # Setting up correct permissions + find debian/openacs/usr -type f -exec chmod 0644 {} \; + find debian/openacs/usr -type d -exec chmod 0755 {} \; + find debian/openacs/usr -type f -name *.pl -exec chmod 0755 {} \; # Perl scripts +x + find debian/openacs/usr -type f -name *.sh -exec chmod 0755 {} \; # Shell scripts +x + chmod 0755 debian/openacs/etc/openacs/install/checkout.sh debian/openacs/etc/openacs/install/post-checkout-script.sh debian/openacs/usr/share/openacs/bin/create-tablespace.tcl debian/openacs/usr/share/openacs/bin/restart-aolserver debian/openacs/usr/share/openacs/bin/webspell debian/openacs/usr/share/openacs/packages/acs-lang/bin/mygrep debian/openacs/etc/openacs/install/build-release.sh debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/htmlarea/examples/2-areas.cgi debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/htmlarea/examples/test.cgi debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/htmlarea/plugins/SpellChecker/spell-check-logic.cgi debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/plugins/SpellChecker/spell-check-logic.cgi + + dh_installdebconf + dh_link + dh_compress + dh_fixperms + + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install patch unpatch clean1 Index: installers/debian/openacs/templates =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/templates,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/templates 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,71 @@ +Template: openacs/db_host +Type: string +Default: localhost +_Description: Database server hostname: + Please enter the hostname of the database server host. + +Template: openacs/dba_name +Type: string +Default: postgres +_Description: Database administrator username: + Please enter the PostgreSQL administrator username, needed for + the database creation. + +Template: openacs/dba_password +Type: password +_Description: Database administrator password: + Please enter the PostgreSQL administrator password, needed for + the database creation. + +Template: openacs/dba_confirm +Type: password +_Description: DBA password confirmation: + Please confirm the password in order to continue the process. + +Template: openacs/mismatch +Type: note +_Description: Password mismatch + The password and its confirmation do not match. Please + reenter the passwords. + +Template: openacs/dbu_name +Type: string +Default: www-data +_Description: Database owner username: + Please enter the username of the OpenACS database owner. + +Template: openacs/dbu_password +Type: password +_Description: Database owner password: + Please enter the password of the OpenACS database owner. + +Template: openacs/dbu_confirm +Type: password +_Description: Database user password confirmation: + Please confirm the password of the OpenACS database owner. + +Template: openacs/notconfigured +Type: note +_Description: Warning - OpenACS is not configured + Please note that you have not completed the OpenACS configuration. For + completing it, please use "dpkg-reconfigure openacs" later. + +Template: openacs/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: openacs/create_tables +Type: note +_Description: Warning - OpenACS database tables not created + The OpenACS install script will create the database, but + the tables are to be created with a script. Please + launch it right after the install: + . + http://127.0.0.1:8000/ + . + After configure, you can change IP and port to listen on + /etc/openacs/config.tcl. Index: installers/debian/openacs/patches/00list =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/patches/00list,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/patches/00list 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,2 @@ +config.dpatch +interpreters-path.dpatch Index: installers/debian/openacs/patches/config.dpatch =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/patches/config.dpatch,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/patches/config.dpatch 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,103 @@ +#! /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 dotlrn-2.3.1~/etc/config.tcl dotlrn-2.3.1/etc/config.tcl +--- dotlrn-2.3.1~/etc/config.tcl 2008-03-26 14:33:23.000000000 +0100 ++++ dotlrn-2.3.1/etc/config.tcl 2008-03-27 13:25:56.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 +@@ -39,17 +38,18 @@ + if { $database == "oracle" } { + set db_password "mysitepassword" + } else { +- set db_host localhost +- set db_port "" +- set db_user $server ++ ++## Beginning of the conf changed by debconf ## ++############################################## ++ + } + + #--------------------------------------------------------------------- + # 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 +@@ -86,7 +86,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 +@@ -101,7 +101,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 +660,10 @@ + } + + # 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] + + 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-26 14:33:23.000000000 +0100 ++++ dotlrn-2.3.1/etc/daemontools/run 2008-03-27 13:20:29.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 Index: installers/debian/openacs/patches/interpreters-path.dpatch =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/patches/interpreters-path.dpatch,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/patches/interpreters-path.dpatch 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,118 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## interpreters-path.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fixes some routes for interpreters on scripts. + +@DPATCH@ +diff -urNad dotlrn-2.3.1~/bin/ad-context-server.pl dotlrn-2.3.1/bin/ad-context-server.pl +--- dotlrn-2.3.1~/bin/ad-context-server.pl 2008-04-03 11:27:23.000000000 +0200 ++++ dotlrn-2.3.1/bin/ad-context-server.pl 2008-04-03 11:33:25.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl ++#!/usr/bin/perl + + ########################################################## + # ArsDigita Context Server +diff -urNad dotlrn-2.3.1~/bin/create-sql-drop-file.pl dotlrn-2.3.1/bin/create-sql-drop-file.pl +--- dotlrn-2.3.1~/bin/create-sql-drop-file.pl 2008-04-03 11:27:23.000000000 +0200 ++++ dotlrn-2.3.1/bin/create-sql-drop-file.pl 2008-04-03 11:33:25.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl -w ++#!/usr/bin/perl -w + + # @author: Jim Guggemoos created it + # @author: Christian Brechbuehler some maintenance +diff -urNad dotlrn-2.3.1~/bin/data-dictionary-diff.pl dotlrn-2.3.1/bin/data-dictionary-diff.pl +--- dotlrn-2.3.1~/bin/data-dictionary-diff.pl 2008-04-03 11:27:23.000000000 +0200 ++++ dotlrn-2.3.1/bin/data-dictionary-diff.pl 2008-04-03 11:33:25.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl ++#!/usr/bin/perl + + # by Jin Choi , 2000-03-20 + +diff -urNad dotlrn-2.3.1~/bin/encode64.pl dotlrn-2.3.1/bin/encode64.pl +--- dotlrn-2.3.1~/bin/encode64.pl 2008-04-03 11:27:23.000000000 +0200 ++++ dotlrn-2.3.1/bin/encode64.pl 2008-04-03 11:33:25.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl ++#!/usr/bin/perl + # + # Encode a file from stdin as base64 + # +diff -urNad dotlrn-2.3.1~/bin/plsql-diff.pl dotlrn-2.3.1/bin/plsql-diff.pl +--- dotlrn-2.3.1~/bin/plsql-diff.pl 2008-04-03 11:27:23.000000000 +0200 ++++ dotlrn-2.3.1/bin/plsql-diff.pl 2008-04-03 11:33:25.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl ++#!/usr/bin/perl + + # by Jin Choi , 2000-03-21 + +diff -urNad dotlrn-2.3.1~/bin/triggers-diff.pl dotlrn-2.3.1/bin/triggers-diff.pl +--- dotlrn-2.3.1~/bin/triggers-diff.pl 2008-04-03 11:27:23.000000000 +0200 ++++ dotlrn-2.3.1/bin/triggers-diff.pl 2008-04-03 11:33:25.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl ++#!/usr/bin/perl + + # by Jin Choi , 2000-03-26 + +diff -urNad dotlrn-2.3.1~/etc/deploy.sh dotlrn-2.3.1/etc/deploy.sh +--- dotlrn-2.3.1~/etc/deploy.sh 2008-04-03 11:27:23.000000000 +0200 ++++ dotlrn-2.3.1/etc/deploy.sh 2008-04-03 11:33:25.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/bin/bin/tclsh ++#!/usr/bin/tclsh + # process command line arguments + foreach arg $argv { + switch -glob -- $arg { +diff -urNad dotlrn-2.3.1~/etc/install/functions.sh dotlrn-2.3.1/etc/install/functions.sh +--- dotlrn-2.3.1~/etc/install/functions.sh 2004-04-25 11:32:27.000000000 +0200 ++++ dotlrn-2.3.1/etc/install/functions.sh 2008-04-03 11:33:47.000000000 +0200 +@@ -1,3 +1,4 @@ ++#!/bin/sh + # Access config parameters in the TCL file through this function + + get_config_param () { +diff -urNad dotlrn-2.3.1~/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt dotlrn-2.3.1/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt +--- dotlrn-2.3.1~/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt 2008-04-03 11:27:23.000000000 +0200 ++++ dotlrn-2.3.1/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt 2008-04-03 11:33:25.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/sh ++#!/bin/sh + # Restarts an AOLserver (daemontools version). + # Takes as its only argument the name of the server to kill. + # joela 06/23/2003 +@@ -19,4 +19,4 @@ + # meanwhile, this works: + + svc -d $1 +-svc -u $1 +\ No newline at end of file ++svc -u $1 +diff -urNad dotlrn-2.3.1~/packages/acs-lang/bin/functions.sh dotlrn-2.3.1/packages/acs-lang/bin/functions.sh +--- dotlrn-2.3.1~/packages/acs-lang/bin/functions.sh 2003-10-31 13:58:29.000000000 +0100 ++++ dotlrn-2.3.1/packages/acs-lang/bin/functions.sh 2008-04-03 11:34:02.000000000 +0200 +@@ -1,3 +1,4 @@ ++#!/bin/sh + # Functions re-used by scripts in acs-lang/bin + # + # @author Peter Marklund +diff -urNad dotlrn-2.3.1~/packages/theme-selva/www/doc/howto/images.pl dotlrn-2.3.1/packages/theme-selva/www/doc/howto/images.pl +--- dotlrn-2.3.1~/packages/theme-selva/www/doc/howto/images.pl 2005-07-26 16:28:31.000000000 +0200 ++++ dotlrn-2.3.1/packages/theme-selva/www/doc/howto/images.pl 2008-04-03 11:34:44.000000000 +0200 +@@ -1,3 +1,4 @@ ++#!/usr/bin/perl + # LaTeX2HTML 2002-2-1 (1.70) + # Associate images original text with physical files. + +diff -urNad dotlrn-2.3.1~/packages/theme-selva/www/doc/howto/labels.pl dotlrn-2.3.1/packages/theme-selva/www/doc/howto/labels.pl +--- dotlrn-2.3.1~/packages/theme-selva/www/doc/howto/labels.pl 2005-07-26 16:28:30.000000000 +0200 ++++ dotlrn-2.3.1/packages/theme-selva/www/doc/howto/labels.pl 2008-04-03 11:35:54.000000000 +0200 +@@ -1,3 +1,4 @@ ++#!/usr/bin/perl + # LaTeX2HTML 2002-2-1 (1.70) + # Associate labels original text with physical files. + Index: installers/debian/openacs/po/POTFILES.in =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/po/POTFILES.in,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/po/POTFILES.in 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates Index: installers/debian/openacs/po/templates.pot =================================================================== RCS file: /usr/local/cvsroot/installers/debian/openacs/po/templates.pot,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ installers/debian/openacs/po/templates.pot 4 Apr 2008 14:10:31 -0000 1.1 @@ -0,0 +1,179 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: openacs @packages.debian.org\n" +"POT-Creation-Date: 2008-04-04 16:07+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Database server hostname:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Please enter the hostname of the database server host." +msgstr "" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "Database administrator username:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the PostgreSQL administrator username, needed for the database " +"creation." +msgstr "" + +#. Type: password +#. Description +#: ../templates:3001 +msgid "Database administrator password:" +msgstr "" + +#. Type: password +#. Description +#: ../templates:3001 +msgid "" +"Please enter the PostgreSQL administrator password, needed for the database " +"creation." +msgstr "" + +#. Type: password +#. Description +#: ../templates:4001 +msgid "DBA password confirmation:" +msgstr "" + +#. Type: password +#. Description +#: ../templates:4001 +msgid "Please confirm the password in order to continue the process." +msgstr "" + +#. Type: note +#. Description +#: ../templates:5001 +msgid "Password mismatch" +msgstr "" + +#. Type: note +#. Description +#: ../templates:5001 +msgid "" +"The password and its confirmation do not match. Please reenter the passwords." +msgstr "" + +#. Type: string +#. Description +#: ../templates:6001 +msgid "Database owner username:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:6001 +msgid "Please enter the username of the OpenACS database owner." +msgstr "" + +#. Type: password +#. Description +#: ../templates:7001 +msgid "Database owner password:" +msgstr "" + +#. Type: password +#. Description +#: ../templates:7001 +msgid "Please enter the password of the OpenACS database owner." +msgstr "" + +#. Type: password +#. Description +#: ../templates:8001 +msgid "Database user password confirmation:" +msgstr "" + +#. Type: password +#. Description +#: ../templates:8001 +msgid "Please confirm the password of the OpenACS database owner." +msgstr "" + +#. Type: note +#. Description +#: ../templates:9001 +msgid "Warning - OpenACS is not configured" +msgstr "" + +#. Type: note +#. Description +#: ../templates:9001 +msgid "" +"Please note that you have not completed the OpenACS configuration. For " +"completing it, please use \"dpkg-reconfigure openacs\" later." +msgstr "" + +#. Type: note +#. Description +#: ../templates:10001 +msgid "Warning - Full Text Search not enabled" +msgstr "" + +#. Type: note +#. Description +#: ../templates:10001 +msgid "" +"Full Text Search will not be enabled because tsearch tables are not found." +msgstr "" + +#. Type: note +#. Description +#: ../templates:10001 +msgid "To enable it, please read /usr/share/doc/README.tsearch." +msgstr "" + +#. Type: note +#. Description +#: ../templates:11001 +msgid "Warning - OpenACS database tables not created" +msgstr "" + +#. Type: note +#. Description +#: ../templates:11001 +msgid "" +"The OpenACS install script will create the database, but the tables are to " +"be created with a script. Please launch it right after the install:" +msgstr "" + +#. Type: note +#. Description +#: ../templates:11001 +msgid "http://127.0.0.1:8000/" +msgstr "" + +#. Type: note +#. Description +#: ../templates:11001 +msgid "" +"After configure, you can change IP and port to listen on /etc/openacs/config." +"tcl." +msgstr ""