debian/0000755000000000000000000000000012237147425007175 5ustar debian/watch0000644000000000000000000000031211776557457010243 0ustar version=3 opts="uversionmangle=s/\.\?revision_id\=(.*)//,dversionmangle=s/\+dfsg//" \ http://openacs.org/projects/openacs/download download/openacs-(.+)\.tgz(.*) debian debian/repackage-upstream-src debian/openacs.docs0000644000000000000000000000003211776557457011513 0ustar debian/README.daemontools debian/openacs.config0000644000000000000000000000231211776557457012033 0ustar #!/bin/sh set -e # Source debconf library. [ -f /usr/share/debconf/confmodule ] && . /usr/share/debconf/confmodule # Configure database with old or new values, # using dbconfig-common if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then # we support pgsql dbc_dbtypes="pgsql" dbc_dbuser="www-data" dbc_dbname='openacs' dbc_first_version="5.7.0+dfsg-1" # source dbconfig-common stuff . /usr/share/dbconfig-common/dpkg/config.pgsql configfile=$(mktemp) # Old values if [ -f /etc/openacs/config.tcl.old_version ]; then # dbc_load_include doesn't recognize tcl file format, so we'll create a sh temp file with values from the config.tcl file sed -n '/## Debconf changes/,/## End Debconf/p;' /etc/openacs/config.tcl.old_version | sed 's/^[ \t]*set\ //;/^\#/d;s/db_host/dbserver=/;s/db_password/dbpass=/;s/db_port/dbport=/;s/db_user/dbuser=/;s/=[ \t]*/=/;/dbport="5432"/d;/dbserver=localhost/d' | sed '$adbtype=pgsql' > $configfile dbc_load_include="sh:$configfile" rm -f /etc/openacs/config.tcl.old_version fi dbc_go openacs $@ || echo 'Automatic configuration using dbconfig-common failed!' rm -f $configfile fi db_stop exit 0 debian/openacs.prerm0000644000000000000000000000073611776557457011723 0ustar #! /bin/sh # prerm script for openacs # set -e # Stop aolserver before removal [ -f /etc/init.d/aolserver4 ] && invoke-rc.d aolserver4 stop # Source debconf stuff [ -f /usr/share/debconf/confmodule ] && . /usr/share/debconf/confmodule # dbconfig-common prerm if [ -f /usr/share/dbconfig-common/dpkg/prerm.pgsql ]; then . /usr/share/dbconfig-common/dpkg/prerm.pgsql dbc_go openacs $@ || echo 'Automatic removal using dbconfig-common failed!' fi #DEBHELPER# exit 0 debian/rules0000755000000000000000000000502611776557457010301 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #export DH_OPTIONS=-v %: dh $@ get-orig-source: if [ -d "../../tarballs" ]; then \ uscan --download-current-version --force-download --rename --destdir ../../tarballs/ ; \ else \ uscan --download-current-version --force-download --rename ; \ fi; override_dh_installdebconf: cp debian/openacs.sh debian/openacs/etc/openacs/ # 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 rm debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/license.txt rm debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/iconsets/Crystal/LICENSE rm debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/plugins/MootoolsFileManager/mootools-filemanager/LICENSE # Deleting some unneeded files rm debian/openacs/var/log/aolserver4/openacs/log.txt rm debian/openacs/usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/img/Thumbs.db # Fixing 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/etc/openacs/openacs.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 # Continue as normal... dh_installdebconf debian/openacs.postinst0000644000000000000000000001150211776557457012452 0ustar #! /bin/sh # 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'. set -e # Care about the directories and their permissions fixDirs() { # Care about the repository repository=/var/lib/openacs if [ -d $repository ]; then # set the owner and change rights accordingly chown www-data:www-data $repository $repository/content-repository-content-files/ chmod 0755 $repository $repository/content-repository-content-files/ fi # Care about the log directory logdir=/var/log/aolserver4/openacs if [ -d $logdir ]; then # set the owner and change rights accordingly chown 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 } # Install plpgsql on database and enable compatibility options (pgsql < 9.1) fixDB_pre_9_1() { sqlfile=$(mktemp) echo "CREATE OR REPLACE LANGUAGE plpgsql; ALTER DATABASE $dbc_dbname SET default_with_oids = on; " > $sqlfile dbc_pgsql_exec_file $sqlfile rm -f $sqlfile } # Install plpgsql on database and enable compatibility options (pgsql = 9.1) fixDB_9_1() { sqlfile=$(mktemp) echo "CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; ALTER DATABASE $dbc_dbname SET default_with_oids = on; ALTER DATABASE $dbc_dbname SET standard_conforming_strings = off; " > $sqlfile dbc_pgsql_exec_file $sqlfile rm -f $sqlfile } # Install plpgsql on database and enable compatibility options (Wrapper) fixDB() { fixDB_9_1 fixDB_pre_9_1 } # Create /etc/openacs/config.local file with dbconfig-common # values, and manage with ucf. createConfig() { dbc_dbserver=$1 dbc_dbpass=$2 dbc_dbport=$3 dbc_dbuser=$4 # Create file localconfigtmp=$(mktemp) localconfig="/etc/openacs/config.local" cat > $localconfigtmp <&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# db_stop exit 0 debian/README.daemontools0000644000000000000000000000132411311426127012367 0ustar Openacs and daemontools ----------------------- OpenACS daemon can be controlled using daemontools instead of the init.d script. To do that, follow the next steps: 1) Change the "RUN_DAEMON" value to "no" on /etc/aolserver4/conf.d/openacs.sh to disable the init.d script. 2) Restart the aolserver daemon (/etc/init.d/aolserver4 restart) 3) Link daemontools openacs script ( ln -s /usr/share/openacs/etc/daemontools /etc/service/openacs ). Now you can control the openacs service using the svc command: * To start the service: svc -u /etc/service/openacs. * To stop the service: svc -d /etc/service/openacs. * To restart the service: svc -t /etc/service/openacs. For more info, please check the svc command man page. debian/README.Debian0000644000000000000000000000301711776557457011260 0ustar OpenACS for Debian ------------------ - DFSG repackaged ----------------- The following files have been deleted from the original tarball because they are not DFSG compliant: * /usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/iconsets/Tango/* * /usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/images/tango/* * /usr/share/openacs/packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/plugins/media/img/flv_player.swf * /usr/share/openacs/packages/acs-templating/www/resources/tinymce/examples/media/sample.swf * /usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/swfobject/expressinstall.swf * /usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/plugins/MootoolsFileManager/mootools-filemanager/Assets/Swiff.Uploader.swf * /usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/plugins/MootoolsFileManager/mootools-filemanager/Assets/dewplayer.swf - After Install --------------- The OpenACS install process will create the database, but will not populate it with tables. Point a browser at http://localhost:8000/ to finish the install. The address and port that OpenACS will listen on can be configured in /etc/aolserver4/conf.d/openacs.sh. Local database settings can be found in /etc/openacs/config.local. - Full OpenACS documentation: ----------------------------- * http://openacs.org/doc/current/ * http://openacs.org/xowiki/ -- Hector Romojaro Tue, 29 Dec 2009 12:16:39 +0100 debian/openacs.links0000644000000000000000000000045111776557457011710 0ustar 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 etc/openacs/config.tcl etc/aolserver4/conf.d/openacs.tcl etc/openacs/openacs.sh etc/aolserver4/conf.d/openacs.sh debian/copyright0000644000000000000000000001142611776557457011155 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: OpenACS Source: http://openacs.org/projects/openacs/download/ Comment: Some files have been deleted from the original tarball because they are not DFSG compliant. Please see README.Debian for details. Files: * Copyright: The original ACS was Copyright (C) 1995-2000 ArsDigita Corporation and, in some cases, individual authors. License: GPL-2+ Files: debian/* Copyright: Copyright 2008 Héctor Romojaro License: GPL-2+ License: GPL-2+ 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 should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: packages/acs-templating/www/resources/xinha-nightly/iconsets/Crystal/* Copyright: Copyright (c) 2006-2007 Everaldo Coelho. License: LGPL-2.1 Files: packages/acs-templating/www/resources/tinymce/* Copyright: Copyright (c) 2003-2006 Moxiecode Systems AB License: LGPL-2.1 License: LGPL-2.1 On Debian systems the full text of the GNU Lesser General Public License 2.1 can be found in the `/usr/share/common-licenses/LGPL-2.1' file. Files: packages/acs-templating/www/resources/htmlarea/* Copyright: Copyright (c) 2002-2004, interactivetools.com, inc. Copyright (c) 2003-2005 dynarch.com License: BSD-3-clause 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. Files: packages/acs-templating/www/resources/xinha-nightly/plugins/MootoolsFileManager/* Copyright: Copyright (c) 2009 Christoph Pojer License: Expat Files: packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/swfobject/* Copyright: Copyright (c) 2007 Geoff Stearns License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/repackage-upstream-src0000755000000000000000000000223411776557457013512 0ustar #!/bin/sh # # Executed by uscan, repackages the upstream source removing # all non-DFSG content. set -e PACKAGE=$(dpkg-parsechangelog | sed -rn '/^Source:/ {s/^Source: //; p}') VERSION=$(echo $2) FILE=$3 DIR="$PACKAGE-$VERSION" DFSG_FILE=$(echo "$FILE" | sed 's/\.orig\.tar\.gz$/+dfsg\.orig\.tar\.gz/') # Unpack tar xzf $FILE \ --exclude "*/packages/acs-templating/www/resources/xinha-nightly/iconsets/Tango" \ --exclude "*/packages/acs-templating/www/resources/xinha-nightly/images/tango" \ --exclude "*/packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/plugins/media/img/flv_player.swf" \ --exclude "*/packages/acs-templating/www/resources/tinymce/examples/media/sample.swf" \ --exclude "*/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/swfobject/expressinstall.swf" \ --exclude "*/packages/acs-templating/www/resources/xinha-nightly/plugins/MootoolsFileManager/mootools-filemanager/Assets/Swiff.Uploader.swf" \ --exclude "*/packages/acs-templating/www/resources/xinha-nightly/plugins/MootoolsFileManager/mootools-filemanager/Assets/dewplayer.swf" # Repack as DFSG tar cz -f $FILE $DIR mv $FILE $DFSG_FILE # Clean rm -rf $DIR debian/openacs.dirs0000644000000000000000000000013711776557457011532 0ustar usr/share/openacs var/lib/openacs var/log/aolserver4/openacs etc/openacs etc/aolserver4/conf.d debian/openacs.install0000644000000000000000000000050211776557457012233 0ustar ChangeLog 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 debian/source/0000755000000000000000000000000011776557702010507 5ustar debian/source/format0000644000000000000000000000001411776557457011724 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011776557702010636 5ustar debian/patches/install.patch0000644000000000000000000000155511776557457013342 0ustar Author: Description: diff -urNad trunk~/packages/acs-bootstrap-installer/installer/install.tcl trunk/packages/acs-bootstrap-installer/installer/install.tcl --- trunk~/packages/acs-bootstrap-installer/installer/install.tcl 2009-01-06 03:07:21.000000000 +0100 +++ trunk/packages/acs-bootstrap-installer/installer/install.tcl 2009-10-15 22:45:43.000000000 +0200 @@ -169,9 +169,9 @@ ns_write "Installation finished -

The server has been shut down. Normally, it should come back up by itself after a minute or so.

+

The server has been shut down. To restart it, please use the following command (as root):

-

If not, please check your server error log, or contact your system administrator.

" +

# /etc/init.d/aolserver4 restart

" if { $post_installation_message ne "" } { ns_write $post_installation_message debian/patches/interpreters-bashisms.patch0000644000000000000000000001242511776557457016227 0ustar Author: Description: diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/etc/install/functions.sh trunk/etc/install/functions.sh --- trunk~/etc/install/functions.sh 2004-04-25 11:32:27.000000000 +0200 +++ trunk/etc/install/functions.sh 2010-05-19 13:03:51.000000000 +0200 @@ -23,10 +23,10 @@ interactive=$1 - if [ "$interactive" == "yes" ]; then + if [ "$interactive" = "yes" ]; then echo "Continue? (y/n)" read continue - if [ "$continue" == "n" ]; then + if [ "$continue" = "n" ]; then echo "$0: exiting on users request" exit fi diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/etc/install/install-and-alert.sh trunk/etc/install/install-and-alert.sh --- trunk~/etc/install/install-and-alert.sh 2003-11-04 15:39:04.000000000 +0100 +++ trunk/etc/install/install-and-alert.sh 2010-05-19 13:13:13.000000000 +0200 @@ -12,11 +12,11 @@ script_path=$(dirname $(which $0)) cd $script_path -source ./functions.sh +. ./functions.sh # Get a proper environment set up if [ -f ~/.bashrc ]; then - source ~/.bashrc + . ~/.bashrc fi # Look for two-part command line arguments @@ -28,20 +28,20 @@ server_overridden="no" for arg in "$@" do - if [ $config_val_next == "1" ]; then + if [ $config_val_next = "1" ]; then export config_file=$arg config_val_next=0 fi - if [ $server_next == "1" ]; then + if [ $server_next = "1" ]; then # Overrides server setting in config file export server=$arg server_next=0 server_overridden="yes" fi - if [ $arg == "--config-file" ]; then + if [ $arg = "--config-file" ]; then config_val_next=1 fi - if [ $arg == "--server" ]; then + if [ $arg = "--server" ]; then server_next=1 fi done @@ -62,7 +62,7 @@ mkdir -p $output_dir fi installation_output_file="${output_dir}/installation-output" -./install.sh $@ &> $installation_output_file +./install.sh $@ >$installation_output_file 2>&1 # Get lines with alert keywords or lines with failed TclWebtest tests error_lines=$(egrep -i "(FAILED: .+\.test)|($alert_keyword)" $installation_output_file) diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/etc/install/server-output/service0/installation-output trunk/etc/install/server-output/service0/installation-output --- trunk~/etc/install/server-output/service0/installation-output 1970-01-01 01:00:00.000000000 +0100 +++ trunk/etc/install/server-output/service0/installation-output 2010-05-19 13:13:22.000000000 +0200 @@ -0,0 +1 @@ +mié may 19 13:13:22 CEST 2010: You must execute this script as root; exiting diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/etc/install/warn-if-installation-errors.sh trunk/etc/install/warn-if-installation-errors.sh --- trunk~/etc/install/warn-if-installation-errors.sh 2003-11-04 15:39:04.000000000 +0100 +++ trunk/etc/install/warn-if-installation-errors.sh 2010-05-19 12:59:40.000000000 +0200 @@ -9,7 +9,7 @@ file_name=$1 -source ./functions.sh +. ./functions.sh alert_keyword=`get_config_param alert_keyword` diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/packages/acs-lang/bin/check-catalog.sh trunk/packages/acs-lang/bin/check-catalog.sh --- trunk~/packages/acs-lang/bin/check-catalog.sh 2003-10-30 14:10:53.000000000 +0100 +++ trunk/packages/acs-lang/bin/check-catalog.sh 2010-05-19 12:57:02.000000000 +0200 @@ -34,7 +34,7 @@ export script_path=$(dirname $(which $0)) ### Functions start -source ${script_path}/functions.sh +. ${script_path}/functions.sh get_date_time_key() { message_key=$1 @@ -72,7 +72,7 @@ do catalog_package_version=$(cat $catalog_file | ${script_path}/mygrep ' Description: Fixes some paths for interpreters on scripts. diff -urNad openacs-5.4.1~/bin/ad-context-server.pl openacs-5.4.1/bin/ad-context-server.pl --- openacs-5.4.1~/bin/ad-context-server.pl 2001-03-13 23:59:26.000000000 +0100 +++ openacs-5.4.1/bin/ad-context-server.pl 2008-04-09 14:41:12.000000000 +0200 @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl ########################################################## # ArsDigita Context Server diff -urNad openacs-5.4.1~/bin/create-sql-drop-file.pl openacs-5.4.1/bin/create-sql-drop-file.pl --- openacs-5.4.1~/bin/create-sql-drop-file.pl 2001-03-13 23:59:26.000000000 +0100 +++ openacs-5.4.1/bin/create-sql-drop-file.pl 2008-04-09 14:41:27.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 openacs-5.4.1~/bin/data-dictionary-diff.pl openacs-5.4.1/bin/data-dictionary-diff.pl --- openacs-5.4.1~/bin/data-dictionary-diff.pl 2001-03-13 23:59:26.000000000 +0100 +++ openacs-5.4.1/bin/data-dictionary-diff.pl 2008-04-09 14:41:39.000000000 +0200 @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl # by Jin Choi , 2000-03-20 diff -urNad openacs-5.4.1~/bin/encode64.pl openacs-5.4.1/bin/encode64.pl --- openacs-5.4.1~/bin/encode64.pl 2001-03-13 23:59:26.000000000 +0100 +++ openacs-5.4.1/bin/encode64.pl 2008-04-09 14:42:08.000000000 +0200 @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl # # Encode a file from stdin as base64 # diff -urNad openacs-5.4.1~/bin/plsql-diff.pl openacs-5.4.1/bin/plsql-diff.pl --- openacs-5.4.1~/bin/plsql-diff.pl 2001-03-13 23:59:26.000000000 +0100 +++ openacs-5.4.1/bin/plsql-diff.pl 2008-04-09 14:42:24.000000000 +0200 @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl # by Jin Choi , 2000-03-21 diff -urNad openacs-5.4.1~/bin/triggers-diff.pl openacs-5.4.1/bin/triggers-diff.pl --- openacs-5.4.1~/bin/triggers-diff.pl 2001-03-13 23:59:26.000000000 +0100 +++ openacs-5.4.1/bin/triggers-diff.pl 2008-04-09 14:42:36.000000000 +0200 @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl # by Jin Choi , 2000-03-26 diff -urNad openacs-5.4.1~/etc/deploy.sh openacs-5.4.1/etc/deploy.sh --- openacs-5.4.1~/etc/deploy.sh 2004-03-03 14:18:35.000000000 +0100 +++ openacs-5.4.1/etc/deploy.sh 2008-04-09 14:42:59.000000000 +0200 @@ -1,4 +1,4 @@ -#!/bin/bin/tclsh +#!/usr/bin/tclsh # process command line arguments foreach arg $argv { switch -glob -- $arg { diff -urNad openacs-5.4.1~/etc/install/functions.sh openacs-5.4.1/etc/install/functions.sh --- openacs-5.4.1~/etc/install/functions.sh 2004-04-25 11:32:27.000000000 +0200 +++ openacs-5.4.1/etc/install/functions.sh 2008-04-09 14:43:33.000000000 +0200 @@ -1,3 +1,4 @@ +#!/bin/sh # Access config parameters in the TCL file through this function get_config_param () { diff -urNad openacs-5.4.1~/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt openacs-5.4.1/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt --- openacs-5.4.1~/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt 2003-06-24 05:19:17.000000000 +0200 +++ openacs-5.4.1/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt 2008-04-09 14:44:21.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 openacs-5.4.1~/packages/acs-lang/bin/functions.sh openacs-5.4.1/packages/acs-lang/bin/functions.sh --- openacs-5.4.1~/packages/acs-lang/bin/functions.sh 2003-10-31 13:58:29.000000000 +0100 +++ openacs-5.4.1/packages/acs-lang/bin/functions.sh 2008-04-09 14:44:48.000000000 +0200 @@ -1,3 +1,4 @@ +#!/bin/sh # Functions re-used by scripts in acs-lang/bin # # @author Peter Marklund debian/patches/config.patch0000644000000000000000000001225011776557457013133 0ustar Author: Description: Adaptation of config.tcl and daemontools/run to debian install. --- a/etc/config.tcl +++ b/etc/config.tcl @@ -23,25 +23,27 @@ ###################################################################### #--------------------------------------------------------------------- -# change to 80 and 443 for production use -set httpport 8000 + +# Defined in /etc/aolserver4/conf.d/openacs.sh +set httpport [exec grep "^AOL_PORT" /etc/aolserver4/conf.d/openacs.sh | sed s/AOL_PORT=//] +set address [exec grep "^AOL_ADDRESS" /etc/aolserver4/conf.d/openacs.sh | sed s/AOL_ADDRESS=//] +#--------------------------------------------------------------------- + set httpsport 8443 -# If setting port below 1024 with AOLServer 4, read comments in file: -# /var/lib/aolserver/service0/packages/etc/daemontools/run # The hostname and address should be set to actual values. # setting the address to 0.0.0.0 means aolserver listens on all interfaces set hostname localhost -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 +# 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 @@ -52,9 +54,11 @@ if { $database eq "oracle" } { set db_password "mysitepassword" } else { - set db_host localhost - set db_port "" - set db_user $server + # Defined in /etc/openacs/config.local + set db_host [exec grep "^db_host" /etc/openacs/config.local | sed s/^db_host=//] + set db_password [exec grep "^db_password" /etc/openacs/config.local | sed s/^db_password=//] + set db_port [exec grep "^db_port" /etc/openacs/config.local | sed s/^db_port=//] + set db_user [exec grep "^db_user" /etc/openacs/config.local | sed s/^db_user=//] } #--------------------------------------------------------------------- @@ -100,7 +104,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 @@ -115,7 +119,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. @@ -494,7 +498,7 @@ ns_param driver postgres ns_param datasource ${db_host}:${db_port}:${db_name} ns_param user $db_user - ns_param password "" + ns_param password $db_password } ns_section ns/db/pool/pool2 @@ -513,7 +517,7 @@ ns_param driver postgres ns_param datasource ${db_host}:${db_port}:${db_name} ns_param user $db_user - ns_param password "" + ns_param password $db_password } ns_section ns/db/pool/pool3 @@ -532,7 +536,7 @@ ns_param driver postgres ns_param datasource ${db_host}:${db_port}:${db_name} ns_param user $db_user - ns_param password "" + ns_param password $db_password } # ns_section ns/db/pool/pool4 @@ -623,7 +627,7 @@ } # nsthread library which should become standard in 5.3 - ns_param libthread [lindex [glob ${homedir}/lib/thread*/libthread*[info sharedlibextension]] 0] + 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] --- a/etc/daemontools/run +++ b/etc/daemontools/run @@ -9,7 +9,11 @@ # 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 +DAEMON="/usr/lib/aolserver4/bin/nsd" +CONF="/etc/openacs/config.tcl" +. /etc/aolserver4/conf.d/openacs.sh + +exec $DAEMON -it $CONF -u $AOL_USER -g $AOL_GROUP -b $AOL_ADDRESS:$AOL_PORT # For AOLserver 4 using privileged ports (usually < 1024), add the flag # -b youraddress:yourport to the nsd command debian/patches/xinha-iconset.patch0000644000000000000000000000100411776557457014432 0ustar Author: Description: diff -urNad trunk~/www/blank-master.adp trunk/www/blank-master.adp --- trunk~/www/blank-master.adp 2008-06-07 22:29:01.000000000 +0200 +++ trunk/www/blank-master.adp 2009-11-21 00:14:19.000000000 +0100 @@ -18,6 +18,7 @@ debian/patches/series0000644000000000000000000000014311776557457012060 0ustar config.patch xinha-iconset.patch install.patch interpreters-bashisms.patch interpreters-path.patch debian/compat0000644000000000000000000000000211250256746010374 0ustar 7 debian/control0000644000000000000000000000205612237147376010610 0ustar Source: openacs Section: web Priority: optional Maintainer: Hector Romojaro Uploaders: Francesco Paolo Lovergine Build-Depends-Indep: po-debconf Build-Depends: debhelper (>= 7.0.50~) Standards-Version: 3.9.3 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-tcltk/openacs/trunk Vcs-Svn: svn://svn.debian.org/svn/pkg-tcltk/openacs/trunk Homepage: http://www.openacs.org/ Package: openacs Architecture: all Depends: ${misc:Depends}, aolserver4-daemon (>= 4.5.1-11), aolserver4-nspostgres, aolserver4-nssha1, postgresql-client, adduser, tcl-thread | tclthread (>= 1:2.6.5-3), tcllib, tcl (>= 8.4), dbconfig-common, debconf, xotcl, aolserver4-xotcl, imagemagick, zip, unzip, tdom (>= 0.8.3~20080525), ucf Recommends: postgresql (<= 9.1) Suggests: daemontools, daemontools-run Description: toolkit for building community-oriented web applications OpenACS (Open Architecture Community System) is a toolkit for building scalable, community-oriented web applications. It is based on the Tcl language and the AOLServer web server. debian/openacs.postrm0000644000000000000000000000367611776557457012130 0ustar #! /bin/sh # 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/ set -e [ -f /usr/share/debconf/confmodule ] && . /usr/share/debconf/confmodule # source dbconfig-common stuff if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then . /usr/share/dbconfig-common/dpkg/postrm.pgsql dbc_go openacs $@ || echo 'Automatic removal using dbconfig-common failed!' fi case "$1" in purge) rm -rf /usr/share/openacs rm -rf /etc/openacs /var/lib/openacs /var/log/aolserver4/openacs if which ucf >/dev/null; then ucf --purge /etc/openacs/config.tcl ucf --purge /etc/openacs/openacs.sh ucf --purge /etc/openacs/config.local fi if which ucfr >/dev/null; then ucfr --purge openacs /etc/openacs/config.tcl ucfr --purge openacs /etc/openacs/openacs.sh ucfr --purge openacs /etc/openacs/config.local fi rm -f /etc/aolserver4/conf.d/openacs.tcl /etc/aolserver4/conf.d/openacs.sh # Start aolserver after removal [ -f /etc/init.d/aolserver4 ] && invoke-rc.d aolserver4 start ;; remove) rm -rf /usr/share/openacs # Start aolserver after removal [ -f /etc/init.d/aolserver4 ] && invoke-rc.d aolserver4 start ;; 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# db_stop exit 0 debian/openacs.sh0000644000000000000000000000037611311426127011156 0ustar #!/bin/sh # These variables can be customized to change OpenACS AOLserver settings. # More changes can be done by modifying the /etc/openacs/config.tcl Tcl script. # AOL_USER=www-data AOL_GROUP=www-data AOL_ADDRESS=127.0.0.1 AOL_PORT=8000 RUN_DAEMON=yes debian/changelog0000644000000000000000000001532512237147425011055 0ustar openacs (5.7.0+dfsg-2.1) unstable; urgency=low * Non-maintainer upload. * Adjust dependencies to tolerate renaming of tclthread to tcl-thread (closes: #725258). -- Colin Watson Fri, 08 Nov 2013 11:46:17 +0000 openacs (5.7.0+dfsg-2) unstable; urgency=low * Recommends postgresql <= 9.1 instead of 9.0 - Need to use some postgresql compatibility options (see postinst script for details) * Added SWFObject license to the copyright file * Updated copyright file to copyright-format 1.0 * Policy bumped to 3.9.3 without changes. * Fixed database deletion on package purge. * Fixed dbconfig-common import of old settings. * Fixed local config management. Closes: #663356 - Updated README.Debian - Autogenerated config.local file with database local settings. - Added openacs.preinst file with a fix for old postinst modified config.tcl. * Fixed call to ucf on postrm. -- Hector Romojaro Mon, 12 Mar 2012 17:43:42 +0100 openacs (5.7.0+dfsg-1) unstable; urgency=low * New upstream release * Fixed watch file (dversionmangle now manages the +dfsg part of the package version) * Updated the dfsg repackage script (repackage-upstream-src) with four more non-dfsg files to be deleted. Details in README.Debian. * Switch to dpkg-source 3.0 (quilt) format * Switch from wwwconfig-common to dbconfig-common - Deleted debconf templates (no longer necessary) - Closes: #660228 - Created prerm script - Postgresql is now recommended instead of suggested in control file -- Hector Romojaro Mon, 20 Feb 2012 19:28:50 +0100 openacs (5.5.1+dfsg-5) unstable; urgency=low * Updated Catalan translation. Closes: #632204 * Fixed lintian overrides * Added build-arch|dep targets to debian/rules to make lintian happy. * Policy bumped to 3.9.2 without changes. -- Hector Romojaro Tue, 01 Nov 2011 15:59:19 +0100 openacs (5.5.1+dfsg-4) unstable; urgency=low * Fixed piuparts failed-testing error in postinst script -- Hector Romojaro Wed, 06 Apr 2011 06:44:04 +0200 openacs (5.5.1+dfsg-3) unstable; urgency=low * Policy bumped to 3.9.1 without changes. * Removed recursive chown in postinst (see #606554). -- Hector Romojaro Mon, 13 Dec 2010 12:12:30 +0100 openacs (5.5.1+dfsg-2) unstable; urgency=high * Fixed severe vulnerability in the api-browser: it was possible to pass to the query parameter "path" a relative path, which might contain path traversals like ../../.. . With these all files with read permissions can be delivered via the server. Applied Patch: http://fisheye.openacs.org/changelog/OpenACS/?cs=oacs-5-5:gustafn:20101125091953 * Updated translations: - Vietnamese. Closes: #599607 - Czech. Closes: #599606 - Danish. Closes: #599004 - Japanese. Closes: #598364 -- Hector Romojaro Thu, 25 Nov 2010 13:48:45 +0100 openacs (5.5.1+dfsg-1) unstable; urgency=high * Removed non DFSG files, check README.Debian for details. Closes: #591207 * Success to install even if postgresql is not installed (this is the same fix introduced for #591210 in dotlrn). * Added info about PostgreSQL dependency to README.Debian. * Fixed postinst script that failed to reload postgresql. -- Hector Romojaro Sun, 05 Sep 2010 00:51:43 +0200 openacs (5.5.1-4) unstable; urgency=low * Updated translations: - Spanish. Closes: #579512 * Fixed bashisms. Closes: #581133 -- Hector Romojaro Tue, 11 May 2010 09:57:30 +0200 openacs (5.5.1-3) unstable; urgency=low * Updated standards to 3.8.4 (no changes required) * Added debian/source/format file, with value of 1.0. * Updated translations: - Vietnamese. - Czech. Closes: #565882 - Portuguese. Closes: #575166 -- Hector Romojaro Tue, 20 Apr 2010 19:13:44 +0200 openacs (5.5.1-2) unstable; urgency=low * Changed aolserver4-daemon dependency to >= 4.5.1-11 * Added watch file. * Added get-orig-source on debian/rules. * debian/control reviewed by the debian-l10n-english team (thanks Ben Finney) * Template bugs (thanks Thomas Mueller, Christian Perrier and Justin B. Rye) - Reviewed by the debian-l10n-english team - Removed openacs/notconfigured, openacs/pg_grant_access_manual*, openacs/create_tables and openacs/dba_confirm. * Added after install and manual database access instructions to README.Debian. * Debconf Translation Updates - Norwegian. - Slovak. Closes: #564097 - Russian. Closes: #564102 - Swedish. Closes: #564130 - French. Closes: #564178 - Finnish. Closes: #564493 - German. Closes: #564674 - Catalan - Czech - Danish - Spanish - Euskara - Galician - Italian - Korean - Malay - Dutch - Portuguese - Brazilian Portuguese - Vietnamese -- Hector Romojaro Mon, 18 Jan 2010 16:25:38 +0100 openacs (5.5.1-1) unstable; urgency=low * New upstream release * Changed aolserver4-daemon dependency to >= 4.5.1-7 * Updated to the new aolserver config environment: - Basic config stored on /etc/aolserver4/conf.d/openacs.sh. - Removed init script, now the instance is started by the aolserver init script. - Removed /etc/default/openacs. - Updated daemontools script and README. * Removed tsearch checks, because it is built into postgresql since 8.3. * Removed README.tsearch * Added README.source * Added tinymce and Crystal iconset for xinha licenses to copyright file. * Removed Xinha Tango Iconset because of its non DFSG compliant license. -- Hector Romojaro Sat, 21 Nov 2009 00:20:39 +0100 openacs (5.4.3-3) unstable; urgency=low [ Hector Romojaro ] * Updated standards to 3.8.2. [ Francesco Paolo Lovergine ] * Added me as an uploader. * Updated standards to 3.8.3. * Added Homepage field to debian/control. * Added Vcs-* field to debian/control. * Now using dh_prep instead of dh_clean -k. -- Francesco Paolo Lovergine Mon, 07 Sep 2009 15:20:37 +0200 openacs (5.4.3-2) unstable; urgency=low * Removed nscache from config.tcl * Fixed install.tcl to show the command to restart the server once installed. -- Hector Romojaro Wed, 22 Apr 2009 12:06:21 +0200 openacs (5.4.3-1) unstable; urgency=low * Removed aolserver4-nscache dependency -- Hector Romojaro Thu, 26 Mar 2009 17:58:58 +0100 openacs (5.4.3) unstable; urgency=low * Initial release (Closes: #483126) -- Hector Romojaro Tue, 28 Oct 2008 20:01:49 +0200 debian/openacs.preinst0000644000000000000000000000166511776557457012264 0ustar #!/bin/sh set -e case "$1" in install) ;; upgrade) # If we're upgrading from 5.7.0+dfsg-1 or earlier, we have to # deal with config.tcl which was marked as a conffile and # modified by postinst script. # # If the file was not modified by the user, then we can restore # it to its initial state (before running postinst and modify it # with debconf values) by deleting the modified lines. # # See Bug #663356 # if dpkg --compare-versions "$2" le "5.7.0+dfsg-1" then # First, make a copy so dbconfig-common can get # the old config values cp /etc/openacs/config.tcl /etc/openacs/config.tcl.old_version # Restart config.tcl to its primordial state sed -i '/set db_host/,/set db_user/d' /etc/openacs/config.tcl fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument '$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/openacs.lintian-overrides0000644000000000000000000000614511776557457014234 0ustar # 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/deploy 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 # Override because the tinymce version provided is modified openacs: embedded-javascript-library usr/share/openacs/packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/tiny_mce.js openacs: embedded-javascript-library usr/share/openacs/packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/tiny_mce_popup.js openacs: embedded-javascript-library usr/share/openacs/packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/tiny_mce_src.js # Mootools Debian package is a different version than this one. openacs: embedded-javascript-library usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/plugins/MootoolsFileManager/mootools-filemanager/Demos/mootools-core.js openacs: embedded-javascript-library usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/plugins/MootoolsFileManager/mootools-filemanager/Demos/mootools-more.js # libjs-swfobject Debian package is a different version than this one. openacs: embedded-javascript-library usr/share/openacs/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/swfobject/swfobject.js