You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(48) |
Dec
(31) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(22) |
Feb
(68) |
Mar
(185) |
Apr
(11) |
May
(21) |
Jun
(23) |
Jul
(46) |
Aug
(69) |
Sep
(211) |
Oct
(26) |
Nov
(51) |
Dec
(52) |
2006 |
Jan
(13) |
Feb
(13) |
Mar
(8) |
Apr
(21) |
May
(17) |
Jun
(100) |
Jul
(34) |
Aug
(23) |
Sep
(26) |
Oct
(16) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(66) |
Oct
(10) |
Nov
(1) |
Dec
|
2008 |
Jan
|
Feb
|
Mar
(1) |
Apr
(3) |
May
(8) |
Jun
(5) |
Jul
(31) |
Aug
(8) |
Sep
(11) |
Oct
(6) |
Nov
|
Dec
|
2012 |
Jan
(13) |
Feb
(2) |
Mar
(9) |
Apr
(6) |
May
(24) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(120) |
2013 |
Jan
(6) |
Feb
(35) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <fa...@vh...> - 2006-06-14 14:43:18
|
Author: fabrice Date: 2006-06-14 16:38:46 +0200 (Wed, 14 Jun 2006) New Revision: 1195 Added: trunk/ccm-cms-types-legalnotice/debian/ trunk/ccm-cms-types-legalnotice/debian/ccm-build.sh trunk/ccm-cms-types-legalnotice/debian/ccm-clean.sh trunk/ccm-cms-types-legalnotice/debian/ccm-cms-types-legalnotice.dirs trunk/ccm-cms-types-legalnotice/debian/ccm-config.sh trunk/ccm-cms-types-legalnotice/debian/ccm-disperse.sh trunk/ccm-cms-types-legalnotice/debian/ccm-install.sh trunk/ccm-cms-types-legalnotice/debian/ccm-settings-run.sh trunk/ccm-cms-types-legalnotice/debian/ccm-settings.sh trunk/ccm-cms-types-legalnotice/debian/changelog trunk/ccm-cms-types-legalnotice/debian/compat trunk/ccm-cms-types-legalnotice/debian/config trunk/ccm-cms-types-legalnotice/debian/control trunk/ccm-cms-types-legalnotice/debian/copyright trunk/ccm-cms-types-legalnotice/debian/postinst trunk/ccm-cms-types-legalnotice/debian/postrm trunk/ccm-cms-types-legalnotice/debian/prerm trunk/ccm-cms-types-legalnotice/debian/rules trunk/ccm-cms-types-legalnotice/debian/templates Log: Debian files Added: trunk/ccm-cms-types-legalnotice/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/ccm-build.sh 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/ccm-build.sh 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-legalnotice/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/ccm-clean.sh 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/ccm-clean.sh 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-legalnotice/debian/ccm-cms-types-legalnotice.dirs =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/ccm-cms-types-legalnotice.dirs 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/ccm-cms-types-legalnotice.dirs 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-legalnotice-6.3.0 Added: trunk/ccm-cms-types-legalnotice/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/ccm-config.sh 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/ccm-config.sh 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-legalnotice/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/ccm-disperse.sh 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/ccm-disperse.sh 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-legalnotice/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/ccm-install.sh 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/ccm-install.sh 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-legalnotice/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/ccm-settings-run.sh 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/ccm-settings-run.sh 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-legalnotice/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-legalnotice/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/ccm-settings.sh 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/ccm-settings.sh 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-legalnotice +version=6.3.0 +appname=ccm-cms-types-legalnotice +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-legalnotice/debian/changelog =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/changelog 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/changelog 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,63 @@ +ccm-cms-types-legalnotice (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:57 +0000 + +ccm-cms-types-legalnotice (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:08 +0000 + +ccm-cms-types-legalnotice (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:52 +0000 + +ccm-cms-types-legalnotice (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 14:54:59 +0000 + +ccm-cms-types-legalnotice (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-legalnotice (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-legalnotice (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-legalnotice (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-legalnotice/debian/compat =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/compat 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/compat 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-legalnotice/debian/config =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/config 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/config 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-legalnotice/debian/control =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/control 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/control 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-legalnotice +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-legalnotice +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: The Legal Notice for publishing legal notices. + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-legalnotice-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-legalnotice + Documentation for ccm-cms-types-legalnotice. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-legalnotice/debian/copyright =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/copyright 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/copyright 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-legalnotice/debian/postinst =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/postinst 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/postinst 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-legalnotice +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-legalnotice/debian/postrm =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/postrm 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/postrm 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-legalnotice +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-legalnotice/debian/prerm =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/prerm 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/prerm 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-legalnotice +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-legalnotice/debian/rules =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/rules 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/rules 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-legalnotice/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-legalnotice/debian/templates =================================================================== --- trunk/ccm-cms-types-legalnotice/debian/templates 2006-06-14 14:38:41 UTC (rev 1194) +++ trunk/ccm-cms-types-legalnotice/debian/templates 2006-06-14 14:38:46 UTC (rev 1195) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-legalnotice +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + check/edit the pg_hba.conf file of your PostgreSQL instance + and load the application(s) after the installation. + +Template: ccm/shared/error_ccm_tool_not_found +Type: note .. |
From: <fa...@vh...> - 2006-06-14 14:43:11
|
Author: fabrice Date: 2006-06-14 16:38:41 +0200 (Wed, 14 Jun 2006) New Revision: 1194 Added: trunk/ccm-cms-types-job/debian/ trunk/ccm-cms-types-job/debian/ccm-build.sh trunk/ccm-cms-types-job/debian/ccm-clean.sh trunk/ccm-cms-types-job/debian/ccm-cms-types-job.dirs trunk/ccm-cms-types-job/debian/ccm-config.sh trunk/ccm-cms-types-job/debian/ccm-disperse.sh trunk/ccm-cms-types-job/debian/ccm-install.sh trunk/ccm-cms-types-job/debian/ccm-settings-run.sh trunk/ccm-cms-types-job/debian/ccm-settings.sh trunk/ccm-cms-types-job/debian/changelog trunk/ccm-cms-types-job/debian/compat trunk/ccm-cms-types-job/debian/config trunk/ccm-cms-types-job/debian/control trunk/ccm-cms-types-job/debian/copyright trunk/ccm-cms-types-job/debian/postinst trunk/ccm-cms-types-job/debian/postrm trunk/ccm-cms-types-job/debian/prerm trunk/ccm-cms-types-job/debian/rules trunk/ccm-cms-types-job/debian/templates Log: Debian files Added: trunk/ccm-cms-types-job/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-job/debian/ccm-build.sh 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/ccm-build.sh 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-job/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-job/debian/ccm-clean.sh 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/ccm-clean.sh 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-job/debian/ccm-cms-types-job.dirs =================================================================== --- trunk/ccm-cms-types-job/debian/ccm-cms-types-job.dirs 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/ccm-cms-types-job.dirs 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-job-6.3.0 Added: trunk/ccm-cms-types-job/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-job/debian/ccm-config.sh 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/ccm-config.sh 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-job/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-job/debian/ccm-disperse.sh 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/ccm-disperse.sh 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-job/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-job/debian/ccm-install.sh 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/ccm-install.sh 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-job/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-job/debian/ccm-settings-run.sh 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/ccm-settings-run.sh 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-job/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-job/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-job/debian/ccm-settings.sh 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/ccm-settings.sh 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-job +version=6.3.0 +appname=ccm-cms-types-job +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-job/debian/changelog =================================================================== --- trunk/ccm-cms-types-job/debian/changelog 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/changelog 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,69 @@ +ccm-cms-types-job (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:57 +0000 + +ccm-cms-types-job (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:07 +0000 + +ccm-cms-types-job (6.1.1-2) unstable; urgency=low + + * Final (?) fix for dublincore dates, #17509 + + -- My <my...@fi...> Wed, 18 May 2005 08:30:12 +0000 + +ccm-cms-types-job (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:52 +0000 + +ccm-cms-types-job (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 14:34:38 +0000 + +ccm-cms-types-job (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-job (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-job (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-job (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-job/debian/compat =================================================================== --- trunk/ccm-cms-types-job/debian/compat 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/compat 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-job/debian/config =================================================================== --- trunk/ccm-cms-types-job/debian/config 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/config 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-job/debian/control =================================================================== --- trunk/ccm-cms-types-job/debian/control 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/control 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-job +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-job +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: The Job content type for publishing job vacancy announcements. + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-job-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-job + Documentation for ccm-cms-types-job. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-job/debian/copyright =================================================================== --- trunk/ccm-cms-types-job/debian/copyright 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/copyright 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-job/debian/postinst =================================================================== --- trunk/ccm-cms-types-job/debian/postinst 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/postinst 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-job +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-job/debian/postrm =================================================================== --- trunk/ccm-cms-types-job/debian/postrm 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/postrm 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-job +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-job/debian/prerm =================================================================== --- trunk/ccm-cms-types-job/debian/prerm 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/prerm 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-job +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-job/debian/rules =================================================================== --- trunk/ccm-cms-types-job/debian/rules 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/rules 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-job/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-job/debian/templates =================================================================== --- trunk/ccm-cms-types-job/debian/templates 2006-06-14 14:38:36 UTC (rev 1193) +++ trunk/ccm-cms-types-job/debian/templates 2006-06-14 14:38:41 UTC (rev 1194) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:08 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-job +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . .. |
From: <fa...@vh...> - 2006-06-14 14:43:03
|
Author: fabrice Date: 2006-06-14 16:38:27 +0200 (Wed, 14 Jun 2006) New Revision: 1192 Added: trunk/ccm-cms-types-htmlform/debian/ trunk/ccm-cms-types-htmlform/debian/ccm-auth-http.dirs trunk/ccm-cms-types-htmlform/debian/ccm-build.sh trunk/ccm-cms-types-htmlform/debian/ccm-clean.sh trunk/ccm-cms-types-htmlform/debian/ccm-cms-types-htmlform.dirs trunk/ccm-cms-types-htmlform/debian/ccm-config.sh trunk/ccm-cms-types-htmlform/debian/ccm-disperse.sh trunk/ccm-cms-types-htmlform/debian/ccm-install.sh trunk/ccm-cms-types-htmlform/debian/ccm-settings-run.sh trunk/ccm-cms-types-htmlform/debian/ccm-settings.sh trunk/ccm-cms-types-htmlform/debian/changelog trunk/ccm-cms-types-htmlform/debian/compat trunk/ccm-cms-types-htmlform/debian/config trunk/ccm-cms-types-htmlform/debian/control trunk/ccm-cms-types-htmlform/debian/copyright trunk/ccm-cms-types-htmlform/debian/postinst trunk/ccm-cms-types-htmlform/debian/postrm trunk/ccm-cms-types-htmlform/debian/prerm trunk/ccm-cms-types-htmlform/debian/rules trunk/ccm-cms-types-htmlform/debian/templates Log: Debian files Added: trunk/ccm-cms-types-htmlform/debian/ccm-auth-http.dirs =================================================================== --- trunk/ccm-cms-types-htmlform/debian/ccm-auth-http.dirs 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/ccm-auth-http.dirs 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-htmlform-1.4.1 Added: trunk/ccm-cms-types-htmlform/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-htmlform/debian/ccm-build.sh 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/ccm-build.sh 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-htmlform/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-htmlform/debian/ccm-clean.sh 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/ccm-clean.sh 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-htmlform/debian/ccm-cms-types-htmlform.dirs =================================================================== --- trunk/ccm-cms-types-htmlform/debian/ccm-cms-types-htmlform.dirs 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/ccm-cms-types-htmlform.dirs 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-htmlform-6.3.0 Added: trunk/ccm-cms-types-htmlform/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-htmlform/debian/ccm-config.sh 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/ccm-config.sh 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-htmlform/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-htmlform/debian/ccm-disperse.sh 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/ccm-disperse.sh 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-htmlform/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-htmlform/debian/ccm-install.sh 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/ccm-install.sh 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-htmlform/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-htmlform/debian/ccm-settings-run.sh 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/ccm-settings-run.sh 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-htmlform/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-htmlform/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-htmlform/debian/ccm-settings.sh 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/ccm-settings.sh 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-htmlform +version=6.3.0 +appname=ccm-cms-types-htmlform +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-htmlform/debian/changelog =================================================================== --- trunk/ccm-cms-types-htmlform/debian/changelog 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/changelog 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,17 @@ +ccm-cms-types-htmlform (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:57 +0000 + +ccm-cms-types-htmlform (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:07 +0000 + +ccm-cms-types-htmlform (6.1.1-1) unstable; urgency=low + + * Initial release. + + -- Fabrice Retkowsky <fa...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-htmlform/debian/compat =================================================================== --- trunk/ccm-cms-types-htmlform/debian/compat 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/compat 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-htmlform/debian/config =================================================================== --- trunk/ccm-cms-types-htmlform/debian/config 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/config 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-htmlform/debian/control =================================================================== --- trunk/ccm-cms-types-htmlform/debian/control 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/control 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-htmlform +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-cms, ccm-devel, ccm-scripts, ccm-core, ccm-cms-types-article +Standards-Version: 3.6.1 + +Package: ccm-cms-types-htmlform +Architecture: all +Depends: debconf, java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java, ccm-cms +Description: APLAWS: NTLM authentication module. + This package contains the Auth HTTP application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-htmlform-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-htmlform + Documentation for ccm-cms-types-htmlform. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-htmlform/debian/copyright =================================================================== --- trunk/ccm-cms-types-htmlform/debian/copyright 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/copyright 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-htmlform/debian/postinst =================================================================== --- trunk/ccm-cms-types-htmlform/debian/postinst 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/postinst 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,111 @@ +#! /bin/sh +# postinst script for ccm-cms-types-htmlform +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-htmlform/debian/postrm =================================================================== --- trunk/ccm-cms-types-htmlform/debian/postrm 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/postrm 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-htmlform +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-htmlform/debian/prerm =================================================================== --- trunk/ccm-cms-types-htmlform/debian/prerm 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/prerm 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-htmlform +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-htmlform/debian/rules =================================================================== --- trunk/ccm-cms-types-htmlform/debian/rules 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/rules 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-htmlform/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-htmlform/debian/templates =================================================================== --- trunk/ccm-cms-types-htmlform/debian/templates 2006-06-14 14:38:22 UTC (rev 1191) +++ trunk/ccm-cms-types-htmlform/debian/templates 2006-06-14 14:38:27 UTC (rev 1192) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-htmlform +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + check/edit the pg_hba.conf file of your PostgreSQL instance + and load the application(s) after the installation. + +Template: ccm/shared/error_ccm_tool_not_found +Type: note +Description: The 'ccm' tool not found. + I need the 'ccm' tool [/usr/bin/ccm] to continue but I cannot find it. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package contains this file --- please check your setup after the installation, + and then run "dpkg-reconfigure ccm-cms-types-htmlform". + +Template: ccm/shared/error_java_home_not_found +Type: note +Description: JAVA_HOME not found. + JAVA_HOME isn't set --- I have even tried to guess it but failed. + . + This will cancel any 'ccm load' and 'ccm hostinit' operations. + . + Please check your java setup after the installation, and then run + "dpkg-reconfigure ccm-cms-types-htmlform". |
From: <fa...@vh...> - 2006-06-14 14:43:00
|
Author: fabrice Date: 2006-06-14 16:38:22 +0200 (Wed, 14 Jun 2006) New Revision: 1191 Added: trunk/ccm-cms-types-glossaryitem/debian/ trunk/ccm-cms-types-glossaryitem/debian/ccm-build.sh trunk/ccm-cms-types-glossaryitem/debian/ccm-clean.sh trunk/ccm-cms-types-glossaryitem/debian/ccm-cms-types-glossaryitem.dirs trunk/ccm-cms-types-glossaryitem/debian/ccm-config.sh trunk/ccm-cms-types-glossaryitem/debian/ccm-disperse.sh trunk/ccm-cms-types-glossaryitem/debian/ccm-install.sh trunk/ccm-cms-types-glossaryitem/debian/ccm-settings-run.sh trunk/ccm-cms-types-glossaryitem/debian/ccm-settings.sh trunk/ccm-cms-types-glossaryitem/debian/changelog trunk/ccm-cms-types-glossaryitem/debian/compat trunk/ccm-cms-types-glossaryitem/debian/config trunk/ccm-cms-types-glossaryitem/debian/control trunk/ccm-cms-types-glossaryitem/debian/copyright trunk/ccm-cms-types-glossaryitem/debian/postinst trunk/ccm-cms-types-glossaryitem/debian/postrm trunk/ccm-cms-types-glossaryitem/debian/prerm trunk/ccm-cms-types-glossaryitem/debian/rules trunk/ccm-cms-types-glossaryitem/debian/templates Log: Debian files Added: trunk/ccm-cms-types-glossaryitem/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/ccm-build.sh 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/ccm-build.sh 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-glossaryitem/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/ccm-clean.sh 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/ccm-clean.sh 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:07 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-glossaryitem/debian/ccm-cms-types-glossaryitem.dirs =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/ccm-cms-types-glossaryitem.dirs 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/ccm-cms-types-glossaryitem.dirs 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-glossaryitem-6.3.0 Added: trunk/ccm-cms-types-glossaryitem/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/ccm-config.sh 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/ccm-config.sh 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-glossaryitem/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/ccm-disperse.sh 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/ccm-disperse.sh 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:07 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-glossaryitem/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/ccm-install.sh 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/ccm-install.sh 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-glossaryitem/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/ccm-settings-run.sh 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/ccm-settings-run.sh 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-glossaryitem/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-glossaryitem/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/ccm-settings.sh 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/ccm-settings.sh 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-glossaryitem +version=6.3.0 +appname=ccm-cms-types-glossaryitem +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-glossaryitem/debian/changelog =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/changelog 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/changelog 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,63 @@ +ccm-cms-types-glossaryitem (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:57 +0000 + +ccm-cms-types-glossaryitem (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:07 +0000 + +ccm-cms-types-glossaryitem (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:52 +0000 + +ccm-cms-types-glossaryitem (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 14:29:01 +0000 + +ccm-cms-types-glossaryitem (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-glossaryitem (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-glossaryitem (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-glossaryitem (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-glossaryitem/debian/compat =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/compat 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/compat 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-glossaryitem/debian/config =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/config 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/config 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:07 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-glossaryitem/debian/control =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/control 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/control 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-glossaryitem +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-glossaryitem +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: Stores glossary terms and definition. + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-glossaryitem-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-glossaryitem + Documentation for ccm-cms-types-glossaryitem. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-glossaryitem/debian/copyright =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/copyright 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/copyright 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-glossaryitem/debian/postinst =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/postinst 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/postinst 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-glossaryitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:07 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-glossaryitem/debian/postrm =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/postrm 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/postrm 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-glossaryitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:07 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-glossaryitem/debian/prerm =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/prerm 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/prerm 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-glossaryitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:07 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-glossaryitem/debian/rules =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/rules 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/rules 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-glossaryitem/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-glossaryitem/debian/templates =================================================================== --- trunk/ccm-cms-types-glossaryitem/debian/templates 2006-06-14 14:38:16 UTC (rev 1190) +++ trunk/ccm-cms-types-glossaryitem/debian/templates 2006-06-14 14:38:22 UTC (rev 1191) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:07 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:07 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-glossaryitem +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + check/edit the pg_hba.conf file of your PostgreSQL instance + and load the application(s) after the installation. + +Template: ccm/shared/error_ccm_tool_not_found +Type: note .. |
From: <fa...@vh...> - 2006-06-14 14:42:50
|
Author: fabrice Date: 2006-06-14 16:38:16 +0200 (Wed, 14 Jun 2006) New Revision: 1190 Added: trunk/ccm-cms-types-formsectionitem/debian/ trunk/ccm-cms-types-formsectionitem/debian/ccm-build.sh trunk/ccm-cms-types-formsectionitem/debian/ccm-clean.sh trunk/ccm-cms-types-formsectionitem/debian/ccm-cms-types-formsectionitem.dirs trunk/ccm-cms-types-formsectionitem/debian/ccm-config.sh trunk/ccm-cms-types-formsectionitem/debian/ccm-disperse.sh trunk/ccm-cms-types-formsectionitem/debian/ccm-install.sh trunk/ccm-cms-types-formsectionitem/debian/ccm-settings-run.sh trunk/ccm-cms-types-formsectionitem/debian/ccm-settings.sh trunk/ccm-cms-types-formsectionitem/debian/changelog trunk/ccm-cms-types-formsectionitem/debian/compat trunk/ccm-cms-types-formsectionitem/debian/config trunk/ccm-cms-types-formsectionitem/debian/control trunk/ccm-cms-types-formsectionitem/debian/copyright trunk/ccm-cms-types-formsectionitem/debian/postinst trunk/ccm-cms-types-formsectionitem/debian/postrm trunk/ccm-cms-types-formsectionitem/debian/prerm trunk/ccm-cms-types-formsectionitem/debian/rules trunk/ccm-cms-types-formsectionitem/debian/templates Log: Debian files Added: trunk/ccm-cms-types-formsectionitem/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/ccm-build.sh 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/ccm-build.sh 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-formsectionitem/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/ccm-clean.sh 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/ccm-clean.sh 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-formsectionitem/debian/ccm-cms-types-formsectionitem.dirs =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/ccm-cms-types-formsectionitem.dirs 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/ccm-cms-types-formsectionitem.dirs 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-formsectionitem-6.3.0 Added: trunk/ccm-cms-types-formsectionitem/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/ccm-config.sh 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/ccm-config.sh 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-formsectionitem/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/ccm-disperse.sh 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/ccm-disperse.sh 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-formsectionitem/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/ccm-install.sh 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/ccm-install.sh 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-formsectionitem/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/ccm-settings-run.sh 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/ccm-settings-run.sh 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-formsectionitem/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-formsectionitem/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/ccm-settings.sh 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/ccm-settings.sh 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-formsectionitem +version=6.3.0 +appname=ccm-cms-types-formsectionitem +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-formsectionitem/debian/changelog =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/changelog 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/changelog 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,69 @@ +ccm-cms-types-formsectionitem (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:56 +0000 + +ccm-cms-types-formsectionitem (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:07 +0000 + +ccm-cms-types-formsectionitem (6.1.1-2) unstable; urgency=low + + * Final (?) fix for dublincore dates, #17509 + + -- My <my...@fi...> Wed, 18 May 2005 08:29:52 +0000 + +ccm-cms-types-formsectionitem (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:51 +0000 + +ccm-cms-types-formsectionitem (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 14:26:39 +0000 + +ccm-cms-types-formsectionitem (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-formsectionitem (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-formsectionitem (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-formsectionitem (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-formsectionitem/debian/compat =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/compat 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/compat 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-formsectionitem/debian/config =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/config 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/config 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-formsectionitem/debian/control =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/control 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/control 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-formsectionitem +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-formsectionitem +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: The FormSection content type for greating parts of a form. + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-formsectionitem-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-formsectionitem + Documentation for ccm-cms-types-formsectionitem. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-formsectionitem/debian/copyright =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/copyright 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/copyright 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-formsectionitem/debian/postinst =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/postinst 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/postinst 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-formsectionitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-formsectionitem/debian/postrm =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/postrm 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/postrm 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-formsectionitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-formsectionitem/debian/prerm =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/prerm 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/prerm 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-formsectionitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-formsectionitem/debian/rules =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/rules 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/rules 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-formsectionitem/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-formsectionitem/debian/templates =================================================================== --- trunk/ccm-cms-types-formsectionitem/debian/templates 2006-06-14 14:38:08 UTC (rev 1189) +++ trunk/ccm-cms-types-formsectionitem/debian/templates 2006-06-14 14:38:16 UTC (rev 1190) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-formsectionitem +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . .. |
From: <fa...@vh...> - 2006-06-14 14:42:39
|
Author: fabrice Date: 2006-06-14 16:38:03 +0200 (Wed, 14 Jun 2006) New Revision: 1188 Added: trunk/ccm-cms-types-filestorageitem/debian/ trunk/ccm-cms-types-filestorageitem/debian/ccm-build.sh trunk/ccm-cms-types-filestorageitem/debian/ccm-clean.sh trunk/ccm-cms-types-filestorageitem/debian/ccm-cms-types-filestorageitem.dirs trunk/ccm-cms-types-filestorageitem/debian/ccm-config.sh trunk/ccm-cms-types-filestorageitem/debian/ccm-disperse.sh trunk/ccm-cms-types-filestorageitem/debian/ccm-install.sh trunk/ccm-cms-types-filestorageitem/debian/ccm-settings-run.sh trunk/ccm-cms-types-filestorageitem/debian/ccm-settings.sh trunk/ccm-cms-types-filestorageitem/debian/changelog trunk/ccm-cms-types-filestorageitem/debian/compat trunk/ccm-cms-types-filestorageitem/debian/config trunk/ccm-cms-types-filestorageitem/debian/control trunk/ccm-cms-types-filestorageitem/debian/copyright trunk/ccm-cms-types-filestorageitem/debian/postinst trunk/ccm-cms-types-filestorageitem/debian/postrm trunk/ccm-cms-types-filestorageitem/debian/prerm trunk/ccm-cms-types-filestorageitem/debian/rules trunk/ccm-cms-types-filestorageitem/debian/templates Log: Debian files Added: trunk/ccm-cms-types-filestorageitem/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/ccm-build.sh 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/ccm-build.sh 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-filestorageitem/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/ccm-clean.sh 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/ccm-clean.sh 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-filestorageitem/debian/ccm-cms-types-filestorageitem.dirs =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/ccm-cms-types-filestorageitem.dirs 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/ccm-cms-types-filestorageitem.dirs 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-filestorageitem-6.3.0 Added: trunk/ccm-cms-types-filestorageitem/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/ccm-config.sh 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/ccm-config.sh 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-filestorageitem/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/ccm-disperse.sh 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/ccm-disperse.sh 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-filestorageitem/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/ccm-install.sh 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/ccm-install.sh 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-filestorageitem/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/ccm-settings-run.sh 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/ccm-settings-run.sh 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-filestorageitem/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-filestorageitem/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/ccm-settings.sh 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/ccm-settings.sh 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-filestorageitem +version=6.3.0 +appname=ccm-cms-types-filestorageitem +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-filestorageitem/debian/changelog =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/changelog 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/changelog 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,69 @@ +ccm-cms-types-filestorageitem (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:56 +0000 + +ccm-cms-types-filestorageitem (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:06 +0000 + +ccm-cms-types-filestorageitem (6.1.1-2) unstable; urgency=low + + * Final (?) fix for dublincore dates, #17509 + + -- My <my...@fi...> Wed, 18 May 2005 08:31:08 +0000 + +ccm-cms-types-filestorageitem (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:51 +0000 + +ccm-cms-types-filestorageitem (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 14:14:47 +0000 + +ccm-cms-types-filestorageitem (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-filestorageitem (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-filestorageitem (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-filestorageitem (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-filestorageitem/debian/compat =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/compat 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/compat 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-filestorageitem/debian/config =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/config 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/config 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-filestorageitem/debian/control =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/control 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/control 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-filestorageitem +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-filestorageitem +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-filestorageitem-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-filestorageitem + Documentation for ccm-cms-types-filestorageitem. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-filestorageitem/debian/copyright =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/copyright 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/copyright 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-filestorageitem/debian/postinst =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/postinst 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/postinst 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-filestorageitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-filestorageitem/debian/postrm =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/postrm 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/postrm 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-filestorageitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-filestorageitem/debian/prerm =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/prerm 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/prerm 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-filestorageitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-filestorageitem/debian/rules =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/rules 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/rules 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-filestorageitem/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-filestorageitem/debian/templates =================================================================== --- trunk/ccm-cms-types-filestorageitem/debian/templates 2006-06-14 14:37:58 UTC (rev 1187) +++ trunk/ccm-cms-types-filestorageitem/debian/templates 2006-06-14 14:38:03 UTC (rev 1188) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:06 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-filestorageitem +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . .. |
From: <fa...@vh...> - 2006-06-14 14:42:37
|
Author: fabrice Date: 2006-06-14 16:37:58 +0200 (Wed, 14 Jun 2006) New Revision: 1187 Added: trunk/ccm-cms-types-faqitem/debian/ trunk/ccm-cms-types-faqitem/debian/ccm-build.sh trunk/ccm-cms-types-faqitem/debian/ccm-clean.sh trunk/ccm-cms-types-faqitem/debian/ccm-cms-types-faqitem.dirs trunk/ccm-cms-types-faqitem/debian/ccm-config.sh trunk/ccm-cms-types-faqitem/debian/ccm-disperse.sh trunk/ccm-cms-types-faqitem/debian/ccm-install.sh trunk/ccm-cms-types-faqitem/debian/ccm-settings-run.sh trunk/ccm-cms-types-faqitem/debian/ccm-settings.sh trunk/ccm-cms-types-faqitem/debian/changelog trunk/ccm-cms-types-faqitem/debian/compat trunk/ccm-cms-types-faqitem/debian/config trunk/ccm-cms-types-faqitem/debian/control trunk/ccm-cms-types-faqitem/debian/copyright trunk/ccm-cms-types-faqitem/debian/postinst trunk/ccm-cms-types-faqitem/debian/postrm trunk/ccm-cms-types-faqitem/debian/prerm trunk/ccm-cms-types-faqitem/debian/rules trunk/ccm-cms-types-faqitem/debian/templates Log: Debian files Added: trunk/ccm-cms-types-faqitem/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-faqitem/debian/ccm-build.sh 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/ccm-build.sh 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-faqitem/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-faqitem/debian/ccm-clean.sh 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/ccm-clean.sh 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:05 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-faqitem/debian/ccm-cms-types-faqitem.dirs =================================================================== --- trunk/ccm-cms-types-faqitem/debian/ccm-cms-types-faqitem.dirs 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/ccm-cms-types-faqitem.dirs 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-faqitem-6.3.0 Added: trunk/ccm-cms-types-faqitem/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-faqitem/debian/ccm-config.sh 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/ccm-config.sh 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-faqitem/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-faqitem/debian/ccm-disperse.sh 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/ccm-disperse.sh 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:05 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-faqitem/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-faqitem/debian/ccm-install.sh 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/ccm-install.sh 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-faqitem/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-faqitem/debian/ccm-settings-run.sh 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/ccm-settings-run.sh 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-faqitem/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-faqitem/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-faqitem/debian/ccm-settings.sh 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/ccm-settings.sh 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-faqitem +version=6.3.0 +appname=ccm-cms-types-faqitem +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-faqitem/debian/changelog =================================================================== --- trunk/ccm-cms-types-faqitem/debian/changelog 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/changelog 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,63 @@ +ccm-cms-types-faqitem (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:56 +0000 + +ccm-cms-types-faqitem (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:06 +0000 + +ccm-cms-types-faqitem (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:51 +0000 + +ccm-cms-types-faqitem (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 14:11:45 +0000 + +ccm-cms-types-faqitem (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-faqitem (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-faqitem (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-faqitem (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-faqitem/debian/compat =================================================================== --- trunk/ccm-cms-types-faqitem/debian/compat 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/compat 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-faqitem/debian/config =================================================================== --- trunk/ccm-cms-types-faqitem/debian/config 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/config 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:05 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-faqitem/debian/control =================================================================== --- trunk/ccm-cms-types-faqitem/debian/control 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/control 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-faqitem +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-faqitem +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: Stores frequently asked questions and answers. + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-faqitem-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-faqitem + Documentation for ccm-cms-types-faqitem. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-faqitem/debian/copyright =================================================================== --- trunk/ccm-cms-types-faqitem/debian/copyright 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/copyright 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-faqitem/debian/postinst =================================================================== --- trunk/ccm-cms-types-faqitem/debian/postinst 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/postinst 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-faqitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:05 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-faqitem/debian/postrm =================================================================== --- trunk/ccm-cms-types-faqitem/debian/postrm 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/postrm 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-faqitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:05 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-faqitem/debian/prerm =================================================================== --- trunk/ccm-cms-types-faqitem/debian/prerm 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/prerm 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-faqitem +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:05 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-faqitem/debian/rules =================================================================== --- trunk/ccm-cms-types-faqitem/debian/rules 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/rules 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-faqitem/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-faqitem/debian/templates =================================================================== --- trunk/ccm-cms-types-faqitem/debian/templates 2006-06-14 14:37:50 UTC (rev 1186) +++ trunk/ccm-cms-types-faqitem/debian/templates 2006-06-14 14:37:58 UTC (rev 1187) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:05 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:05 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-faqitem +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + check/edit the pg_hba.conf file of your PostgreSQL instance + and load the application(s) after the installation. + +Template: ccm/shared/error_ccm_tool_not_found +Type: note .. |
From: <fa...@vh...> - 2006-06-14 14:42:18
|
Author: fabrice Date: 2006-06-14 16:37:45 +0200 (Wed, 14 Jun 2006) New Revision: 1185 Added: trunk/ccm-cms-types-esdservice/debian/ trunk/ccm-cms-types-esdservice/debian/ccm-build.sh trunk/ccm-cms-types-esdservice/debian/ccm-clean.sh trunk/ccm-cms-types-esdservice/debian/ccm-cms-types-esdservice.dirs trunk/ccm-cms-types-esdservice/debian/ccm-config.sh trunk/ccm-cms-types-esdservice/debian/ccm-disperse.sh trunk/ccm-cms-types-esdservice/debian/ccm-install.sh trunk/ccm-cms-types-esdservice/debian/ccm-settings-run.sh trunk/ccm-cms-types-esdservice/debian/ccm-settings.sh trunk/ccm-cms-types-esdservice/debian/changelog trunk/ccm-cms-types-esdservice/debian/compat trunk/ccm-cms-types-esdservice/debian/config trunk/ccm-cms-types-esdservice/debian/control trunk/ccm-cms-types-esdservice/debian/copyright trunk/ccm-cms-types-esdservice/debian/postinst trunk/ccm-cms-types-esdservice/debian/postrm trunk/ccm-cms-types-esdservice/debian/prerm trunk/ccm-cms-types-esdservice/debian/rules trunk/ccm-cms-types-esdservice/debian/templates Log: Debian files Added: trunk/ccm-cms-types-esdservice/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-esdservice/debian/ccm-build.sh 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/ccm-build.sh 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-esdservice/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-esdservice/debian/ccm-clean.sh 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/ccm-clean.sh 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-esdservice/debian/ccm-cms-types-esdservice.dirs =================================================================== --- trunk/ccm-cms-types-esdservice/debian/ccm-cms-types-esdservice.dirs 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/ccm-cms-types-esdservice.dirs 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-esdservice-6.3.0 Added: trunk/ccm-cms-types-esdservice/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-esdservice/debian/ccm-config.sh 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/ccm-config.sh 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-esdservice/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-esdservice/debian/ccm-disperse.sh 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/ccm-disperse.sh 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-esdservice/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-esdservice/debian/ccm-install.sh 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/ccm-install.sh 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-esdservice/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-esdservice/debian/ccm-settings-run.sh 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/ccm-settings-run.sh 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-esdservice/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-esdservice/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-esdservice/debian/ccm-settings.sh 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/ccm-settings.sh 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-esdservice +version=6.3.0 +appname=ccm-cms-types-esdservice +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-esdservice/debian/changelog =================================================================== --- trunk/ccm-cms-types-esdservice/debian/changelog 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/changelog 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,69 @@ +ccm-cms-types-esdservice (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:56 +0000 + +ccm-cms-types-esdservice (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:05 +0000 + +ccm-cms-types-esdservice (6.1.1-2) unstable; urgency=low + + * Final (?) fix for dublincore dates, #17509 + + -- My <my...@fi...> Wed, 18 May 2005 08:29:35 +0000 + +ccm-cms-types-esdservice (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:51 +0000 + +ccm-cms-types-esdservice (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 11:16:03 +0000 + +ccm-cms-types-esdservice (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-esdservice (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-esdservice (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-esdservice (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-esdservice/debian/compat =================================================================== --- trunk/ccm-cms-types-esdservice/debian/compat 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/compat 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-esdservice/debian/config =================================================================== --- trunk/ccm-cms-types-esdservice/debian/config 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/config 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-esdservice/debian/control =================================================================== --- trunk/ccm-cms-types-esdservice/debian/control 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/control 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-esdservice +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms, ccm-cms-types-contact +Standards-Version: 3.6.1 + +Package: ccm-cms-types-esdservice +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms, ccm-cms-types-contact +Description: APLAWS: + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-esdservice-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-esdservice + Documentation for ccm-cms-types-esdservice. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-esdservice/debian/copyright =================================================================== --- trunk/ccm-cms-types-esdservice/debian/copyright 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/copyright 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-esdservice/debian/postinst =================================================================== --- trunk/ccm-cms-types-esdservice/debian/postinst 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/postinst 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-esdservice +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-esdservice/debian/postrm =================================================================== --- trunk/ccm-cms-types-esdservice/debian/postrm 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/postrm 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-esdservice +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-esdservice/debian/prerm =================================================================== --- trunk/ccm-cms-types-esdservice/debian/prerm 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/prerm 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-esdservice +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-esdservice/debian/rules =================================================================== --- trunk/ccm-cms-types-esdservice/debian/rules 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/rules 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-esdservice/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-esdservice/debian/templates =================================================================== --- trunk/ccm-cms-types-esdservice/debian/templates 2006-06-14 14:37:39 UTC (rev 1184) +++ trunk/ccm-cms-types-esdservice/debian/templates 2006-06-14 14:37:45 UTC (rev 1185) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-esdservice +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . .. |
From: <fa...@vh...> - 2006-06-14 14:42:11
|
Author: fabrice Date: 2006-06-14 16:37:06 +0200 (Wed, 14 Jun 2006) New Revision: 1179 Added: trunk/ccm-cms-assets-relatedlink/debian/ trunk/ccm-cms-assets-relatedlink/debian/ccm-build.sh trunk/ccm-cms-assets-relatedlink/debian/ccm-clean.sh trunk/ccm-cms-assets-relatedlink/debian/ccm-cms-assets-relatedlink.dirs trunk/ccm-cms-assets-relatedlink/debian/ccm-config.sh trunk/ccm-cms-assets-relatedlink/debian/ccm-disperse.sh trunk/ccm-cms-assets-relatedlink/debian/ccm-install.sh trunk/ccm-cms-assets-relatedlink/debian/ccm-settings-run.sh trunk/ccm-cms-assets-relatedlink/debian/ccm-settings.sh trunk/ccm-cms-assets-relatedlink/debian/changelog trunk/ccm-cms-assets-relatedlink/debian/compat trunk/ccm-cms-assets-relatedlink/debian/config trunk/ccm-cms-assets-relatedlink/debian/control trunk/ccm-cms-assets-relatedlink/debian/copyright trunk/ccm-cms-assets-relatedlink/debian/postinst trunk/ccm-cms-assets-relatedlink/debian/postrm trunk/ccm-cms-assets-relatedlink/debian/prerm trunk/ccm-cms-assets-relatedlink/debian/rules trunk/ccm-cms-assets-relatedlink/debian/templates Log: Debian files Added: trunk/ccm-cms-assets-relatedlink/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/ccm-build.sh 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/ccm-build.sh 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-assets-relatedlink/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/ccm-clean.sh 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/ccm-clean.sh 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 10:13:00 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-assets-relatedlink/debian/ccm-cms-assets-relatedlink.dirs =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/ccm-cms-assets-relatedlink.dirs 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/ccm-cms-assets-relatedlink.dirs 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-assets-relatedlink-6.3.0 Added: trunk/ccm-cms-assets-relatedlink/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/ccm-config.sh 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/ccm-config.sh 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-assets-relatedlink/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/ccm-disperse.sh 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/ccm-disperse.sh 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 10:13:00 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-assets-relatedlink/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/ccm-install.sh 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/ccm-install.sh 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-assets-relatedlink/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/ccm-settings-run.sh 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/ccm-settings-run.sh 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-assets-relatedlink/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-assets-relatedlink/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/ccm-settings.sh 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/ccm-settings.sh 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-assets-relatedlink +version=6.3.0 +appname=ccm-cms-assets-relatedlink +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-assets-relatedlink/debian/changelog =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/changelog 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/changelog 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,64 @@ +ccm-cms-assets-relatedlink (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:55 +0000 + +ccm-cms-assets-relatedlink (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:03 +0000 + +ccm-cms-assets-relatedlink (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:50 +0000 + +ccm-cms-assets-relatedlink (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Depend on debconf + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Wed, 19 Jan 2005 11:05:44 +0000 + +ccm-cms-assets-relatedlink (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-assets-relatedlink (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-assets-relatedlink (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-assets-relatedlink (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-assets-relatedlink/debian/compat =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/compat 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/compat 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-assets-relatedlink/debian/config =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/config 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/config 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 10:13:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-assets-relatedlink/debian/control =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/control 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/control 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,21 @@ +Source: ccm-cms-assets-relatedlink +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-assets-relatedlink +Architecture: all +Depends: debconf, java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: Application to add related links to content items. + This package contains the Red Hat CMS Content Asset Related Link application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-assets-relatedlink-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-assets-relatedlink + Documentation for ccm-cms-assets-relatedlink. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-assets-relatedlink/debian/copyright =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/copyright 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/copyright 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-assets-relatedlink/debian/postinst =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/postinst 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/postinst 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-assets-relatedlink +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 10:13:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-assets-relatedlink/debian/postrm =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/postrm 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/postrm 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-assets-relatedlink +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 10:13:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-assets-relatedlink/debian/prerm =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/prerm 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/prerm 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-assets-relatedlink +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 10:13:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-assets-relatedlink/debian/rules =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/rules 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/rules 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-assets-relatedlink/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-assets-relatedlink/debian/templates =================================================================== --- trunk/ccm-cms-assets-relatedlink/debian/templates 2006-06-14 14:36:57 UTC (rev 1178) +++ trunk/ccm-cms-assets-relatedlink/debian/templates 2006-06-14 14:37:06 UTC (rev 1179) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 10:13:00 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 10:13:00 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-assets-relatedlink +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + check/edit the pg_hba.conf file of your PostgreSQL instance + and load the application(s) after the installation. + +Template: ccm/shared/error_ccm_tool_not_found .. |
From: <fa...@vh...> - 2006-06-14 14:42:09
|
Author: fabrice Date: 2006-06-14 16:37:39 +0200 (Wed, 14 Jun 2006) New Revision: 1184 Added: trunk/ccm-cms-types-contact/debian/ trunk/ccm-cms-types-contact/debian/ccm-build.sh trunk/ccm-cms-types-contact/debian/ccm-clean.sh trunk/ccm-cms-types-contact/debian/ccm-cms-types-contact.dirs trunk/ccm-cms-types-contact/debian/ccm-config.sh trunk/ccm-cms-types-contact/debian/ccm-disperse.sh trunk/ccm-cms-types-contact/debian/ccm-install.sh trunk/ccm-cms-types-contact/debian/ccm-settings-run.sh trunk/ccm-cms-types-contact/debian/ccm-settings.sh trunk/ccm-cms-types-contact/debian/changelog trunk/ccm-cms-types-contact/debian/compat trunk/ccm-cms-types-contact/debian/config trunk/ccm-cms-types-contact/debian/control trunk/ccm-cms-types-contact/debian/copyright trunk/ccm-cms-types-contact/debian/postinst trunk/ccm-cms-types-contact/debian/postrm trunk/ccm-cms-types-contact/debian/prerm trunk/ccm-cms-types-contact/debian/rules trunk/ccm-cms-types-contact/debian/templates Log: Debian files Added: trunk/ccm-cms-types-contact/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-contact/debian/ccm-build.sh 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/ccm-build.sh 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-contact/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-contact/debian/ccm-clean.sh 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/ccm-clean.sh 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-contact/debian/ccm-cms-types-contact.dirs =================================================================== --- trunk/ccm-cms-types-contact/debian/ccm-cms-types-contact.dirs 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/ccm-cms-types-contact.dirs 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-contact-6.3.0 Added: trunk/ccm-cms-types-contact/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-contact/debian/ccm-config.sh 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/ccm-config.sh 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-contact/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-contact/debian/ccm-disperse.sh 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/ccm-disperse.sh 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-contact/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-contact/debian/ccm-install.sh 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/ccm-install.sh 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-contact/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-contact/debian/ccm-settings-run.sh 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/ccm-settings-run.sh 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-contact/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-contact/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-contact/debian/ccm-settings.sh 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/ccm-settings.sh 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-contact +version=6.3.0 +appname=ccm-cms-types-contact +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-contact/debian/changelog =================================================================== --- trunk/ccm-cms-types-contact/debian/changelog 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/changelog 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,69 @@ +ccm-cms-types-contact (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:56 +0000 + +ccm-cms-types-contact (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:05 +0000 + +ccm-cms-types-contact (6.1.1-2) unstable; urgency=low + + * Final (?) fix for dublincore dates, #17509 + + -- My <my...@fi...> Wed, 18 May 2005 08:31:37 +0000 + +ccm-cms-types-contact (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:50 +0000 + +ccm-cms-types-contact (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 11:00:35 +0000 + +ccm-cms-types-contact (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-contact (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-contact (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-contact (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-contact/debian/compat =================================================================== --- trunk/ccm-cms-types-contact/debian/compat 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/compat 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-contact/debian/config =================================================================== --- trunk/ccm-cms-types-contact/debian/config 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/config 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-contact/debian/control =================================================================== --- trunk/ccm-cms-types-contact/debian/control 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/control 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-contact +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-contact +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-contact-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-contact + Documentation for ccm-cms-types-contact. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-contact/debian/copyright =================================================================== --- trunk/ccm-cms-types-contact/debian/copyright 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/copyright 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-contact/debian/postinst =================================================================== --- trunk/ccm-cms-types-contact/debian/postinst 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/postinst 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-contact +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-contact/debian/postrm =================================================================== --- trunk/ccm-cms-types-contact/debian/postrm 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/postrm 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-contact +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-contact/debian/prerm =================================================================== --- trunk/ccm-cms-types-contact/debian/prerm 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/prerm 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-contact +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-contact/debian/rules =================================================================== --- trunk/ccm-cms-types-contact/debian/rules 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/rules 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-contact/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-contact/debian/templates =================================================================== --- trunk/ccm-cms-types-contact/debian/templates 2006-06-14 14:37:30 UTC (rev 1183) +++ trunk/ccm-cms-types-contact/debian/templates 2006-06-14 14:37:39 UTC (rev 1184) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:04 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-contact +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . .. |
From: <fa...@vh...> - 2006-06-14 14:42:07
|
Author: fabrice Date: 2006-06-14 16:37:30 +0200 (Wed, 14 Jun 2006) New Revision: 1183 Added: trunk/ccm-cms-types-bookmark/debian/ trunk/ccm-cms-types-bookmark/debian/ccm-build.sh trunk/ccm-cms-types-bookmark/debian/ccm-clean.sh trunk/ccm-cms-types-bookmark/debian/ccm-cms-types-bookmark.dirs trunk/ccm-cms-types-bookmark/debian/ccm-config.sh trunk/ccm-cms-types-bookmark/debian/ccm-disperse.sh trunk/ccm-cms-types-bookmark/debian/ccm-install.sh trunk/ccm-cms-types-bookmark/debian/ccm-settings-run.sh trunk/ccm-cms-types-bookmark/debian/ccm-settings.sh trunk/ccm-cms-types-bookmark/debian/changelog trunk/ccm-cms-types-bookmark/debian/compat trunk/ccm-cms-types-bookmark/debian/config trunk/ccm-cms-types-bookmark/debian/control trunk/ccm-cms-types-bookmark/debian/copyright trunk/ccm-cms-types-bookmark/debian/postinst trunk/ccm-cms-types-bookmark/debian/postrm trunk/ccm-cms-types-bookmark/debian/prerm trunk/ccm-cms-types-bookmark/debian/rules trunk/ccm-cms-types-bookmark/debian/templates Log: Debian files Added: trunk/ccm-cms-types-bookmark/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-bookmark/debian/ccm-build.sh 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/ccm-build.sh 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-bookmark/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-bookmark/debian/ccm-clean.sh 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/ccm-clean.sh 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-bookmark/debian/ccm-cms-types-bookmark.dirs =================================================================== --- trunk/ccm-cms-types-bookmark/debian/ccm-cms-types-bookmark.dirs 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/ccm-cms-types-bookmark.dirs 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-bookmark-6.3.0 Added: trunk/ccm-cms-types-bookmark/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-bookmark/debian/ccm-config.sh 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/ccm-config.sh 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-bookmark/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-bookmark/debian/ccm-disperse.sh 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/ccm-disperse.sh 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-bookmark/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-bookmark/debian/ccm-install.sh 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/ccm-install.sh 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-bookmark/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-bookmark/debian/ccm-settings-run.sh 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/ccm-settings-run.sh 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-bookmark/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-bookmark/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-bookmark/debian/ccm-settings.sh 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/ccm-settings.sh 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-bookmark +version=6.3.0 +appname=ccm-cms-types-bookmark +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-bookmark/debian/changelog =================================================================== --- trunk/ccm-cms-types-bookmark/debian/changelog 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/changelog 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,63 @@ +ccm-cms-types-bookmark (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:56 +0000 + +ccm-cms-types-bookmark (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:05 +0000 + +ccm-cms-types-bookmark (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:50 +0000 + +ccm-cms-types-bookmark (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 10:48:48 +0000 + +ccm-cms-types-bookmark (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-bookmark (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-bookmark (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-bookmark (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-bookmark/debian/compat =================================================================== --- trunk/ccm-cms-types-bookmark/debian/compat 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/compat 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-bookmark/debian/config =================================================================== --- trunk/ccm-cms-types-bookmark/debian/config 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/config 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-bookmark/debian/control =================================================================== --- trunk/ccm-cms-types-bookmark/debian/control 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/control 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-bookmark +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-bookmark +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: Creates bookmarks to websites. + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-bookmark-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-bookmark + Documentation for ccm-cms-types-bookmark. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-bookmark/debian/copyright =================================================================== --- trunk/ccm-cms-types-bookmark/debian/copyright 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/copyright 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-bookmark/debian/postinst =================================================================== --- trunk/ccm-cms-types-bookmark/debian/postinst 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/postinst 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-bookmark +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-bookmark/debian/postrm =================================================================== --- trunk/ccm-cms-types-bookmark/debian/postrm 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/postrm 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-bookmark +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-bookmark/debian/prerm =================================================================== --- trunk/ccm-cms-types-bookmark/debian/prerm 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/prerm 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-bookmark +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-bookmark/debian/rules =================================================================== --- trunk/ccm-cms-types-bookmark/debian/rules 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/rules 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-bookmark/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-bookmark/debian/templates =================================================================== --- trunk/ccm-cms-types-bookmark/debian/templates 2006-06-14 14:37:24 UTC (rev 1182) +++ trunk/ccm-cms-types-bookmark/debian/templates 2006-06-14 14:37:30 UTC (rev 1183) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-bookmark +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + check/edit the pg_hba.conf file of your PostgreSQL instance + and load the application(s) after the installation. + +Template: ccm/shared/error_ccm_tool_not_found +Type: note .. |
From: <fa...@vh...> - 2006-06-14 14:41:57
|
Author: fabrice Date: 2006-06-14 16:37:24 +0200 (Wed, 14 Jun 2006) New Revision: 1182 Added: trunk/ccm-cms-types-article/debian/ trunk/ccm-cms-types-article/debian/ccm-build.sh trunk/ccm-cms-types-article/debian/ccm-clean.sh trunk/ccm-cms-types-article/debian/ccm-cms-types-article.dirs trunk/ccm-cms-types-article/debian/ccm-config.sh trunk/ccm-cms-types-article/debian/ccm-disperse.sh trunk/ccm-cms-types-article/debian/ccm-install.sh trunk/ccm-cms-types-article/debian/ccm-settings-run.sh trunk/ccm-cms-types-article/debian/ccm-settings.sh trunk/ccm-cms-types-article/debian/changelog trunk/ccm-cms-types-article/debian/compat trunk/ccm-cms-types-article/debian/config trunk/ccm-cms-types-article/debian/control trunk/ccm-cms-types-article/debian/copyright trunk/ccm-cms-types-article/debian/postinst trunk/ccm-cms-types-article/debian/postrm trunk/ccm-cms-types-article/debian/prerm trunk/ccm-cms-types-article/debian/rules trunk/ccm-cms-types-article/debian/templates Log: Debian files Added: trunk/ccm-cms-types-article/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-article/debian/ccm-build.sh 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/ccm-build.sh 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-article/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-article/debian/ccm-clean.sh 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/ccm-clean.sh 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-article/debian/ccm-cms-types-article.dirs =================================================================== --- trunk/ccm-cms-types-article/debian/ccm-cms-types-article.dirs 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/ccm-cms-types-article.dirs 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-article-6.3.0 Added: trunk/ccm-cms-types-article/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-article/debian/ccm-config.sh 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/ccm-config.sh 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-article/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-article/debian/ccm-disperse.sh 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/ccm-disperse.sh 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-article/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-article/debian/ccm-install.sh 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/ccm-install.sh 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-article/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-article/debian/ccm-settings-run.sh 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/ccm-settings-run.sh 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-article/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-article/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-article/debian/ccm-settings.sh 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/ccm-settings.sh 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-article +version=6.3.0 +appname=ccm-cms-types-article +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-article/debian/changelog =================================================================== --- trunk/ccm-cms-types-article/debian/changelog 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/changelog 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,64 @@ +ccm-cms-types-article (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:55 +0000 + +ccm-cms-types-article (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:04 +0000 + +ccm-cms-types-article (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:50 +0000 + +ccm-cms-types-article (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Depend on debconf + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 10:13:54 +0000 + +ccm-cms-types-article (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-article (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-article (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-article (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-article/debian/compat =================================================================== --- trunk/ccm-cms-types-article/debian/compat 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/compat 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-article/debian/config =================================================================== --- trunk/ccm-cms-types-article/debian/config 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/config 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-article/debian/control =================================================================== --- trunk/ccm-cms-types-article/debian/control 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/control 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-article +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-article +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: The Article content type. + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-article-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-article + Documentation for ccm-cms-types-article. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-article/debian/copyright =================================================================== --- trunk/ccm-cms-types-article/debian/copyright 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/copyright 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-article/debian/postinst =================================================================== --- trunk/ccm-cms-types-article/debian/postinst 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/postinst 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-article +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-article/debian/postrm =================================================================== --- trunk/ccm-cms-types-article/debian/postrm 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/postrm 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-article +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-article/debian/prerm =================================================================== --- trunk/ccm-cms-types-article/debian/prerm 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/prerm 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-article +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-article/debian/rules =================================================================== --- trunk/ccm-cms-types-article/debian/rules 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/rules 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-article/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-article/debian/templates =================================================================== --- trunk/ccm-cms-types-article/debian/templates 2006-06-14 14:37:18 UTC (rev 1181) +++ trunk/ccm-cms-types-article/debian/templates 2006-06-14 14:37:24 UTC (rev 1182) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-article +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + check/edit the pg_hba.conf file of your PostgreSQL instance + and load the application(s) after the installation. + +Template: ccm/shared/error_ccm_tool_not_found .. |
From: <fa...@vh...> - 2006-06-14 14:41:54
|
Author: fabrice Date: 2006-06-14 16:37:18 +0200 (Wed, 14 Jun 2006) New Revision: 1181 Added: trunk/ccm-cms-types-agenda/debian/ trunk/ccm-cms-types-agenda/debian/ccm-build.sh trunk/ccm-cms-types-agenda/debian/ccm-clean.sh trunk/ccm-cms-types-agenda/debian/ccm-cms-types-agenda.dirs trunk/ccm-cms-types-agenda/debian/ccm-config.sh trunk/ccm-cms-types-agenda/debian/ccm-disperse.sh trunk/ccm-cms-types-agenda/debian/ccm-install.sh trunk/ccm-cms-types-agenda/debian/ccm-settings-run.sh trunk/ccm-cms-types-agenda/debian/ccm-settings.sh trunk/ccm-cms-types-agenda/debian/changelog trunk/ccm-cms-types-agenda/debian/compat trunk/ccm-cms-types-agenda/debian/config trunk/ccm-cms-types-agenda/debian/control trunk/ccm-cms-types-agenda/debian/copyright trunk/ccm-cms-types-agenda/debian/postinst trunk/ccm-cms-types-agenda/debian/postrm trunk/ccm-cms-types-agenda/debian/prerm trunk/ccm-cms-types-agenda/debian/rules trunk/ccm-cms-types-agenda/debian/templates Log: Debian files Added: trunk/ccm-cms-types-agenda/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-agenda/debian/ccm-build.sh 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/ccm-build.sh 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-agenda/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-agenda/debian/ccm-clean.sh 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/ccm-clean.sh 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-agenda/debian/ccm-cms-types-agenda.dirs =================================================================== --- trunk/ccm-cms-types-agenda/debian/ccm-cms-types-agenda.dirs 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/ccm-cms-types-agenda.dirs 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-agenda-6.3.0 Added: trunk/ccm-cms-types-agenda/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-agenda/debian/ccm-config.sh 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/ccm-config.sh 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-agenda/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-agenda/debian/ccm-disperse.sh 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/ccm-disperse.sh 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-agenda/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-agenda/debian/ccm-install.sh 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/ccm-install.sh 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-agenda/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-agenda/debian/ccm-settings-run.sh 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/ccm-settings-run.sh 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-agenda/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-agenda/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-agenda/debian/ccm-settings.sh 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/ccm-settings.sh 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-agenda +version=6.3.0 +appname=ccm-cms-types-agenda +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-agenda/debian/changelog =================================================================== --- trunk/ccm-cms-types-agenda/debian/changelog 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/changelog 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,76 @@ +ccm-cms-types-agenda (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:55 +0000 + +ccm-cms-types-agenda (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.2 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:04 +0000 + +ccm-cms-types-agenda (6.1.2-2) unstable; urgency=low + + * dublincore metadata, 17509 + + -- My <my...@fi...> Tue, 17 May 2005 14:31:04 +0000 + +ccm-cms-types-agenda (6.1.2-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.1.2 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:50 +0000 + +ccm-cms-types-agenda (6.1.1-1) unstable; urgency=low + + * for release qa + + -- David Pashley <da...@ru...> Tue, 25 Jan 2005 11:36:41 +0000 + +ccm-cms-types-agenda (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Depend on debconf + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Tue, 25 Jan 2005 11:36:41 +0000 + +ccm-cms-types-agenda (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-agenda (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-agenda (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-agenda (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-agenda/debian/compat =================================================================== --- trunk/ccm-cms-types-agenda/debian/compat 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/compat 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-agenda/debian/config =================================================================== --- trunk/ccm-cms-types-agenda/debian/config 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/config 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-agenda/debian/control =================================================================== --- trunk/ccm-cms-types-agenda/debian/control 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/control 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-agenda +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-agenda +Architecture: all +Depends: debconf, java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: The Agenda content type. + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-agenda-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-agenda + Documentation for ccm-cms-types-agenda. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-agenda/debian/copyright =================================================================== --- trunk/ccm-cms-types-agenda/debian/copyright 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/copyright 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-agenda/debian/postinst =================================================================== --- trunk/ccm-cms-types-agenda/debian/postinst 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/postinst 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-agenda +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-agenda/debian/postrm =================================================================== --- trunk/ccm-cms-types-agenda/debian/postrm 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/postrm 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-agenda +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-agenda/debian/prerm =================================================================== --- trunk/ccm-cms-types-agenda/debian/prerm 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/prerm 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-agenda +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-agenda/debian/rules =================================================================== --- trunk/ccm-cms-types-agenda/debian/rules 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/rules 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-agenda/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-agenda/debian/templates =================================================================== --- trunk/ccm-cms-types-agenda/debian/templates 2006-06-14 14:37:12 UTC (rev 1180) +++ trunk/ccm-cms-types-agenda/debian/templates 2006-06-14 14:37:18 UTC (rev 1181) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:03 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-agenda +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. .. |
From: <fa...@vh...> - 2006-06-14 14:41:45
|
Author: fabrice Date: 2006-06-14 16:37:12 +0200 (Wed, 14 Jun 2006) New Revision: 1180 Added: trunk/ccm-cms-types-address/debian/ trunk/ccm-cms-types-address/debian/ccm-build.sh trunk/ccm-cms-types-address/debian/ccm-clean.sh trunk/ccm-cms-types-address/debian/ccm-cms-types-address.dirs trunk/ccm-cms-types-address/debian/ccm-config.sh trunk/ccm-cms-types-address/debian/ccm-disperse.sh trunk/ccm-cms-types-address/debian/ccm-install.sh trunk/ccm-cms-types-address/debian/ccm-settings-run.sh trunk/ccm-cms-types-address/debian/ccm-settings.sh trunk/ccm-cms-types-address/debian/changelog trunk/ccm-cms-types-address/debian/compat trunk/ccm-cms-types-address/debian/config trunk/ccm-cms-types-address/debian/control trunk/ccm-cms-types-address/debian/copyright trunk/ccm-cms-types-address/debian/postinst trunk/ccm-cms-types-address/debian/postrm trunk/ccm-cms-types-address/debian/prerm trunk/ccm-cms-types-address/debian/rules trunk/ccm-cms-types-address/debian/templates Log: Debian files Added: trunk/ccm-cms-types-address/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-types-address/debian/ccm-build.sh 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/ccm-build.sh 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-types-address/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-types-address/debian/ccm-clean.sh 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/ccm-clean.sh 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:02 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-types-address/debian/ccm-cms-types-address.dirs =================================================================== --- trunk/ccm-cms-types-address/debian/ccm-cms-types-address.dirs 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/ccm-cms-types-address.dirs 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-types-address-6.3.0 Added: trunk/ccm-cms-types-address/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-types-address/debian/ccm-config.sh 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/ccm-config.sh 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-types-address/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-types-address/debian/ccm-disperse.sh 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/ccm-disperse.sh 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:02 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-types-address/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-types-address/debian/ccm-install.sh 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/ccm-install.sh 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-types-address/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-types-address/debian/ccm-settings-run.sh 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/ccm-settings-run.sh 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-types-address/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-address/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-types-address/debian/ccm-settings.sh 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/ccm-settings.sh 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-types-address +version=6.3.0 +appname=ccm-cms-types-address +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-types-address/debian/changelog =================================================================== --- trunk/ccm-cms-types-address/debian/changelog 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/changelog 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,64 @@ +ccm-cms-types-address (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:55 +0000 + +ccm-cms-types-address (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:03 +0000 + +ccm-cms-types-address (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:50 +0000 + +ccm-cms-types-address (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Depend on debconf + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Wed, 19 Jan 2005 11:23:02 +0000 + +ccm-cms-types-address (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-types-address (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-types-address (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-types-address (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-types-address/debian/compat =================================================================== --- trunk/ccm-cms-types-address/debian/compat 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/compat 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-types-address/debian/config =================================================================== --- trunk/ccm-cms-types-address/debian/config 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/config 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:02 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-types-address/debian/control =================================================================== --- trunk/ccm-cms-types-address/debian/control 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/control 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,21 @@ +Source: ccm-cms-types-address +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-types-address +Architecture: all +Depends: debconf, java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: Stores address infromation. + This package contains the Red Hat CCM Content Types application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-types-address-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-types-address + Documentation for ccm-cms-types-address. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-types-address/debian/copyright =================================================================== --- trunk/ccm-cms-types-address/debian/copyright 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/copyright 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-types-address/debian/postinst =================================================================== --- trunk/ccm-cms-types-address/debian/postinst 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/postinst 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-types-address +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:02 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-types-address/debian/postrm =================================================================== --- trunk/ccm-cms-types-address/debian/postrm 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/postrm 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-types-address +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:02 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-types-address/debian/prerm =================================================================== --- trunk/ccm-cms-types-address/debian/prerm 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/prerm 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-types-address +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:02 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-types-address/debian/rules =================================================================== --- trunk/ccm-cms-types-address/debian/rules 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/rules 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-types-address/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-types-address/debian/templates =================================================================== --- trunk/ccm-cms-types-address/debian/templates 2006-06-14 14:37:06 UTC (rev 1179) +++ trunk/ccm-cms-types-address/debian/templates 2006-06-14 14:37:12 UTC (rev 1180) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:02 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:02 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-types-address +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + check/edit the pg_hba.conf file of your PostgreSQL instance + and load the application(s) after the installation. + +Template: ccm/shared/error_ccm_tool_not_found .. |
From: <fa...@vh...> - 2006-06-14 14:41:32
|
Author: fabrice Date: 2006-06-14 16:36:57 +0200 (Wed, 14 Jun 2006) New Revision: 1178 Added: trunk/ccm-cms-assets-notes/debian/ trunk/ccm-cms-assets-notes/debian/ccm-build.sh trunk/ccm-cms-assets-notes/debian/ccm-clean.sh trunk/ccm-cms-assets-notes/debian/ccm-cms-assets-notes.dirs trunk/ccm-cms-assets-notes/debian/ccm-config.sh trunk/ccm-cms-assets-notes/debian/ccm-disperse.sh trunk/ccm-cms-assets-notes/debian/ccm-install.sh trunk/ccm-cms-assets-notes/debian/ccm-settings-run.sh trunk/ccm-cms-assets-notes/debian/ccm-settings.sh trunk/ccm-cms-assets-notes/debian/changelog trunk/ccm-cms-assets-notes/debian/compat trunk/ccm-cms-assets-notes/debian/config trunk/ccm-cms-assets-notes/debian/control trunk/ccm-cms-assets-notes/debian/copyright trunk/ccm-cms-assets-notes/debian/postinst trunk/ccm-cms-assets-notes/debian/postrm trunk/ccm-cms-assets-notes/debian/prerm trunk/ccm-cms-assets-notes/debian/rules trunk/ccm-cms-assets-notes/debian/templates Log: Debian files Added: trunk/ccm-cms-assets-notes/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-assets-notes/debian/ccm-build.sh 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/ccm-build.sh 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-assets-notes/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-assets-notes/debian/ccm-clean.sh 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/ccm-clean.sh 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-assets-notes/debian/ccm-cms-assets-notes.dirs =================================================================== --- trunk/ccm-cms-assets-notes/debian/ccm-cms-assets-notes.dirs 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/ccm-cms-assets-notes.dirs 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-assets-notes-6.3.0 Added: trunk/ccm-cms-assets-notes/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-assets-notes/debian/ccm-config.sh 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/ccm-config.sh 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-assets-notes/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-assets-notes/debian/ccm-disperse.sh 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/ccm-disperse.sh 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-assets-notes/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-assets-notes/debian/ccm-install.sh 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/ccm-install.sh 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-assets-notes/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-assets-notes/debian/ccm-settings-run.sh 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/ccm-settings-run.sh 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-assets-notes/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-assets-notes/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-assets-notes/debian/ccm-settings.sh 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/ccm-settings.sh 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-assets-notes +version=6.3.0 +appname=ccm-cms-assets-notes +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-assets-notes/debian/changelog =================================================================== --- trunk/ccm-cms-assets-notes/debian/changelog 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/changelog 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,25 @@ +ccm-cms-assets-notes (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:55 +0000 + +ccm-cms-assets-notes (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.2 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:02 +0000 + +ccm-cms-assets-notes (6.1.2-2) unstable; urgency=low + + * Add a depends on ccm-devel, temporarily so they package builds under + cruisecontrol. This will be removed again once ccm-devel goes away. + * Add dependancy on ccm-scripts too. + + -- David Pashley <da...@ru...> Mon, 25 Apr 2005 15:33:43 +0100 + +ccm-cms-assets-notes (6.1.2-1) unstable; urgency=low + + * Initial release. + + -- Fabrice Retkowsky <fa...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-assets-notes/debian/compat =================================================================== --- trunk/ccm-cms-assets-notes/debian/compat 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/compat 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-assets-notes/debian/config =================================================================== --- trunk/ccm-cms-assets-notes/debian/config 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/config 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-assets-notes/debian/control =================================================================== --- trunk/ccm-cms-assets-notes/debian/control 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/control 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,21 @@ +Source: ccm-cms-assets-notes +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-cms, ccm-devel, ccm-scripts, ccm-core +Standards-Version: 3.6.1 + +Package: ccm-cms-assets-notes +Architecture: all +Depends: debconf, java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java, ccm-cms +Description: APLAWS: NTLM authentication module. + This package contains the Auth HTTP application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-assets-notes-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-assets-notes + Documentation for ccm-cms-assets-notes. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-assets-notes/debian/copyright =================================================================== --- trunk/ccm-cms-assets-notes/debian/copyright 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/copyright 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-assets-notes/debian/postinst =================================================================== --- trunk/ccm-cms-assets-notes/debian/postinst 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/postinst 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,111 @@ +#! /bin/sh +# postinst script for ccm-cms-assets-notes +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-assets-notes/debian/postrm =================================================================== --- trunk/ccm-cms-assets-notes/debian/postrm 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/postrm 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-assets-notes +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-assets-notes/debian/prerm =================================================================== --- trunk/ccm-cms-assets-notes/debian/prerm 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/prerm 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-assets-notes +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-assets-notes/debian/rules =================================================================== --- trunk/ccm-cms-assets-notes/debian/rules 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/rules 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-assets-notes/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-assets-notes/debian/templates =================================================================== --- trunk/ccm-cms-assets-notes/debian/templates 2006-06-14 14:36:49 UTC (rev 1177) +++ trunk/ccm-cms-assets-notes/debian/templates 2006-06-14 14:36:57 UTC (rev 1178) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-assets-notes +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + check/edit the pg_hba.conf file of your PostgreSQL instance + and load the application(s) after the installation. + +Template: ccm/shared/error_ccm_tool_not_found +Type: note +Description: The 'ccm' tool not found. + I need the 'ccm' tool [/usr/bin/ccm] to continue but I cannot find it. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package contains this file --- please check your setup after the installation, + and then run "dpkg-reconfigure ccm-cms-assets-notes". + +Template: ccm/shared/error_java_home_not_found +Type: note +Description: JAVA_HOME not found. + JAVA_HOME isn't set --- I have even tried to guess it but failed. + . + This will cancel any 'ccm load' and 'ccm hostinit' operations. + . + Please check your java setup after the installation, and then run + "dpkg-reconfigure ccm-cms-assets-notes". |
From: <fa...@vh...> - 2006-06-14 14:41:25
|
Author: fabrice Date: 2006-06-14 16:36:49 +0200 (Wed, 14 Jun 2006) New Revision: 1177 Added: trunk/ccm-cms-assets-fileattachment/debian/ trunk/ccm-cms-assets-fileattachment/debian/ccm-build.sh trunk/ccm-cms-assets-fileattachment/debian/ccm-clean.sh trunk/ccm-cms-assets-fileattachment/debian/ccm-cms-assets-fileattachment.dirs trunk/ccm-cms-assets-fileattachment/debian/ccm-config.sh trunk/ccm-cms-assets-fileattachment/debian/ccm-disperse.sh trunk/ccm-cms-assets-fileattachment/debian/ccm-install.sh trunk/ccm-cms-assets-fileattachment/debian/ccm-settings-run.sh trunk/ccm-cms-assets-fileattachment/debian/ccm-settings.sh trunk/ccm-cms-assets-fileattachment/debian/changelog trunk/ccm-cms-assets-fileattachment/debian/compat trunk/ccm-cms-assets-fileattachment/debian/config trunk/ccm-cms-assets-fileattachment/debian/control trunk/ccm-cms-assets-fileattachment/debian/copyright trunk/ccm-cms-assets-fileattachment/debian/postinst trunk/ccm-cms-assets-fileattachment/debian/postrm trunk/ccm-cms-assets-fileattachment/debian/prerm trunk/ccm-cms-assets-fileattachment/debian/rules trunk/ccm-cms-assets-fileattachment/debian/templates Log: Debian files Added: trunk/ccm-cms-assets-fileattachment/debian/ccm-build.sh =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/ccm-build.sh 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/ccm-build.sh 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-cms-assets-fileattachment/debian/ccm-clean.sh =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/ccm-clean.sh 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/ccm-clean.sh 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:01 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-cms-assets-fileattachment/debian/ccm-cms-assets-fileattachment.dirs =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/ccm-cms-assets-fileattachment.dirs 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/ccm-cms-assets-fileattachment.dirs 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1 @@ +usr/share/java/ccm-cms-assets-fileattachment-6.3.1 Added: trunk/ccm-cms-assets-fileattachment/debian/ccm-config.sh =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/ccm-config.sh 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/ccm-config.sh 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-cms-assets-fileattachment/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/ccm-disperse.sh 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/ccm-disperse.sh 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:01 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-cms-assets-fileattachment/debian/ccm-install.sh =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/ccm-install.sh 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/ccm-install.sh 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-cms-assets-fileattachment/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/ccm-settings-run.sh 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/ccm-settings-run.sh 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-cms-assets-fileattachment/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-assets-fileattachment/debian/ccm-settings.sh =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/ccm-settings.sh 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/ccm-settings.sh 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-cms-assets-fileattachment +version=6.3.1 +appname=ccm-cms-assets-fileattachment +appversion=6.3.1 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-cms-assets-fileattachment/debian/changelog =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/changelog 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/changelog 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,77 @@ +ccm-cms-assets-fileattachment (6.3.1-1) unstable; urgency=low + + * Automatic update of version number from 6.3.0 to 6.3.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 01 Jun 2006 12:18:59 +0000 + +ccm-cms-assets-fileattachment (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:55 +0000 + +ccm-cms-assets-fileattachment (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 6.1.2 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:01 +0000 + +ccm-cms-assets-fileattachment (6.1.2-1) unstable; urgency=low + + * Automatic update of version number from 6.1.1 to 6.1.2 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 05 Sep 2005 15:47:57 +0000 + +ccm-cms-assets-fileattachment (6.1.1-1) unstable; urgency=low + + * Automatic update of version number from 6.1.0 to 6.1.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:49 +0000 + +ccm-cms-assets-fileattachment (6.1.0-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Depend on j2re1.4 | java2-runtime + * Update to policy 3.6.1 + * Depend on debconf + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Wed, 19 Jan 2005 10:00:17 +0000 + +ccm-cms-assets-fileattachment (6.1.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-cms-assets-fileattachment (6.1.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-cms-assets-fileattachment (6.1.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-cms-assets-fileattachment (6.1.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-cms-assets-fileattachment/debian/compat =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/compat 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/compat 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1 @@ +4 Added: trunk/ccm-cms-assets-fileattachment/debian/config =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/config 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/config 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:01 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-cms-assets-fileattachment/debian/control =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/control 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/control 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,21 @@ +Source: ccm-cms-assets-fileattachment +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-cms-assets-fileattachment +Architecture: all +Depends: debconf, java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: Application to add file attachment to content items. + This package contains the Red Hat CMS Content Asset File Attachment application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-cms-assets-fileattachment-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-cms-assets-fileattachment + Documentation for ccm-cms-assets-fileattachment. Provides the JavaDoc API documentation. Added: trunk/ccm-cms-assets-fileattachment/debian/copyright =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/copyright 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/copyright 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-cms-assets-fileattachment/debian/postinst =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/postinst 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/postinst 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-cms-assets-fileattachment +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:01 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-cms-assets-fileattachment/debian/postrm =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/postrm 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/postrm 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-cms-assets-fileattachment +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:01 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-cms-assets-fileattachment/debian/prerm =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/prerm 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/prerm 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-cms-assets-fileattachment +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:01 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-cms-assets-fileattachment/debian/rules =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/rules 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/rules 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-cms-assets-fileattachment/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-cms-assets-fileattachment/debian/templates =================================================================== --- trunk/ccm-cms-assets-fileattachment/debian/templates 2006-06-14 14:36:43 UTC (rev 1176) +++ trunk/ccm-cms-assets-fileattachment/debian/templates 2006-06-14 14:36:49 UTC (rev 1177) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:01 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:01 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-cms-assets-fileattachment +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.1 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. .. |
From: <fa...@vh...> - 2006-06-14 14:41:17
|
Author: fabrice Date: 2006-06-14 16:36:43 +0200 (Wed, 14 Jun 2006) New Revision: 1176 Added: trunk/ccm-auth-http/debian/ trunk/ccm-auth-http/debian/ccm-auth-http.dirs trunk/ccm-auth-http/debian/ccm-build.sh trunk/ccm-auth-http/debian/ccm-clean.sh trunk/ccm-auth-http/debian/ccm-config.sh trunk/ccm-auth-http/debian/ccm-disperse.sh trunk/ccm-auth-http/debian/ccm-install.sh trunk/ccm-auth-http/debian/ccm-settings-run.sh trunk/ccm-auth-http/debian/ccm-settings.sh trunk/ccm-auth-http/debian/changelog trunk/ccm-auth-http/debian/compat trunk/ccm-auth-http/debian/config trunk/ccm-auth-http/debian/control trunk/ccm-auth-http/debian/copyright trunk/ccm-auth-http/debian/postinst trunk/ccm-auth-http/debian/postrm trunk/ccm-auth-http/debian/prerm trunk/ccm-auth-http/debian/rules trunk/ccm-auth-http/debian/templates Log: Debian files Added: trunk/ccm-auth-http/debian/ccm-auth-http.dirs =================================================================== --- trunk/ccm-auth-http/debian/ccm-auth-http.dirs 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/ccm-auth-http.dirs 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1 @@ +usr/share/java/ccm-auth-http-6.3.0 Added: trunk/ccm-auth-http/debian/ccm-build.sh =================================================================== --- trunk/ccm-auth-http/debian/ccm-build.sh 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/ccm-build.sh 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-auth-http/debian/ccm-clean.sh =================================================================== --- trunk/ccm-auth-http/debian/ccm-clean.sh 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/ccm-clean.sh 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-auth-http/debian/ccm-config.sh =================================================================== --- trunk/ccm-auth-http/debian/ccm-config.sh 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/ccm-config.sh 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-auth-http/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-auth-http/debian/ccm-disperse.sh 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/ccm-disperse.sh 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-auth-http/debian/ccm-install.sh =================================================================== --- trunk/ccm-auth-http/debian/ccm-install.sh 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/ccm-install.sh 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-auth-http/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-auth-http/debian/ccm-settings-run.sh 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/ccm-settings-run.sh 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-auth-http/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-auth-http/debian/ccm-settings.sh =================================================================== --- trunk/ccm-auth-http/debian/ccm-settings.sh 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/ccm-settings.sh 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-auth-http +version=6.3.0 +appname=ccm-auth-http +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-auth-http/debian/changelog =================================================================== --- trunk/ccm-auth-http/debian/changelog 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/changelog 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,64 @@ +ccm-auth-http (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:54 +0000 + +ccm-auth-http (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 1.4.2 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:29:57 +0000 + +ccm-auth-http (1.4.2-1) unstable; urgency=low + + * Automatic update of version number from 1.4.1 to 1.4.2 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:49 +0000 + +ccm-auth-http (1.4.1-5) unstable; urgency=low + + * Depend on "j2sdk1.4 | java2-compiler" rather than just java2-compiler + * Depend on "j2re1.4 | java2-runtime" rather than just java2-runtime + * Change maintainer to the mailing list and add da...@ru... + to the uploaders + + -- David Pashley <da...@ru...> Tue, 18 Jan 2005 16:56:44 +0000 + +ccm-auth-http (1.4.1-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-auth-http (1.4.1-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-auth-http (1.4.1-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-auth-http (1.4.1-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-auth-http/debian/compat =================================================================== --- trunk/ccm-auth-http/debian/compat 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/compat 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1 @@ +4 Added: trunk/ccm-auth-http/debian/config =================================================================== --- trunk/ccm-auth-http/debian/config 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/config 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-auth-http/debian/control =================================================================== --- trunk/ccm-auth-http/debian/control 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/control 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,21 @@ +Source: ccm-auth-http +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core +Standards-Version: 3.6.1 + +Package: ccm-auth-http +Architecture: all +Depends: debconf, java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core +Description: APLAWS: NTLM authentication module. + This package contains the Auth HTTP application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-auth-http-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-auth-http + Documentation for ccm-auth-http. Provides the JavaDoc API documentation. Added: trunk/ccm-auth-http/debian/copyright =================================================================== --- trunk/ccm-auth-http/debian/copyright 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/copyright 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-auth-http/debian/postinst =================================================================== --- trunk/ccm-auth-http/debian/postinst 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/postinst 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,111 @@ +#! /bin/sh +# postinst script for ccm-auth-http +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-auth-http/debian/postrm =================================================================== --- trunk/ccm-auth-http/debian/postrm 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/postrm 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-auth-http +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-auth-http/debian/prerm =================================================================== --- trunk/ccm-auth-http/debian/prerm 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/prerm 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-auth-http +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-auth-http/debian/rules =================================================================== --- trunk/ccm-auth-http/debian/rules 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/rules 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-auth-http/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-auth-http/debian/templates =================================================================== --- trunk/ccm-auth-http/debian/templates 2006-06-14 14:21:34 UTC (rev 1175) +++ trunk/ccm-auth-http/debian/templates 2006-06-14 14:36:43 UTC (rev 1176) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-auth-http +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + check/edit the pg_hba.conf file of your PostgreSQL instance + and load the application(s) after the installation. + +Template: ccm/shared/error_ccm_tool_not_found +Type: note .. |
From: <fa...@vh...> - 2006-06-14 14:26:10
|
Author: fabrice Date: 2006-06-14 16:21:34 +0200 (Wed, 14 Jun 2006) New Revision: 1175 Added: trunk/ccm-ldn-util/debian/ trunk/ccm-ldn-util/debian/ccm-build.sh trunk/ccm-ldn-util/debian/ccm-clean.sh trunk/ccm-ldn-util/debian/ccm-config.sh trunk/ccm-ldn-util/debian/ccm-disperse.sh trunk/ccm-ldn-util/debian/ccm-install.sh trunk/ccm-ldn-util/debian/ccm-ldn-util.dirs trunk/ccm-ldn-util/debian/ccm-settings-run.sh trunk/ccm-ldn-util/debian/ccm-settings.sh trunk/ccm-ldn-util/debian/changelog trunk/ccm-ldn-util/debian/compat trunk/ccm-ldn-util/debian/config trunk/ccm-ldn-util/debian/control trunk/ccm-ldn-util/debian/copyright trunk/ccm-ldn-util/debian/postinst trunk/ccm-ldn-util/debian/postrm trunk/ccm-ldn-util/debian/prerm trunk/ccm-ldn-util/debian/rules trunk/ccm-ldn-util/debian/templates trunk/ccm-ldn-util/src/com/arsdigita/london/util/UrlUtil.java Modified: trunk/ccm-ldn-util/application.xml trunk/ccm-ldn-util/src/com/arsdigita/london/util/cmd/BulkPublish.java Log: * BulkPublish options to restrict to a folder, and to avoid certain IDs * new UrlUtil class * debian files Modified: trunk/ccm-ldn-util/application.xml =================================================================== --- trunk/ccm-ldn-util/application.xml 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/application.xml 2006-06-14 14:21:34 UTC (rev 1175) @@ -3,7 +3,7 @@ name="ccm-ldn-util" prettyName="Util" version="6.3.0" - release="3"> + release="5"> <ccm:dependencies> <ccm:requires name="ccm-core" version="6.2.0" relation="ge"/> <ccm:requires name="ccm-cms" version="6.2.0" relation="ge"/> Added: trunk/ccm-ldn-util/debian/ccm-build.sh =================================================================== --- trunk/ccm-ldn-util/debian/ccm-build.sh 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/ccm-build.sh 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-ldn-util/debian/ccm-clean.sh =================================================================== --- trunk/ccm-ldn-util/debian/ccm-clean.sh 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/ccm-clean.sh 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-ldn-util/debian/ccm-config.sh =================================================================== --- trunk/ccm-ldn-util/debian/ccm-config.sh 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/ccm-config.sh 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-ldn-util/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-ldn-util/debian/ccm-disperse.sh 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/ccm-disperse.sh 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-ldn-util/debian/ccm-install.sh =================================================================== --- trunk/ccm-ldn-util/debian/ccm-install.sh 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/ccm-install.sh 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-ldn-util/debian/ccm-ldn-util.dirs =================================================================== --- trunk/ccm-ldn-util/debian/ccm-ldn-util.dirs 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/ccm-ldn-util.dirs 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1 @@ +usr/share/java/ccm-ldn-util-6.3.0 Added: trunk/ccm-ldn-util/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-ldn-util/debian/ccm-settings-run.sh 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/ccm-settings-run.sh 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-ldn-util/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-util/debian/ccm-settings.sh =================================================================== --- trunk/ccm-ldn-util/debian/ccm-settings.sh 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/ccm-settings.sh 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-ldn-util +version=6.3.0 +appname=ccm-ldn-util +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-ldn-util/debian/changelog =================================================================== --- trunk/ccm-ldn-util/debian/changelog 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/changelog 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,75 @@ +ccm-ldn-util (6.3.0-5) unstable; urgency=low + + * Added UrlUtil.java from undp + + -- Matt Roberts <ma...@ru...> Wed, 12 Apr 2006 09:52:21 +0100 + +ccm-ldn-util (6.3.0-4) unstable; urgency=low + + * New helper class from UNDP + + -- My <my...@fi...> Fri, 3 Mar 2006 11:02:12 +0000 + +ccm-ldn-util (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:52:02 +0000 + +ccm-ldn-util (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 1.4.2 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:14 +0000 + +ccm-ldn-util (1.4.2-1) unstable; urgency=low + + * Automatic update of version number from 1.4.1 to 1.4.2 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:56 +0000 + +ccm-ldn-util (1.4.1-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Tue, 15 Feb 2005 09:20:53 +0000 + +ccm-ldn-util (1.4.1-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-ldn-util (1.4.1-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-ldn-util (1.4.1-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-ldn-util (1.4.1-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-ldn-util/debian/compat =================================================================== --- trunk/ccm-ldn-util/debian/compat 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/compat 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1 @@ +4 Added: trunk/ccm-ldn-util/debian/config =================================================================== --- trunk/ccm-ldn-util/debian/config 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/config 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-ldn-util/debian/control =================================================================== --- trunk/ccm-ldn-util/debian/control 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/control 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,21 @@ +Source: ccm-ldn-util +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms +Standards-Version: 3.6.1 + +Package: ccm-ldn-util +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms +Description: APLAWS: Utilities application for various utilities. + This package contains the Util application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-ldn-util-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-ldn-util + Documentation for ccm-ldn-util. Provides the JavaDoc API documentation. Added: trunk/ccm-ldn-util/debian/copyright =================================================================== --- trunk/ccm-ldn-util/debian/copyright 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/copyright 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-ldn-util/debian/postinst =================================================================== --- trunk/ccm-ldn-util/debian/postinst 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/postinst 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-ldn-util +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-ldn-util/debian/postrm =================================================================== --- trunk/ccm-ldn-util/debian/postrm 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/postrm 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-ldn-util +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-ldn-util/debian/prerm =================================================================== --- trunk/ccm-ldn-util/debian/prerm 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/prerm 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-ldn-util +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-ldn-util/debian/rules =================================================================== --- trunk/ccm-ldn-util/debian/rules 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/rules 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-ldn-util/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-util/debian/templates =================================================================== --- trunk/ccm-ldn-util/debian/templates 2006-06-14 14:19:07 UTC (rev 1174) +++ trunk/ccm-ldn-util/debian/templates 2006-06-14 14:21:34 UTC (rev 1175) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-ldn-util +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. .. |
From: <fa...@vh...> - 2006-06-14 14:23:41
|
Author: fabrice Date: 2006-06-14 16:19:07 +0200 (Wed, 14 Jun 2006) New Revision: 1174 Added: trunk/ccm-ldn-theme/debian/ trunk/ccm-ldn-theme/debian/ccm-build.sh trunk/ccm-ldn-theme/debian/ccm-clean.sh trunk/ccm-ldn-theme/debian/ccm-config.sh trunk/ccm-ldn-theme/debian/ccm-disperse.sh trunk/ccm-ldn-theme/debian/ccm-install.sh trunk/ccm-ldn-theme/debian/ccm-ldn-theme.dirs trunk/ccm-ldn-theme/debian/ccm-settings-run.sh trunk/ccm-ldn-theme/debian/ccm-settings.sh trunk/ccm-ldn-theme/debian/changelog trunk/ccm-ldn-theme/debian/compat trunk/ccm-ldn-theme/debian/config trunk/ccm-ldn-theme/debian/control trunk/ccm-ldn-theme/debian/copyright trunk/ccm-ldn-theme/debian/postinst trunk/ccm-ldn-theme/debian/postrm trunk/ccm-ldn-theme/debian/prerm trunk/ccm-ldn-theme/debian/rules trunk/ccm-ldn-theme/debian/templates Modified: trunk/ccm-ldn-theme/application.xml Log: * fix dependencies * debian files Modified: trunk/ccm-ldn-theme/application.xml =================================================================== --- trunk/ccm-ldn-theme/application.xml 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/application.xml 2006-06-14 14:19:07 UTC (rev 1174) @@ -6,6 +6,7 @@ release="3"> <ccm:dependencies> <ccm:requires name="ccm-core" version="6.2.0" relation="ge"/> + <ccm:requires name="ccm-cms" version="6.2.0" relation="ge"/> <ccm:requires name="ccm-ldn-subsite" version="6.2.0" relation="ge"/> </ccm:dependencies> Added: trunk/ccm-ldn-theme/debian/ccm-build.sh =================================================================== --- trunk/ccm-ldn-theme/debian/ccm-build.sh 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/ccm-build.sh 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-ldn-theme/debian/ccm-clean.sh =================================================================== --- trunk/ccm-ldn-theme/debian/ccm-clean.sh 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/ccm-clean.sh 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:16 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-ldn-theme/debian/ccm-config.sh =================================================================== --- trunk/ccm-ldn-theme/debian/ccm-config.sh 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/ccm-config.sh 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-ldn-theme/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-ldn-theme/debian/ccm-disperse.sh 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/ccm-disperse.sh 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:16 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-ldn-theme/debian/ccm-install.sh =================================================================== --- trunk/ccm-ldn-theme/debian/ccm-install.sh 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/ccm-install.sh 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-ldn-theme/debian/ccm-ldn-theme.dirs =================================================================== --- trunk/ccm-ldn-theme/debian/ccm-ldn-theme.dirs 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/ccm-ldn-theme.dirs 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1 @@ +usr/share/java/ccm-ldn-theme-6.3.1 Added: trunk/ccm-ldn-theme/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-ldn-theme/debian/ccm-settings-run.sh 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/ccm-settings-run.sh 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-ldn-theme/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-theme/debian/ccm-settings.sh =================================================================== --- trunk/ccm-ldn-theme/debian/ccm-settings.sh 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/ccm-settings.sh 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-ldn-theme +version=6.3.1 +appname=ccm-ldn-theme +appversion=6.3.1 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-ldn-theme/debian/changelog =================================================================== --- trunk/ccm-ldn-theme/debian/changelog 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/changelog 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,77 @@ +ccm-ldn-theme (6.3.1-1) unstable; urgency=low + + * Automatic update of version number from 6.3.0 to 6.3.1 + + -- Runtime Collective Ltd. <in...@ru...> Fri, 30 Dec 2005 08:49:33 +0000 + +ccm-ldn-theme (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:52:02 +0000 + +ccm-ldn-theme (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 1.0.2 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:13 +0000 + +ccm-ldn-theme (1.0.2-1) unstable; urgency=low + + * Automatic update of version number from 1.0.1 to 1.0.2 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 05 Sep 2005 15:48:22 +0000 + +ccm-ldn-theme (1.0.1-1) unstable; urgency=low + + * Automatic update of version number from 1.0.0 to 1.0.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:56 +0000 + +ccm-ldn-theme (1.0.0-5) unstable; urgency=low + + * Remove the build-dependancy on ccm-ldn-aplaws as it isn't required and + removes circular build dependancies. + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 31 Jan 2005 17:41:35 +0000 + +ccm-ldn-theme (1.0.0-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-ldn-theme (1.0.0-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-ldn-theme (1.0.0-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-ldn-theme (1.0.0-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-ldn-theme/debian/compat =================================================================== --- trunk/ccm-ldn-theme/debian/compat 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/compat 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1 @@ +4 Added: trunk/ccm-ldn-theme/debian/config =================================================================== --- trunk/ccm-ldn-theme/debian/config 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/config 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-ldn-theme/debian/control =================================================================== --- trunk/ccm-ldn-theme/debian/control 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/control 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,21 @@ +Source: ccm-ldn-theme +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms, ccm-ldn-subsite +Standards-Version: 3.6.1 + +Package: ccm-ldn-theme +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-ldn-subsite +Description: APLAWS: Facilitates management of the look and feel of the website. Allows webdesigners to upload XSL stylesheets. + This package contains the Theme application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-ldn-theme-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-ldn-theme + Documentation for ccm-ldn-theme. Provides the JavaDoc API documentation. Added: trunk/ccm-ldn-theme/debian/copyright =================================================================== --- trunk/ccm-ldn-theme/debian/copyright 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/copyright 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-ldn-theme/debian/postinst =================================================================== --- trunk/ccm-ldn-theme/debian/postinst 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/postinst 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-ldn-theme +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-ldn-theme/debian/postrm =================================================================== --- trunk/ccm-ldn-theme/debian/postrm 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/postrm 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-ldn-theme +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-ldn-theme/debian/prerm =================================================================== --- trunk/ccm-ldn-theme/debian/prerm 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/prerm 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-ldn-theme +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-ldn-theme/debian/rules =================================================================== --- trunk/ccm-ldn-theme/debian/rules 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/rules 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-ldn-theme/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-theme/debian/templates =================================================================== --- trunk/ccm-ldn-theme/debian/templates 2006-06-14 14:17:53 UTC (rev 1173) +++ trunk/ccm-ldn-theme/debian/templates 2006-06-14 14:19:07 UTC (rev 1174) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:17 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-ldn-theme +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.1 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. .. |
From: <fa...@vh...> - 2006-06-14 14:22:29
|
Author: fabrice Date: 2006-06-14 16:17:53 +0200 (Wed, 14 Jun 2006) New Revision: 1173 Added: trunk/ccm-ldn-terms/debian/ trunk/ccm-ldn-terms/debian/ccm-build.sh trunk/ccm-ldn-terms/debian/ccm-clean.sh trunk/ccm-ldn-terms/debian/ccm-config.sh trunk/ccm-ldn-terms/debian/ccm-disperse.sh trunk/ccm-ldn-terms/debian/ccm-install.sh trunk/ccm-ldn-terms/debian/ccm-ldn-terms.dirs trunk/ccm-ldn-terms/debian/ccm-settings-run.sh trunk/ccm-ldn-terms/debian/ccm-settings.sh trunk/ccm-ldn-terms/debian/changelog trunk/ccm-ldn-terms/debian/compat trunk/ccm-ldn-terms/debian/config trunk/ccm-ldn-terms/debian/control trunk/ccm-ldn-terms/debian/copyright trunk/ccm-ldn-terms/debian/postinst trunk/ccm-ldn-terms/debian/postrm trunk/ccm-ldn-terms/debian/prerm trunk/ccm-ldn-terms/debian/rules trunk/ccm-ldn-terms/debian/templates trunk/ccm-ldn-terms/src/com/arsdigita/london/terms/DefaultAncestorsFixer.java Modified: trunk/ccm-ldn-terms/src/com/arsdigita/london/terms/ui/AbstractAssignedTerms.java Log: * minor fixes * debial files Added: trunk/ccm-ldn-terms/debian/ccm-build.sh =================================================================== --- trunk/ccm-ldn-terms/debian/ccm-build.sh 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/ccm-build.sh 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-ldn-terms/debian/ccm-clean.sh =================================================================== --- trunk/ccm-ldn-terms/debian/ccm-clean.sh 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/ccm-clean.sh 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:16 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-ldn-terms/debian/ccm-config.sh =================================================================== --- trunk/ccm-ldn-terms/debian/ccm-config.sh 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/ccm-config.sh 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-ldn-terms/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-ldn-terms/debian/ccm-disperse.sh 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/ccm-disperse.sh 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:16 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-ldn-terms/debian/ccm-install.sh =================================================================== --- trunk/ccm-ldn-terms/debian/ccm-install.sh 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/ccm-install.sh 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-ldn-terms/debian/ccm-ldn-terms.dirs =================================================================== --- trunk/ccm-ldn-terms/debian/ccm-ldn-terms.dirs 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/ccm-ldn-terms.dirs 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1 @@ +usr/share/java/ccm-ldn-terms-6.3.0 Added: trunk/ccm-ldn-terms/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-ldn-terms/debian/ccm-settings-run.sh 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/ccm-settings-run.sh 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-ldn-terms/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-terms/debian/ccm-settings.sh =================================================================== --- trunk/ccm-ldn-terms/debian/ccm-settings.sh 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/ccm-settings.sh 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-ldn-terms +version=6.3.0 +appname=ccm-ldn-terms +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-ldn-terms/debian/changelog =================================================================== --- trunk/ccm-ldn-terms/debian/changelog 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/changelog 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,118 @@ +ccm-ldn-terms (6.3.0-4) unstable; urgency=low + + * Fixing previous + + -- Fabrice Retkowsky <fa...@ru...> Tue, 8 Nov 2005 15:02:20 +0000 + +ccm-ldn-terms (6.3.0-3) unstable; urgency=low + + * Added domain option for DefaultAncestorsFixer + + -- Fabrice Retkowsky <fa...@ru...> Tue, 8 Nov 2005 11:18:05 +0000 + +ccm-ldn-terms (6.3.0-2) unstable; urgency=low + + * Fixing upgrade script + + -- My <my...@fi...> Mon, 10 Oct 2005 14:52:52 +0000 + +ccm-ldn-terms (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:52:02 +0000 + +ccm-ldn-terms (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 1.0.3 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:13 +0000 + +ccm-ldn-terms (1.0.3-6) unstable; urgency=low + + * AbstractAssignedTerms: reordering joins to speed up query (from eg 1.5s to + 0.05s) + + -- My <my...@fi...> Tue, 27 Sep 2005 13:19:17 +0000 + +ccm-ldn-terms (1.0.3-5) unstable; urgency=low + + * 17170 - extra stuff for DAF + + -- My <my...@fi...> Thu, 11 Aug 2005 09:21:57 +0000 + +ccm-ldn-terms (1.0.3-4) unstable; urgency=low + + * 17170 - DefaultAncestorsFixer tools + + -- My <my...@fi...> Fri, 29 Jul 2005 13:34:50 +0000 + +ccm-ldn-terms (1.0.3-3) unstable; urgency=low + + * Patching RedHat's upgrade script, duh + + -- My <my...@fi...> Mon, 11 Jul 2005 07:39:10 +0000 + +ccm-ldn-terms (1.0.3-2) unstable; urgency=low + + * RedHat patch to add missing terms during upgrade + + -- My <my...@fi...> Fri, 8 Jul 2005 09:03:29 +0000 + +ccm-ldn-terms (1.0.3-1) unstable; urgency=low + + * Automatic update of version number from 1.0.2 to 1.0.3 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:56 +0000 + +ccm-ldn-terms (1.0.2-1) unstable; urgency=low + + * for release qa + + -- David Pashley <da...@ru...> Tue, 15 Feb 2005 12:31:27 +0000 + +ccm-ldn-terms (1.0.1-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Tue, 15 Feb 2005 12:31:27 +0000 + +ccm-ldn-terms (1.0.1-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-ldn-terms (1.0.1-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-ldn-terms (1.0.1-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-ldn-terms (1.0.1-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-ldn-terms/debian/compat =================================================================== --- trunk/ccm-ldn-terms/debian/compat 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/compat 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1 @@ +4 Added: trunk/ccm-ldn-terms/debian/config =================================================================== --- trunk/ccm-ldn-terms/debian/config 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/config 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:16 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-ldn-terms/debian/control =================================================================== --- trunk/ccm-ldn-terms/debian/control 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/control 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,21 @@ +Source: ccm-ldn-terms +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms, ccm-ldn-util +Standards-Version: 3.6.1 + +Package: ccm-ldn-terms +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms, ccm-ldn-util +Description: APLAWS: The terms application is for loading categories. + This package contains the Terms application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-ldn-terms-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-ldn-terms + Documentation for ccm-ldn-terms. Provides the JavaDoc API documentation. Added: trunk/ccm-ldn-terms/debian/copyright =================================================================== --- trunk/ccm-ldn-terms/debian/copyright 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/copyright 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-ldn-terms/debian/postinst =================================================================== --- trunk/ccm-ldn-terms/debian/postinst 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/postinst 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-ldn-terms +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:16 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-ldn-terms/debian/postrm =================================================================== --- trunk/ccm-ldn-terms/debian/postrm 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/postrm 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-ldn-terms +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:16 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-ldn-terms/debian/prerm =================================================================== --- trunk/ccm-ldn-terms/debian/prerm 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/prerm 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-ldn-terms +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:16 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-ldn-terms/debian/rules =================================================================== --- trunk/ccm-ldn-terms/debian/rules 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/rules 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-ldn-terms/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-terms/debian/templates =================================================================== --- trunk/ccm-ldn-terms/debian/templates 2006-06-14 14:14:15 UTC (rev 1172) +++ trunk/ccm-ldn-terms/debian/templates 2006-06-14 14:17:53 UTC (rev 1173) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:16 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:16 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-ldn-terms +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the .. |
Author: fabrice Date: 2006-06-14 16:14:15 +0200 (Wed, 14 Jun 2006) New Revision: 1172 Added: trunk/ccm-ldn-portal/debian/ trunk/ccm-ldn-portal/debian/ccm-build.sh trunk/ccm-ldn-portal/debian/ccm-clean.sh trunk/ccm-ldn-portal/debian/ccm-config.sh trunk/ccm-ldn-portal/debian/ccm-disperse.sh trunk/ccm-ldn-portal/debian/ccm-install.sh trunk/ccm-ldn-portal/debian/ccm-ldn-portal.dirs trunk/ccm-ldn-portal/debian/ccm-settings-run.sh trunk/ccm-ldn-portal/debian/ccm-settings.sh trunk/ccm-ldn-portal/debian/changelog trunk/ccm-ldn-portal/debian/compat trunk/ccm-ldn-portal/debian/config trunk/ccm-ldn-portal/debian/control trunk/ccm-ldn-portal/debian/copyright trunk/ccm-ldn-portal/debian/postinst trunk/ccm-ldn-portal/debian/postrm trunk/ccm-ldn-portal/debian/prerm trunk/ccm-ldn-portal/debian/rules trunk/ccm-ldn-portal/debian/templates trunk/ccm-ldn-portal/pdl/com/arsdigita/london/portal/Workspace-extra-queries.pdl trunk/ccm-ldn-portal/pdl/com/arsdigita/london/portal/WorkspaceTheme.pdl trunk/ccm-ldn-portal/pdl/com/arsdigita/london/portal/portlet/MyWorkspacesPortlet.pdl trunk/ccm-ldn-portal/pdl/com/arsdigita/london/portal/portlet/WorkspaceNavigatorPortlet.pdl trunk/ccm-ldn-portal/pdl/com/arsdigita/london/portal/portlet/WorkspaceSummaryPortlet.pdl trunk/ccm-ldn-portal/sql/ccm-ldn-portal/default/upgrade/freeform-use-clob.sql trunk/ccm-ldn-portal/sql/ccm-ldn-portal/oracle-se/upgrade/add-workspace-owner.sql trunk/ccm-ldn-portal/sql/ccm-ldn-portal/oracle-se/upgrade/add-workspace-themes.sql trunk/ccm-ldn-portal/sql/ccm-ldn-portal/oracle-se/upgrade/add-workspace_workspace_map.sql trunk/ccm-ldn-portal/sql/ccm-ldn-portal/postgres/ trunk/ccm-ldn-portal/sql/ccm-ldn-portal/postgres/upgrade/ trunk/ccm-ldn-portal/sql/ccm-ldn-portal/postgres/upgrade/add-workspace-owner.sql trunk/ccm-ldn-portal/sql/ccm-ldn-portal/postgres/upgrade/add-workspace-themes.sql trunk/ccm-ldn-portal/sql/ccm-ldn-portal/postgres/upgrade/add-workspace_workspace_map.sql trunk/ccm-ldn-portal/sql/ccm-ldn-portal/upgrade/oracle-se-6.3.0-6.3.1.sql trunk/ccm-ldn-portal/sql/ccm-ldn-portal/upgrade/oracle-se-6.3.1-6.3.2.sql trunk/ccm-ldn-portal/sql/ccm-ldn-portal/upgrade/postgres-6.3.0-6.3.1.sql trunk/ccm-ldn-portal/sql/ccm-ldn-portal/upgrade/postgres-6.3.1-6.3.2.sql trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/MyWorkspacesPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/WorkspaceNavigatorPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/WorkspaceSummaryPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/ColorPicker.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/Icons.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/ParticipantBrowsePane.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/ParticipantDisplay.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/ParticipantEdit.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/ParticipantListModel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/ParticipantModel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PersonalPortalPage.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortalResources.properties trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/WorkspaceTheme.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/WorkspaceThemeCollection.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/WorkspaceThemes.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/AddGrantForm.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/DeleteApplicationComponent.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/ErrorMessageDisplay.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/Grant.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/GrantsTable.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/PartyPermissionEdit.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/PeoplePane.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/PrivilegeSingleSelect.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/util/ trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/util/GlobalizationUtil.java trunk/ccm-ldn-portal/web/packages/workspace/www/ trunk/ccm-ldn-portal/web/packages/workspace/www/assets/ trunk/ccm-ldn-portal/web/packages/workspace/www/assets/CheckEmpty16.gif trunk/ccm-ldn-portal/web/packages/workspace/www/assets/CheckFull16.gif trunk/ccm-ldn-portal/web/packages/workspace/www/assets/Group16.gif trunk/ccm-ldn-portal/web/packages/workspace/www/assets/RadioEmpty16.gif trunk/ccm-ldn-portal/web/packages/workspace/www/assets/RadioFull16.gif trunk/ccm-ldn-portal/web/packages/workspace/www/assets/User16.gif trunk/ccm-ldn-portal/web/packages/workspace/www/assets/delete.gif trunk/ccm-ldn-portal/web/packages/workspace/www/assets/down.gif trunk/ccm-ldn-portal/web/packages/workspace/www/assets/left.gif trunk/ccm-ldn-portal/web/packages/workspace/www/assets/right.gif trunk/ccm-ldn-portal/web/packages/workspace/www/assets/up.gif Modified: trunk/ccm-ldn-portal/application.xml trunk/ccm-ldn-portal/pdl/com/arsdigita/london/portal/Workspace.pdl trunk/ccm-ldn-portal/pdl/com/arsdigita/london/portal/portlet/FreeformHTMLPortlet.pdl trunk/ccm-ldn-portal/src/ccm-ldn-portal.upgrade trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/Initializer.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/Loader.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/PageLayout.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/StatefulPersistentPortal.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/StatefulPersistentPortalModelBuilder.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/StatefulPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/StatefulPortletRenderer.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/Workspace.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/WorkspaceCollection.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/WorkspaceConfig.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/WorkspaceConfig_parameter.properties trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/WorkspacePage.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/WorkspacePageCollection.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/ApplicationDirectoryPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/ContentDirectoryPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/FreeformHTMLPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/LoginPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/RSSFeedPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/RSSFeedPortletHelper.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/TimeOfDayPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/WorkspaceDirectoryChannel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/portlet/WorkspaceDirectoryPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/AbstractWorkspaceComponent.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/ApplicationPortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/ApplicationSelector.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/DefaultPortalSelectionModel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/DefaultWorkspace.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/DefaultWorkspaceSelectionModel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/LayoutForm.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PackageWorkspace.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PackageWorkspaceSelectionModel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PersistentPortal.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortalConstants.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortalEditForm.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortalEditModelBuilder.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortalHelper.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortalList.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortalListEditor.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortalListViewer.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortalViewModelBuilder.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortletConfigFormSection.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortletSelectionModel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortletTypeForm.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/PortletTypeSelectionModel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/SimplePortlet.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/UserWorkspace.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/UserWorkspaceSelectionModel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/WorkspaceComponent.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/WorkspaceDetails.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/WorkspaceDirectoryComponent.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/WorkspaceEditor.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/WorkspaceSelectionModel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/WorkspaceViewer.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/AdminPane.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/ApplicationDetails.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/ApplicationList.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/ApplicationPane.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/ApplicationSelectionModel.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/CategoryComponent.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/CategoryTable.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/GroupMemberDisplay.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/GroupMemberPicker.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/NewApplicationForm.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/SiteMapPane.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/WorkspaceConfigFormSection.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/admin/WorkspacePermissionsPane.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/ApplicationDirectoryPortletRenderer.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/ContentDirectoryPortletEditor.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/ContentDirectoryPortletRenderer.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/FreeformHTMLPortletEditor.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/FreeformHTMLPortletRenderer.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/LoginPortletRenderer.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/RSSFeedPortletBrowserForm.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/RSSFeedPortletEditor.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/RSSFeedPortletEditorForm.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/RSSFeedPortletRenderer.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/TimeOfDayPortletRenderer.java trunk/ccm-ldn-portal/src/com/arsdigita/london/portal/ui/portlet/WorkspaceDirectoryPortletRenderer.java trunk/ccm-ldn-portal/web/packages/workspace/xsl/admin.xsl trunk/ccm-ldn-portal/web/packages/workspace/xsl/lib.xsl trunk/ccm-ldn-portal/web/templates/ccm-ldn-portal/admin/index.jsp trunk/ccm-ldn-portal/web/templates/ccm-ldn-portal/index.jsp Log: * new portlets: WorkspaceNavigator, MyWorkspaces, WorkspaceSummary * new workspace properties: theme, owner, relatedWorkspaces * FreeFormHtml porlet uses a CLOB * new admin screen, with detailed permissions management * personal portal creator, each user getting his own workspace * parameter to set the priviliges given to members * parameter to get workspaces to really check read permissions * options to delete workspaces, to move tabs, to delete tabs * debian files Modified: trunk/ccm-ldn-portal/application.xml =================================================================== --- trunk/ccm-ldn-portal/application.xml 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/application.xml 2006-06-14 14:14:15 UTC (rev 1172) @@ -2,8 +2,8 @@ <ccm:application xmlns:ccm="http://ccm.redhat.com/ccm-project" name="ccm-ldn-portal" prettyName="Portal" - version="6.3.0" - release="3" + version="6.3.2" + release="1" webapp="ROOT"> <ccm:dependencies> <ccm:requires name="ccm-core" version="6.2.0" relation="ge"/> Added: trunk/ccm-ldn-portal/debian/ccm-build.sh =================================================================== --- trunk/ccm-ldn-portal/debian/ccm-build.sh 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/ccm-build.sh 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-ldn-portal/debian/ccm-clean.sh =================================================================== --- trunk/ccm-ldn-portal/debian/ccm-clean.sh 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/ccm-clean.sh 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-ldn-portal/debian/ccm-config.sh =================================================================== --- trunk/ccm-ldn-portal/debian/ccm-config.sh 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/ccm-config.sh 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-ldn-portal/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-ldn-portal/debian/ccm-disperse.sh 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/ccm-disperse.sh 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-ldn-portal/debian/ccm-install.sh =================================================================== --- trunk/ccm-ldn-portal/debian/ccm-install.sh 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/ccm-install.sh 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-ldn-portal/debian/ccm-ldn-portal.dirs =================================================================== --- trunk/ccm-ldn-portal/debian/ccm-ldn-portal.dirs 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/ccm-ldn-portal.dirs 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1 @@ +usr/share/java/ccm-ldn-portal-6.3.2 Added: trunk/ccm-ldn-portal/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-ldn-portal/debian/ccm-settings-run.sh 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/ccm-settings-run.sh 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-ldn-portal/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-portal/debian/ccm-settings.sh =================================================================== --- trunk/ccm-ldn-portal/debian/ccm-settings.sh 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/ccm-settings.sh 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-ldn-portal +version=6.3.2 +appname=ccm-ldn-portal +appversion=6.3.2 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-ldn-portal/debian/changelog =================================================================== --- trunk/ccm-ldn-portal/debian/changelog 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/changelog 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,145 @@ +ccm-ldn-portal (6.3.2-1) unstable; urgency=low + + * Automatic update of version number from 6.3.1 to 6.3.2 + + -- Runtime Collective Ltd. <in...@ru...> Wed, 31 May 2006 15:07:31 +0000 + +ccm-ldn-portal (6.3.1-11) unstable; urgency=low + + * Refactored PersonalPortalPage so that it no longer tries to retrieve the + base personal portal before the users portal. Should be more efficient. + + -- Matt Roberts <ma...@ru...> Wed, 12 Apr 2006 15:38:21 +0100 + +ccm-ldn-portal (6.3.1-10) unstable; urgency=low + + * Fix the debian version numbering of the jar files + + -- Brett Parker <br...@ru...> Thu, 30 Mar 2006 16:07:51 +0100 + +ccm-ldn-portal (6.3.1-9) unstable; urgency=low + + * Fixed the 3 new portlets for UNDP + + -- My <my...@fi...> Tue, 7 Mar 2006 14:21:36 +0000 + +ccm-ldn-portal (6.3.1-8) unstable; urgency=low + + * 3 new portlets for UNDP + + -- My <my...@fi...> Mon, 6 Mar 2006 16:03:46 +0000 + +ccm-ldn-portal (6.3.1-7) unstable; urgency=low + + * Added ability to delete a portal + * Added automatic creation of personal portals for all users + + -- Matt Roberts <ma...@ru...> Mon, 6 Mar 2006 11:33:13 +0000 + +ccm-ldn-portal (6.3.1-6) unstable; urgency=low + + * Adding style attribute to portal:portal + + -- My <my...@fi...> Sat, 4 Mar 2006 10:07:35 +0000 + +ccm-ldn-portal (6.3.1-5) unstable; urgency=low + + * Fixing previous + + -- My <my...@fi...> Thu, 2 Mar 2006 16:06:26 +0000 + +ccm-ldn-portal (6.3.1-4) unstable; urgency=low + + * Adding owner to workspaces, and fixing previous upgrade scripts + + -- My <my...@fi...> Tue, 28 Feb 2006 10:20:52 +0000 + +ccm-ldn-portal (6.3.1-3) unstable; urgency=low + + * Use valid oracle syntax in upgrade script + + -- My <my...@fi...> Mon, 20 Feb 2006 14:53:57 +0000 + +ccm-ldn-portal (6.3.1-2) unstable; urgency=low + + * Added workspace basic properties + + -- Matt Roberts <ma...@ru...> Tue, 14 Feb 2006 16:13:35 +0000 + +ccm-ldn-portal (6.3.1-1) unstable; urgency=low + + * Non-maintainer upload. + * Added workspace themes. + + -- Matt Roberts <ma...@ru...> Thu, 2 Feb 2006 13:07:56 +0000 + +ccm-ldn-portal (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:52:01 +0000 + +ccm-ldn-portal (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 1.4.3 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:13 +0000 + +ccm-ldn-portal (1.4.3-2) unstable; urgency=low + + * Output sortKey for ContentDirectoryPortlet, #17553 + + -- My <my...@fi...> Thu, 21 Apr 2005 09:44:53 +0000 + +ccm-ldn-portal (1.4.3-1) unstable; urgency=low + + * Automatic update of version number from 1.4.2 to 1.4.3 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:55 +0000 + +ccm-ldn-portal (1.4.2-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + * build-depend on ccm-ldn-navigation + + -- David Pashley <da...@ru...> Tue, 15 Feb 2005 11:56:29 +0000 + +ccm-ldn-portal (1.4.2-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-ldn-portal (1.4.2-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-ldn-portal (1.4.2-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-ldn-portal (1.4.2-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-ldn-portal/debian/compat =================================================================== --- trunk/ccm-ldn-portal/debian/compat 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/compat 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1 @@ +4 Added: trunk/ccm-ldn-portal/debian/config =================================================================== --- trunk/ccm-ldn-portal/debian/config 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/config 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-ldn-portal/debian/control =================================================================== --- trunk/ccm-ldn-portal/debian/control 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/control 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,21 @@ +Source: ccm-ldn-portal +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms, ccm-ldn-navigation, ccm-ldn-rss, ccm-ldn-subsite, ccm-ldn-util, ccm-forum +Standards-Version: 3.6.1 + +Package: ccm-ldn-portal +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms, ccm-ldn-util, ccm-ldn-rss +Description: APLAWS: Portal application for creating complex customisable front pages and user workspaces. + This package contains the Portal application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-ldn-portal-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-ldn-portal + Documentation for ccm-ldn-portal. Provides the JavaDoc API documentation. Added: trunk/ccm-ldn-portal/debian/copyright =================================================================== --- trunk/ccm-ldn-portal/debian/copyright 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/copyright 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-ldn-portal/debian/postinst =================================================================== --- trunk/ccm-ldn-portal/debian/postinst 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/postinst 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-ldn-portal +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:15 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-ldn-portal/debian/postrm =================================================================== --- trunk/ccm-ldn-portal/debian/postrm 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/postrm 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-ldn-portal +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:15 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-ldn-portal/debian/prerm =================================================================== --- trunk/ccm-ldn-portal/debian/prerm 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/prerm 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-ldn-portal +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:15 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-ldn-portal/debian/rules =================================================================== --- trunk/ccm-ldn-portal/debian/rules 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/rules 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-ldn-portal/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-portal/debian/templates =================================================================== --- trunk/ccm-ldn-portal/debian/templates 2006-06-14 13:54:39 UTC (rev 1171) +++ trunk/ccm-ldn-portal/debian/templates 2006-06-14 14:14:15 UTC (rev 1172) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:15 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:15 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-ldn-portal +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.2 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. .. |
From: <fa...@vh...> - 2006-06-14 13:59:25
|
Author: fabrice Date: 2006-06-14 15:54:39 +0200 (Wed, 14 Jun 2006) New Revision: 1171 Added: trunk/ccm-ldn-navigation/debian/ trunk/ccm-ldn-navigation/debian/ccm-build.sh trunk/ccm-ldn-navigation/debian/ccm-clean.sh trunk/ccm-ldn-navigation/debian/ccm-config.sh trunk/ccm-ldn-navigation/debian/ccm-disperse.sh trunk/ccm-ldn-navigation/debian/ccm-install.sh trunk/ccm-ldn-navigation/debian/ccm-ldn-navigation.dirs trunk/ccm-ldn-navigation/debian/ccm-settings-run.sh trunk/ccm-ldn-navigation/debian/ccm-settings.sh trunk/ccm-ldn-navigation/debian/changelog trunk/ccm-ldn-navigation/debian/compat trunk/ccm-ldn-navigation/debian/config trunk/ccm-ldn-navigation/debian/control trunk/ccm-ldn-navigation/debian/copyright trunk/ccm-ldn-navigation/debian/postinst trunk/ccm-ldn-navigation/debian/postrm trunk/ccm-ldn-navigation/debian/prerm trunk/ccm-ldn-navigation/debian/rules trunk/ccm-ldn-navigation/debian/templates trunk/ccm-ldn-navigation/src/com/arsdigita/london/navigation/CategoryWidget.java trunk/ccm-ldn-navigation/src/com/arsdigita/london/navigation/ui/GreetingItemExtraXML.java trunk/ccm-ldn-navigation/web/packages/navigation/templates/category-list.jsp Modified: trunk/ccm-ldn-navigation/src/com/arsdigita/london/navigation/NavigationFileResolver.java trunk/ccm-ldn-navigation/src/com/arsdigita/london/navigation/cms/CMSDataCollectionDefinition.java trunk/ccm-ldn-navigation/src/com/arsdigita/london/navigation/ui/ContentList.java trunk/ccm-ldn-navigation/src/com/arsdigita/london/navigation/ui/category/AbstractTree.java trunk/ccm-ldn-navigation/src/com/arsdigita/london/navigation/ui/category/Hierarchy.java trunk/ccm-ldn-navigation/src/com/arsdigita/london/navigation/ui/category/Menu.java trunk/ccm-ldn-navigation/web/packages/navigation/templates/default.jsp Log: * isSelected attribute on Tree * give a 404 on category.jsp if the category is disabled * ability to set MPA/SiteProxy as index items * debian files Added: trunk/ccm-ldn-navigation/debian/ccm-build.sh =================================================================== --- trunk/ccm-ldn-navigation/debian/ccm-build.sh 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/ccm-build.sh 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-ldn-navigation/debian/ccm-clean.sh =================================================================== --- trunk/ccm-ldn-navigation/debian/ccm-clean.sh 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/ccm-clean.sh 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-ldn-navigation/debian/ccm-config.sh =================================================================== --- trunk/ccm-ldn-navigation/debian/ccm-config.sh 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/ccm-config.sh 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-ldn-navigation/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-ldn-navigation/debian/ccm-disperse.sh 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/ccm-disperse.sh 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-ldn-navigation/debian/ccm-install.sh =================================================================== --- trunk/ccm-ldn-navigation/debian/ccm-install.sh 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/ccm-install.sh 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-ldn-navigation/debian/ccm-ldn-navigation.dirs =================================================================== --- trunk/ccm-ldn-navigation/debian/ccm-ldn-navigation.dirs 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/ccm-ldn-navigation.dirs 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1 @@ +usr/share/java/ccm-ldn-navigation-6.3.0 Added: trunk/ccm-ldn-navigation/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-ldn-navigation/debian/ccm-settings-run.sh 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/ccm-settings-run.sh 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-ldn-navigation/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-navigation/debian/ccm-settings.sh =================================================================== --- trunk/ccm-ldn-navigation/debian/ccm-settings.sh 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/ccm-settings.sh 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-ldn-navigation +version=6.3.0 +appname=ccm-ldn-navigation +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-ldn-navigation/debian/changelog =================================================================== --- trunk/ccm-ldn-navigation/debian/changelog 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/changelog 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,169 @@ +ccm-ldn-navigation (6.3.0-7) unstable; urgency=low + + * #21362 give a 404 for category.jsp?categoryID=XXX where XXX is a disabled + category + + -- My <my...@fi...> Wed, 14 Jun 2006 09:58:01 +0000 + +ccm-ldn-navigation (6.3.0-6) unstable; urgency=low + + * Fix 21135 - where a category has more than one parent, only show + isSelected="true" for the correct branch + + -- Erik Erskine <er...@ru...> Mon, 13 Mar 2006 16:52:10 +0000 + +ccm-ldn-navigation (6.3.0-5) unstable; urgency=low + + * Cancelling previous + + -- My <my...@fi...> Fri, 3 Mar 2006 13:47:39 +0000 + +ccm-ldn-navigation (6.3.0-4) unstable; urgency=low + + * New nav classes from UNDP + + -- My <my...@fi...> Fri, 3 Mar 2006 12:22:28 +0000 + +ccm-ldn-navigation (6.3.0-3) unstable; urgency=low + + * Added page and new class to create XML category summary + + -- James Burt <ja...@ru...> Fri, 27 Jan 2006 12:34:27 +0000 + +ccm-ldn-navigation (6.3.0-2) unstable; urgency=low + + * RedHat patches + + -- My <my...@fi...> Fri, 30 Dec 2005 08:53:09 +0000 + +ccm-ldn-navigation (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:52:01 +0000 + +ccm-ldn-navigation (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 1.4.5 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:12 +0000 + +ccm-ldn-navigation (1.4.5-8) unstable; urgency=low + + * Filter for catID first in DataCollDef to speed up joins + + -- My <my...@fi...> Wed, 5 Oct 2005 11:11:48 +0000 + +ccm-ldn-navigation (1.4.5-7) unstable; urgency=low + + * Refactoring MPA/SiteProxy as index item patch, adding 404s for invalid + category hits + + -- My <my...@fi...> Thu, 28 Jul 2005 12:27:06 +0000 + +ccm-ldn-navigation (1.4.5-6) unstable; urgency=low + + * Scan all content types in ExtraXML component + + -- My <my...@fi...> Mon, 4 Jul 2005 14:21:51 +0000 + +ccm-ldn-navigation (1.4.5-5) unstable; urgency=low + + * SiteProxy as index items + + -- My <my...@fi...> Fri, 24 Jun 2005 09:21:11 +0000 + +ccm-ldn-navigation (1.4.5-4) unstable; urgency=low + + * MPAs as index items + + -- My <my...@fi...> Thu, 23 Jun 2005 15:37:36 +0000 + +ccm-ldn-navigation (1.4.5-3) unstable; urgency=low + + * Investigating #17703 + + -- My <my...@fi...> Thu, 12 May 2005 15:59:16 +0000 + +ccm-ldn-navigation (1.4.5-2) unstable; urgency=low + + * Integrated one fix from official Aplaws + + -- Fabrice Retkowsky <fa...@ru...> Wed, 20 Apr 2005 10:42:46 +0100 + +ccm-ldn-navigation (1.4.5-1) unstable; urgency=low + + * Automatic update of version number from 1.4.4 to 1.4.5 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:55 +0000 + +ccm-ldn-navigation (1.4.4-1) unstable; urgency=low + + * For qa + + -- Fabrice Retkowsky <fabrice@Utopia> Fri, 4 Mar 2005 17:12:10 -0800 + +ccm-ldn-navigation (1.4.3-8) unstable; urgency=low + + * OPtion for CategoryMenu to display grand-children categories, ticket 16648 + + -- Fabrice Retkowsky <fabrice@Utopia> Fri, 4 Mar 2005 17:12:10 -0800 + +ccm-ldn-navigation (1.4.3-7) unstable; urgency=low + + * Fixed the previous fix, 16648 + + -- Watford Project <wa...@ch...> Thu, 3 Mar 2005 17:38:02 +0000 + +ccm-ldn-navigation (1.4.3-6) unstable; urgency=low + + * Option for CategoryMenu to display nephew categories of the current one, + ticket 16648 + + -- Watford Project <wa...@ch...> Wed, 23 Feb 2005 18:31:19 +0000 + +ccm-ldn-navigation (1.4.3-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 15:26:22 +0000 + +ccm-ldn-navigation (1.4.3-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-ldn-navigation (1.4.3-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-ldn-navigation (1.4.3-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-ldn-navigation (1.4.3-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-ldn-navigation/debian/compat =================================================================== --- trunk/ccm-ldn-navigation/debian/compat 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/compat 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1 @@ +4 Added: trunk/ccm-ldn-navigation/debian/config =================================================================== --- trunk/ccm-ldn-navigation/debian/config 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/config 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-ldn-navigation/debian/control =================================================================== --- trunk/ccm-ldn-navigation/debian/control 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/control 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,21 @@ +Source: ccm-ldn-navigation +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-cms, ccm-core, ccm-ldn-terms, ccm-ldn-util +Standards-Version: 3.6.1 + +Package: ccm-ldn-navigation +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms, ccm-ldn-util +Description: APLAWS: Navigation application for building the navigation structure through published items. + This package contains the Navigation application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-ldn-navigation-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-ldn-navigation + Documentation for ccm-ldn-navigation. Provides the JavaDoc API documentation. Added: trunk/ccm-ldn-navigation/debian/copyright =================================================================== --- trunk/ccm-ldn-navigation/debian/copyright 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/copyright 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-ldn-navigation/debian/postinst =================================================================== --- trunk/ccm-ldn-navigation/debian/postinst 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/postinst 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-ldn-navigation +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-ldn-navigation/debian/postrm =================================================================== --- trunk/ccm-ldn-navigation/debian/postrm 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/postrm 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-ldn-navigation +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-ldn-navigation/debian/prerm =================================================================== --- trunk/ccm-ldn-navigation/debian/prerm 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/prerm 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-ldn-navigation +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-ldn-navigation/debian/rules =================================================================== --- trunk/ccm-ldn-navigation/debian/rules 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/rules 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-ldn-navigation/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-navigation/debian/templates =================================================================== --- trunk/ccm-ldn-navigation/debian/templates 2006-06-14 13:46:02 UTC (rev 1170) +++ trunk/ccm-ldn-navigation/debian/templates 2006-06-14 13:54:39 UTC (rev 1171) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-ldn-navigation +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: .. |
Author: fabrice Date: 2006-06-14 15:46:02 +0200 (Wed, 14 Jun 2006) New Revision: 1170 Added: trunk/ccm-ldn-image-step/debian/ trunk/ccm-ldn-image-step/debian/ccm-build.sh trunk/ccm-ldn-image-step/debian/ccm-clean.sh trunk/ccm-ldn-image-step/debian/ccm-config.sh trunk/ccm-ldn-image-step/debian/ccm-disperse.sh trunk/ccm-ldn-image-step/debian/ccm-install.sh trunk/ccm-ldn-image-step/debian/ccm-ldn-image-step.dirs trunk/ccm-ldn-image-step/debian/ccm-settings-run.sh trunk/ccm-ldn-image-step/debian/ccm-settings.sh trunk/ccm-ldn-image-step/debian/changelog trunk/ccm-ldn-image-step/debian/compat trunk/ccm-ldn-image-step/debian/config trunk/ccm-ldn-image-step/debian/control trunk/ccm-ldn-image-step/debian/copyright trunk/ccm-ldn-image-step/debian/postinst trunk/ccm-ldn-image-step/debian/postrm trunk/ccm-ldn-image-step/debian/prerm trunk/ccm-ldn-image-step/debian/rules trunk/ccm-ldn-image-step/debian/templates trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/oracle-se/ trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/oracle-se/upgrade/ trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/oracle-se/upgrade/6.2.0-6.2.1/ trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/oracle-se/upgrade/6.2.0-6.2.1/alter-table-cms_item_image_attachment.sql trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/postgres/ trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/postgres/upgrade/ trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/postgres/upgrade/6.2.0-6.2.1/ trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/postgres/upgrade/6.2.0-6.2.1/alter-table-cms_item_image_attachment.sql trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/upgrade/oracle-se-6.2.0-6.2.1.sql trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/upgrade/postgres-6.2.0-6.2.1.sql trunk/ccm-ldn-image-step/src/com/arsdigita/cms/ItemImageAttachmentConfig.java trunk/ccm-ldn-image-step/src/com/arsdigita/cms/ItemImageAttachmentConfig_parameter.properties Modified: trunk/ccm-ldn-image-step/application.xml trunk/ccm-ldn-image-step/pdl/com/arsdigita/cms/contenttypes/ItemImageAttachment.pdl trunk/ccm-ldn-image-step/sql/ccm-ldn-image-step/upgrade/oracle-se-1.0.0-2.0.0.sql trunk/ccm-ldn-image-step/src/ccm-ldn-image-step.config trunk/ccm-ldn-image-step/src/ccm-ldn-image-step.upgrade trunk/ccm-ldn-image-step/src/com/arsdigita/cms/contenttypes/ItemImageAttachment.java trunk/ccm-ldn-image-step/src/com/arsdigita/cms/contenttypes/imagestep/ImagePropertyRenderer.java trunk/ccm-ldn-image-step/src/com/arsdigita/cms/contenttypes/ui/ImageStepDisplay.java trunk/ccm-ldn-image-step/src/com/arsdigita/cms/contenttypes/ui/ImageStepEdit.java Log: * (optional) title and description for images * fix older upgrade * debian files Modified: trunk/ccm-ldn-image-step/application.xml =================================================================== --- trunk/ccm-ldn-image-step/application.xml 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/application.xml 2006-06-14 13:46:02 UTC (rev 1170) @@ -3,7 +3,7 @@ name="ccm-ldn-image-step" prettyName="Image step" version="6.3.0" - release="3" + release="7" webapp="ROOT"> <ccm:dependencies> <ccm:requires name="ccm-core" version="6.2.0" relation="ge"/> Added: trunk/ccm-ldn-image-step/debian/ccm-build.sh =================================================================== --- trunk/ccm-ldn-image-step/debian/ccm-build.sh 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/ccm-build.sh 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-ldn-image-step/debian/ccm-clean.sh =================================================================== --- trunk/ccm-ldn-image-step/debian/ccm-clean.sh 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/ccm-clean.sh 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:13 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-ldn-image-step/debian/ccm-config.sh =================================================================== --- trunk/ccm-ldn-image-step/debian/ccm-config.sh 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/ccm-config.sh 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-ldn-image-step/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-ldn-image-step/debian/ccm-disperse.sh 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/ccm-disperse.sh 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:13 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-ldn-image-step/debian/ccm-install.sh =================================================================== --- trunk/ccm-ldn-image-step/debian/ccm-install.sh 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/ccm-install.sh 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-ldn-image-step/debian/ccm-ldn-image-step.dirs =================================================================== --- trunk/ccm-ldn-image-step/debian/ccm-ldn-image-step.dirs 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/ccm-ldn-image-step.dirs 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1 @@ +usr/share/java/ccm-ldn-image-step-6.3.0 Added: trunk/ccm-ldn-image-step/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-ldn-image-step/debian/ccm-settings-run.sh 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/ccm-settings-run.sh 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-ldn-image-step/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-image-step/debian/ccm-settings.sh =================================================================== --- trunk/ccm-ldn-image-step/debian/ccm-settings.sh 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/ccm-settings.sh 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-ldn-image-step +version=6.3.0 +appname=ccm-ldn-image-step +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-ldn-image-step/debian/changelog =================================================================== --- trunk/ccm-ldn-image-step/debian/changelog 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/changelog 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,61 @@ +ccm-ldn-image-step (6.3.0-7) unstable; urgency=low + + * Fixing logger class, maybe leading to classloader pb + + -- My <my...@fi...> Fri, 24 Feb 2006 14:37:59 +0000 + +ccm-ldn-image-step (6.3.0-6) unstable; urgency=low + + * Fixing weird classloading issue for UNDP + + -- My <my...@fi...> Thu, 23 Feb 2006 16:13:46 +0000 + +ccm-ldn-image-step (6.3.0-5) unstable; urgency=low + + * Fixing oracle upgrade script + + -- My <my...@fi...> Wed, 22 Feb 2006 15:14:28 +0000 + +ccm-ldn-image-step (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:52:00 +0000 + +ccm-ldn-image-step (6.2.1-1) unstable; urgency=low + + * Adding missing sql upgrade script + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:52:00 +0000 + +ccm-ldn-image-step (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 2.0.1 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:12 +0000 + +ccm-ldn-image-step (2.0.1-2) unstable; urgency=low + + * Added optional title and description for images + + -- James Burt <ja...@ru...> Thu, 6 Oct 2005 15:31:20 +0100 + +ccm-ldn-image-step (2.0.1-1) unstable; urgency=low + + * Automatic update of version number from 2.0.0 to 2.0.1 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:55 +0000 + +ccm-ldn-image-step (2.0.0-2) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Tue, 15 Feb 2005 11:38:30 +0000 + +ccm-ldn-image-step (2.0.0-1) unstable; urgency=low + + * Initial release of 2.0.0. + + -- Berkan Eskikaya <be...@ru...> Fri, 12 Nov 2004 09:09:56 +0100 Added: trunk/ccm-ldn-image-step/debian/compat =================================================================== --- trunk/ccm-ldn-image-step/debian/compat 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/compat 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1 @@ +4 Added: trunk/ccm-ldn-image-step/debian/config =================================================================== --- trunk/ccm-ldn-image-step/debian/config 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/config 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-ldn-image-step/debian/control =================================================================== --- trunk/ccm-ldn-image-step/debian/control 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/control 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,21 @@ +Source: ccm-ldn-image-step +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-cms, ccm-ldn-navigation +Standards-Version: 3.6.1 + +Package: ccm-ldn-image-step +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms, ccm-ldn-navigation +Description: APLAWS: + This package contains the Image step application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-ldn-image-step-doc +Architecture: all +Depends: ccm-tools, ccm-core, ccm-cms, ccm-ldn-navigation +Description: Documentation for ccm-ldn-image-step + Documentation for ccm-ldn-image-step. Provides the JavaDoc API documentation. Added: trunk/ccm-ldn-image-step/debian/copyright =================================================================== --- trunk/ccm-ldn-image-step/debian/copyright 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/copyright 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-ldn-image-step/debian/postinst =================================================================== --- trunk/ccm-ldn-image-step/debian/postinst 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/postinst 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-ldn-image-step +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-ldn-image-step/debian/postrm =================================================================== --- trunk/ccm-ldn-image-step/debian/postrm 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/postrm 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-ldn-image-step +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-ldn-image-step/debian/prerm =================================================================== --- trunk/ccm-ldn-image-step/debian/prerm 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/prerm 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-ldn-image-step +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-ldn-image-step/debian/rules =================================================================== --- trunk/ccm-ldn-image-step/debian/rules 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/rules 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-ldn-image-step/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-image-step/debian/templates =================================================================== --- trunk/ccm-ldn-image-step/debian/templates 2006-06-14 13:32:33 UTC (rev 1169) +++ trunk/ccm-ldn-image-step/debian/templates 2006-06-14 13:46:02 UTC (rev 1170) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:14 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-ldn-image-step +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database .. |
Author: fabrice Date: 2006-06-14 15:32:33 +0200 (Wed, 14 Jun 2006) New Revision: 1169 Added: trunk/ccm-ldn-atoz/debian/ trunk/ccm-ldn-atoz/debian/ccm-build.sh trunk/ccm-ldn-atoz/debian/ccm-clean.sh trunk/ccm-ldn-atoz/debian/ccm-config.sh trunk/ccm-ldn-atoz/debian/ccm-disperse.sh trunk/ccm-ldn-atoz/debian/ccm-install.sh trunk/ccm-ldn-atoz/debian/ccm-ldn-atoz.dirs trunk/ccm-ldn-atoz/debian/ccm-settings-run.sh trunk/ccm-ldn-atoz/debian/ccm-settings.sh trunk/ccm-ldn-atoz/debian/changelog trunk/ccm-ldn-atoz/debian/compat trunk/ccm-ldn-atoz/debian/config trunk/ccm-ldn-atoz/debian/control trunk/ccm-ldn-atoz/debian/copyright trunk/ccm-ldn-atoz/debian/postinst trunk/ccm-ldn-atoz/debian/postrm trunk/ccm-ldn-atoz/debian/prerm trunk/ccm-ldn-atoz/debian/rules trunk/ccm-ldn-atoz/debian/templates trunk/ccm-ldn-atoz/sql/ccm-ldn-atoz/oracle-se/upgrade/add-item_provider.sql trunk/ccm-ldn-atoz/sql/ccm-ldn-atoz/oracle-se/upgrade/add-item_provider_alias.sql Modified: trunk/ccm-ldn-atoz/pdl/com/arsdigita/london/atoz/AtoZCategoryProvider.pdl trunk/ccm-ldn-atoz/sql/ccm-ldn-atoz/upgrade/oracle-se-1.0.0-1.0.1.sql trunk/ccm-ldn-atoz/sql/ccm-ldn-atoz/upgrade/oracle-se-1.0.2-1.0.3.sql trunk/ccm-ldn-atoz/sql/ccm-ldn-atoz/upgrade/postgres-1.0.0-1.0.1.sql trunk/ccm-ldn-atoz/sql/ccm-ldn-atoz/upgrade/postgres-1.0.2-1.0.3.sql trunk/ccm-ldn-atoz/src/com/arsdigita/london/atoz/AtoZCategoryProvider.java Log: * fix upgrade scripts * debian files Added: trunk/ccm-ldn-atoz/debian/ccm-build.sh =================================================================== --- trunk/ccm-ldn-atoz/debian/ccm-build.sh 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/ccm-build.sh 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-ldn-atoz/debian/ccm-clean.sh =================================================================== --- trunk/ccm-ldn-atoz/debian/ccm-clean.sh 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/ccm-clean.sh 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-ldn-atoz/debian/ccm-config.sh =================================================================== --- trunk/ccm-ldn-atoz/debian/ccm-config.sh 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/ccm-config.sh 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-ldn-atoz/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-ldn-atoz/debian/ccm-disperse.sh 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/ccm-disperse.sh 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-ldn-atoz/debian/ccm-install.sh =================================================================== --- trunk/ccm-ldn-atoz/debian/ccm-install.sh 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/ccm-install.sh 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-ldn-atoz/debian/ccm-ldn-atoz.dirs =================================================================== --- trunk/ccm-ldn-atoz/debian/ccm-ldn-atoz.dirs 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/ccm-ldn-atoz.dirs 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1 @@ +usr/share/java/ccm-ldn-atoz-6.3.1 Added: trunk/ccm-ldn-atoz/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-ldn-atoz/debian/ccm-settings-run.sh 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/ccm-settings-run.sh 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-ldn-atoz/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-atoz/debian/ccm-settings.sh =================================================================== --- trunk/ccm-ldn-atoz/debian/ccm-settings.sh 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/ccm-settings.sh 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-ldn-atoz +version=6.3.1 +appname=ccm-ldn-atoz +appversion=6.3.1 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-ldn-atoz/debian/changelog =================================================================== --- trunk/ccm-ldn-atoz/debian/changelog 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/changelog 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,68 @@ +ccm-ldn-atoz (6.3.1-1) unstable; urgency=low + + * Automatic update of version number from 6.3.0 to 6.3.1 + + -- Runtime Collective Ltd. <in...@ru...> Fri, 30 Dec 2005 08:49:30 +0000 + +ccm-ldn-atoz (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:59 +0000 + +ccm-ldn-atoz (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 1.0.3 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:10 +0000 + +ccm-ldn-atoz (1.0.3-3) unstable; urgency=low + + * added missing ref to upgrade script + + -- My <my...@fi...> Tue, 4 Oct 2005 10:56:05 +0000 + +ccm-ldn-atoz (1.0.3-2) unstable; urgency=low + + * #17792 fix for item query + + -- Fabrice Retkowsky <fa...@ru...> Mon, 25 Apr 2005 16:26:16 +0100 + +ccm-ldn-atoz (1.0.3-1) unstable; urgency=low + + * Automatic update of version number from 1.0.2 to 1.0.3 + + -- Runtime Collective Ltd. <in...@ru...> Thu, 31 Mar 2005 11:59:54 +0000 + +ccm-ldn-atoz (1.0.2-1) unstable; urgency=low + + * for release qa + + -- Watford Project <wa...@ch...> Fri, 4 Mar 2005 13:54:10 +0000 + +ccm-ldn-atoz (1.0.1-4) unstable; urgency=low + + * New class to support multiple aliases for each item + + -- Watford Project <wa...@ch...> Fri, 4 Mar 2005 13:54:10 +0000 + +ccm-ldn-atoz (1.0.1-3) unstable; urgency=low + + * AtoZItemProvider now supports Aliases, db change + + -- Fabrice Retkowsky <fa...@ru...> Tue, 1 Mar 2005 15:31:46 +0000 + +ccm-ldn-atoz (1.0.1-2) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + * Build-depend on ccm-ldn-subsite and ccm-ldn-navigation + + -- David Pashley <da...@ru...> Tue, 15 Feb 2005 10:19:21 +0000 + +ccm-ldn-atoz (1.0.1-1) unstable; urgency=low + + * Initial release of 1.0.1. + + -- Berkan Eskikaya <be...@ru...> Fri, 12 Nov 2004 09:09:56 +0100 Added: trunk/ccm-ldn-atoz/debian/compat =================================================================== --- trunk/ccm-ldn-atoz/debian/compat 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/compat 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1 @@ +4 Added: trunk/ccm-ldn-atoz/debian/config =================================================================== --- trunk/ccm-ldn-atoz/debian/config 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/config 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-ldn-atoz/debian/control =================================================================== --- trunk/ccm-ldn-atoz/debian/control 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/control 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,21 @@ +Source: ccm-ldn-atoz +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-core, ccm-ldn-util, ccm-ldn-subsite, ccm-ldn-navigation, ccm-cms (>= 6.1.0-8), ccm-cms-types-siteproxy, ccm-ldn-terms +Standards-Version: 3.6.1 + +Package: ccm-ldn-atoz +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-ldn-util, ccm-cms (>= 6.1.0-8), ccm-ldn-terms +Description: APLAWS: A to Z listing of all categories. + This package contains the A-Z application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-ldn-atoz-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-ldn-atoz + Documentation for ccm-ldn-atoz. Provides the JavaDoc API documentation. Added: trunk/ccm-ldn-atoz/debian/copyright =================================================================== --- trunk/ccm-ldn-atoz/debian/copyright 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/copyright 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-ldn-atoz/debian/postinst =================================================================== --- trunk/ccm-ldn-atoz/debian/postinst 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/postinst 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-ldn-atoz +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-ldn-atoz/debian/postrm =================================================================== --- trunk/ccm-ldn-atoz/debian/postrm 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/postrm 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-ldn-atoz +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-ldn-atoz/debian/prerm =================================================================== --- trunk/ccm-ldn-atoz/debian/prerm 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/prerm 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-ldn-atoz +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-ldn-atoz/debian/rules =================================================================== --- trunk/ccm-ldn-atoz/debian/rules 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/rules 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-ldn-atoz/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-atoz/debian/templates =================================================================== --- trunk/ccm-ldn-atoz/debian/templates 2006-06-14 13:17:30 UTC (rev 1168) +++ trunk/ccm-ldn-atoz/debian/templates 2006-06-14 13:32:33 UTC (rev 1169) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-ldn-atoz +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.1 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably + most suited if you are trying to build the applications from the + sources and prefer to load them once all are built and installed. + +Template: ccm/shared/pg_set_up_database_p +Type: boolean +Default: true +Description: Do you want me to set up the CCM database and adjust the access permissions? + You have specified a database on your localhost. I could set it up + for you and automatically adjust the access permissions. I could do + this independently of whether or not you have choosen to load the + applications at install time. + . + Say no here if you have already prepared the CCM database yourself + or if you would like to do it later. Saying yes will save you some + manual work. + +Template: ccm/shared/pg_drop_database_at_purge_p +Type: boolean +Default: true +Description: Do you want me to drop the CCM database? + + +Template: ccm/shared/error_etc_ccm_missing_dir +Type: note +Description: CCM configuration directory does not exist. + I couldn't find the CCM configuration directory: /etc/ccm. + . + This probably points at a corrupt or unusual CCM installation. The ccm-tools + package creates this directory --- please verify that it is installed and + intact. + . + I will continue with the configuration by re-creating the directory, + but we may experience problems later. + +Template: ccm/shared/ccm_aux_setupdb_failed +Type: note +Description: ccm-aux-setupdb couldn't complete. + The helper script ccm-aux-setupdb didn't succeed. + This means that the CCM database couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually + prepare the database and load the application(s) after the + installation. + +Template: ccm/shared/ccm_aux_update_hba_conf_failed +Type: note +Description: ccm-aux-update-hba-conf couldn't complete. + The helper script ccm-aux-update-hba-conf didn't succeed. + This means that the access permissions for the ccm database + couldn't be set up. + . + If you have answered yes to the automatic loading of + applications at install time, I will still try to honour + that. + . + In case that doesn't succeed [likely now], please manually .. |
From: <fa...@vh...> - 2006-06-14 13:22:10
|
Author: fabrice Date: 2006-06-14 15:17:30 +0200 (Wed, 14 Jun 2006) New Revision: 1168 Added: trunk/ccm-ldn-aplaws/debian/ trunk/ccm-ldn-aplaws/debian/ccm-build-bundles.sh trunk/ccm-ldn-aplaws/debian/ccm-build.sh trunk/ccm-ldn-aplaws/debian/ccm-clean.sh trunk/ccm-ldn-aplaws/debian/ccm-config.sh trunk/ccm-ldn-aplaws/debian/ccm-disperse.sh trunk/ccm-ldn-aplaws/debian/ccm-install.sh trunk/ccm-ldn-aplaws/debian/ccm-ldn-aplaws.dirs trunk/ccm-ldn-aplaws/debian/ccm-settings-run.sh trunk/ccm-ldn-aplaws/debian/ccm-settings.sh trunk/ccm-ldn-aplaws/debian/changelog trunk/ccm-ldn-aplaws/debian/compat trunk/ccm-ldn-aplaws/debian/config trunk/ccm-ldn-aplaws/debian/control trunk/ccm-ldn-aplaws/debian/copyright trunk/ccm-ldn-aplaws/debian/postinst trunk/ccm-ldn-aplaws/debian/postrm trunk/ccm-ldn-aplaws/debian/prerm trunk/ccm-ldn-aplaws/debian/rules trunk/ccm-ldn-aplaws/debian/templates trunk/ccm-ldn-aplaws/src/com/arsdigita/aplaws/ui/AssignedIndexItemTerms.java trunk/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/types/SiteProxy.xsl Modified: trunk/ccm-ldn-aplaws/application.xml trunk/ccm-ldn-aplaws/src/ccm-ldn-aplaws.load trunk/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/lib/lib.xsl trunk/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/types/ContentTypes.xsl trunk/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/types/MultiPartArticle.xsl Log: * styling for link in new window, MPA/SiteProxy as index items * minor fixes * debian files Modified: trunk/ccm-ldn-aplaws/application.xml =================================================================== --- trunk/ccm-ldn-aplaws/application.xml 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/application.xml 2006-06-14 13:17:30 UTC (rev 1168) @@ -13,7 +13,7 @@ <ccm:requires name="ccm-ldn-terms" version="6.2.0" relation="ge"/> <ccm:requires name="ccm-ldn-dublin" version="6.2.0" relation="ge"/> <ccm:requires name="ccm-ldn-navigation" version="6.2.0" relation="ge"/> - <ccm:requires name="ccm-cms-types-article" version="6.2.0" relation="ge"/> + <ccm:requires name="ccm-ldn-search" version="6.3.0" relation="ge"/> </ccm:dependencies> <ccm:contacts> <ccm:contact uri="http://www.redhat.com/software/rhea" type="website"/> Added: trunk/ccm-ldn-aplaws/debian/ccm-build-bundles.sh =================================================================== --- trunk/ccm-ldn-aplaws/debian/ccm-build-bundles.sh 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/ccm-build-bundles.sh 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Author: Fabrice Retkowsky <fa...@ru...>, 2005 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +# make a jar with the bundle cfg files +echo "Building bundle jar" + +# get the version number +cd build +VER_NUM=`ls *-sql.jar | sort -r | xargs echo | cut -d ' ' -f 1` +VER_NUM=${VER_NUM:15} +VER_NUM=${VER_NUM%-sql.jar} +echo "Version number: $VER_NUM" +cd .. + +# make the bundles jar +find * | grep -v "svn" | grep "cfg/" | xargs jar cvf bundles.jar +mv bundles.jar debian/tmp/usr/share/java/ccm-ldn-aplaws-${VER_NUM}-bundles.jar Added: trunk/ccm-ldn-aplaws/debian/ccm-build.sh =================================================================== --- trunk/ccm-ldn-aplaws/debian/ccm-build.sh 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/ccm-build.sh 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-build.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +# for eg Oracle jar +CLASSPATH=./lib/:$CLASSPATH +$ANT build-${name} Added: trunk/ccm-ldn-aplaws/debian/ccm-clean.sh =================================================================== --- trunk/ccm-ldn-aplaws/debian/ccm-clean.sh 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/ccm-clean.sh 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-clean.sh,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +. debian/ccm-settings.sh + +[ -f build.xml ] && $ANT clean-${appname} + +rm -rf build build.xml ccm.classpath + +# ccm-disperse.sh creates the .install files automatically, so let's clean them too. + +rm -f ${appname}.install ${appname}-doc.install Added: trunk/ccm-ldn-aplaws/debian/ccm-config.sh =================================================================== --- trunk/ccm-ldn-aplaws/debian/ccm-config.sh 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/ccm-config.sh 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-config.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +if [ ! -L $name ]; then + ln -s . $name +fi +ccm-create-projectxml.pl > project.xml +ccm-configure.sh Added: trunk/ccm-ldn-aplaws/debian/ccm-disperse.sh =================================================================== --- trunk/ccm-ldn-aplaws/debian/ccm-disperse.sh 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/ccm-disperse.sh 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-disperse.sh,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +. debian/ccm-settings.sh + +SRCDIR="$1" +[ "x$SRCDIR" != "x" ] || exit 1 + +# automatically generate the .install file lists for dh_install: + +(cd $SRCDIR && find . -type f \ + | grep -v DEBIAN \ + | grep -v var/www/html \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}.install + +(cd $SRCDIR && find . -type f -path './var/www/html/*' \ + | sed -e 's/^\.\/*\(.*\)/\1/' -e '/./,/^$/!d') > debian/${name}-doc.install + +# for some reason, dh_install doesn't work properly; let's disperse the files ourselves: + +for pkg in ${name} ${name}-doc; do + # skip this package if mentioned in CCM_DEBIAN_NO_PACKAGES + [ `echo $CCM_DEBIAN_NO_PACKAGES | tr ' ' '\n' | grep -c "^${pkg}$"` -eq 1 ] && continue || true + + # this should exist [due to dh_installdocs, dh_installchangelog], but just in case... + mkdir -p debian/$pkg + + [ -e debian/${pkg}.install ] && \ + echo -n "Dispersing files to debian/$pkg/ ... " && \ + for file in `cat debian/${pkg}.install`; do + dir=`dirname $file` + mkdir -p debian/$pkg/$dir + cp $SRCDIR/$file debian/$pkg/$dir/ + done + echo "done." +done Added: trunk/ccm-ldn-aplaws/debian/ccm-install.sh =================================================================== --- trunk/ccm-ldn-aplaws/debian/ccm-install.sh 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/ccm-install.sh 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-install.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +. debian/ccm-settings.sh + +DESTDIR="$1" +[ "xDESTDIR" != "x" ] || exit 1 + +rm -rf $DESTDIR +mkdir -p $DESTDIR +mkdir -p $DESTDIR${confdir} +mkdir -p $DESTDIR/var/www/html/${name}-${version} + +ANT_OPTS="-Dapps.${name}.version=${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.conf.dir=$DESTDIR${confdir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.lib.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.private.lib.dir=$DESTDIR${sharedjardir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.webapp.dir=$DESTDIR${webappdir}/${name}-${version}" +ANT_OPTS="$ANT_OPTS -Ddeploy.system.jars.dir=$DESTDIR${sharedjardir}" +ANT_OPTS="$ANT_OPTS -Ddeploy.api.dir.${appname}=$DESTDIR/var/www/html/${name}-${version}/api" +ANT_OPTS="$ANT_OPTS -Ddeploy.shared.classes.dir=$DESTDIR/tmp/${name}-${version}" +export ANT_OPTS + +$ANT deploy-jar-classes-${appname} +$ANT deploy-${appname} + +rm -rf "$DESTDIR/tmp" + + +# only generate and deploy javadocs if we didn't specify otherwise in CCM_DEBIAN_NO_JAVADOC + +GENERATE_JAVADOC=true +if [ `echo $CCM_DEBIAN_NO_JAVADOC | tr ' ' '\n' | grep -c "^${name}-doc$"` -eq 1 ]; then + GENERATE_JAVADOC=false +fi + +if [ -d ${appname}/src ]; then + $ANT deploy-jar-classes-${appname} + [ "$GENERATE_JAVADOC" == "true" ] && $ANT deploy-javadoc-${appname} || true +fi Added: trunk/ccm-ldn-aplaws/debian/ccm-ldn-aplaws.dirs =================================================================== --- trunk/ccm-ldn-aplaws/debian/ccm-ldn-aplaws.dirs 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/ccm-ldn-aplaws.dirs 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1 @@ +usr/share/java/ccm-ldn-aplaws-6.3.0 Added: trunk/ccm-ldn-aplaws/debian/ccm-settings-run.sh =================================================================== --- trunk/ccm-ldn-aplaws/debian/ccm-settings-run.sh 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/ccm-settings-run.sh 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# say which app to compile, amongst those specified in the project.xml +export CCM_APP=$name + +# do some checks + +check_JAVA_HOME + +if [ "$name" = "ccm-core" ]; then + check_ORACLE_JDBC_LIB +fi + + +# set the environment + +for file in `echo /etc/profile.d/ccm-{tools,devel,scripts}.sh`; do + . $file +done + +cd .. +. $CCM_SCRIPTS_HOME/bin/env-conf.sh ${appname} > /dev/null +cd - +export CCM_HOME=`pwd` + +if which classic-ant > /dev/null 2>&1; then + ANT=classic-ant +else + ANT=ant +fi + + +# perhaps we don't like to build some packages -- get them from DH_OPTIONS + +export CCM_DEBIAN_NO_PACKAGES=`echo $DH_OPTIONS | tr -s ' ' '\n' | grep -E '(-N|--no-package=)' | xargs | sed -re 's/(-N|--no-package)//g'` + +# for now, assume that if we don't want to build some packages then we don't +# want to generate javadocs for them either + +export CCM_DEBIAN_NO_JAVADOC="$CCM_DEBIAN_NO_JAVADOC $CCM_DEBIAN_NO_PACKAGES" Property changes on: trunk/ccm-ldn-aplaws/debian/ccm-settings-run.sh ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-aplaws/debian/ccm-settings.sh =================================================================== --- trunk/ccm-ldn-aplaws/debian/ccm-settings.sh 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/ccm-settings.sh 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: ccm-settings.sh,v 1.1.1.1 2004/11/12 09:29:59 fabrice Exp $ + +# source the shell library [for the check_* functions] +# FIXME: ugly-looking hack. +orig_DEBIAN_HAS_FRONTEND=$DEBIAN_HAS_FRONTEND +DEBIAN_HAS_FRONTEND=1 +. /usr/share/ccm-tools/lib/shellmodule +DEBIAN_HAS_FRONTEND=$orig_DEBIAN_HAS_FRONTEND + + +# variables we use [especially in ccm-install.sh] + +name=ccm-ldn-aplaws +version=6.3.0 +appname=ccm-ldn-aplaws +appversion=6.3.0 +confdir="/etc/ccm/conf" +sharedjardir="/usr/share/java" +webappdir="/usr/share/java/webapps" +ccmclasspathfile="ccm/ccm.classpath" +ccmwebappfile="ccm/ccm.webapps" + +. debian/ccm-settings-run.sh Added: trunk/ccm-ldn-aplaws/debian/changelog =================================================================== --- trunk/ccm-ldn-aplaws/debian/changelog 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/changelog 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,87 @@ +ccm-ldn-aplaws (6.3.0-1) unstable; urgency=low + + * Automatic update of version number from 6.2.0 to 6.3.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 13:51:59 +0000 + +ccm-ldn-aplaws (6.2.0-1) unstable; urgency=low + + * Automatic update of version number from 1.9.2 to 6.2.0 + + -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:10 +0000 + +ccm-ldn-aplaws (1.9.2-5) unstable; urgency=low + + * Added back missing import in lib.xsl + + -- My <my...@fi...> Tue, 20 Sep 2005 14:15:06 +0000 + +ccm-ldn-aplaws (1.9.2-4) unstable; urgency=low + + * New component to display assignedTerms on category index items + + -- My <my...@fi...> Fri, 8 Jul 2005 17:22:49 +0000 + +ccm-ldn-aplaws (1.9.2-3) unstable; urgency=low + + * SiteProxy as index items + + -- My <my...@fi...> Fri, 24 Jun 2005 09:21:54 +0000 + +ccm-ldn-aplaws (1.9.2-2) unstable; urgency=low + + * MPAs as index items + + -- My <my...@fi...> Thu, 23 Jun 2005 15:38:00 +0000 + +ccm-ldn-aplaws (1.9.2-1) unstable; urgency=low + + * New release + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 15:07:58 +0000 + +ccm-ldn-aplaws (1.9.1-5) unstable; urgency=low + + * Depend on j2sdk1.4 | java2-compiler + * Update to policy 3.6.1 + * Change maintainer to the mailing list and add uploaders + + -- David Pashley <da...@ru...> Mon, 14 Feb 2005 15:07:58 +0000 + +ccm-ldn-aplaws (1.9.1-4) unstable; urgency=low + + * debian/postrm: disabled the purge operations [had some weird problems]. + * updated the debian control scripts to get the package name and version from their invocation. + + -- Berkan Eskikaya <be...@ru...> Mon, 10 May 2004 12:33:33 +0100 + +ccm-ldn-aplaws (1.9.1-3) unstable; urgency=low + + * debian/templates: made load-at-install and setup-database-at-install the default behaviour. + * debian/postinst: ccm_hostinit will try to use web.xml-aplaws from ccm-ldn-aplaws. + * debian/ccm-settings.sh: correct checking/setting of ORACLE_JDBC_LIB [Chris]. + * debian/templates: changed the default postgresql database and user names to "ccm01.db" and "ccm". + * debian/config: added detection of the hostname of the machine and possibly the user's email. + * major restructuring of the debian scripts: moved all utility functions to ccm-tools and made postinst, postrm, prerm and ccm-settings.sh source and use that file. + + -- Berkan Eskikaya <be...@ru...> Fri, 7 May 2004 13:04:43 +0100 + +ccm-ldn-aplaws (1.9.1-2) unstable; urgency=low + + * The build process now tries to automatically detect JAVA_HOME and the location of Oracle's java library. + * debian/ccm-clean.sh: only calls the ant process if build.xml exists. + * debian/{postinst,prerm,config,templates}: added debconf support + * debian/postinst: accepts 'reconfigure' and treats it as 'configure'. + * debian/postinst: added postgresql.jar to CLASSPATH; added libpgjava to the dependencies. + * debian/postinst: removed some bashisms upon recommendation from lintian. + * debian/rules: enabled dh_installdebconf. + * debian/control: made the package depend on debconf. + + -- Berkan Eskikaya <be...@ru...> Fri, 1 May 2004 15:41:43 +0100 + + +ccm-ldn-aplaws (1.9.1-1) unstable; urgency=low + + * Initial release. + + -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100 Added: trunk/ccm-ldn-aplaws/debian/compat =================================================================== --- trunk/ccm-ldn-aplaws/debian/compat 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/compat 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1 @@ +4 Added: trunk/ccm-ldn-aplaws/debian/config =================================================================== --- trunk/ccm-ldn-aplaws/debian/config 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/config 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: config,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +db_capb backup + +HOSTNAME=`hostname -f` 2>/dev/null || true + +if [ -n "$HOSTNAME" ]; then + db_metaget ccm/shared/waf_web_server default || true + PORTNUM=`echo $RET | cut -d: -f2` + db_set ccm/shared/waf_web_server "$HOSTNAME:$PORTNUM" || true +fi + +if [ -n "$EMAIL" ]; then + db_set ccm/shared/waf_admin_email "$EMAIL" || true +fi + + +STATE=1 +LASTSTATE=5 + +while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do + case "$STATE" in + 1) + # Database questions + db_input high ccm/shared/dbase_type || true + db_input high ccm/shared/dbase_host || true + db_input high ccm/shared/dbase_name || true + db_input high ccm/shared/dbase_user || true + db_input high ccm/shared/dbase_password || true + + ;; + 2) + # Server address + db_input high ccm/shared/waf_web_server || true + ;; + 3) + # Admin questions + db_input high ccm/shared/waf_admin_email || true + db_input high ccm/shared/waf_admin_name_given || true + db_input high ccm/shared/waf_admin_name_family || true + db_input high ccm/shared/waf_admin_password || true + db_input high ccm/shared/waf_admin_password_question || true + db_input high ccm/shared/waf_admin_password_answer || true + ;; + 4) + # When to load the applications + db_input medium ccm/shared/ccm_load_apps_at_install_p || true + ;; + 5) + # Whether to set up the [local] database + db_get ccm/shared/dbase_host || true + if [ "$RET" = "localhost" ]; then + db_input medium ccm/shared/pg_set_up_database_p || true + fi + ;; + + # Add additional states here, making sure to + # increment LASTSTATE. + esac + + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done + + +db_go || true + +db_stop + Added: trunk/ccm-ldn-aplaws/debian/control =================================================================== --- trunk/ccm-ldn-aplaws/debian/control 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/control 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,21 @@ +Source: ccm-ldn-aplaws +Section: contrib/web +Priority: optional +Maintainer: Runtime Packaging <run...@ru...> +Uploaders: David Pashley <da...@ru...> +Build-Depends-Indep: debhelper (>= 4.0.0), j2re1.4 | java2-runtime, j2sdk1.4 | java2-compiler, ant, libservlet2.3-java, libpgjava, debconf, po-debconf, ccm-tools, ccm-devel, ccm-scripts, ccm-cms, ccm-core, ccm-ldn-navigation, ccm-ldn-portal, ccm-ldn-subsite, ccm-ldn-terms +Standards-Version: 3.6.1 + +Package: ccm-ldn-aplaws +Architecture: all +Depends: java-virtual-machine-dummy | j2sdk1.4 | java-virtual-machine, ccm-tools, ccm-servlet-container, libservlet2.3-java, libpgjava, liblog4j1.2-java , ccm-core, ccm-cms, ccm-ldn-subsite, ccm-ldn-portal, ccm-ldn-terms, ccm-ldn-navigation, ccm-cms-types-article +Description: APLAWS: APLAWS integration application. + This package contains the APLAWS application for APLAWS. + . + FIXME: We need a longer and more meaningful description here. + +Package: ccm-ldn-aplaws-doc +Architecture: all +Depends: ccm-tools +Description: Documentation for ccm-ldn-aplaws + Documentation for ccm-ldn-aplaws. Provides the JavaDoc API documentation. Added: trunk/ccm-ldn-aplaws/debian/copyright =================================================================== --- trunk/ccm-ldn-aplaws/debian/copyright 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/copyright 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,15 @@ +This package was debianized by Berkan Eskikaya <be...@ru...> on +Tue, 13 Apr 2004 19:03:14 +0100. + +It was downloaded from http://aplaws.sourceforge.net/ + +Upstream Authors: Redhat UK. + +Copyright: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. + + Added: trunk/ccm-ldn-aplaws/debian/postinst =================================================================== --- trunk/ccm-ldn-aplaws/debian/postinst 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/postinst 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,112 @@ +#! /bin/sh +# postinst script for ccm-ldn-aplaws +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# 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'. + +case "$1" in + configure|reconfigure) + # FIXME: we need to be sensitive to upgrade operations here. + # basically, if pkgversion = appversion, then the datamodel + # hasn't changed -- we just configure the package and don't + # touch the database; else, we need to also update the + # datamodel in the database. + + + ### get the settings for the operations below + + ccm_set_env + db_get_ccm_settings ;# db_stop + + get_pkgname_from_arg "$0" + ccm_package_name="$RET" + get_pkgversion_from_dpkg "$ccm_package_name" + ccm_package_version="$RET" + + + ### do the usual post-installion configuration + + if [ ! -d "/etc/ccm" ]; then + db_message "ccm/shared/error_etc_ccm_missing_dir" + mkdir -p "/etc/ccm" + fi + + ccm_update_ccm_classpath add $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps add $ccm_package_name $ccm_package_version + ccm_update_file_attributes $ccm_package_name $ccm_package_version + + + ### try to set up the database if asked to do so + + if [ "$pg_set_up_database_p" = "true" ]; then + pg_set_up_database + fi + + + ### try to load the application if asked to do so + + if [ "$ccm_load_apps_at_install_p" = "true" -a -n "$JAVA_HOME" ]; then + ccm_load + fi + + + ### run the hostinit step + + if [ -n "$JAVA_HOME" ]; then + tomcat_http_port=`echo $waf_web_server | cut -d':' -f2` || true + tomcat_shutdown_port=`expr $tomcat_http_port + 1` || true + ccm_host_init tomcat $tomcat_http_port $tomcat_shutdown_port + fi + + + ### don't give others the registry details [eg the database password] on a golden plate + # FIXME: this interferes with "ccm load" updating the registry. Need to find the right ownership. + # chmod -R o-rwx /etc/ccm/conf/registry || true + + ;; + + 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 + Added: trunk/ccm-ldn-aplaws/debian/postrm =================================================================== --- trunk/ccm-ldn-aplaws/debian/postrm 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/postrm 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,62 @@ +#! /bin/sh +# postrm script for ccm-ldn-aplaws +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +db_get_ccm_settings + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +if [ "$ccm_package_name" != "ccm-core" ]; then + exit 0 ;# nothing to do +fi + +case "$1" in + purge-FIXME) + # FIXME: there are problems with this, so disabling for the moment. + + # maybe drop the database + if [ "$dbase_host" = "localhost" ]; then + + db_input high ccm/shared/pg_drop_database_at_purge_p || true + db_go + db_stop + + if [ "$pg_drop_database_at_purge_p" = "true" ]; then + su - postgres -c "dropdb $dbase_name" 1>&2 || true + su - postgres -c "dropuser $dbase_user" 1>&2 || true + fi + + fi + + # FIXME: should we still remove /etc/ccm/conf/registry/registry.properties, + # even if we don't or fail to drop the database. + rm -rf /etc/ccm/conf/registry/* + ;; + + *) + # Nothing to do here. + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Added: trunk/ccm-ldn-aplaws/debian/prerm =================================================================== --- trunk/ccm-ldn-aplaws/debian/prerm 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/prerm 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,60 @@ +#! /bin/sh +# prerm script for ccm-ldn-aplaws +# +# see: dh_installdeb(1) +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/ccm-tools/lib/shellmodule + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +db_get_ccm_settings ; db_stop + +get_pkgname_from_arg "$0" +ccm_package_name="$RET" +get_pkgversion_from_dpkg "$ccm_package_name" +ccm_package_version="$RET" + +case "$1" in + remove|purge|upgrade|deconfigure) + + ccm_update_ccm_classpath remove $ccm_package_name $ccm_package_version + ccm_update_ccm_webapps remove $ccm_package_name $ccm_package_version + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ "$1" = "remove" -a "$ccm_package_name" = "ccm-core" -a -x "/etc/init.d/ccm" ]; then + invoke-rc.d ccm stop || true +fi + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Added: trunk/ccm-ldn-aplaws/debian/rules =================================================================== --- trunk/ccm-ldn-aplaws/debian/rules 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/rules 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,85 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for packages that are architecture independent. +# +# Author: Berkan Eskikaya <be...@ru...>, 2004 +# +# $Id: rules,v 1.1.1.1 2004/11/12 09:30:00 fabrice Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build.xml: + dh_testdir + # Add here commands to configure the package. + @sh debian/ccm-config.sh + +build: build-stamp +build-stamp: build.xml + dh_testdir + + # Add here commands to compile the package. + @sh debian/ccm-build.sh + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + @sh debian/ccm-clean.sh + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/<packagename>. + @sh debian/ccm-install.sh $(CURDIR)/debian/tmp + @sh debian/ccm-build-bundles.sh + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + @sh debian/ccm-disperse.sh debian/tmp +# dh_install --sourcedir=debian/tmp +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install Property changes on: trunk/ccm-ldn-aplaws/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: trunk/ccm-ldn-aplaws/debian/templates =================================================================== --- trunk/ccm-ldn-aplaws/debian/templates 2006-06-14 13:08:25 UTC (rev 1167) +++ trunk/ccm-ldn-aplaws/debian/templates 2006-06-14 13:17:30 UTC (rev 1168) @@ -0,0 +1,207 @@ +Template: ccm/debconf/version +Type: string +Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ +Description: The version of the debconf template + Author: Berkan Eskikaya <be...@ru...>, 2004 + . + $Id: templates,v 1.1.1.1 2004/11/12 09:30:12 fabrice Exp $ + +Template: ccm/package_name +Type: string +Default: ccm-ldn-aplaws +Description: The name of the package + This is syntetic sugar. + +Template: ccm/package_version +Type: string +Default: 6.3.0 +Description: The version of the package + This is synthetic sugar. + +Template: ccm/shared/dbase_type +Type: select +Choices: postgresql +Default: postgresql +Description: Database backend: + Please choose a database backend. At the moment, you could only select PostgreSQL. + +Template: ccm/shared/dbase_host +Type: string +Default: localhost +Description: Database host: + Please specify the host that the database runs on. + +Template: ccm/shared/dbase_name +Type: string +Default: ccm01.db +Description: Database name: + Please specify the name of the APLAWS database. + +Template: ccm/shared/dbase_user +Type: string +Default: ccm +Description: Database user name: + Please specify the database account for the APLAWS database. + +Template: ccm/shared/dbase_password +Type: password +Default: ccmpwd +Description: Database password: + Please choose a password for the APLAWS database account. + +Template: ccm/shared/waf_runtime_jdbc_url +Type: string +Default: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd +Description: JDBC connection URL: + The WAF runtime uses this value to connect to a database. + . + Format: jdbc:[subprotocol]:[subname] + . + Example: jdbc:postgresql://localhost/ccm01.db?user=ccm&password=ccmpwd + +Template: ccm/shared/waf_web_server +Type: string +Default: localhost:9090 +Description: Server virtual host: + Please specify the hostname and port that users of a site will + see in URLs generated by WAF. + . + Format: [server hostname]:[port number] + . + Example: example.com:80 + +Template: ccm/shared/waf_admin_email +Type: string +Default: +Description: Administrator Email Address: + Please specify the system administrator account. + . + Format: <user>@<domain> + . + Example: jo...@ex... + +Template: ccm/shared/waf_admin_name_given +Type: string +Default: +Description: Administrator First Name: + Please specify the name of the system administrator. + +Template: ccm/shared/waf_admin_name_family +Type: string +Default: +Description: Administrator Last Name: + Please specify the surname of the system administrator. + +Template: ccm/shared/waf_admin_password +Type: password +Default: +Description: Administrator Password + Please choose a password for the system administrator account. + +Template: ccm/shared/waf_admin_password_question +Type: string +Default: The name of your primary school +Description: Administrator Password Question: + This question will be asked when the password to the system administrator + account is lost and access must be recovered. + . + Please only use letters and numbers. + +Template: ccm/shared/waf_admin_password_answer +Type: string +Default: +Description: Administrator Password Answer: + Now specify the correct answer to the Administrator Password Question. + . + Please only use letters and numbers. + +Template: ccm/shared/ccm_load_apps_at_install_p +Type: boolean +Default: true +Description: Load CCM applications as they install? + You could choose to load CCM applications into the database + automatically after they are installed, or you could load them + manually [with 'ccm load'] yourself. + . + The former will save you some manual work, while the latter is probably .. |