[Dbconfig-common-changes] [dbconfig-common] r235 - in
branches/sqlite/examples: . db-test-sqlite-2.0
db-test-sqlite-2.0/debian
Matt Brown
mattb-guest at costa.debian.org
Mon May 29 13:08:09 CEST 2006
Author: mattb-guest
Date: 2006-05-29 11:08:08 +0000 (Mon, 29 May 2006)
New Revision: 235
Added:
branches/sqlite/examples/db-test-sqlite-2.0/
branches/sqlite/examples/db-test-sqlite-2.0/sqlite.sql
Removed:
branches/sqlite/examples/db-test-sqlite-2.0/mysql.sql
Modified:
branches/sqlite/examples/buildpackages.sh
branches/sqlite/examples/db-test-sqlite-2.0/debian/config
branches/sqlite/examples/db-test-sqlite-2.0/debian/control
branches/sqlite/examples/db-test-sqlite-2.0/debian/dirs
branches/sqlite/examples/db-test-sqlite-2.0/debian/postinst
branches/sqlite/examples/db-test-sqlite-2.0/debian/postrm
branches/sqlite/examples/db-test-sqlite-2.0/debian/prerm
branches/sqlite/examples/db-test-sqlite-2.0/debian/rules
Log:
Add example SQLite package for testing purposes
Modified: branches/sqlite/examples/buildpackages.sh
===================================================================
--- branches/sqlite/examples/buildpackages.sh 2006-05-29 10:40:28 UTC (rev 234)
+++ branches/sqlite/examples/buildpackages.sh 2006-05-29 11:08:08 UTC (rev 235)
@@ -1,7 +1,7 @@
#!/bin/sh
packages="db-test-mysql-2.0 db-test-mysql-2.1 db-test-mysql-perl-2.0 \
- db-test-pgsql-2.0 db-test-multidbtype-2.0"
+ db-test-pgsql-2.0 db-test-sqlite-2.0 db-test-multidbtype-2.0"
echo -n "building packages:"
for f in $packages; do
Copied: branches/sqlite/examples/db-test-sqlite-2.0 (from rev 234, branches/sqlite/examples/db-test-mysql-2.0)
Modified: branches/sqlite/examples/db-test-sqlite-2.0/debian/config
===================================================================
--- branches/sqlite/examples/db-test-mysql-2.0/debian/config 2006-05-29 10:40:28 UTC (rev 234)
+++ branches/sqlite/examples/db-test-sqlite-2.0/debian/config 2006-05-29 11:08:08 UTC (rev 235)
@@ -4,5 +4,5 @@
#set -x
. /usr/share/debconf/confmodule
-. /usr/share/dbconfig-common/dpkg/config.mysql
-dbc_go db-test-mysql $@
+. /usr/share/dbconfig-common/dpkg/config.sqlite
+dbc_go db-test-sqlite $@
Modified: branches/sqlite/examples/db-test-sqlite-2.0/debian/control
===================================================================
--- branches/sqlite/examples/db-test-mysql-2.0/debian/control 2006-05-29 10:40:28 UTC (rev 234)
+++ branches/sqlite/examples/db-test-sqlite-2.0/debian/control 2006-05-29 11:08:08 UTC (rev 235)
@@ -5,11 +5,10 @@
Build-Depends-Indep: debhelper (>> 3.0.0)
Standards-Version: 3.5.9
-Package: db-test-mysql
+Package: db-test-sqlite
Architecture: all
-Depends: dbconfig-common
-Recommends: mysql-server
-Description: a package to test dbconfig-common (mysql version)
+Depends: dbconfig-common, sqlite
+Description: a package to test dbconfig-common (sqlite version)
this is a package to test the dbconfig-common package.
.
- this version should work with mysql database servers.
+ this version should work with the sqlite database engine
Modified: branches/sqlite/examples/db-test-sqlite-2.0/debian/dirs
===================================================================
--- branches/sqlite/examples/db-test-mysql-2.0/debian/dirs 2006-05-29 10:40:28 UTC (rev 234)
+++ branches/sqlite/examples/db-test-sqlite-2.0/debian/dirs 2006-05-29 11:08:08 UTC (rev 235)
@@ -1,4 +1,4 @@
-usr/share/db-test-mysql
-usr/share/dbconfig-common/data/db-test-mysql/install
-usr/share/dbconfig-common/data/db-test-mysql/upgrade/mysql
-etc/db-test-mysql
+usr/share/db-test-sqlite
+usr/share/dbconfig-common/data/db-test-sqlite/install
+usr/share/dbconfig-common/data/db-test-sqlite/upgrade/sqlite
+etc/db-test-sqlite
Modified: branches/sqlite/examples/db-test-sqlite-2.0/debian/postinst
===================================================================
--- branches/sqlite/examples/db-test-mysql-2.0/debian/postinst 2006-05-29 10:40:28 UTC (rev 234)
+++ branches/sqlite/examples/db-test-sqlite-2.0/debian/postinst 2006-05-29 11:08:08 UTC (rev 235)
@@ -4,8 +4,8 @@
#set -x
. /usr/share/debconf/confmodule
-. /usr/share/dbconfig-common/dpkg/postinst.mysql
-dbc_generate_include=php:/etc/db-test-mysql/debian-db.php
-dbc_go db-test-mysql $@
+. /usr/share/dbconfig-common/dpkg/postinst.sqlite
+dbc_generate_include=php:/etc/db-test-sqlite/debian-db.php
+dbc_go db-test-sqlite $@
#DEBHELPER#
Modified: branches/sqlite/examples/db-test-sqlite-2.0/debian/postrm
===================================================================
--- branches/sqlite/examples/db-test-mysql-2.0/debian/postrm 2006-05-29 10:40:28 UTC (rev 234)
+++ branches/sqlite/examples/db-test-sqlite-2.0/debian/postrm 2006-05-29 11:08:08 UTC (rev 235)
@@ -4,12 +4,12 @@
#set -x
. /usr/share/debconf/confmodule
-. /usr/share/dbconfig-common/dpkg/postrm.mysql
-dbc_go db-test-mysql $@
+. /usr/share/dbconfig-common/dpkg/postrm.sqlite
+dbc_go db-test-sqlite $@
if [ "$1" = "purge" ]; then
- rm -f /etc/db-test-mysql/debian-db.php
- ucf --purge /etc/db-test-mysql/debian-db.php
+ rm -f /etc/db-test-sqlite/debian-db.php
+ ucf --purge /etc/db-test-sqlite/debian-db.php
fi
#DEBHELPER#
Modified: branches/sqlite/examples/db-test-sqlite-2.0/debian/prerm
===================================================================
--- branches/sqlite/examples/db-test-mysql-2.0/debian/prerm 2006-05-29 10:40:28 UTC (rev 234)
+++ branches/sqlite/examples/db-test-sqlite-2.0/debian/prerm 2006-05-29 11:08:08 UTC (rev 235)
@@ -4,7 +4,7 @@
#set -x
. /usr/share/debconf/confmodule
-. /usr/share/dbconfig-common/dpkg/prerm.mysql
-dbc_go db-test-mysql $@
+. /usr/share/dbconfig-common/dpkg/prerm.sqlite
+dbc_go db-test-sqlite $@
#DEBHELPER#
Modified: branches/sqlite/examples/db-test-sqlite-2.0/debian/rules
===================================================================
--- branches/sqlite/examples/db-test-mysql-2.0/debian/rules 2006-05-29 10:40:28 UTC (rev 234)
+++ branches/sqlite/examples/db-test-sqlite-2.0/debian/rules 2006-05-29 11:08:08 UTC (rev 235)
@@ -39,9 +39,9 @@
dh_clean -k
dh_installdirs
#
- # db-test-mysql needs the sql skeleton here:
+ # db-test-sqlite needs the sql skeleton here:
#
- cp mysql.sql debian/db-test-mysql/usr/share/dbconfig-common/data/db-test-mysql/install/mysql
+ cp sqlite.sql debian/db-test-sqlite/usr/share/dbconfig-common/data/db-test-sqlite/install/sqlite
# Build architecture-independent files here.
binary-indep: build install
Deleted: branches/sqlite/examples/db-test-sqlite-2.0/mysql.sql
===================================================================
--- branches/sqlite/examples/db-test-mysql-2.0/mysql.sql 2006-05-29 10:40:28 UTC (rev 234)
+++ branches/sqlite/examples/db-test-sqlite-2.0/mysql.sql 2006-05-29 11:08:08 UTC (rev 235)
@@ -1,13 +0,0 @@
-create table foo (
- id int not null primary key,
- name varchar(32)
-);
-
-create table mytable (
- version varchar(32) not null primary key
-);
-
-insert into foo values (1, 'foo');
-insert into foo values (2, 'bar');
-delete from mytable;
-insert into mytable values ('2.0');
Added: branches/sqlite/examples/db-test-sqlite-2.0/sqlite.sql
===================================================================
--- branches/sqlite/examples/db-test-mysql-2.0/sqlite.sql 2006-05-29 10:40:28 UTC (rev 234)
+++ branches/sqlite/examples/db-test-sqlite-2.0/sqlite.sql 2006-05-29 11:08:08 UTC (rev 235)
@@ -0,0 +1,13 @@
+create table foo (
+ id int not null primary key,
+ name varchar(32)
+);
+
+create table mytable (
+ version varchar(32) not null primary key
+);
+
+insert into foo values (1, 'foo');
+insert into foo values (2, 'bar');
+delete from mytable;
+insert into mytable values ('2.0');
More information about the Dbconfig-common-changes
mailing list