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: <ap...@vh...> - 2006-06-14 22:07:30
|
Author: apevec
Date: 2006-06-15 00:02:54 +0200 (Thu, 15 Jun 2006)
New Revision: 1217
Removed:
trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/default/index-ldn_dc_map_item_id_idx.sql
Modified:
trunk/ccm-ldn-dublin/pdl/com/arsdigita/london/cms/dublin/query-getRelatedItems.pdl
trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/oracle-se-create.sql
trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/postgres-create.sql
trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/oracle-se-1.4.2-1.4.3.sql
trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/oracle-se-6.3.0-6.3.1.sql
trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/postgres-1.4.2-1.4.3.sql
trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/postgres-6.3.0-6.3.1.sql
Log:
ldn_dublin_core_item_map die die die
Modified: trunk/ccm-ldn-dublin/pdl/com/arsdigita/london/cms/dublin/query-getRelatedItems.pdl
===================================================================
--- trunk/ccm-ldn-dublin/pdl/com/arsdigita/london/cms/dublin/query-getRelatedItems.pdl 2006-06-14 21:48:08 UTC (rev 1216)
+++ trunk/ccm-ldn-dublin/pdl/com/arsdigita/london/cms/dublin/query-getRelatedItems.pdl 2006-06-14 22:02:54 UTC (rev 1217)
@@ -59,15 +59,13 @@
cms_pages cp,
acs_objects ao,
content_types ct,
- ldn_dublin_core_items dci,
- ldn_dublin_core_item_map dcim
+ ldn_dublin_core_items dci
where ci.parent_id = unique_bundles.unique_bundle_id
and ci.item_id = cp.item_id
and ci.item_id = ao.object_id
and ci.item_id != :itemID
and ci.type_id = ct.type_id
- and ci.item_id = dcim.item_id
- and dcim.dublin_id = dci.dublin_id
+ and ci.item_id = dci.item_id
and dci.keywords like :keyword || '%'
and ci.version = 'live'
} map {
Deleted: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/default/index-ldn_dc_map_item_id_idx.sql
Modified: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/oracle-se-create.sql
===================================================================
--- trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/oracle-se-create.sql 2006-06-14 21:48:08 UTC (rev 1216)
+++ trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/oracle-se-create.sql 2006-06-14 22:02:54 UTC (rev 1217)
@@ -1,3 +1,2 @@
@@ ddl/oracle-se/create.sql
@@ ddl/oracle-se/deferred.sql
-@@ default/index-ldn_dc_map_item_id_idx.sql
Modified: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/postgres-create.sql
===================================================================
--- trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/postgres-create.sql 2006-06-14 21:48:08 UTC (rev 1216)
+++ trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/postgres-create.sql 2006-06-14 22:02:54 UTC (rev 1217)
@@ -1,5 +1,4 @@
begin;
\i ddl/postgres/create.sql
\i ddl/postgres/deferred.sql
-\i default/index-ldn_dc_map_item_id_idx.sql
end;
Modified: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/oracle-se-1.4.2-1.4.3.sql
===================================================================
--- trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/oracle-se-1.4.2-1.4.3.sql 2006-06-14 21:48:08 UTC (rev 1216)
+++ trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/oracle-se-1.4.2-1.4.3.sql 2006-06-14 22:02:54 UTC (rev 1217)
@@ -1,16 +1 @@
--- following query must return 0 rows, otherwise unique index creation will fail
--- select item_id from ldn_dublin_core_item_map group by item_id having count(*) >1;
---
--- Deletion of duplicate dublin item mappings involves following tables.
--- dublin_id entry in following delete statements should be figured out
--- manually.
---delete from ldn_dublin_core_item_map where dublin_id = 168927;
---delete from LDN_DUBLIN_CORE_ITEMS where dublin_id = 168927;
---delete from cms_items where item_id = 168927;
---delete from object_context where object_id = 168927;
---delete from OBJECT_CONTAINER_MAP where object_id = 168927;
---delete from acs_objects where object_id = 168927;
---
-@@ ../default/index-ldn_dc_map_item_id_idx.sql
-
alter table ldn_dublin_core_items add ccn_portal_instance varchar2(200);
Modified: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/oracle-se-6.3.0-6.3.1.sql
===================================================================
--- trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/oracle-se-6.3.0-6.3.1.sql 2006-06-14 21:48:08 UTC (rev 1216)
+++ trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/oracle-se-6.3.0-6.3.1.sql 2006-06-14 22:02:54 UTC (rev 1217)
@@ -4,4 +4,4 @@
set item_id
= (select dcm.item_id from LDN_DUBLIN_CORE_ITEM_MAP dcm where dcm.dublin_id=dc.dublin_id);
--- drop table ldn_dublin_core_item_map;
+drop table ldn_dublin_core_item_map;
Modified: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/postgres-1.4.2-1.4.3.sql
===================================================================
--- trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/postgres-1.4.2-1.4.3.sql 2006-06-14 21:48:08 UTC (rev 1216)
+++ trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/postgres-1.4.2-1.4.3.sql 2006-06-14 22:02:54 UTC (rev 1217)
@@ -1,9 +1,5 @@
begin;
--- following query must return 0 rows, otherwise unique index creation will fail
--- select item_id from ldn_dublin_core_item_map group by item_id having count(*) >1;
-\i ../default/index-ldn_dc_map_item_id_idx.sql
-
alter table ldn_dublin_core_items add ccn_portal_instance varchar(200);
commit;
Modified: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/postgres-6.3.0-6.3.1.sql
===================================================================
--- trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/postgres-6.3.0-6.3.1.sql 2006-06-14 21:48:08 UTC (rev 1216)
+++ trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/upgrade/postgres-6.3.0-6.3.1.sql 2006-06-14 22:02:54 UTC (rev 1217)
@@ -7,6 +7,6 @@
from LDN_DUBLIN_CORE_ITEM_MAP dcm
where dcm.dublin_id=ldn_dublin_core_items.dublin_id;
- -- drop table ldn_dublin_core_item_map;
+ drop table ldn_dublin_core_item_map;
commit;
|
|
From: <ap...@vh...> - 2006-06-14 21:52:40
|
Author: apevec Date: 2006-06-14 23:48:08 +0200 (Wed, 14 Jun 2006) New Revision: 1216 Modified: trunk/ccm-core/sql/ccm-core/postgres/oracle-compatibility.sql Log: nvl emulation also for date types Modified: trunk/ccm-core/sql/ccm-core/postgres/oracle-compatibility.sql =================================================================== --- trunk/ccm-core/sql/ccm-core/postgres/oracle-compatibility.sql 2006-06-14 15:52:52 UTC (rev 1215) +++ trunk/ccm-core/sql/ccm-core/postgres/oracle-compatibility.sql 2006-06-14 21:48:08 UTC (rev 1216) @@ -34,7 +34,47 @@ end; ' language 'plpgsql'; +create or replace function nvl(integer, integer) returns integer as ' +begin + if $1 is null then + return $2; + else + return $1; + end if; +end; +' language 'plpgsql'; +create or replace function nvl(date, date) returns date as ' +begin + if $1 is null then + return $2; + else + return $1; + end if; +end; +' language 'plpgsql'; + +create or replace function nvl(timestamp, timestamp) returns timestamp as ' +begin + if $1 is null then + return $2; + else + return $1; + end if; +end; +' language 'plpgsql'; + +create or replace function nvl(timestamptz, timestamptz) returns timestamptz as ' +begin + if $1 is null then + return $2; + else + return $1; + end if; +end; +' language 'plpgsql'; + + -- Replacements for PG's special operators that cause persistence's -- SQL parser to barf |
|
From: <fa...@vh...> - 2006-06-14 16:02:27
|
Author: fabrice Date: 2006-06-14 17:52:52 +0200 (Wed, 14 Jun 2006) New Revision: 1215 Added: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/default/index-ldn_dc_map_item_id_idx.sql Modified: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/oracle-se-create.sql trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/postgres-create.sql Log: missing index Added: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/default/index-ldn_dc_map_item_id_idx.sql =================================================================== --- trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/default/index-ldn_dc_map_item_id_idx.sql 2006-06-14 14:41:11 UTC (rev 1214) +++ trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/default/index-ldn_dc_map_item_id_idx.sql 2006-06-14 15:52:52 UTC (rev 1215) @@ -0,0 +1 @@ +create unique index ldn_dc_map_item_id_idx on ldn_dublin_core_item_map(item_id); Modified: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/oracle-se-create.sql =================================================================== --- trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/oracle-se-create.sql 2006-06-14 14:41:11 UTC (rev 1214) +++ trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/oracle-se-create.sql 2006-06-14 15:52:52 UTC (rev 1215) @@ -1,2 +1,3 @@ @@ ddl/oracle-se/create.sql @@ ddl/oracle-se/deferred.sql +@@ default/index-ldn_dc_map_item_id_idx.sql Modified: trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/postgres-create.sql =================================================================== --- trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/postgres-create.sql 2006-06-14 14:41:11 UTC (rev 1214) +++ trunk/ccm-ldn-dublin/sql/ccm-ldn-dublin/postgres-create.sql 2006-06-14 15:52:52 UTC (rev 1215) @@ -1,4 +1,5 @@ begin; \i ddl/postgres/create.sql \i ddl/postgres/deferred.sql +\i default/index-ldn_dc_map_item_id_idx.sql end; |
|
From: <fa...@vh...> - 2006-06-14 14:50:53
|
Author: fabrice
Date: 2006-06-14 16:40:54 +0200 (Wed, 14 Jun 2006)
New Revision: 1212
Added:
trunk/ccm-ldn-xmlfeed/debian/
trunk/ccm-ldn-xmlfeed/debian/ccm-build.sh
trunk/ccm-ldn-xmlfeed/debian/ccm-clean.sh
trunk/ccm-ldn-xmlfeed/debian/ccm-config.sh
trunk/ccm-ldn-xmlfeed/debian/ccm-disperse.sh
trunk/ccm-ldn-xmlfeed/debian/ccm-install.sh
trunk/ccm-ldn-xmlfeed/debian/ccm-ldn-xmlfeed.dirs
trunk/ccm-ldn-xmlfeed/debian/ccm-settings-run.sh
trunk/ccm-ldn-xmlfeed/debian/ccm-settings.sh
trunk/ccm-ldn-xmlfeed/debian/changelog
trunk/ccm-ldn-xmlfeed/debian/compat
trunk/ccm-ldn-xmlfeed/debian/config
trunk/ccm-ldn-xmlfeed/debian/control
trunk/ccm-ldn-xmlfeed/debian/copyright
trunk/ccm-ldn-xmlfeed/debian/postinst
trunk/ccm-ldn-xmlfeed/debian/postrm
trunk/ccm-ldn-xmlfeed/debian/prerm
trunk/ccm-ldn-xmlfeed/debian/rules
trunk/ccm-ldn-xmlfeed/debian/templates
Log:
Debian files
Added: trunk/ccm-ldn-xmlfeed/debian/ccm-build.sh
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/ccm-build.sh 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/ccm-build.sh 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/ccm-clean.sh 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/ccm-clean.sh 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed/debian/ccm-config.sh
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/ccm-config.sh 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/ccm-config.sh 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/ccm-disperse.sh 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/ccm-disperse.sh 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed/debian/ccm-install.sh
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/ccm-install.sh 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/ccm-install.sh 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed/debian/ccm-ldn-xmlfeed.dirs
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/ccm-ldn-xmlfeed.dirs 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/ccm-ldn-xmlfeed.dirs 2006-06-14 14:40:54 UTC (rev 1212)
@@ -0,0 +1 @@
+usr/share/java/ccm-ldn-xmlfeed-6.3.0
Added: trunk/ccm-ldn-xmlfeed/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/ccm-settings-run.sh 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/ccm-settings-run.sh 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-xmlfeed/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/ccm-settings.sh 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/ccm-settings.sh 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed
+version=6.3.0
+appname=ccm-ldn-xmlfeed
+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-xmlfeed/debian/changelog
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/changelog 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/changelog 2006-06-14 14:40:54 UTC (rev 1212)
@@ -0,0 +1,63 @@
+ccm-ldn-xmlfeed (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-xmlfeed (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-xmlfeed (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:57 +0000
+
+ccm-ldn-xmlfeed (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 12:41:43 +0000
+
+ccm-ldn-xmlfeed (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-xmlfeed (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-xmlfeed (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-xmlfeed (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-xmlfeed/debian/compat
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/compat 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/compat 2006-06-14 14:40:54 UTC (rev 1212)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-ldn-xmlfeed/debian/config
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/config 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/config 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed/debian/control
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/control 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/control 2006-06-14 14:40:54 UTC (rev 1212)
@@ -0,0 +1,21 @@
+Source: ccm-ldn-xmlfeed
+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-formsectionitem, ccm-cms-types-formitem
+Standards-Version: 3.6.1
+
+Package: ccm-ldn-xmlfeed
+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-formsectionitem, ccm-cms-types-formitem
+Description: APLAWS: Formbuilder content type that lets you make requests to remote sites and style the returned XML.
+ This package contains the XML Feed application for APLAWS.
+ .
+ FIXME: We need a longer and more meaningful description here.
+
+Package: ccm-ldn-xmlfeed-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-ldn-xmlfeed
+ Documentation for ccm-ldn-xmlfeed. Provides the JavaDoc API documentation.
Added: trunk/ccm-ldn-xmlfeed/debian/copyright
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/copyright 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/copyright 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed/debian/postinst
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/postinst 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/postinst 2006-06-14 14:40:54 UTC (rev 1212)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-ldn-xmlfeed
+#
+# 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-xmlfeed/debian/postrm
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/postrm 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/postrm 2006-06-14 14:40:54 UTC (rev 1212)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-ldn-xmlfeed
+#
+# 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-xmlfeed/debian/prerm
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/prerm 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/prerm 2006-06-14 14:40:54 UTC (rev 1212)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-ldn-xmlfeed
+#
+# 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-xmlfeed/debian/rules
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/rules 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/rules 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-xmlfeed/debian/templates
===================================================================
--- trunk/ccm-ldn-xmlfeed/debian/templates 2006-06-14 14:40:48 UTC (rev 1211)
+++ trunk/ccm-ldn-xmlfeed/debian/templates 2006-06-14 14:40:54 UTC (rev 1212)
@@ -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-xmlfeed
+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:47:58
|
Author: fabrice
Date: 2006-06-14 16:38:08 +0200 (Wed, 14 Jun 2006)
New Revision: 1189
Added:
trunk/ccm-cms-types-formitem/debian/
trunk/ccm-cms-types-formitem/debian/ccm-build.sh
trunk/ccm-cms-types-formitem/debian/ccm-clean.sh
trunk/ccm-cms-types-formitem/debian/ccm-cms-types-formitem.dirs
trunk/ccm-cms-types-formitem/debian/ccm-config.sh
trunk/ccm-cms-types-formitem/debian/ccm-disperse.sh
trunk/ccm-cms-types-formitem/debian/ccm-install.sh
trunk/ccm-cms-types-formitem/debian/ccm-settings-run.sh
trunk/ccm-cms-types-formitem/debian/ccm-settings.sh
trunk/ccm-cms-types-formitem/debian/changelog
trunk/ccm-cms-types-formitem/debian/compat
trunk/ccm-cms-types-formitem/debian/config
trunk/ccm-cms-types-formitem/debian/control
trunk/ccm-cms-types-formitem/debian/copyright
trunk/ccm-cms-types-formitem/debian/postinst
trunk/ccm-cms-types-formitem/debian/postrm
trunk/ccm-cms-types-formitem/debian/prerm
trunk/ccm-cms-types-formitem/debian/rules
trunk/ccm-cms-types-formitem/debian/templates
Log:
Debian files
Added: trunk/ccm-cms-types-formitem/debian/ccm-build.sh
===================================================================
--- trunk/ccm-cms-types-formitem/debian/ccm-build.sh 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/ccm-build.sh 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-cms-types-formitem/debian/ccm-clean.sh 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/ccm-clean.sh 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem/debian/ccm-cms-types-formitem.dirs
===================================================================
--- trunk/ccm-cms-types-formitem/debian/ccm-cms-types-formitem.dirs 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/ccm-cms-types-formitem.dirs 2006-06-14 14:38:08 UTC (rev 1189)
@@ -0,0 +1 @@
+usr/share/java/ccm-cms-types-formitem-6.3.0
Added: trunk/ccm-cms-types-formitem/debian/ccm-config.sh
===================================================================
--- trunk/ccm-cms-types-formitem/debian/ccm-config.sh 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/ccm-config.sh 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-cms-types-formitem/debian/ccm-disperse.sh 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/ccm-disperse.sh 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem/debian/ccm-install.sh
===================================================================
--- trunk/ccm-cms-types-formitem/debian/ccm-install.sh 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/ccm-install.sh 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-cms-types-formitem/debian/ccm-settings-run.sh 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/ccm-settings-run.sh 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-formitem/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-cms-types-formitem/debian/ccm-settings.sh 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/ccm-settings.sh 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem
+version=6.3.0
+appname=ccm-cms-types-formitem
+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-formitem/debian/changelog
===================================================================
--- trunk/ccm-cms-types-formitem/debian/changelog 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/changelog 2006-06-14 14:38:08 UTC (rev 1189)
@@ -0,0 +1,81 @@
+ccm-cms-types-formitem (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-formitem (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:06 +0000
+
+ccm-cms-types-formitem (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:48:04 +0000
+
+ccm-cms-types-formitem (6.1.1-3) unstable; urgency=low
+
+ * Final (?) fix for dublincore dates, #17509
+
+ -- My <my...@fi...> Wed, 18 May 2005 08:30:56 +0000
+
+ccm-cms-types-formitem (6.1.1-2) unstable; urgency=low
+
+ * 17509 fix for dublincore dates
+
+ -- My <my...@fi...> Fri, 29 Apr 2005 13:19:52 +0000
+
+ccm-cms-types-formitem (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-formitem (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:25:15 +0000
+
+ccm-cms-types-formitem (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-formitem (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-formitem (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-formitem (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-formitem/debian/compat
===================================================================
--- trunk/ccm-cms-types-formitem/debian/compat 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/compat 2006-06-14 14:38:08 UTC (rev 1189)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-cms-types-formitem/debian/config
===================================================================
--- trunk/ccm-cms-types-formitem/debian/config 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/config 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem/debian/control
===================================================================
--- trunk/ccm-cms-types-formitem/debian/control 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/control 2006-06-14 14:38:08 UTC (rev 1189)
@@ -0,0 +1,21 @@
+Source: ccm-cms-types-formitem
+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-formsectionitem
+Standards-Version: 3.6.1
+
+Package: ccm-cms-types-formitem
+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-formsectionitem
+Description: APLAWS: The Form content type for creating forms.
+ 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-formitem-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-cms-types-formitem
+ Documentation for ccm-cms-types-formitem. Provides the JavaDoc API documentation.
Added: trunk/ccm-cms-types-formitem/debian/copyright
===================================================================
--- trunk/ccm-cms-types-formitem/debian/copyright 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/copyright 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem/debian/postinst
===================================================================
--- trunk/ccm-cms-types-formitem/debian/postinst 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/postinst 2006-06-14 14:38:08 UTC (rev 1189)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-cms-types-formitem
+#
+# 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-formitem/debian/postrm
===================================================================
--- trunk/ccm-cms-types-formitem/debian/postrm 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/postrm 2006-06-14 14:38:08 UTC (rev 1189)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-cms-types-formitem
+#
+# 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-formitem/debian/prerm
===================================================================
--- trunk/ccm-cms-types-formitem/debian/prerm 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/prerm 2006-06-14 14:38:08 UTC (rev 1189)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-cms-types-formitem
+#
+# 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-formitem/debian/rules
===================================================================
--- trunk/ccm-cms-types-formitem/debian/rules 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/rules 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-formitem/debian/templates
===================================================================
--- trunk/ccm-cms-types-formitem/debian/templates 2006-06-14 14:38:03 UTC (rev 1188)
+++ trunk/ccm-cms-types-formitem/debian/templates 2006-06-14 14:38:08 UTC (rev 1189)
@@ -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-formitem
+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.
..
|
|
From: <fa...@vh...> - 2006-06-14 14:47:35
|
Author: fabrice
Date: 2006-06-14 16:37:50 +0200 (Wed, 14 Jun 2006)
New Revision: 1186
Added:
trunk/ccm-cms-types-event/debian/
trunk/ccm-cms-types-event/debian/ccm-build.sh
trunk/ccm-cms-types-event/debian/ccm-clean.sh
trunk/ccm-cms-types-event/debian/ccm-cms-types-event.dirs
trunk/ccm-cms-types-event/debian/ccm-config.sh
trunk/ccm-cms-types-event/debian/ccm-disperse.sh
trunk/ccm-cms-types-event/debian/ccm-install.sh
trunk/ccm-cms-types-event/debian/ccm-settings-run.sh
trunk/ccm-cms-types-event/debian/ccm-settings.sh
trunk/ccm-cms-types-event/debian/changelog
trunk/ccm-cms-types-event/debian/compat
trunk/ccm-cms-types-event/debian/config
trunk/ccm-cms-types-event/debian/control
trunk/ccm-cms-types-event/debian/copyright
trunk/ccm-cms-types-event/debian/postinst
trunk/ccm-cms-types-event/debian/postrm
trunk/ccm-cms-types-event/debian/prerm
trunk/ccm-cms-types-event/debian/rules
trunk/ccm-cms-types-event/debian/templates
Log:
Debian files
Added: trunk/ccm-cms-types-event/debian/ccm-build.sh
===================================================================
--- trunk/ccm-cms-types-event/debian/ccm-build.sh 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/ccm-build.sh 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-cms-types-event/debian/ccm-clean.sh 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/ccm-clean.sh 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event/debian/ccm-cms-types-event.dirs
===================================================================
--- trunk/ccm-cms-types-event/debian/ccm-cms-types-event.dirs 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/ccm-cms-types-event.dirs 2006-06-14 14:37:50 UTC (rev 1186)
@@ -0,0 +1 @@
+usr/share/java/ccm-cms-types-event-6.3.0
Added: trunk/ccm-cms-types-event/debian/ccm-config.sh
===================================================================
--- trunk/ccm-cms-types-event/debian/ccm-config.sh 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/ccm-config.sh 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-cms-types-event/debian/ccm-disperse.sh 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/ccm-disperse.sh 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event/debian/ccm-install.sh
===================================================================
--- trunk/ccm-cms-types-event/debian/ccm-install.sh 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/ccm-install.sh 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-cms-types-event/debian/ccm-settings-run.sh 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/ccm-settings-run.sh 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-event/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-cms-types-event/debian/ccm-settings.sh 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/ccm-settings.sh 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event
+version=6.3.0
+appname=ccm-cms-types-event
+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-event/debian/changelog
===================================================================
--- trunk/ccm-cms-types-event/debian/changelog 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/changelog 2006-06-14 14:37:50 UTC (rev 1186)
@@ -0,0 +1,69 @@
+ccm-cms-types-event (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-event (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-event (6.1.1-2) unstable; urgency=low
+
+ * Final (?) fix for dublincore dates, #17509
+
+ -- My <my...@fi...> Wed, 18 May 2005 08:30:42 +0000
+
+ccm-cms-types-event (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-event (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:21:18 +0000
+
+ccm-cms-types-event (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-event (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-event (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-event (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-event/debian/compat
===================================================================
--- trunk/ccm-cms-types-event/debian/compat 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/compat 2006-06-14 14:37:50 UTC (rev 1186)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-cms-types-event/debian/config
===================================================================
--- trunk/ccm-cms-types-event/debian/config 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/config 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event/debian/control
===================================================================
--- trunk/ccm-cms-types-event/debian/control 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/control 2006-06-14 14:37:50 UTC (rev 1186)
@@ -0,0 +1,21 @@
+Source: ccm-cms-types-event
+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-event
+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 Event 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-event-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-cms-types-event
+ Documentation for ccm-cms-types-event. Provides the JavaDoc API documentation.
Added: trunk/ccm-cms-types-event/debian/copyright
===================================================================
--- trunk/ccm-cms-types-event/debian/copyright 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/copyright 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event/debian/postinst
===================================================================
--- trunk/ccm-cms-types-event/debian/postinst 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/postinst 2006-06-14 14:37:50 UTC (rev 1186)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-cms-types-event
+#
+# 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-event/debian/postrm
===================================================================
--- trunk/ccm-cms-types-event/debian/postrm 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/postrm 2006-06-14 14:37:50 UTC (rev 1186)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-cms-types-event
+#
+# 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-event/debian/prerm
===================================================================
--- trunk/ccm-cms-types-event/debian/prerm 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/prerm 2006-06-14 14:37:50 UTC (rev 1186)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-cms-types-event
+#
+# 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-event/debian/rules
===================================================================
--- trunk/ccm-cms-types-event/debian/rules 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/rules 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-event/debian/templates
===================================================================
--- trunk/ccm-cms-types-event/debian/templates 2006-06-14 14:37:45 UTC (rev 1185)
+++ trunk/ccm-cms-types-event/debian/templates 2006-06-14 14:37:50 UTC (rev 1186)
@@ -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-event
+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:45:45
|
Author: fabrice
Date: 2006-06-14 16:41:11 +0200 (Wed, 14 Jun 2006)
New Revision: 1214
Added:
trunk/ccm-user-preferences/debian/
trunk/ccm-user-preferences/debian/ccm-auth-http.dirs
trunk/ccm-user-preferences/debian/ccm-build.sh
trunk/ccm-user-preferences/debian/ccm-clean.sh
trunk/ccm-user-preferences/debian/ccm-config.sh
trunk/ccm-user-preferences/debian/ccm-disperse.sh
trunk/ccm-user-preferences/debian/ccm-install.sh
trunk/ccm-user-preferences/debian/ccm-settings-run.sh
trunk/ccm-user-preferences/debian/ccm-settings.sh
trunk/ccm-user-preferences/debian/ccm-user-preferences.dirs
trunk/ccm-user-preferences/debian/changelog
trunk/ccm-user-preferences/debian/compat
trunk/ccm-user-preferences/debian/config
trunk/ccm-user-preferences/debian/control
trunk/ccm-user-preferences/debian/copyright
trunk/ccm-user-preferences/debian/postinst
trunk/ccm-user-preferences/debian/postrm
trunk/ccm-user-preferences/debian/prerm
trunk/ccm-user-preferences/debian/rules
trunk/ccm-user-preferences/debian/templates
Log:
Debian files
Added: trunk/ccm-user-preferences/debian/ccm-auth-http.dirs
===================================================================
--- trunk/ccm-user-preferences/debian/ccm-auth-http.dirs 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/ccm-auth-http.dirs 2006-06-14 14:41:11 UTC (rev 1214)
@@ -0,0 +1 @@
+usr/share/java/ccm-user-preferences-1.4.1
Added: trunk/ccm-user-preferences/debian/ccm-build.sh
===================================================================
--- trunk/ccm-user-preferences/debian/ccm-build.sh 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/ccm-build.sh 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-user-preferences/debian/ccm-clean.sh 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/ccm-clean.sh 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences/debian/ccm-config.sh
===================================================================
--- trunk/ccm-user-preferences/debian/ccm-config.sh 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/ccm-config.sh 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-user-preferences/debian/ccm-disperse.sh 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/ccm-disperse.sh 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences/debian/ccm-install.sh
===================================================================
--- trunk/ccm-user-preferences/debian/ccm-install.sh 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/ccm-install.sh 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-user-preferences/debian/ccm-settings-run.sh 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/ccm-settings-run.sh 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-user-preferences/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-user-preferences/debian/ccm-settings.sh 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/ccm-settings.sh 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences
+version=6.3.0
+appname=ccm-user-preferences
+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-user-preferences/debian/ccm-user-preferences.dirs
===================================================================
--- trunk/ccm-user-preferences/debian/ccm-user-preferences.dirs 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/ccm-user-preferences.dirs 2006-06-14 14:41:11 UTC (rev 1214)
@@ -0,0 +1 @@
+usr/share/java/ccm-user-preferences-6.3.0
Added: trunk/ccm-user-preferences/debian/changelog
===================================================================
--- trunk/ccm-user-preferences/debian/changelog 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/changelog 2006-06-14 14:41:11 UTC (rev 1214)
@@ -0,0 +1,24 @@
+ccm-user-preferences (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-user-preferences (6.2.0-1) unstable; urgency=low
+
+ * Automatic update of version number from 1.0.1 to 6.2.0
+
+ -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:14 +0000
+
+ccm-user-preferences (1.0.1-2) unstable; urgency=low
+
+ * Add ccm-devel to the build-dependancies
+ * Add ccm-scripts to the build-dependancies
+
+ -- David Pashley <da...@ru...> Thu, 28 Apr 2005 11:19:30 +0100
+
+ccm-user-preferences (1.0.1-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Fabrice Retkowsky <fa...@ru...> Fri, 24 Apr 2004 12:27:56 +0100
Added: trunk/ccm-user-preferences/debian/compat
===================================================================
--- trunk/ccm-user-preferences/debian/compat 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/compat 2006-06-14 14:41:11 UTC (rev 1214)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-user-preferences/debian/config
===================================================================
--- trunk/ccm-user-preferences/debian/config 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/config 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences/debian/control
===================================================================
--- trunk/ccm-user-preferences/debian/control 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/control 2006-06-14 14:41:11 UTC (rev 1214)
@@ -0,0 +1,21 @@
+Source: ccm-user-preferences
+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-core, ccm-devel, ccm-scripts
+Standards-Version: 3.6.1
+
+Package: ccm-user-preferences
+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-user-preferences-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-user-preferences
+ Documentation for ccm-user-preferences. Provides the JavaDoc API documentation.
Added: trunk/ccm-user-preferences/debian/copyright
===================================================================
--- trunk/ccm-user-preferences/debian/copyright 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/copyright 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences/debian/postinst
===================================================================
--- trunk/ccm-user-preferences/debian/postinst 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/postinst 2006-06-14 14:41:11 UTC (rev 1214)
@@ -0,0 +1,111 @@
+#! /bin/sh
+# postinst script for ccm-user-preferences
+#
+# 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-user-preferences/debian/postrm
===================================================================
--- trunk/ccm-user-preferences/debian/postrm 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/postrm 2006-06-14 14:41:11 UTC (rev 1214)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-user-preferences
+#
+# 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-user-preferences/debian/prerm
===================================================================
--- trunk/ccm-user-preferences/debian/prerm 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/prerm 2006-06-14 14:41:11 UTC (rev 1214)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-user-preferences
+#
+# 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-user-preferences/debian/rules
===================================================================
--- trunk/ccm-user-preferences/debian/rules 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/rules 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-user-preferences/debian/templates
===================================================================
--- trunk/ccm-user-preferences/debian/templates 2006-06-14 14:41:01 UTC (rev 1213)
+++ trunk/ccm-user-preferences/debian/templates 2006-06-14 14:41:11 UTC (rev 1214)
@@ -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-user-preferences
+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-user-preferences".
+
+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-user-preferences".
|
|
From: <fa...@vh...> - 2006-06-14 14:45:43
|
Author: fabrice
Date: 2006-06-14 16:41:01 +0200 (Wed, 14 Jun 2006)
New Revision: 1213
Added:
trunk/ccm-simplesurvey/debian/
trunk/ccm-simplesurvey/debian/ccm-build.sh
trunk/ccm-simplesurvey/debian/ccm-clean.sh
trunk/ccm-simplesurvey/debian/ccm-config.sh
trunk/ccm-simplesurvey/debian/ccm-disperse.sh
trunk/ccm-simplesurvey/debian/ccm-install.sh
trunk/ccm-simplesurvey/debian/ccm-settings-run.sh
trunk/ccm-simplesurvey/debian/ccm-settings.sh
trunk/ccm-simplesurvey/debian/ccm-simplesurvey.dirs
trunk/ccm-simplesurvey/debian/changelog
trunk/ccm-simplesurvey/debian/changelog.0
trunk/ccm-simplesurvey/debian/compat
trunk/ccm-simplesurvey/debian/config
trunk/ccm-simplesurvey/debian/control
trunk/ccm-simplesurvey/debian/copyright
trunk/ccm-simplesurvey/debian/postinst
trunk/ccm-simplesurvey/debian/postrm
trunk/ccm-simplesurvey/debian/prerm
trunk/ccm-simplesurvey/debian/rules
trunk/ccm-simplesurvey/debian/templates
Log:
Debian files
Added: trunk/ccm-simplesurvey/debian/ccm-build.sh
===================================================================
--- trunk/ccm-simplesurvey/debian/ccm-build.sh 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/ccm-build.sh 2006-06-14 14:41:01 UTC (rev 1213)
@@ -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-simplesurvey/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-simplesurvey/debian/ccm-clean.sh 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/ccm-clean.sh 2006-06-14 14:41:01 UTC (rev 1213)
@@ -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:18 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-simplesurvey/debian/ccm-config.sh
===================================================================
--- trunk/ccm-simplesurvey/debian/ccm-config.sh 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/ccm-config.sh 2006-06-14 14:41:01 UTC (rev 1213)
@@ -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-simplesurvey/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-simplesurvey/debian/ccm-disperse.sh 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/ccm-disperse.sh 2006-06-14 14:41:01 UTC (rev 1213)
@@ -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:18 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-simplesurvey/debian/ccm-install.sh
===================================================================
--- trunk/ccm-simplesurvey/debian/ccm-install.sh 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/ccm-install.sh 2006-06-14 14:41:01 UTC (rev 1213)
@@ -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-simplesurvey/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-simplesurvey/debian/ccm-settings-run.sh 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/ccm-settings-run.sh 2006-06-14 14:41:01 UTC (rev 1213)
@@ -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-simplesurvey/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-simplesurvey/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-simplesurvey/debian/ccm-settings.sh 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/ccm-settings.sh 2006-06-14 14:41:01 UTC (rev 1213)
@@ -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-simplesurvey
+version=6.3.0
+appname=ccm-simplesurvey
+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-simplesurvey/debian/ccm-simplesurvey.dirs
===================================================================
--- trunk/ccm-simplesurvey/debian/ccm-simplesurvey.dirs 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/ccm-simplesurvey.dirs 2006-06-14 14:41:01 UTC (rev 1213)
@@ -0,0 +1 @@
+usr/share/java/ccm-simplesurvey-6.3.0
Added: trunk/ccm-simplesurvey/debian/changelog
===================================================================
--- trunk/ccm-simplesurvey/debian/changelog 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/changelog 2006-06-14 14:41:01 UTC (rev 1213)
@@ -0,0 +1,63 @@
+ccm-simplesurvey (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-simplesurvey (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-simplesurvey (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:57 +0000
+
+ccm-simplesurvey (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 13:56:46 +0000
+
+ccm-simplesurvey (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-simplesurvey (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-simplesurvey (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-simplesurvey (1.4.1-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100
Added: trunk/ccm-simplesurvey/debian/changelog.0
===================================================================
--- trunk/ccm-simplesurvey/debian/changelog.0 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/changelog.0 2006-06-14 14:41:01 UTC (rev 1213)
@@ -0,0 +1,45 @@
+ccm-simplesurvey (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 13:56:46 +0000
+
+ccm-simplesurvey (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-simplesurvey (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-simplesurvey (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-simplesurvey (1.4.1-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100
Added: trunk/ccm-simplesurvey/debian/compat
===================================================================
--- trunk/ccm-simplesurvey/debian/compat 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/compat 2006-06-14 14:41:01 UTC (rev 1213)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-simplesurvey/debian/config
===================================================================
--- trunk/ccm-simplesurvey/debian/config 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/config 2006-06-14 14:41:01 UTC (rev 1213)
@@ -0,0 +1,79 @@
+#!/bin/sh
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: config,v 1.1.1.1 2004/11/12 09:30:18 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-simplesurvey/debian/control
===================================================================
--- trunk/ccm-simplesurvey/debian/control 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/control 2006-06-14 14:41:01 UTC (rev 1213)
@@ -0,0 +1,21 @@
+Source: ccm-simplesurvey
+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-simplesurvey
+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: Application for creating online surveys.
+ This package contains the Core application for APLAWS.
+ .
+ FIXME: We need a longer and more meaningful description here.
+
+Package: ccm-simplesurvey-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-simplesurvey
+ Documentation for ccm-simplesurvey. Provides the JavaDoc API documentation.
Added: trunk/ccm-simplesurvey/debian/copyright
===================================================================
--- trunk/ccm-simplesurvey/debian/copyright 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/copyright 2006-06-14 14:41:01 UTC (rev 1213)
@@ -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-simplesurvey/debian/postinst
===================================================================
--- trunk/ccm-simplesurvey/debian/postinst 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/postinst 2006-06-14 14:41:01 UTC (rev 1213)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-simplesurvey
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:18 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-simplesurvey/debian/postrm
===================================================================
--- trunk/ccm-simplesurvey/debian/postrm 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/postrm 2006-06-14 14:41:01 UTC (rev 1213)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-simplesurvey
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:18 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-simplesurvey/debian/prerm
===================================================================
--- trunk/ccm-simplesurvey/debian/prerm 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/prerm 2006-06-14 14:41:01 UTC (rev 1213)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-simplesurvey
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:18 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-simplesurvey/debian/rules
===================================================================
--- trunk/ccm-simplesurvey/debian/rules 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/rules 2006-06-14 14:41:01 UTC (rev 1213)
@@ -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-simplesurvey/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-simplesurvey/debian/templates
===================================================================
--- trunk/ccm-simplesurvey/debian/templates 2006-06-14 14:40:54 UTC (rev 1212)
+++ trunk/ccm-simplesurvey/debian/templates 2006-06-14 14:41:01 UTC (rev 1213)
@@ -0,0 +1,207 @@
+Template: ccm/debconf/version
+Type: string
+Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:18 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:18 fabrice Exp $
+
+Template: ccm/package_name
+Type: string
+Default: ccm-simplesurvey
+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
..
|
|
From: <fa...@vh...> - 2006-06-14 14:45:28
|
Author: fabrice
Date: 2006-06-14 16:40:48 +0200 (Wed, 14 Jun 2006)
New Revision: 1211
Added:
trunk/ccm-ldn-subsite/debian/
trunk/ccm-ldn-subsite/debian/ccm-build.sh
trunk/ccm-ldn-subsite/debian/ccm-clean.sh
trunk/ccm-ldn-subsite/debian/ccm-config.sh
trunk/ccm-ldn-subsite/debian/ccm-disperse.sh
trunk/ccm-ldn-subsite/debian/ccm-install.sh
trunk/ccm-ldn-subsite/debian/ccm-ldn-subsite.dirs
trunk/ccm-ldn-subsite/debian/ccm-settings-run.sh
trunk/ccm-ldn-subsite/debian/ccm-settings.sh
trunk/ccm-ldn-subsite/debian/changelog
trunk/ccm-ldn-subsite/debian/compat
trunk/ccm-ldn-subsite/debian/config
trunk/ccm-ldn-subsite/debian/control
trunk/ccm-ldn-subsite/debian/copyright
trunk/ccm-ldn-subsite/debian/postinst
trunk/ccm-ldn-subsite/debian/postrm
trunk/ccm-ldn-subsite/debian/prerm
trunk/ccm-ldn-subsite/debian/rules
trunk/ccm-ldn-subsite/debian/templates
Log:
Debian files
Added: trunk/ccm-ldn-subsite/debian/ccm-build.sh
===================================================================
--- trunk/ccm-ldn-subsite/debian/ccm-build.sh 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/ccm-build.sh 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-ldn-subsite/debian/ccm-clean.sh 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/ccm-clean.sh 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite/debian/ccm-config.sh
===================================================================
--- trunk/ccm-ldn-subsite/debian/ccm-config.sh 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/ccm-config.sh 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-ldn-subsite/debian/ccm-disperse.sh 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/ccm-disperse.sh 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite/debian/ccm-install.sh
===================================================================
--- trunk/ccm-ldn-subsite/debian/ccm-install.sh 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/ccm-install.sh 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite/debian/ccm-ldn-subsite.dirs
===================================================================
--- trunk/ccm-ldn-subsite/debian/ccm-ldn-subsite.dirs 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/ccm-ldn-subsite.dirs 2006-06-14 14:40:48 UTC (rev 1211)
@@ -0,0 +1 @@
+usr/share/java/ccm-ldn-subsite-6.3.0
Added: trunk/ccm-ldn-subsite/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-ldn-subsite/debian/ccm-settings-run.sh 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/ccm-settings-run.sh 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-subsite/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-ldn-subsite/debian/ccm-settings.sh 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/ccm-settings.sh 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite
+version=6.3.0
+appname=ccm-ldn-subsite
+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-subsite/debian/changelog
===================================================================
--- trunk/ccm-ldn-subsite/debian/changelog 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/changelog 2006-06-14 14:40:48 UTC (rev 1211)
@@ -0,0 +1,69 @@
+ccm-ldn-subsite (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-subsite (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:13 +0000
+
+ccm-ldn-subsite (1.4.2-2) unstable; urgency=low
+
+ * #17876 dynamichostprovider to use subsite server name for email reminder
+
+ -- My <my...@fi...> Fri, 29 Apr 2005 07:51:45 +0000
+
+ccm-ldn-subsite (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-subsite (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 12:23:29 +0000
+
+ccm-ldn-subsite (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-subsite (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-subsite (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-subsite (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-subsite/debian/compat
===================================================================
--- trunk/ccm-ldn-subsite/debian/compat 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/compat 2006-06-14 14:40:48 UTC (rev 1211)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-ldn-subsite/debian/config
===================================================================
--- trunk/ccm-ldn-subsite/debian/config 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/config 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite/debian/control
===================================================================
--- trunk/ccm-ldn-subsite/debian/control 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/control 2006-06-14 14:40:48 UTC (rev 1211)
@@ -0,0 +1,21 @@
+Source: ccm-ldn-subsite
+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-util
+Standards-Version: 3.6.1
+
+Package: ccm-ldn-subsite
+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-navigation
+Description: APLAWS: Subsite application is for running multiple websites from one APLAWS server.
+ This package contains the Subsite application for APLAWS.
+ .
+ FIXME: We need a longer and more meaningful description here.
+
+Package: ccm-ldn-subsite-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-ldn-subsite
+ Documentation for ccm-ldn-subsite. Provides the JavaDoc API documentation.
Added: trunk/ccm-ldn-subsite/debian/copyright
===================================================================
--- trunk/ccm-ldn-subsite/debian/copyright 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/copyright 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite/debian/postinst
===================================================================
--- trunk/ccm-ldn-subsite/debian/postinst 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/postinst 2006-06-14 14:40:48 UTC (rev 1211)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-ldn-subsite
+#
+# 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-subsite/debian/postrm
===================================================================
--- trunk/ccm-ldn-subsite/debian/postrm 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/postrm 2006-06-14 14:40:48 UTC (rev 1211)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-ldn-subsite
+#
+# 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-subsite/debian/prerm
===================================================================
--- trunk/ccm-ldn-subsite/debian/prerm 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/prerm 2006-06-14 14:40:48 UTC (rev 1211)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-ldn-subsite
+#
+# 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-subsite/debian/rules
===================================================================
--- trunk/ccm-ldn-subsite/debian/rules 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/rules 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-subsite/debian/templates
===================================================================
--- trunk/ccm-ldn-subsite/debian/templates 2006-06-14 14:40:42 UTC (rev 1210)
+++ trunk/ccm-ldn-subsite/debian/templates 2006-06-14 14:40:48 UTC (rev 1211)
@@ -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-subsite
+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:45:21
|
Author: fabrice
Date: 2006-06-14 16:40:42 +0200 (Wed, 14 Jun 2006)
New Revision: 1210
Added:
trunk/ccm-ldn-shortcuts/debian/
trunk/ccm-ldn-shortcuts/debian/ccm-build.sh
trunk/ccm-ldn-shortcuts/debian/ccm-clean.sh
trunk/ccm-ldn-shortcuts/debian/ccm-config.sh
trunk/ccm-ldn-shortcuts/debian/ccm-disperse.sh
trunk/ccm-ldn-shortcuts/debian/ccm-install.sh
trunk/ccm-ldn-shortcuts/debian/ccm-ldn-shortcuts.dirs
trunk/ccm-ldn-shortcuts/debian/ccm-settings-run.sh
trunk/ccm-ldn-shortcuts/debian/ccm-settings.sh
trunk/ccm-ldn-shortcuts/debian/changelog
trunk/ccm-ldn-shortcuts/debian/compat
trunk/ccm-ldn-shortcuts/debian/config
trunk/ccm-ldn-shortcuts/debian/control
trunk/ccm-ldn-shortcuts/debian/copyright
trunk/ccm-ldn-shortcuts/debian/postinst
trunk/ccm-ldn-shortcuts/debian/postrm
trunk/ccm-ldn-shortcuts/debian/prerm
trunk/ccm-ldn-shortcuts/debian/rules
trunk/ccm-ldn-shortcuts/debian/templates
Log:
Debian files
Added: trunk/ccm-ldn-shortcuts/debian/ccm-build.sh
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/ccm-build.sh 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/ccm-build.sh 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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-shortcuts/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/ccm-clean.sh 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/ccm-clean.sh 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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:15 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-shortcuts/debian/ccm-config.sh
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/ccm-config.sh 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/ccm-config.sh 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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-shortcuts/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/ccm-disperse.sh 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/ccm-disperse.sh 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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:15 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-shortcuts/debian/ccm-install.sh
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/ccm-install.sh 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/ccm-install.sh 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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-shortcuts/debian/ccm-ldn-shortcuts.dirs
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/ccm-ldn-shortcuts.dirs 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/ccm-ldn-shortcuts.dirs 2006-06-14 14:40:42 UTC (rev 1210)
@@ -0,0 +1 @@
+usr/share/java/ccm-ldn-shortcuts-6.3.0
Added: trunk/ccm-ldn-shortcuts/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/ccm-settings-run.sh 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/ccm-settings-run.sh 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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-shortcuts/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-shortcuts/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/ccm-settings.sh 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/ccm-settings.sh 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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-shortcuts
+version=6.3.0
+appname=ccm-ldn-shortcuts
+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-shortcuts/debian/changelog
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/changelog 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/changelog 2006-06-14 14:40:42 UTC (rev 1210)
@@ -0,0 +1,75 @@
+ccm-ldn-shortcuts (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-shortcuts (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:13 +0000
+
+ccm-ldn-shortcuts (1.4.2-3) unstable; urgency=low
+
+ * Parameter to set the shortcuts cache size
+
+ -- My <my...@fi...> Tue, 10 May 2005 10:27:59 +0000
+
+ccm-ldn-shortcuts (1.4.2-2) unstable; urgency=low
+
+ * Possible fix for 17603: shortcututil was closing transactions it didn't open
+
+ -- My <my...@fi...> Fri, 6 May 2005 10:47:02 +0000
+
+ccm-ldn-shortcuts (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-shortcuts (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 12:13:44 +0000
+
+ccm-ldn-shortcuts (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-shortcuts (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-shortcuts (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-shortcuts (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-shortcuts/debian/compat
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/compat 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/compat 2006-06-14 14:40:42 UTC (rev 1210)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-ldn-shortcuts/debian/config
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/config 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/config 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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-shortcuts/debian/control
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/control 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/control 2006-06-14 14:40:42 UTC (rev 1210)
@@ -0,0 +1,21 @@
+Source: ccm-ldn-shortcuts
+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-ldn-shortcuts
+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
+Description: APLAWS: The shortcuts applications allows the creation of shortcut links to more complicated URLs.
+ This package contains the Shortcuts application for APLAWS.
+ .
+ FIXME: We need a longer and more meaningful description here.
+
+Package: ccm-ldn-shortcuts-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-ldn-shortcuts
+ Documentation for ccm-ldn-shortcuts. Provides the JavaDoc API documentation.
Added: trunk/ccm-ldn-shortcuts/debian/copyright
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/copyright 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/copyright 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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-shortcuts/debian/postinst
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/postinst 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/postinst 2006-06-14 14:40:42 UTC (rev 1210)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-ldn-shortcuts
+#
+# 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-shortcuts/debian/postrm
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/postrm 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/postrm 2006-06-14 14:40:42 UTC (rev 1210)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-ldn-shortcuts
+#
+# 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-shortcuts/debian/prerm
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/prerm 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/prerm 2006-06-14 14:40:42 UTC (rev 1210)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-ldn-shortcuts
+#
+# 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-shortcuts/debian/rules
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/rules 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/rules 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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-shortcuts/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-shortcuts/debian/templates
===================================================================
--- trunk/ccm-ldn-shortcuts/debian/templates 2006-06-14 14:40:32 UTC (rev 1209)
+++ trunk/ccm-ldn-shortcuts/debian/templates 2006-06-14 14:40:42 UTC (rev 1210)
@@ -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-shortcuts
+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
..
|
|
From: <fa...@vh...> - 2006-06-14 14:45:19
|
Author: fabrice
Date: 2006-06-14 16:40:13 +0200 (Wed, 14 Jun 2006)
New Revision: 1207
Added:
trunk/ccm-ldn-importer/debian/
trunk/ccm-ldn-importer/debian/ccm-build.sh
trunk/ccm-ldn-importer/debian/ccm-clean.sh
trunk/ccm-ldn-importer/debian/ccm-config.sh
trunk/ccm-ldn-importer/debian/ccm-disperse.sh
trunk/ccm-ldn-importer/debian/ccm-install.sh
trunk/ccm-ldn-importer/debian/ccm-ldn-importer.dirs
trunk/ccm-ldn-importer/debian/ccm-settings-run.sh
trunk/ccm-ldn-importer/debian/ccm-settings.sh
trunk/ccm-ldn-importer/debian/changelog
trunk/ccm-ldn-importer/debian/compat
trunk/ccm-ldn-importer/debian/config
trunk/ccm-ldn-importer/debian/control
trunk/ccm-ldn-importer/debian/copyright
trunk/ccm-ldn-importer/debian/postinst
trunk/ccm-ldn-importer/debian/postrm
trunk/ccm-ldn-importer/debian/prerm
trunk/ccm-ldn-importer/debian/rules
trunk/ccm-ldn-importer/debian/templates
Log:
Debian files
Added: trunk/ccm-ldn-importer/debian/ccm-build.sh
===================================================================
--- trunk/ccm-ldn-importer/debian/ccm-build.sh 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/ccm-build.sh 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-ldn-importer/debian/ccm-clean.sh 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/ccm-clean.sh 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer/debian/ccm-config.sh
===================================================================
--- trunk/ccm-ldn-importer/debian/ccm-config.sh 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/ccm-config.sh 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-ldn-importer/debian/ccm-disperse.sh 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/ccm-disperse.sh 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer/debian/ccm-install.sh
===================================================================
--- trunk/ccm-ldn-importer/debian/ccm-install.sh 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/ccm-install.sh 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer/debian/ccm-ldn-importer.dirs
===================================================================
--- trunk/ccm-ldn-importer/debian/ccm-ldn-importer.dirs 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/ccm-ldn-importer.dirs 2006-06-14 14:40:13 UTC (rev 1207)
@@ -0,0 +1 @@
+usr/share/java/ccm-ldn-importer-6.3.0
Added: trunk/ccm-ldn-importer/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-ldn-importer/debian/ccm-settings-run.sh 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/ccm-settings-run.sh 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-importer/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-ldn-importer/debian/ccm-settings.sh 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/ccm-settings.sh 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer
+version=6.3.0
+appname=ccm-ldn-importer
+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-importer/debian/changelog
===================================================================
--- trunk/ccm-ldn-importer/debian/changelog 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/changelog 2006-06-14 14:40:13 UTC (rev 1207)
@@ -0,0 +1,63 @@
+ccm-ldn-importer (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-importer (6.2.0-1) unstable; urgency=low
+
+ * Automatic update of version number from 1.0.1 to 6.2.0
+
+ -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:12 +0000
+
+ccm-ldn-importer (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:55 +0000
+
+ccm-ldn-importer (1.0.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...> Tue, 15 Feb 2005 11:53:56 +0000
+
+ccm-ldn-importer (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-importer (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-importer (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-importer (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-importer/debian/compat
===================================================================
--- trunk/ccm-ldn-importer/debian/compat 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/compat 2006-06-14 14:40:13 UTC (rev 1207)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-ldn-importer/debian/config
===================================================================
--- trunk/ccm-ldn-importer/debian/config 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/config 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer/debian/control
===================================================================
--- trunk/ccm-ldn-importer/debian/control 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/control 2006-06-14 14:40:13 UTC (rev 1207)
@@ -0,0 +1,21 @@
+Source: ccm-ldn-importer
+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-importer
+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: Application for importing content data from XML files.
+ This package contains the Importer application for APLAWS.
+ .
+ FIXME: We need a longer and more meaningful description here.
+
+Package: ccm-ldn-importer-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-ldn-importer
+ Documentation for ccm-ldn-importer. Provides the JavaDoc API documentation.
Added: trunk/ccm-ldn-importer/debian/copyright
===================================================================
--- trunk/ccm-ldn-importer/debian/copyright 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/copyright 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer/debian/postinst
===================================================================
--- trunk/ccm-ldn-importer/debian/postinst 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/postinst 2006-06-14 14:40:13 UTC (rev 1207)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-ldn-importer
+#
+# 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-importer/debian/postrm
===================================================================
--- trunk/ccm-ldn-importer/debian/postrm 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/postrm 2006-06-14 14:40:13 UTC (rev 1207)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-ldn-importer
+#
+# 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-importer/debian/prerm
===================================================================
--- trunk/ccm-ldn-importer/debian/prerm 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/prerm 2006-06-14 14:40:13 UTC (rev 1207)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-ldn-importer
+#
+# 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-importer/debian/rules
===================================================================
--- trunk/ccm-ldn-importer/debian/rules 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/rules 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-importer/debian/templates
===================================================================
--- trunk/ccm-ldn-importer/debian/templates 2006-06-14 14:40:06 UTC (rev 1206)
+++ trunk/ccm-ldn-importer/debian/templates 2006-06-14 14:40:13 UTC (rev 1207)
@@ -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-importer
+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:45:08
|
Author: fabrice
Date: 2006-06-14 16:40:32 +0200 (Wed, 14 Jun 2006)
New Revision: 1209
Added:
trunk/ccm-ldn-search/debian/
trunk/ccm-ldn-search/debian/ccm-build.sh
trunk/ccm-ldn-search/debian/ccm-clean.sh
trunk/ccm-ldn-search/debian/ccm-config.sh
trunk/ccm-ldn-search/debian/ccm-disperse.sh
trunk/ccm-ldn-search/debian/ccm-install.sh
trunk/ccm-ldn-search/debian/ccm-ldn-search.dirs
trunk/ccm-ldn-search/debian/ccm-settings-run.sh
trunk/ccm-ldn-search/debian/ccm-settings.sh
trunk/ccm-ldn-search/debian/changelog
trunk/ccm-ldn-search/debian/compat
trunk/ccm-ldn-search/debian/config
trunk/ccm-ldn-search/debian/control
trunk/ccm-ldn-search/debian/copyright
trunk/ccm-ldn-search/debian/postinst
trunk/ccm-ldn-search/debian/postrm
trunk/ccm-ldn-search/debian/prerm
trunk/ccm-ldn-search/debian/rules
trunk/ccm-ldn-search/debian/templates
Log:
Debian files
Added: trunk/ccm-ldn-search/debian/ccm-build.sh
===================================================================
--- trunk/ccm-ldn-search/debian/ccm-build.sh 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/ccm-build.sh 2006-06-14 14:40:32 UTC (rev 1209)
@@ -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-search/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-ldn-search/debian/ccm-clean.sh 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/ccm-clean.sh 2006-06-14 14:40:32 UTC (rev 1209)
@@ -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:15 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-search/debian/ccm-config.sh
===================================================================
--- trunk/ccm-ldn-search/debian/ccm-config.sh 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/ccm-config.sh 2006-06-14 14:40:32 UTC (rev 1209)
@@ -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-search/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-ldn-search/debian/ccm-disperse.sh 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/ccm-disperse.sh 2006-06-14 14:40:32 UTC (rev 1209)
@@ -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:15 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-search/debian/ccm-install.sh
===================================================================
--- trunk/ccm-ldn-search/debian/ccm-install.sh 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/ccm-install.sh 2006-06-14 14:40:32 UTC (rev 1209)
@@ -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-search/debian/ccm-ldn-search.dirs
===================================================================
--- trunk/ccm-ldn-search/debian/ccm-ldn-search.dirs 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/ccm-ldn-search.dirs 2006-06-14 14:40:32 UTC (rev 1209)
@@ -0,0 +1 @@
+usr/share/java/ccm-ldn-search-6.3.0
Added: trunk/ccm-ldn-search/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-ldn-search/debian/ccm-settings-run.sh 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/ccm-settings-run.sh 2006-06-14 14:40:32 UTC (rev 1209)
@@ -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-search/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-search/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-ldn-search/debian/ccm-settings.sh 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/ccm-settings.sh 2006-06-14 14:40:32 UTC (rev 1209)
@@ -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-search
+version=6.3.0
+appname=ccm-ldn-search
+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-search/debian/changelog
===================================================================
--- trunk/ccm-ldn-search/debian/changelog 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/changelog 2006-06-14 14:40:32 UTC (rev 1209)
@@ -0,0 +1,76 @@
+ccm-ldn-search (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-search (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-search (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:56 +0000
+
+ccm-ldn-search (1.4.2-1) unstable; urgency=low
+
+ * for release qa
+
+ -- David Pashley <da...@ru...> Tue, 15 Feb 2005 12:06:05 +0000
+
+ccm-ldn-search (1.4.1-6) 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:06:05 +0000
+
+ccm-ldn-search (1.4.1-5) unstable; urgency=low
+
+ * debian/control: Updated the build dependency list with ccm-cms-
+ types-article and ccm-cms-types-newsitem.
+
+ -- Berkan Eskikaya <be...@ru...> Wed, 23 Jun 2004 11:06:29 +0000
+
+ccm-ldn-search (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-search (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-search (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-search (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-search/debian/compat
===================================================================
--- trunk/ccm-ldn-search/debian/compat 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/compat 2006-06-14 14:40:32 UTC (rev 1209)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-ldn-search/debian/config
===================================================================
--- trunk/ccm-ldn-search/debian/config 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/config 2006-06-14 14:40:32 UTC (rev 1209)
@@ -0,0 +1,79 @@
+#!/bin/sh
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: config,v 1.1.1.1 2004/11/12 09:30:15 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-search/debian/control
===================================================================
--- trunk/ccm-ldn-search/debian/control 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/control 2006-06-14 14:40:32 UTC (rev 1209)
@@ -0,0 +1,21 @@
+Source: ccm-ldn-search
+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-search
+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: Search application for enabling site wide search through the published content items.
+ This package contains the Search application for APLAWS.
+ .
+ FIXME: We need a longer and more meaningful description here.
+
+Package: ccm-ldn-search-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-ldn-search
+ Documentation for ccm-ldn-search. Provides the JavaDoc API documentation.
Added: trunk/ccm-ldn-search/debian/copyright
===================================================================
--- trunk/ccm-ldn-search/debian/copyright 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/copyright 2006-06-14 14:40:32 UTC (rev 1209)
@@ -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-search/debian/postinst
===================================================================
--- trunk/ccm-ldn-search/debian/postinst 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/postinst 2006-06-14 14:40:32 UTC (rev 1209)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-ldn-search
+#
+# 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-search/debian/postrm
===================================================================
--- trunk/ccm-ldn-search/debian/postrm 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/postrm 2006-06-14 14:40:32 UTC (rev 1209)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-ldn-search
+#
+# 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-search/debian/prerm
===================================================================
--- trunk/ccm-ldn-search/debian/prerm 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/prerm 2006-06-14 14:40:32 UTC (rev 1209)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-ldn-search
+#
+# 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-search/debian/rules
===================================================================
--- trunk/ccm-ldn-search/debian/rules 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/rules 2006-06-14 14:40:32 UTC (rev 1209)
@@ -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-search/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-search/debian/templates
===================================================================
--- trunk/ccm-ldn-search/debian/templates 2006-06-14 14:40:23 UTC (rev 1208)
+++ trunk/ccm-ldn-search/debian/templates 2006-06-14 14:40:32 UTC (rev 1209)
@@ -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-search
+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:44:56
|
Author: fabrice
Date: 2006-06-14 16:40:23 +0200 (Wed, 14 Jun 2006)
New Revision: 1208
Added:
trunk/ccm-ldn-rss/debian/
trunk/ccm-ldn-rss/debian/ccm-build.sh
trunk/ccm-ldn-rss/debian/ccm-clean.sh
trunk/ccm-ldn-rss/debian/ccm-config.sh
trunk/ccm-ldn-rss/debian/ccm-disperse.sh
trunk/ccm-ldn-rss/debian/ccm-install.sh
trunk/ccm-ldn-rss/debian/ccm-ldn-rss.dirs
trunk/ccm-ldn-rss/debian/ccm-settings-run.sh
trunk/ccm-ldn-rss/debian/ccm-settings.sh
trunk/ccm-ldn-rss/debian/changelog
trunk/ccm-ldn-rss/debian/compat
trunk/ccm-ldn-rss/debian/config
trunk/ccm-ldn-rss/debian/control
trunk/ccm-ldn-rss/debian/copyright
trunk/ccm-ldn-rss/debian/postinst
trunk/ccm-ldn-rss/debian/postrm
trunk/ccm-ldn-rss/debian/prerm
trunk/ccm-ldn-rss/debian/rules
trunk/ccm-ldn-rss/debian/templates
Log:
Debian files
Added: trunk/ccm-ldn-rss/debian/ccm-build.sh
===================================================================
--- trunk/ccm-ldn-rss/debian/ccm-build.sh 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/ccm-build.sh 2006-06-14 14:40:23 UTC (rev 1208)
@@ -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-rss/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-ldn-rss/debian/ccm-clean.sh 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/ccm-clean.sh 2006-06-14 14:40:23 UTC (rev 1208)
@@ -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:15 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-rss/debian/ccm-config.sh
===================================================================
--- trunk/ccm-ldn-rss/debian/ccm-config.sh 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/ccm-config.sh 2006-06-14 14:40:23 UTC (rev 1208)
@@ -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-rss/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-ldn-rss/debian/ccm-disperse.sh 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/ccm-disperse.sh 2006-06-14 14:40:23 UTC (rev 1208)
@@ -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:15 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-rss/debian/ccm-install.sh
===================================================================
--- trunk/ccm-ldn-rss/debian/ccm-install.sh 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/ccm-install.sh 2006-06-14 14:40:23 UTC (rev 1208)
@@ -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-rss/debian/ccm-ldn-rss.dirs
===================================================================
--- trunk/ccm-ldn-rss/debian/ccm-ldn-rss.dirs 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/ccm-ldn-rss.dirs 2006-06-14 14:40:23 UTC (rev 1208)
@@ -0,0 +1 @@
+usr/share/java/ccm-ldn-rss-6.3.0
Added: trunk/ccm-ldn-rss/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-ldn-rss/debian/ccm-settings-run.sh 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/ccm-settings-run.sh 2006-06-14 14:40:23 UTC (rev 1208)
@@ -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-rss/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-rss/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-ldn-rss/debian/ccm-settings.sh 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/ccm-settings.sh 2006-06-14 14:40:23 UTC (rev 1208)
@@ -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-rss
+version=6.3.0
+appname=ccm-ldn-rss
+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-rss/debian/changelog
===================================================================
--- trunk/ccm-ldn-rss/debian/changelog 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/changelog 2006-06-14 14:40:23 UTC (rev 1208)
@@ -0,0 +1,63 @@
+ccm-ldn-rss (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-rss (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:13 +0000
+
+ccm-ldn-rss (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:55 +0000
+
+ccm-ldn-rss (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 12:02:39 +0000
+
+ccm-ldn-rss (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-rss (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-rss (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-rss (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-rss/debian/compat
===================================================================
--- trunk/ccm-ldn-rss/debian/compat 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/compat 2006-06-14 14:40:23 UTC (rev 1208)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-ldn-rss/debian/config
===================================================================
--- trunk/ccm-ldn-rss/debian/config 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/config 2006-06-14 14:40:23 UTC (rev 1208)
@@ -0,0 +1,79 @@
+#!/bin/sh
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: config,v 1.1.1.1 2004/11/12 09:30:15 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-rss/debian/control
===================================================================
--- trunk/ccm-ldn-rss/debian/control 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/control 2006-06-14 14:40:23 UTC (rev 1208)
@@ -0,0 +1,21 @@
+Source: ccm-ldn-rss
+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, ccm-ldn-terms
+Standards-Version: 3.6.1
+
+Package: ccm-ldn-rss
+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-terms
+Description: APLAWS: RSS feed application.
+ This package contains the RSS application for APLAWS.
+ .
+ FIXME: We need a longer and more meaningful description here.
+
+Package: ccm-ldn-rss-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-ldn-rss
+ Documentation for ccm-ldn-rss. Provides the JavaDoc API documentation.
Added: trunk/ccm-ldn-rss/debian/copyright
===================================================================
--- trunk/ccm-ldn-rss/debian/copyright 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/copyright 2006-06-14 14:40:23 UTC (rev 1208)
@@ -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-rss/debian/postinst
===================================================================
--- trunk/ccm-ldn-rss/debian/postinst 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/postinst 2006-06-14 14:40:23 UTC (rev 1208)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-ldn-rss
+#
+# 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-rss/debian/postrm
===================================================================
--- trunk/ccm-ldn-rss/debian/postrm 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/postrm 2006-06-14 14:40:23 UTC (rev 1208)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-ldn-rss
+#
+# 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-rss/debian/prerm
===================================================================
--- trunk/ccm-ldn-rss/debian/prerm 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/prerm 2006-06-14 14:40:23 UTC (rev 1208)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-ldn-rss
+#
+# 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-rss/debian/rules
===================================================================
--- trunk/ccm-ldn-rss/debian/rules 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/rules 2006-06-14 14:40:23 UTC (rev 1208)
@@ -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-rss/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-rss/debian/templates
===================================================================
--- trunk/ccm-ldn-rss/debian/templates 2006-06-14 14:40:13 UTC (rev 1207)
+++ trunk/ccm-ldn-rss/debian/templates 2006-06-14 14:40:23 UTC (rev 1208)
@@ -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-rss
+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:44:40
|
Author: fabrice
Date: 2006-06-14 16:39:38 +0200 (Wed, 14 Jun 2006)
New Revision: 1202
Added:
trunk/ccm-formbuilder-pdf/debian/
trunk/ccm-formbuilder-pdf/debian/ccm-auth-http.dirs
trunk/ccm-formbuilder-pdf/debian/ccm-build.sh
trunk/ccm-formbuilder-pdf/debian/ccm-clean.sh
trunk/ccm-formbuilder-pdf/debian/ccm-config.sh
trunk/ccm-formbuilder-pdf/debian/ccm-disperse.sh
trunk/ccm-formbuilder-pdf/debian/ccm-formbuilder-pdf.dirs
trunk/ccm-formbuilder-pdf/debian/ccm-install.sh
trunk/ccm-formbuilder-pdf/debian/ccm-settings-run.sh
trunk/ccm-formbuilder-pdf/debian/ccm-settings.sh
trunk/ccm-formbuilder-pdf/debian/changelog
trunk/ccm-formbuilder-pdf/debian/compat
trunk/ccm-formbuilder-pdf/debian/config
trunk/ccm-formbuilder-pdf/debian/control
trunk/ccm-formbuilder-pdf/debian/copyright
trunk/ccm-formbuilder-pdf/debian/postinst
trunk/ccm-formbuilder-pdf/debian/postrm
trunk/ccm-formbuilder-pdf/debian/prerm
trunk/ccm-formbuilder-pdf/debian/rules
trunk/ccm-formbuilder-pdf/debian/templates
Log:
Debian files
Added: trunk/ccm-formbuilder-pdf/debian/ccm-auth-http.dirs
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/ccm-auth-http.dirs 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/ccm-auth-http.dirs 2006-06-14 14:39:38 UTC (rev 1202)
@@ -0,0 +1 @@
+usr/share/java/ccm-formbuilder-pdf-1.4.1
Added: trunk/ccm-formbuilder-pdf/debian/ccm-build.sh
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/ccm-build.sh 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/ccm-build.sh 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/ccm-clean.sh 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/ccm-clean.sh 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf/debian/ccm-config.sh
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/ccm-config.sh 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/ccm-config.sh 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/ccm-disperse.sh 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/ccm-disperse.sh 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf/debian/ccm-formbuilder-pdf.dirs
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/ccm-formbuilder-pdf.dirs 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/ccm-formbuilder-pdf.dirs 2006-06-14 14:39:38 UTC (rev 1202)
@@ -0,0 +1 @@
+usr/share/java/ccm-formbuilder-pdf-6.3.0
Added: trunk/ccm-formbuilder-pdf/debian/ccm-install.sh
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/ccm-install.sh 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/ccm-install.sh 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/ccm-settings-run.sh 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/ccm-settings-run.sh 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-formbuilder-pdf/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/ccm-settings.sh 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/ccm-settings.sh 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf
+version=6.3.0
+appname=ccm-formbuilder-pdf
+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-formbuilder-pdf/debian/changelog
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/changelog 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/changelog 2006-06-14 14:39:38 UTC (rev 1202)
@@ -0,0 +1,30 @@
+ccm-formbuilder-pdf (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:58 +0000
+
+ccm-formbuilder-pdf (6.2.0-1) unstable; urgency=low
+
+ * Automatic update of version number from 0.6.0 to 6.2.0
+
+ -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:10 +0000
+
+ccm-formbuilder-pdf (0.6.0-1) unstable; urgency=low
+
+ * Automatic update of version number from 0.5.0 to 0.6.0
+
+ -- Runtime Collective Ltd. <in...@ru...> Mon, 05 Sep 2005 15:48:12 +0000
+
+ccm-formbuilder-pdf (0.5.0-2) unstable; urgency=low
+
+ * Add ccm-devel to the build-dependancies
+ * Add ccm-scripts to the build-dependances
+
+ -- David Pashley <da...@ru...> Thu, 28 Apr 2005 11:42:28 +0100
+
+ccm-formbuilder-pdf (0.5.0-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Fabrice Retkowsky <fa...@ru...> Fri, 24 Apr 2004 12:27:56 +0100
Added: trunk/ccm-formbuilder-pdf/debian/compat
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/compat 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/compat 2006-06-14 14:39:38 UTC (rev 1202)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-formbuilder-pdf/debian/config
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/config 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/config 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf/debian/control
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/control 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/control 2006-06-14 14:39:38 UTC (rev 1202)
@@ -0,0 +1,21 @@
+Source: ccm-formbuilder-pdf
+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-core, ccm-devel, ccm-scripts
+Standards-Version: 3.6.1
+
+Package: ccm-formbuilder-pdf
+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-formbuilder-pdf-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-formbuilder-pdf
+ Documentation for ccm-formbuilder-pdf. Provides the JavaDoc API documentation.
Added: trunk/ccm-formbuilder-pdf/debian/copyright
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/copyright 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/copyright 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf/debian/postinst
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/postinst 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/postinst 2006-06-14 14:39:38 UTC (rev 1202)
@@ -0,0 +1,111 @@
+#! /bin/sh
+# postinst script for ccm-formbuilder-pdf
+#
+# 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-formbuilder-pdf/debian/postrm
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/postrm 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/postrm 2006-06-14 14:39:38 UTC (rev 1202)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-formbuilder-pdf
+#
+# 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-formbuilder-pdf/debian/prerm
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/prerm 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/prerm 2006-06-14 14:39:38 UTC (rev 1202)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-formbuilder-pdf
+#
+# 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-formbuilder-pdf/debian/rules
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/rules 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/rules 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-formbuilder-pdf/debian/templates
===================================================================
--- trunk/ccm-formbuilder-pdf/debian/templates 2006-06-14 14:39:31 UTC (rev 1201)
+++ trunk/ccm-formbuilder-pdf/debian/templates 2006-06-14 14:39:38 UTC (rev 1202)
@@ -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-formbuilder-pdf
+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-formbuilder-pdf".
+
+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-formbuilder-pdf".
|
|
From: <fa...@vh...> - 2006-06-14 14:44:39
|
Author: fabrice
Date: 2006-06-14 16:40:06 +0200 (Wed, 14 Jun 2006)
New Revision: 1206
Added:
trunk/ccm-ldn-freeform/debian/
trunk/ccm-ldn-freeform/debian/ccm-auth-http.dirs
trunk/ccm-ldn-freeform/debian/ccm-build.sh
trunk/ccm-ldn-freeform/debian/ccm-clean.sh
trunk/ccm-ldn-freeform/debian/ccm-config.sh
trunk/ccm-ldn-freeform/debian/ccm-disperse.sh
trunk/ccm-ldn-freeform/debian/ccm-install.sh
trunk/ccm-ldn-freeform/debian/ccm-ldn-freeform.dirs
trunk/ccm-ldn-freeform/debian/ccm-settings-run.sh
trunk/ccm-ldn-freeform/debian/ccm-settings.sh
trunk/ccm-ldn-freeform/debian/changelog
trunk/ccm-ldn-freeform/debian/compat
trunk/ccm-ldn-freeform/debian/config
trunk/ccm-ldn-freeform/debian/control
trunk/ccm-ldn-freeform/debian/copyright
trunk/ccm-ldn-freeform/debian/postinst
trunk/ccm-ldn-freeform/debian/postrm
trunk/ccm-ldn-freeform/debian/prerm
trunk/ccm-ldn-freeform/debian/rules
trunk/ccm-ldn-freeform/debian/templates
Log:
Debian files
Added: trunk/ccm-ldn-freeform/debian/ccm-auth-http.dirs
===================================================================
--- trunk/ccm-ldn-freeform/debian/ccm-auth-http.dirs 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/ccm-auth-http.dirs 2006-06-14 14:40:06 UTC (rev 1206)
@@ -0,0 +1 @@
+usr/share/java/ccm-ldn-freeform-1.4.1
Added: trunk/ccm-ldn-freeform/debian/ccm-build.sh
===================================================================
--- trunk/ccm-ldn-freeform/debian/ccm-build.sh 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/ccm-build.sh 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-freeform/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-ldn-freeform/debian/ccm-clean.sh 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/ccm-clean.sh 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-ldn-freeform/debian/ccm-config.sh
===================================================================
--- trunk/ccm-ldn-freeform/debian/ccm-config.sh 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/ccm-config.sh 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-freeform/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-ldn-freeform/debian/ccm-disperse.sh 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/ccm-disperse.sh 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-ldn-freeform/debian/ccm-install.sh
===================================================================
--- trunk/ccm-ldn-freeform/debian/ccm-install.sh 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/ccm-install.sh 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-freeform/debian/ccm-ldn-freeform.dirs
===================================================================
--- trunk/ccm-ldn-freeform/debian/ccm-ldn-freeform.dirs 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/ccm-ldn-freeform.dirs 2006-06-14 14:40:06 UTC (rev 1206)
@@ -0,0 +1 @@
+usr/share/java/ccm-ldn-freeform-6.3.0
Added: trunk/ccm-ldn-freeform/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-ldn-freeform/debian/ccm-settings-run.sh 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/ccm-settings-run.sh 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-freeform/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-freeform/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-ldn-freeform/debian/ccm-settings.sh 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/ccm-settings.sh 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-freeform
+version=6.3.0
+appname=ccm-ldn-freeform
+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-freeform/debian/changelog
===================================================================
--- trunk/ccm-ldn-freeform/debian/changelog 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/changelog 2006-06-14 14:40:06 UTC (rev 1206)
@@ -0,0 +1,23 @@
+ccm-ldn-freeform (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-freeform (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:12 +0000
+
+ccm-ldn-freeform (1.4.2-2) unstable; urgency=low
+
+ * Add ccm-devel and ccm-scripts to the build-dependancies.
+
+ -- David Pashley <da...@ru...> Thu, 28 Apr 2005 11:51:32 +0100
+
+ccm-ldn-freeform (1.4.2-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Fabrice Retkowsky <fa...@ru...> Fri, 24 Apr 2004 12:27:56 +0100
Added: trunk/ccm-ldn-freeform/debian/compat
===================================================================
--- trunk/ccm-ldn-freeform/debian/compat 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/compat 2006-06-14 14:40:06 UTC (rev 1206)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-ldn-freeform/debian/config
===================================================================
--- trunk/ccm-ldn-freeform/debian/config 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/config 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-ldn-freeform/debian/control
===================================================================
--- trunk/ccm-ldn-freeform/debian/control 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/control 2006-06-14 14:40:06 UTC (rev 1206)
@@ -0,0 +1,21 @@
+Source: ccm-ldn-freeform
+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-core, ccm-devel, ccm-scripts, ccm-cms
+Standards-Version: 3.6.1
+
+Package: ccm-ldn-freeform
+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-ldn-freeform-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-ldn-freeform
+ Documentation for ccm-ldn-freeform. Provides the JavaDoc API documentation.
Added: trunk/ccm-ldn-freeform/debian/copyright
===================================================================
--- trunk/ccm-ldn-freeform/debian/copyright 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/copyright 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-freeform/debian/postinst
===================================================================
--- trunk/ccm-ldn-freeform/debian/postinst 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/postinst 2006-06-14 14:40:06 UTC (rev 1206)
@@ -0,0 +1,111 @@
+#! /bin/sh
+# postinst script for ccm-ldn-freeform
+#
+# 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-ldn-freeform/debian/postrm
===================================================================
--- trunk/ccm-ldn-freeform/debian/postrm 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/postrm 2006-06-14 14:40:06 UTC (rev 1206)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-ldn-freeform
+#
+# 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-ldn-freeform/debian/prerm
===================================================================
--- trunk/ccm-ldn-freeform/debian/prerm 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/prerm 2006-06-14 14:40:06 UTC (rev 1206)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-ldn-freeform
+#
+# 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-ldn-freeform/debian/rules
===================================================================
--- trunk/ccm-ldn-freeform/debian/rules 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/rules 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-freeform/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-freeform/debian/templates
===================================================================
--- trunk/ccm-ldn-freeform/debian/templates 2006-06-14 14:39:59 UTC (rev 1205)
+++ trunk/ccm-ldn-freeform/debian/templates 2006-06-14 14:40:06 UTC (rev 1206)
@@ -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-ldn-freeform
+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-ldn-freeform".
+
+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-ldn-freeform".
|
|
From: <fa...@vh...> - 2006-06-14 14:44:37
|
Author: fabrice
Date: 2006-06-14 16:39:59 +0200 (Wed, 14 Jun 2006)
New Revision: 1205
Added:
trunk/ccm-ldn-exporter/debian/
trunk/ccm-ldn-exporter/debian/ccm-build.sh
trunk/ccm-ldn-exporter/debian/ccm-clean.sh
trunk/ccm-ldn-exporter/debian/ccm-config.sh
trunk/ccm-ldn-exporter/debian/ccm-disperse.sh
trunk/ccm-ldn-exporter/debian/ccm-install.sh
trunk/ccm-ldn-exporter/debian/ccm-ldn-exporter.dirs
trunk/ccm-ldn-exporter/debian/ccm-settings-run.sh
trunk/ccm-ldn-exporter/debian/ccm-settings.sh
trunk/ccm-ldn-exporter/debian/changelog
trunk/ccm-ldn-exporter/debian/compat
trunk/ccm-ldn-exporter/debian/config
trunk/ccm-ldn-exporter/debian/control
trunk/ccm-ldn-exporter/debian/copyright
trunk/ccm-ldn-exporter/debian/postinst
trunk/ccm-ldn-exporter/debian/postrm
trunk/ccm-ldn-exporter/debian/prerm
trunk/ccm-ldn-exporter/debian/rules
trunk/ccm-ldn-exporter/debian/templates
Log:
Debian files
Added: trunk/ccm-ldn-exporter/debian/ccm-build.sh
===================================================================
--- trunk/ccm-ldn-exporter/debian/ccm-build.sh 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/ccm-build.sh 2006-06-14 14:39:59 UTC (rev 1205)
@@ -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-exporter/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-ldn-exporter/debian/ccm-clean.sh 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/ccm-clean.sh 2006-06-14 14:39:59 UTC (rev 1205)
@@ -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-exporter/debian/ccm-config.sh
===================================================================
--- trunk/ccm-ldn-exporter/debian/ccm-config.sh 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/ccm-config.sh 2006-06-14 14:39:59 UTC (rev 1205)
@@ -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-exporter/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-ldn-exporter/debian/ccm-disperse.sh 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/ccm-disperse.sh 2006-06-14 14:39:59 UTC (rev 1205)
@@ -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-exporter/debian/ccm-install.sh
===================================================================
--- trunk/ccm-ldn-exporter/debian/ccm-install.sh 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/ccm-install.sh 2006-06-14 14:39:59 UTC (rev 1205)
@@ -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-exporter/debian/ccm-ldn-exporter.dirs
===================================================================
--- trunk/ccm-ldn-exporter/debian/ccm-ldn-exporter.dirs 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/ccm-ldn-exporter.dirs 2006-06-14 14:39:59 UTC (rev 1205)
@@ -0,0 +1 @@
+usr/share/java/ccm-ldn-exporter-6.3.0
Added: trunk/ccm-ldn-exporter/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-ldn-exporter/debian/ccm-settings-run.sh 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/ccm-settings-run.sh 2006-06-14 14:39:59 UTC (rev 1205)
@@ -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-exporter/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-exporter/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-ldn-exporter/debian/ccm-settings.sh 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/ccm-settings.sh 2006-06-14 14:39:59 UTC (rev 1205)
@@ -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-exporter
+version=6.3.0
+appname=ccm-ldn-exporter
+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-exporter/debian/changelog
===================================================================
--- trunk/ccm-ldn-exporter/debian/changelog 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/changelog 2006-06-14 14:39:59 UTC (rev 1205)
@@ -0,0 +1,31 @@
+ccm-ldn-exporter (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-exporter (6.2.0-1) unstable; urgency=low
+
+ * Automatic update of version number from 1.0.1 to 6.2.0
+
+ -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:12 +0000
+
+ccm-ldn-exporter (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:55 +0000
+
+ccm-ldn-exporter (1.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:37:08 +0000
+
+ccm-ldn-exporter (1.0.0-1) unstable; urgency=low
+
+ * Initial release of 1.0.0.
+
+ -- Berkan Eskikaya <be...@ru...> Fri, 12 Nov 2004 09:09:56 +0100
Added: trunk/ccm-ldn-exporter/debian/compat
===================================================================
--- trunk/ccm-ldn-exporter/debian/compat 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/compat 2006-06-14 14:39:59 UTC (rev 1205)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-ldn-exporter/debian/config
===================================================================
--- trunk/ccm-ldn-exporter/debian/config 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/config 2006-06-14 14:39:59 UTC (rev 1205)
@@ -0,0 +1,79 @@
+#!/bin/sh
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: config,v 1.1.1.1 2004/11/12 09:30:13 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-exporter/debian/control
===================================================================
--- trunk/ccm-ldn-exporter/debian/control 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/control 2006-06-14 14:39:59 UTC (rev 1205)
@@ -0,0 +1,21 @@
+Source: ccm-ldn-exporter
+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-exporter
+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 Image step application for APLAWS.
+ .
+ FIXME: We need a longer and more meaningful description here.
+
+Package: ccm-ldn-exporter-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-ldn-exporter
+ Documentation for ccm-ldn-exporter. Provides the JavaDoc API documentation.
Added: trunk/ccm-ldn-exporter/debian/copyright
===================================================================
--- trunk/ccm-ldn-exporter/debian/copyright 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/copyright 2006-06-14 14:39:59 UTC (rev 1205)
@@ -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-exporter/debian/postinst
===================================================================
--- trunk/ccm-ldn-exporter/debian/postinst 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/postinst 2006-06-14 14:39:59 UTC (rev 1205)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-ldn-exporter
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:13 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-exporter/debian/postrm
===================================================================
--- trunk/ccm-ldn-exporter/debian/postrm 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/postrm 2006-06-14 14:39:59 UTC (rev 1205)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-ldn-exporter
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:13 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-exporter/debian/prerm
===================================================================
--- trunk/ccm-ldn-exporter/debian/prerm 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/prerm 2006-06-14 14:39:59 UTC (rev 1205)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-ldn-exporter
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:13 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-exporter/debian/rules
===================================================================
--- trunk/ccm-ldn-exporter/debian/rules 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/rules 2006-06-14 14:39:59 UTC (rev 1205)
@@ -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-exporter/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-exporter/debian/templates
===================================================================
--- trunk/ccm-ldn-exporter/debian/templates 2006-06-14 14:39:50 UTC (rev 1204)
+++ trunk/ccm-ldn-exporter/debian/templates 2006-06-14 14:39:59 UTC (rev 1205)
@@ -0,0 +1,207 @@
+Template: ccm/debconf/version
+Type: string
+Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:13 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:13 fabrice Exp $
+
+Template: ccm/package_name
+Type: string
+Default: ccm-ldn-exporter
+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-ldn-exporter".
+
+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-ldn-exporter".
|
|
From: <fa...@vh...> - 2006-06-14 14:44:28
|
Author: fabrice
Date: 2006-06-14 16:39:50 +0200 (Wed, 14 Jun 2006)
New Revision: 1204
Added:
trunk/ccm-ldn-dublin/debian/
trunk/ccm-ldn-dublin/debian/ccm-build.sh
trunk/ccm-ldn-dublin/debian/ccm-clean.sh
trunk/ccm-ldn-dublin/debian/ccm-config.sh
trunk/ccm-ldn-dublin/debian/ccm-disperse.sh
trunk/ccm-ldn-dublin/debian/ccm-install.sh
trunk/ccm-ldn-dublin/debian/ccm-ldn-dublin.dirs
trunk/ccm-ldn-dublin/debian/ccm-settings-run.sh
trunk/ccm-ldn-dublin/debian/ccm-settings.sh
trunk/ccm-ldn-dublin/debian/changelog
trunk/ccm-ldn-dublin/debian/compat
trunk/ccm-ldn-dublin/debian/config
trunk/ccm-ldn-dublin/debian/control
trunk/ccm-ldn-dublin/debian/copyright
trunk/ccm-ldn-dublin/debian/postinst
trunk/ccm-ldn-dublin/debian/postrm
trunk/ccm-ldn-dublin/debian/prerm
trunk/ccm-ldn-dublin/debian/rules
trunk/ccm-ldn-dublin/debian/templates
Log:
Debian files
Added: trunk/ccm-ldn-dublin/debian/ccm-build.sh
===================================================================
--- trunk/ccm-ldn-dublin/debian/ccm-build.sh 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/ccm-build.sh 2006-06-14 14:39:50 UTC (rev 1204)
@@ -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-dublin/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-ldn-dublin/debian/ccm-clean.sh 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/ccm-clean.sh 2006-06-14 14:39:50 UTC (rev 1204)
@@ -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-dublin/debian/ccm-config.sh
===================================================================
--- trunk/ccm-ldn-dublin/debian/ccm-config.sh 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/ccm-config.sh 2006-06-14 14:39:50 UTC (rev 1204)
@@ -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-dublin/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-ldn-dublin/debian/ccm-disperse.sh 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/ccm-disperse.sh 2006-06-14 14:39:50 UTC (rev 1204)
@@ -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-dublin/debian/ccm-install.sh
===================================================================
--- trunk/ccm-ldn-dublin/debian/ccm-install.sh 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/ccm-install.sh 2006-06-14 14:39:50 UTC (rev 1204)
@@ -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-dublin/debian/ccm-ldn-dublin.dirs
===================================================================
--- trunk/ccm-ldn-dublin/debian/ccm-ldn-dublin.dirs 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/ccm-ldn-dublin.dirs 2006-06-14 14:39:50 UTC (rev 1204)
@@ -0,0 +1 @@
+usr/share/java/ccm-ldn-dublin-6.3.1
Added: trunk/ccm-ldn-dublin/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-ldn-dublin/debian/ccm-settings-run.sh 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/ccm-settings-run.sh 2006-06-14 14:39:50 UTC (rev 1204)
@@ -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-dublin/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-dublin/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-ldn-dublin/debian/ccm-settings.sh 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/ccm-settings.sh 2006-06-14 14:39:50 UTC (rev 1204)
@@ -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-dublin
+version=6.3.1
+appname=ccm-ldn-dublin
+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-dublin/debian/changelog
===================================================================
--- trunk/ccm-ldn-dublin/debian/changelog 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/changelog 2006-06-14 14:39:50 UTC (rev 1204)
@@ -0,0 +1,87 @@
+ccm-ldn-dublin (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:19:05 +0000
+
+ccm-ldn-dublin (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-dublin (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:11 +0000
+
+ccm-ldn-dublin (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...> Mon, 05 Sep 2005 15:48:16 +0000
+
+ccm-ldn-dublin (1.4.2-3) unstable; urgency=low
+
+ * Removing the previous, 17509
+
+ -- My <my...@fi...> Mon, 9 May 2005 09:46:34 +0000
+
+ccm-ldn-dublin (1.4.2-2) unstable; urgency=low
+
+ * Putting back in the full date formatters, for 17509
+
+ -- My <my...@fi...> Wed, 4 May 2005 10:10:52 +0000
+
+ccm-ldn-dublin (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:54 +0000
+
+ccm-ldn-dublin (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...> Mon, 14 Feb 2005 17:16:27 +0000
+
+ccm-ldn-dublin (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-dublin (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-dublin (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-dublin (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-dublin/debian/compat
===================================================================
--- trunk/ccm-ldn-dublin/debian/compat 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/compat 2006-06-14 14:39:50 UTC (rev 1204)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-ldn-dublin/debian/config
===================================================================
--- trunk/ccm-ldn-dublin/debian/config 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/config 2006-06-14 14:39:50 UTC (rev 1204)
@@ -0,0 +1,79 @@
+#!/bin/sh
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: config,v 1.1.1.1 2004/11/12 09:30:13 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-dublin/debian/control
===================================================================
--- trunk/ccm-ldn-dublin/debian/control 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/control 2006-06-14 14:39:50 UTC (rev 1204)
@@ -0,0 +1,21 @@
+Source: ccm-ldn-dublin
+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-terms, ccm-ldn-navigation
+Standards-Version: 3.6.1
+
+Package: ccm-ldn-dublin
+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-terms, ccm-ldn-navigation
+Description: APLAWS: The Dublin Core application for compliance with the Dublin Core Meta-data standard.
+ This package contains the Dublin Core application for APLAWS.
+ .
+ FIXME: We need a longer and more meaningful description here.
+
+Package: ccm-ldn-dublin-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-ldn-dublin
+ Documentation for ccm-ldn-dublin. Provides the JavaDoc API documentation.
Added: trunk/ccm-ldn-dublin/debian/copyright
===================================================================
--- trunk/ccm-ldn-dublin/debian/copyright 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/copyright 2006-06-14 14:39:50 UTC (rev 1204)
@@ -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-dublin/debian/postinst
===================================================================
--- trunk/ccm-ldn-dublin/debian/postinst 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/postinst 2006-06-14 14:39:50 UTC (rev 1204)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-ldn-dublin
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:13 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-dublin/debian/postrm
===================================================================
--- trunk/ccm-ldn-dublin/debian/postrm 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/postrm 2006-06-14 14:39:50 UTC (rev 1204)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-ldn-dublin
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:13 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-dublin/debian/prerm
===================================================================
--- trunk/ccm-ldn-dublin/debian/prerm 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/prerm 2006-06-14 14:39:50 UTC (rev 1204)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-ldn-dublin
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:13 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-dublin/debian/rules
===================================================================
--- trunk/ccm-ldn-dublin/debian/rules 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/rules 2006-06-14 14:39:50 UTC (rev 1204)
@@ -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-dublin/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-ldn-dublin/debian/templates
===================================================================
--- trunk/ccm-ldn-dublin/debian/templates 2006-06-14 14:39:45 UTC (rev 1203)
+++ trunk/ccm-ldn-dublin/debian/templates 2006-06-14 14:39:50 UTC (rev 1204)
@@ -0,0 +1,207 @@
+Template: ccm/debconf/version
+Type: string
+Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:13 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:13 fabrice Exp $
+
+Template: ccm/package_name
+Type: string
+Default: ccm-ldn-dublin
+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
..
|
|
From: <fa...@vh...> - 2006-06-14 14:44:18
|
Author: fabrice
Date: 2006-06-14 16:39:45 +0200 (Wed, 14 Jun 2006)
New Revision: 1203
Added:
trunk/ccm-forum/debian/
trunk/ccm-forum/debian/ccm-build.sh
trunk/ccm-forum/debian/ccm-clean.sh
trunk/ccm-forum/debian/ccm-config.sh
trunk/ccm-forum/debian/ccm-disperse.sh
trunk/ccm-forum/debian/ccm-forum.dirs
trunk/ccm-forum/debian/ccm-install.sh
trunk/ccm-forum/debian/ccm-settings-run.sh
trunk/ccm-forum/debian/ccm-settings.sh
trunk/ccm-forum/debian/changelog
trunk/ccm-forum/debian/compat
trunk/ccm-forum/debian/config
trunk/ccm-forum/debian/control
trunk/ccm-forum/debian/copyright
trunk/ccm-forum/debian/postinst
trunk/ccm-forum/debian/postrm
trunk/ccm-forum/debian/prerm
trunk/ccm-forum/debian/rules
trunk/ccm-forum/debian/templates
Log:
Debian files
Added: trunk/ccm-forum/debian/ccm-build.sh
===================================================================
--- trunk/ccm-forum/debian/ccm-build.sh 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/ccm-build.sh 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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-forum/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-forum/debian/ccm-clean.sh 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/ccm-clean.sh 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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:11 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-forum/debian/ccm-config.sh
===================================================================
--- trunk/ccm-forum/debian/ccm-config.sh 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/ccm-config.sh 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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-forum/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-forum/debian/ccm-disperse.sh 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/ccm-disperse.sh 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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:11 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-forum/debian/ccm-forum.dirs
===================================================================
--- trunk/ccm-forum/debian/ccm-forum.dirs 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/ccm-forum.dirs 2006-06-14 14:39:45 UTC (rev 1203)
@@ -0,0 +1 @@
+usr/share/java/ccm-forum-6.3.0
Added: trunk/ccm-forum/debian/ccm-install.sh
===================================================================
--- trunk/ccm-forum/debian/ccm-install.sh 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/ccm-install.sh 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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-forum/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-forum/debian/ccm-settings-run.sh 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/ccm-settings-run.sh 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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-forum/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-forum/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-forum/debian/ccm-settings.sh 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/ccm-settings.sh 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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-forum
+version=6.3.0
+appname=ccm-forum
+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-forum/debian/changelog
===================================================================
--- trunk/ccm-forum/debian/changelog 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/changelog 2006-06-14 14:39:45 UTC (rev 1203)
@@ -0,0 +1,69 @@
+ccm-forum (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-forum (6.2.0-1) unstable; urgency=low
+
+ * Automatic update of version number from 1.4.4 to 6.2.0
+
+ -- Runtime Collective Ltd. <in...@ru...> Mon, 10 Oct 2005 12:30:10 +0000
+
+ccm-forum (1.4.4-1) unstable; urgency=low
+
+ * Automatic update of version number from 1.4.2 to 1.4.4
+
+ -- Runtime Collective Ltd. <in...@ru...> Mon, 05 Sep 2005 15:48:12 +0000
+
+ccm-forum (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:54 +0000
+
+ccm-forum (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 10:35:29 +0000
+
+ccm-forum (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-forum (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-forum (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-forum (1.4.1-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Berkan Eskikaya <be...@ru...> Fri, 24 Apr 2004 12:27:56 +0100
Added: trunk/ccm-forum/debian/compat
===================================================================
--- trunk/ccm-forum/debian/compat 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/compat 2006-06-14 14:39:45 UTC (rev 1203)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-forum/debian/config
===================================================================
--- trunk/ccm-forum/debian/config 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/config 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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-forum/debian/control
===================================================================
--- trunk/ccm-forum/debian/control 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/control 2006-06-14 14:39:45 UTC (rev 1203)
@@ -0,0 +1,21 @@
+Source: ccm-forum
+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.0
+
+Package: ccm-forum
+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
+Description: APLAWS: Online bulletin board.
+ This package contains the Forum application for APLAWS.
+ .
+ FIXME: We need a longer and more meaningful description here.
+
+Package: ccm-forum-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-forum
+ Documentation for ccm-forum. Provides the JavaDoc API documentation.
Added: trunk/ccm-forum/debian/copyright
===================================================================
--- trunk/ccm-forum/debian/copyright 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/copyright 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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-forum/debian/postinst
===================================================================
--- trunk/ccm-forum/debian/postinst 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/postinst 2006-06-14 14:39:45 UTC (rev 1203)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-forum
+#
+# 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-forum/debian/postrm
===================================================================
--- trunk/ccm-forum/debian/postrm 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/postrm 2006-06-14 14:39:45 UTC (rev 1203)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-forum
+#
+# 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-forum/debian/prerm
===================================================================
--- trunk/ccm-forum/debian/prerm 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/prerm 2006-06-14 14:39:45 UTC (rev 1203)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-forum
+#
+# 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-forum/debian/rules
===================================================================
--- trunk/ccm-forum/debian/rules 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/rules 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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-forum/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-forum/debian/templates
===================================================================
--- trunk/ccm-forum/debian/templates 2006-06-14 14:39:38 UTC (rev 1202)
+++ trunk/ccm-forum/debian/templates 2006-06-14 14:39:45 UTC (rev 1203)
@@ -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-forum
+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:44:07
|
Author: fabrice
Date: 2006-06-14 16:39:21 +0200 (Wed, 14 Jun 2006)
New Revision: 1200
Added:
trunk/ccm-cms-types-service/debian/
trunk/ccm-cms-types-service/debian/ccm-build.sh
trunk/ccm-cms-types-service/debian/ccm-clean.sh
trunk/ccm-cms-types-service/debian/ccm-cms-types-service.dirs
trunk/ccm-cms-types-service/debian/ccm-config.sh
trunk/ccm-cms-types-service/debian/ccm-disperse.sh
trunk/ccm-cms-types-service/debian/ccm-install.sh
trunk/ccm-cms-types-service/debian/ccm-settings-run.sh
trunk/ccm-cms-types-service/debian/ccm-settings.sh
trunk/ccm-cms-types-service/debian/changelog
trunk/ccm-cms-types-service/debian/compat
trunk/ccm-cms-types-service/debian/config
trunk/ccm-cms-types-service/debian/control
trunk/ccm-cms-types-service/debian/copyright
trunk/ccm-cms-types-service/debian/postinst
trunk/ccm-cms-types-service/debian/postrm
trunk/ccm-cms-types-service/debian/prerm
trunk/ccm-cms-types-service/debian/rules
trunk/ccm-cms-types-service/debian/templates
Log:
Debian files
Added: trunk/ccm-cms-types-service/debian/ccm-build.sh
===================================================================
--- trunk/ccm-cms-types-service/debian/ccm-build.sh 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/ccm-build.sh 2006-06-14 14:39:21 UTC (rev 1200)
@@ -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-service/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-cms-types-service/debian/ccm-clean.sh 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/ccm-clean.sh 2006-06-14 14:39:21 UTC (rev 1200)
@@ -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:10 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-service/debian/ccm-cms-types-service.dirs
===================================================================
--- trunk/ccm-cms-types-service/debian/ccm-cms-types-service.dirs 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/ccm-cms-types-service.dirs 2006-06-14 14:39:21 UTC (rev 1200)
@@ -0,0 +1 @@
+usr/share/java/ccm-cms-types-service-6.3.0
Added: trunk/ccm-cms-types-service/debian/ccm-config.sh
===================================================================
--- trunk/ccm-cms-types-service/debian/ccm-config.sh 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/ccm-config.sh 2006-06-14 14:39:21 UTC (rev 1200)
@@ -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-service/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-cms-types-service/debian/ccm-disperse.sh 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/ccm-disperse.sh 2006-06-14 14:39:21 UTC (rev 1200)
@@ -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:10 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-service/debian/ccm-install.sh
===================================================================
--- trunk/ccm-cms-types-service/debian/ccm-install.sh 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/ccm-install.sh 2006-06-14 14:39:21 UTC (rev 1200)
@@ -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-service/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-cms-types-service/debian/ccm-settings-run.sh 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/ccm-settings-run.sh 2006-06-14 14:39:21 UTC (rev 1200)
@@ -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-service/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-service/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-cms-types-service/debian/ccm-settings.sh 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/ccm-settings.sh 2006-06-14 14:39:21 UTC (rev 1200)
@@ -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-service
+version=6.3.0
+appname=ccm-cms-types-service
+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-service/debian/changelog
===================================================================
--- trunk/ccm-cms-types-service/debian/changelog 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/changelog 2006-06-14 14:39:21 UTC (rev 1200)
@@ -0,0 +1,63 @@
+ccm-cms-types-service (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:58 +0000
+
+ccm-cms-types-service (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:09 +0000
+
+ccm-cms-types-service (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:53 +0000
+
+ccm-cms-types-service (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 17:05:38 +0000
+
+ccm-cms-types-service (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-service (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-service (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-service (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-service/debian/compat
===================================================================
--- trunk/ccm-cms-types-service/debian/compat 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/compat 2006-06-14 14:39:21 UTC (rev 1200)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-cms-types-service/debian/config
===================================================================
--- trunk/ccm-cms-types-service/debian/config 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/config 2006-06-14 14:39:21 UTC (rev 1200)
@@ -0,0 +1,79 @@
+#!/bin/sh
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: config,v 1.1.1.1 2004/11/12 09:30:10 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-service/debian/control
===================================================================
--- trunk/ccm-cms-types-service/debian/control 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/control 2006-06-14 14:39:21 UTC (rev 1200)
@@ -0,0 +1,21 @@
+Source: ccm-cms-types-service
+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-service
+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 Service content type for publishing service information.
+ 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-service-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-cms-types-service
+ Documentation for ccm-cms-types-service. Provides the JavaDoc API documentation.
Added: trunk/ccm-cms-types-service/debian/copyright
===================================================================
--- trunk/ccm-cms-types-service/debian/copyright 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/copyright 2006-06-14 14:39:21 UTC (rev 1200)
@@ -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-service/debian/postinst
===================================================================
--- trunk/ccm-cms-types-service/debian/postinst 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/postinst 2006-06-14 14:39:21 UTC (rev 1200)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-cms-types-service
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:10 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-service/debian/postrm
===================================================================
--- trunk/ccm-cms-types-service/debian/postrm 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/postrm 2006-06-14 14:39:21 UTC (rev 1200)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-cms-types-service
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:10 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-service/debian/prerm
===================================================================
--- trunk/ccm-cms-types-service/debian/prerm 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/prerm 2006-06-14 14:39:21 UTC (rev 1200)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-cms-types-service
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:10 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-service/debian/rules
===================================================================
--- trunk/ccm-cms-types-service/debian/rules 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/rules 2006-06-14 14:39:21 UTC (rev 1200)
@@ -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-service/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-service/debian/templates
===================================================================
--- trunk/ccm-cms-types-service/debian/templates 2006-06-14 14:39:11 UTC (rev 1199)
+++ trunk/ccm-cms-types-service/debian/templates 2006-06-14 14:39:21 UTC (rev 1200)
@@ -0,0 +1,207 @@
+Template: ccm/debconf/version
+Type: string
+Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:10 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:10 fabrice Exp $
+
+Template: ccm/package_name
+Type: string
+Default: ccm-cms-types-service
+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:44:04
|
Author: fabrice
Date: 2006-06-14 16:39:31 +0200 (Wed, 14 Jun 2006)
New Revision: 1201
Added:
trunk/ccm-cms-types-siteproxy/debian/
trunk/ccm-cms-types-siteproxy/debian/ccm-build.sh
trunk/ccm-cms-types-siteproxy/debian/ccm-clean.sh
trunk/ccm-cms-types-siteproxy/debian/ccm-cms-types-siteproxy.dirs
trunk/ccm-cms-types-siteproxy/debian/ccm-config.sh
trunk/ccm-cms-types-siteproxy/debian/ccm-disperse.sh
trunk/ccm-cms-types-siteproxy/debian/ccm-install.sh
trunk/ccm-cms-types-siteproxy/debian/ccm-settings-run.sh
trunk/ccm-cms-types-siteproxy/debian/ccm-settings.sh
trunk/ccm-cms-types-siteproxy/debian/changelog
trunk/ccm-cms-types-siteproxy/debian/compat
trunk/ccm-cms-types-siteproxy/debian/config
trunk/ccm-cms-types-siteproxy/debian/control
trunk/ccm-cms-types-siteproxy/debian/copyright
trunk/ccm-cms-types-siteproxy/debian/postinst
trunk/ccm-cms-types-siteproxy/debian/postrm
trunk/ccm-cms-types-siteproxy/debian/prerm
trunk/ccm-cms-types-siteproxy/debian/rules
trunk/ccm-cms-types-siteproxy/debian/templates
Log:
Debian files
Added: trunk/ccm-cms-types-siteproxy/debian/ccm-build.sh
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/ccm-build.sh 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/ccm-build.sh 2006-06-14 14:39:31 UTC (rev 1201)
@@ -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-siteproxy/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/ccm-clean.sh 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/ccm-clean.sh 2006-06-14 14:39:31 UTC (rev 1201)
@@ -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:10 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-siteproxy/debian/ccm-cms-types-siteproxy.dirs
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/ccm-cms-types-siteproxy.dirs 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/ccm-cms-types-siteproxy.dirs 2006-06-14 14:39:31 UTC (rev 1201)
@@ -0,0 +1 @@
+usr/share/java/ccm-cms-types-siteproxy-6.3.1
Added: trunk/ccm-cms-types-siteproxy/debian/ccm-config.sh
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/ccm-config.sh 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/ccm-config.sh 2006-06-14 14:39:31 UTC (rev 1201)
@@ -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-siteproxy/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/ccm-disperse.sh 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/ccm-disperse.sh 2006-06-14 14:39:31 UTC (rev 1201)
@@ -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:10 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-siteproxy/debian/ccm-install.sh
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/ccm-install.sh 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/ccm-install.sh 2006-06-14 14:39:31 UTC (rev 1201)
@@ -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-siteproxy/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/ccm-settings-run.sh 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/ccm-settings-run.sh 2006-06-14 14:39:31 UTC (rev 1201)
@@ -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-siteproxy/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-siteproxy/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/ccm-settings.sh 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/ccm-settings.sh 2006-06-14 14:39:31 UTC (rev 1201)
@@ -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-siteproxy
+version=6.3.1
+appname=ccm-cms-types-siteproxy
+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-types-siteproxy/debian/changelog
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/changelog 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/changelog 2006-06-14 14:39:31 UTC (rev 1201)
@@ -0,0 +1,82 @@
+ccm-cms-types-siteproxy (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:29 +0000
+
+ccm-cms-types-siteproxy (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:58 +0000
+
+ccm-cms-types-siteproxy (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:09 +0000
+
+ccm-cms-types-siteproxy (6.1.1-3) unstable; urgency=low
+
+ * Refactoring MPA/SiteProxy as index item patch, adding 404s for invalid
+ category hits
+
+ -- My <my...@fi...> Thu, 28 Jul 2005 12:26:24 +0000
+
+ccm-cms-types-siteproxy (6.1.1-2) unstable; urgency=low
+
+ * SiteProxy as index items
+
+ -- My <my...@fi...> Fri, 24 Jun 2005 09:21:39 +0000
+
+ccm-cms-types-siteproxy (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:53 +0000
+
+ccm-cms-types-siteproxy (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 17:13:42 +0000
+
+ccm-cms-types-siteproxy (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-siteproxy (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-siteproxy (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-siteproxy (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-siteproxy/debian/compat
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/compat 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/compat 2006-06-14 14:39:31 UTC (rev 1201)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-cms-types-siteproxy/debian/config
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/config 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/config 2006-06-14 14:39:31 UTC (rev 1201)
@@ -0,0 +1,79 @@
+#!/bin/sh
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: config,v 1.1.1.1 2004/11/12 09:30:10 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-siteproxy/debian/control
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/control 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/control 2006-06-14 14:39:31 UTC (rev 1201)
@@ -0,0 +1,21 @@
+Source: ccm-cms-types-siteproxy
+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-siteproxy
+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-siteproxy-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-cms-types-siteproxy
+ Documentation for ccm-cms-types-siteproxy. Provides the JavaDoc API documentation.
Added: trunk/ccm-cms-types-siteproxy/debian/copyright
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/copyright 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/copyright 2006-06-14 14:39:31 UTC (rev 1201)
@@ -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-siteproxy/debian/postinst
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/postinst 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/postinst 2006-06-14 14:39:31 UTC (rev 1201)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-cms-types-siteproxy
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:10 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-siteproxy/debian/postrm
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/postrm 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/postrm 2006-06-14 14:39:31 UTC (rev 1201)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-cms-types-siteproxy
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:10 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-siteproxy/debian/prerm
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/prerm 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/prerm 2006-06-14 14:39:31 UTC (rev 1201)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-cms-types-siteproxy
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:10 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-siteproxy/debian/rules
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/rules 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/rules 2006-06-14 14:39:31 UTC (rev 1201)
@@ -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-siteproxy/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-siteproxy/debian/templates
===================================================================
--- trunk/ccm-cms-types-siteproxy/debian/templates 2006-06-14 14:39:21 UTC (rev 1200)
+++ trunk/ccm-cms-types-siteproxy/debian/templates 2006-06-14 14:39:31 UTC (rev 1201)
@@ -0,0 +1,207 @@
+Template: ccm/debconf/version
+Type: string
+Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:10 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:10 fabrice Exp $
+
+Template: ccm/package_name
+Type: string
+Default: ccm-cms-types-siteproxy
+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
..
|
|
From: <fa...@vh...> - 2006-06-14 14:43:59
|
Author: fabrice
Date: 2006-06-14 16:39:11 +0200 (Wed, 14 Jun 2006)
New Revision: 1199
Added:
trunk/ccm-cms-types-pressrelease/debian/
trunk/ccm-cms-types-pressrelease/debian/ccm-build.sh
trunk/ccm-cms-types-pressrelease/debian/ccm-clean.sh
trunk/ccm-cms-types-pressrelease/debian/ccm-cms-types-pressrelease.dirs
trunk/ccm-cms-types-pressrelease/debian/ccm-config.sh
trunk/ccm-cms-types-pressrelease/debian/ccm-disperse.sh
trunk/ccm-cms-types-pressrelease/debian/ccm-install.sh
trunk/ccm-cms-types-pressrelease/debian/ccm-settings-run.sh
trunk/ccm-cms-types-pressrelease/debian/ccm-settings.sh
trunk/ccm-cms-types-pressrelease/debian/changelog
trunk/ccm-cms-types-pressrelease/debian/compat
trunk/ccm-cms-types-pressrelease/debian/config
trunk/ccm-cms-types-pressrelease/debian/control
trunk/ccm-cms-types-pressrelease/debian/copyright
trunk/ccm-cms-types-pressrelease/debian/postinst
trunk/ccm-cms-types-pressrelease/debian/postrm
trunk/ccm-cms-types-pressrelease/debian/prerm
trunk/ccm-cms-types-pressrelease/debian/rules
trunk/ccm-cms-types-pressrelease/debian/templates
Log:
Debian files
Added: trunk/ccm-cms-types-pressrelease/debian/ccm-build.sh
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/ccm-build.sh 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/ccm-build.sh 2006-06-14 14:39:11 UTC (rev 1199)
@@ -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-pressrelease/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/ccm-clean.sh 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/ccm-clean.sh 2006-06-14 14:39:11 UTC (rev 1199)
@@ -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:10 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-pressrelease/debian/ccm-cms-types-pressrelease.dirs
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/ccm-cms-types-pressrelease.dirs 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/ccm-cms-types-pressrelease.dirs 2006-06-14 14:39:11 UTC (rev 1199)
@@ -0,0 +1 @@
+usr/share/java/ccm-cms-types-pressrelease-6.3.0
Added: trunk/ccm-cms-types-pressrelease/debian/ccm-config.sh
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/ccm-config.sh 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/ccm-config.sh 2006-06-14 14:39:11 UTC (rev 1199)
@@ -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-pressrelease/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/ccm-disperse.sh 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/ccm-disperse.sh 2006-06-14 14:39:11 UTC (rev 1199)
@@ -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:10 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-pressrelease/debian/ccm-install.sh
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/ccm-install.sh 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/ccm-install.sh 2006-06-14 14:39:11 UTC (rev 1199)
@@ -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-pressrelease/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/ccm-settings-run.sh 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/ccm-settings-run.sh 2006-06-14 14:39:11 UTC (rev 1199)
@@ -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-pressrelease/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-pressrelease/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/ccm-settings.sh 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/ccm-settings.sh 2006-06-14 14:39:11 UTC (rev 1199)
@@ -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-pressrelease
+version=6.3.0
+appname=ccm-cms-types-pressrelease
+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-pressrelease/debian/changelog
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/changelog 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/changelog 2006-06-14 14:39:11 UTC (rev 1199)
@@ -0,0 +1,63 @@
+ccm-cms-types-pressrelease (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:58 +0000
+
+ccm-cms-types-pressrelease (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:09 +0000
+
+ccm-cms-types-pressrelease (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:53 +0000
+
+ccm-cms-types-pressrelease (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 17:03:17 +0000
+
+ccm-cms-types-pressrelease (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-pressrelease (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-pressrelease (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-pressrelease (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-pressrelease/debian/compat
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/compat 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/compat 2006-06-14 14:39:11 UTC (rev 1199)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-cms-types-pressrelease/debian/config
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/config 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/config 2006-06-14 14:39:11 UTC (rev 1199)
@@ -0,0 +1,79 @@
+#!/bin/sh
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: config,v 1.1.1.1 2004/11/12 09:30:10 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-pressrelease/debian/control
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/control 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/control 2006-06-14 14:39:11 UTC (rev 1199)
@@ -0,0 +1,21 @@
+Source: ccm-cms-types-pressrelease
+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-pressrelease
+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-pressrelease-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-cms-types-pressrelease
+ Documentation for ccm-cms-types-pressrelease. Provides the JavaDoc API documentation.
Added: trunk/ccm-cms-types-pressrelease/debian/copyright
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/copyright 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/copyright 2006-06-14 14:39:11 UTC (rev 1199)
@@ -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-pressrelease/debian/postinst
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/postinst 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/postinst 2006-06-14 14:39:11 UTC (rev 1199)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-cms-types-pressrelease
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:10 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-pressrelease/debian/postrm
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/postrm 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/postrm 2006-06-14 14:39:11 UTC (rev 1199)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-cms-types-pressrelease
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:10 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-pressrelease/debian/prerm
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/prerm 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/prerm 2006-06-14 14:39:11 UTC (rev 1199)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-cms-types-pressrelease
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:10 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-pressrelease/debian/rules
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/rules 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/rules 2006-06-14 14:39:11 UTC (rev 1199)
@@ -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-pressrelease/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-pressrelease/debian/templates
===================================================================
--- trunk/ccm-cms-types-pressrelease/debian/templates 2006-06-14 14:39:05 UTC (rev 1198)
+++ trunk/ccm-cms-types-pressrelease/debian/templates 2006-06-14 14:39:11 UTC (rev 1199)
@@ -0,0 +1,207 @@
+Template: ccm/debconf/version
+Type: string
+Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:10 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:10 fabrice Exp $
+
+Template: ccm/package_name
+Type: string
+Default: ccm-cms-types-pressrelease
+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:40
|
Author: fabrice
Date: 2006-06-14 16:39:05 +0200 (Wed, 14 Jun 2006)
New Revision: 1198
Added:
trunk/ccm-cms-types-organization/debian/
trunk/ccm-cms-types-organization/debian/ccm-build.sh
trunk/ccm-cms-types-organization/debian/ccm-clean.sh
trunk/ccm-cms-types-organization/debian/ccm-cms-types-organization.dirs
trunk/ccm-cms-types-organization/debian/ccm-config.sh
trunk/ccm-cms-types-organization/debian/ccm-disperse.sh
trunk/ccm-cms-types-organization/debian/ccm-install.sh
trunk/ccm-cms-types-organization/debian/ccm-settings-run.sh
trunk/ccm-cms-types-organization/debian/ccm-settings.sh
trunk/ccm-cms-types-organization/debian/changelog
trunk/ccm-cms-types-organization/debian/compat
trunk/ccm-cms-types-organization/debian/config
trunk/ccm-cms-types-organization/debian/control
trunk/ccm-cms-types-organization/debian/copyright
trunk/ccm-cms-types-organization/debian/postinst
trunk/ccm-cms-types-organization/debian/postrm
trunk/ccm-cms-types-organization/debian/prerm
trunk/ccm-cms-types-organization/debian/rules
trunk/ccm-cms-types-organization/debian/templates
Log:
Debian files
Added: trunk/ccm-cms-types-organization/debian/ccm-build.sh
===================================================================
--- trunk/ccm-cms-types-organization/debian/ccm-build.sh 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/ccm-build.sh 2006-06-14 14:39:05 UTC (rev 1198)
@@ -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-organization/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-cms-types-organization/debian/ccm-clean.sh 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/ccm-clean.sh 2006-06-14 14:39:05 UTC (rev 1198)
@@ -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:09 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-organization/debian/ccm-cms-types-organization.dirs
===================================================================
--- trunk/ccm-cms-types-organization/debian/ccm-cms-types-organization.dirs 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/ccm-cms-types-organization.dirs 2006-06-14 14:39:05 UTC (rev 1198)
@@ -0,0 +1 @@
+usr/share/java/ccm-cms-types-organization-6.3.0
Added: trunk/ccm-cms-types-organization/debian/ccm-config.sh
===================================================================
--- trunk/ccm-cms-types-organization/debian/ccm-config.sh 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/ccm-config.sh 2006-06-14 14:39:05 UTC (rev 1198)
@@ -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-organization/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-cms-types-organization/debian/ccm-disperse.sh 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/ccm-disperse.sh 2006-06-14 14:39:05 UTC (rev 1198)
@@ -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:09 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-organization/debian/ccm-install.sh
===================================================================
--- trunk/ccm-cms-types-organization/debian/ccm-install.sh 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/ccm-install.sh 2006-06-14 14:39:05 UTC (rev 1198)
@@ -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-organization/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-cms-types-organization/debian/ccm-settings-run.sh 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/ccm-settings-run.sh 2006-06-14 14:39:05 UTC (rev 1198)
@@ -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-organization/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-organization/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-cms-types-organization/debian/ccm-settings.sh 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/ccm-settings.sh 2006-06-14 14:39:05 UTC (rev 1198)
@@ -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-organization
+version=6.3.0
+appname=ccm-cms-types-organization
+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-organization/debian/changelog
===================================================================
--- trunk/ccm-cms-types-organization/debian/changelog 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/changelog 2006-06-14 14:39:05 UTC (rev 1198)
@@ -0,0 +1,63 @@
+ccm-cms-types-organization (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:58 +0000
+
+ccm-cms-types-organization (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-organization (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:53 +0000
+
+ccm-cms-types-organization (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 16:55:52 +0000
+
+ccm-cms-types-organization (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-organization (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-organization (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-organization (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-organization/debian/compat
===================================================================
--- trunk/ccm-cms-types-organization/debian/compat 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/compat 2006-06-14 14:39:05 UTC (rev 1198)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-cms-types-organization/debian/config
===================================================================
--- trunk/ccm-cms-types-organization/debian/config 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/config 2006-06-14 14:39:05 UTC (rev 1198)
@@ -0,0 +1,79 @@
+#!/bin/sh
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: config,v 1.1.1.1 2004/11/12 09:30:09 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-organization/debian/control
===================================================================
--- trunk/ccm-cms-types-organization/debian/control 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/control 2006-06-14 14:39:05 UTC (rev 1198)
@@ -0,0 +1,21 @@
+Source: ccm-cms-types-organization
+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-organization
+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 organization information.
+ 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-organization-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-cms-types-organization
+ Documentation for ccm-cms-types-organization. Provides the JavaDoc API documentation.
Added: trunk/ccm-cms-types-organization/debian/copyright
===================================================================
--- trunk/ccm-cms-types-organization/debian/copyright 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/copyright 2006-06-14 14:39:05 UTC (rev 1198)
@@ -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-organization/debian/postinst
===================================================================
--- trunk/ccm-cms-types-organization/debian/postinst 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/postinst 2006-06-14 14:39:05 UTC (rev 1198)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-cms-types-organization
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postinst,v 1.1.1.1 2004/11/12 09:30:09 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-organization/debian/postrm
===================================================================
--- trunk/ccm-cms-types-organization/debian/postrm 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/postrm 2006-06-14 14:39:05 UTC (rev 1198)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-cms-types-organization
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: postrm,v 1.1.1.1 2004/11/12 09:30:09 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-organization/debian/prerm
===================================================================
--- trunk/ccm-cms-types-organization/debian/prerm 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/prerm 2006-06-14 14:39:05 UTC (rev 1198)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-cms-types-organization
+#
+# see: dh_installdeb(1)
+#
+# Author: Berkan Eskikaya <be...@ru...>, 2004
+#
+# $Id: prerm,v 1.1.1.1 2004/11/12 09:30:09 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-organization/debian/rules
===================================================================
--- trunk/ccm-cms-types-organization/debian/rules 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/rules 2006-06-14 14:39:05 UTC (rev 1198)
@@ -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-organization/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-organization/debian/templates
===================================================================
--- trunk/ccm-cms-types-organization/debian/templates 2006-06-14 14:38:56 UTC (rev 1197)
+++ trunk/ccm-cms-types-organization/debian/templates 2006-06-14 14:39:05 UTC (rev 1198)
@@ -0,0 +1,207 @@
+Template: ccm/debconf/version
+Type: string
+Default: $Id: templates,v 1.1.1.1 2004/11/12 09:30:09 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:09 fabrice Exp $
+
+Template: ccm/package_name
+Type: string
+Default: ccm-cms-types-organization
+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:29
|
Author: fabrice
Date: 2006-06-14 16:38:56 +0200 (Wed, 14 Jun 2006)
New Revision: 1197
Added:
trunk/ccm-cms-types-motditem/debian/
trunk/ccm-cms-types-motditem/debian/ccm-auth-http.dirs
trunk/ccm-cms-types-motditem/debian/ccm-build.sh
trunk/ccm-cms-types-motditem/debian/ccm-clean.sh
trunk/ccm-cms-types-motditem/debian/ccm-cms-types-motditem.dirs
trunk/ccm-cms-types-motditem/debian/ccm-config.sh
trunk/ccm-cms-types-motditem/debian/ccm-disperse.sh
trunk/ccm-cms-types-motditem/debian/ccm-install.sh
trunk/ccm-cms-types-motditem/debian/ccm-settings-run.sh
trunk/ccm-cms-types-motditem/debian/ccm-settings.sh
trunk/ccm-cms-types-motditem/debian/changelog
trunk/ccm-cms-types-motditem/debian/compat
trunk/ccm-cms-types-motditem/debian/config
trunk/ccm-cms-types-motditem/debian/control
trunk/ccm-cms-types-motditem/debian/copyright
trunk/ccm-cms-types-motditem/debian/postinst
trunk/ccm-cms-types-motditem/debian/postrm
trunk/ccm-cms-types-motditem/debian/prerm
trunk/ccm-cms-types-motditem/debian/rules
trunk/ccm-cms-types-motditem/debian/templates
Log:
Debian files
Added: trunk/ccm-cms-types-motditem/debian/ccm-auth-http.dirs
===================================================================
--- trunk/ccm-cms-types-motditem/debian/ccm-auth-http.dirs 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/ccm-auth-http.dirs 2006-06-14 14:38:56 UTC (rev 1197)
@@ -0,0 +1 @@
+usr/share/java/ccm-cms-types-motditem-1.4.1
Added: trunk/ccm-cms-types-motditem/debian/ccm-build.sh
===================================================================
--- trunk/ccm-cms-types-motditem/debian/ccm-build.sh 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/ccm-build.sh 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-cms-types-motditem/debian/ccm-clean.sh 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/ccm-clean.sh 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem/debian/ccm-cms-types-motditem.dirs
===================================================================
--- trunk/ccm-cms-types-motditem/debian/ccm-cms-types-motditem.dirs 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/ccm-cms-types-motditem.dirs 2006-06-14 14:38:56 UTC (rev 1197)
@@ -0,0 +1 @@
+usr/share/java/ccm-cms-types-motditem-6.3.0
Added: trunk/ccm-cms-types-motditem/debian/ccm-config.sh
===================================================================
--- trunk/ccm-cms-types-motditem/debian/ccm-config.sh 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/ccm-config.sh 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-cms-types-motditem/debian/ccm-disperse.sh 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/ccm-disperse.sh 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem/debian/ccm-install.sh
===================================================================
--- trunk/ccm-cms-types-motditem/debian/ccm-install.sh 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/ccm-install.sh 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-cms-types-motditem/debian/ccm-settings-run.sh 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/ccm-settings-run.sh 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-motditem/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-cms-types-motditem/debian/ccm-settings.sh 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/ccm-settings.sh 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem
+version=6.3.0
+appname=ccm-cms-types-motditem
+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-motditem/debian/changelog
===================================================================
--- trunk/ccm-cms-types-motditem/debian/changelog 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/changelog 2006-06-14 14:38:56 UTC (rev 1197)
@@ -0,0 +1,24 @@
+ccm-cms-types-motditem (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-motditem (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-motditem (6.1.1-2) unstable; urgency=low
+
+ * Add ccm-devel to the build-dependancies.
+ * Add ccm-scripts to the build-dependancies too
+
+ -- David Pashley <da...@ru...> Tue, 26 Apr 2005 15:21:46 +0100
+
+ccm-cms-types-motditem (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-motditem/debian/compat
===================================================================
--- trunk/ccm-cms-types-motditem/debian/compat 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/compat 2006-06-14 14:38:56 UTC (rev 1197)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-cms-types-motditem/debian/config
===================================================================
--- trunk/ccm-cms-types-motditem/debian/config 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/config 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem/debian/control
===================================================================
--- trunk/ccm-cms-types-motditem/debian/control 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/control 2006-06-14 14:38:56 UTC (rev 1197)
@@ -0,0 +1,21 @@
+Source: ccm-cms-types-motditem
+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-types-motditem
+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-motditem-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-cms-types-motditem
+ Documentation for ccm-cms-types-motditem. Provides the JavaDoc API documentation.
Added: trunk/ccm-cms-types-motditem/debian/copyright
===================================================================
--- trunk/ccm-cms-types-motditem/debian/copyright 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/copyright 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem/debian/postinst
===================================================================
--- trunk/ccm-cms-types-motditem/debian/postinst 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/postinst 2006-06-14 14:38:56 UTC (rev 1197)
@@ -0,0 +1,111 @@
+#! /bin/sh
+# postinst script for ccm-cms-types-motditem
+#
+# 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-motditem/debian/postrm
===================================================================
--- trunk/ccm-cms-types-motditem/debian/postrm 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/postrm 2006-06-14 14:38:56 UTC (rev 1197)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-cms-types-motditem
+#
+# 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-motditem/debian/prerm
===================================================================
--- trunk/ccm-cms-types-motditem/debian/prerm 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/prerm 2006-06-14 14:38:56 UTC (rev 1197)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-cms-types-motditem
+#
+# 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-motditem/debian/rules
===================================================================
--- trunk/ccm-cms-types-motditem/debian/rules 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/rules 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-motditem/debian/templates
===================================================================
--- trunk/ccm-cms-types-motditem/debian/templates 2006-06-14 14:38:51 UTC (rev 1196)
+++ trunk/ccm-cms-types-motditem/debian/templates 2006-06-14 14:38:56 UTC (rev 1197)
@@ -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-motditem
+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-motditem".
+
+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-motditem".
|
|
From: <fa...@vh...> - 2006-06-14 14:43:25
|
Author: fabrice
Date: 2006-06-14 16:38:51 +0200 (Wed, 14 Jun 2006)
New Revision: 1196
Added:
trunk/ccm-cms-types-minutes/debian/
trunk/ccm-cms-types-minutes/debian/ccm-build.sh
trunk/ccm-cms-types-minutes/debian/ccm-clean.sh
trunk/ccm-cms-types-minutes/debian/ccm-cms-types-minutes.dirs
trunk/ccm-cms-types-minutes/debian/ccm-config.sh
trunk/ccm-cms-types-minutes/debian/ccm-disperse.sh
trunk/ccm-cms-types-minutes/debian/ccm-install.sh
trunk/ccm-cms-types-minutes/debian/ccm-settings-run.sh
trunk/ccm-cms-types-minutes/debian/ccm-settings.sh
trunk/ccm-cms-types-minutes/debian/changelog
trunk/ccm-cms-types-minutes/debian/compat
trunk/ccm-cms-types-minutes/debian/config
trunk/ccm-cms-types-minutes/debian/control
trunk/ccm-cms-types-minutes/debian/copyright
trunk/ccm-cms-types-minutes/debian/postinst
trunk/ccm-cms-types-minutes/debian/postrm
trunk/ccm-cms-types-minutes/debian/prerm
trunk/ccm-cms-types-minutes/debian/rules
trunk/ccm-cms-types-minutes/debian/templates
Log:
Debian files
Added: trunk/ccm-cms-types-minutes/debian/ccm-build.sh
===================================================================
--- trunk/ccm-cms-types-minutes/debian/ccm-build.sh 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/ccm-build.sh 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-cms-types-minutes/debian/ccm-clean.sh 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/ccm-clean.sh 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes/debian/ccm-cms-types-minutes.dirs
===================================================================
--- trunk/ccm-cms-types-minutes/debian/ccm-cms-types-minutes.dirs 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/ccm-cms-types-minutes.dirs 2006-06-14 14:38:51 UTC (rev 1196)
@@ -0,0 +1 @@
+usr/share/java/ccm-cms-types-minutes-6.3.0
Added: trunk/ccm-cms-types-minutes/debian/ccm-config.sh
===================================================================
--- trunk/ccm-cms-types-minutes/debian/ccm-config.sh 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/ccm-config.sh 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-cms-types-minutes/debian/ccm-disperse.sh 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/ccm-disperse.sh 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes/debian/ccm-install.sh
===================================================================
--- trunk/ccm-cms-types-minutes/debian/ccm-install.sh 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/ccm-install.sh 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-cms-types-minutes/debian/ccm-settings-run.sh 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/ccm-settings-run.sh 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-minutes/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-cms-types-minutes/debian/ccm-settings.sh 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/ccm-settings.sh 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes
+version=6.3.0
+appname=ccm-cms-types-minutes
+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-minutes/debian/changelog
===================================================================
--- trunk/ccm-cms-types-minutes/debian/changelog 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/changelog 2006-06-14 14:38:51 UTC (rev 1196)
@@ -0,0 +1,63 @@
+ccm-cms-types-minutes (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-minutes (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-minutes (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-minutes (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:56:56 +0000
+
+ccm-cms-types-minutes (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-minutes (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-minutes (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-minutes (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-minutes/debian/compat
===================================================================
--- trunk/ccm-cms-types-minutes/debian/compat 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/compat 2006-06-14 14:38:51 UTC (rev 1196)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-cms-types-minutes/debian/config
===================================================================
--- trunk/ccm-cms-types-minutes/debian/config 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/config 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes/debian/control
===================================================================
--- trunk/ccm-cms-types-minutes/debian/control 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/control 2006-06-14 14:38:51 UTC (rev 1196)
@@ -0,0 +1,21 @@
+Source: ccm-cms-types-minutes
+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-minutes
+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 Minutes content type for publishing meeting minutes.
+ 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-minutes-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-cms-types-minutes
+ Documentation for ccm-cms-types-minutes. Provides the JavaDoc API documentation.
Added: trunk/ccm-cms-types-minutes/debian/copyright
===================================================================
--- trunk/ccm-cms-types-minutes/debian/copyright 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/copyright 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes/debian/postinst
===================================================================
--- trunk/ccm-cms-types-minutes/debian/postinst 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/postinst 2006-06-14 14:38:51 UTC (rev 1196)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-cms-types-minutes
+#
+# 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-minutes/debian/postrm
===================================================================
--- trunk/ccm-cms-types-minutes/debian/postrm 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/postrm 2006-06-14 14:38:51 UTC (rev 1196)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-cms-types-minutes
+#
+# 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-minutes/debian/prerm
===================================================================
--- trunk/ccm-cms-types-minutes/debian/prerm 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/prerm 2006-06-14 14:38:51 UTC (rev 1196)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-cms-types-minutes
+#
+# 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-minutes/debian/rules
===================================================================
--- trunk/ccm-cms-types-minutes/debian/rules 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/rules 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-minutes/debian/templates
===================================================================
--- trunk/ccm-cms-types-minutes/debian/templates 2006-06-14 14:38:46 UTC (rev 1195)
+++ trunk/ccm-cms-types-minutes/debian/templates 2006-06-14 14:38:51 UTC (rev 1196)
@@ -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-minutes
+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:24
|
Author: fabrice
Date: 2006-06-14 16:38:36 +0200 (Wed, 14 Jun 2006)
New Revision: 1193
Added:
trunk/ccm-cms-types-inlinesite/debian/
trunk/ccm-cms-types-inlinesite/debian/ccm-build.sh
trunk/ccm-cms-types-inlinesite/debian/ccm-clean.sh
trunk/ccm-cms-types-inlinesite/debian/ccm-cms-types-inlinesite.dirs
trunk/ccm-cms-types-inlinesite/debian/ccm-config.sh
trunk/ccm-cms-types-inlinesite/debian/ccm-disperse.sh
trunk/ccm-cms-types-inlinesite/debian/ccm-install.sh
trunk/ccm-cms-types-inlinesite/debian/ccm-settings-run.sh
trunk/ccm-cms-types-inlinesite/debian/ccm-settings.sh
trunk/ccm-cms-types-inlinesite/debian/changelog
trunk/ccm-cms-types-inlinesite/debian/compat
trunk/ccm-cms-types-inlinesite/debian/config
trunk/ccm-cms-types-inlinesite/debian/control
trunk/ccm-cms-types-inlinesite/debian/copyright
trunk/ccm-cms-types-inlinesite/debian/postinst
trunk/ccm-cms-types-inlinesite/debian/postrm
trunk/ccm-cms-types-inlinesite/debian/prerm
trunk/ccm-cms-types-inlinesite/debian/rules
trunk/ccm-cms-types-inlinesite/debian/templates
Log:
Debian files
Added: trunk/ccm-cms-types-inlinesite/debian/ccm-build.sh
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/ccm-build.sh 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/ccm-build.sh 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite/debian/ccm-clean.sh
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/ccm-clean.sh 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/ccm-clean.sh 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite/debian/ccm-cms-types-inlinesite.dirs
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/ccm-cms-types-inlinesite.dirs 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/ccm-cms-types-inlinesite.dirs 2006-06-14 14:38:36 UTC (rev 1193)
@@ -0,0 +1 @@
+usr/share/java/ccm-cms-types-inlinesite-6.3.0
Added: trunk/ccm-cms-types-inlinesite/debian/ccm-config.sh
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/ccm-config.sh 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/ccm-config.sh 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite/debian/ccm-disperse.sh
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/ccm-disperse.sh 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/ccm-disperse.sh 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite/debian/ccm-install.sh
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/ccm-install.sh 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/ccm-install.sh 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite/debian/ccm-settings-run.sh
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/ccm-settings-run.sh 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/ccm-settings-run.sh 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite/debian/ccm-settings-run.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-inlinesite/debian/ccm-settings.sh
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/ccm-settings.sh 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/ccm-settings.sh 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite
+version=6.3.0
+appname=ccm-cms-types-inlinesite
+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-inlinesite/debian/changelog
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/changelog 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/changelog 2006-06-14 14:38:36 UTC (rev 1193)
@@ -0,0 +1,63 @@
+ccm-cms-types-inlinesite (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-inlinesite (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-inlinesite (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-inlinesite (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:31:22 +0000
+
+ccm-cms-types-inlinesite (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-inlinesite (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-inlinesite (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-inlinesite (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-inlinesite/debian/compat
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/compat 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/compat 2006-06-14 14:38:36 UTC (rev 1193)
@@ -0,0 +1 @@
+4
Added: trunk/ccm-cms-types-inlinesite/debian/config
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/config 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/config 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite/debian/control
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/control 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/control 2006-06-14 14:38:36 UTC (rev 1193)
@@ -0,0 +1,21 @@
+Source: ccm-cms-types-inlinesite
+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-inlinesite
+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: Displays a remote website in a wireframe.
+ 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-inlinesite-doc
+Architecture: all
+Depends: ccm-tools
+Description: Documentation for ccm-cms-types-inlinesite
+ Documentation for ccm-cms-types-inlinesite. Provides the JavaDoc API documentation.
Added: trunk/ccm-cms-types-inlinesite/debian/copyright
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/copyright 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/copyright 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite/debian/postinst
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/postinst 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/postinst 2006-06-14 14:38:36 UTC (rev 1193)
@@ -0,0 +1,112 @@
+#! /bin/sh
+# postinst script for ccm-cms-types-inlinesite
+#
+# 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-inlinesite/debian/postrm
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/postrm 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/postrm 2006-06-14 14:38:36 UTC (rev 1193)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postrm script for ccm-cms-types-inlinesite
+#
+# 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-inlinesite/debian/prerm
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/prerm 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/prerm 2006-06-14 14:38:36 UTC (rev 1193)
@@ -0,0 +1,60 @@
+#! /bin/sh
+# prerm script for ccm-cms-types-inlinesite
+#
+# 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-inlinesite/debian/rules
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/rules 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/rules 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/ccm-cms-types-inlinesite/debian/templates
===================================================================
--- trunk/ccm-cms-types-inlinesite/debian/templates 2006-06-14 14:38:27 UTC (rev 1192)
+++ trunk/ccm-cms-types-inlinesite/debian/templates 2006-06-14 14:38:36 UTC (rev 1193)
@@ -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-inlinesite
+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
..
|