[Dbconfig-common-devel] dbconfig-common dbconfig-generate-include,1.1,1.2

seanius@haydn.debian.org seanius@haydn.debian.org


Update of /cvsroot/dbconfig-common/dbconfig-common
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv31239

Modified Files:
	dbconfig-generate-include 
Log Message:
another load of work done.

the pgsql support now includes support for both ident (local, remote)
and password (password, crypt, md5, some pam) based authentication.

there's still a couple lurking bugs which i'll be fixing in 1.3:
- dpkg-reconfigure with multi-dbtype applications remembers some values
  that perhaps it shouldn't.
- the pgsql support always asks the admin about modifying the configuration,
  even if it doesn't need to.
- the pgsql support doesn't have a way of modifying the config

what i'm working on next:
- the above
- hitting at what's left in TODO (esp. verifying updates and script support)
- ssl support to pgsql
- dbconfig-generate-include


if anyone is interested, i can upload the current version to experimental.
just let me know!

	sean



Index: dbconfig-generate-include
===================================================================
RCS file: /cvsroot/dbconfig-common/dbconfig-common/dbconfig-generate-include,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- dbconfig-generate-include	30 Dec 2004 18:37:19 -0000	1.1
+++ dbconfig-generate-include	4 Feb 2005 06:26:06 -0000	1.2
@@ -18,6 +18,17 @@
 
 while true; do
 	case "$1" in
+	-a|--all)
+		use_all="yes"
+		shift
+	;;
+	-d|--dsn)
+		use_dsn="yes"
+		if [ ! -z "$2" ]; then
+			dsn_varname="$2"
+		fi
+		shift 2
+	;;
 	-u|--dbuser)
 		use_dbuser="yes"
 		if [ ! -z "$2" ]; then
@@ -44,8 +55,12 @@
 	esac
 done
 
+usage(){
+	echo "$0 - "
+}
+
 if [ ! $# = 1 ]; then
-	echo "$@ XXX usage..." >&2
+	echo "$@ usage:" >&2
 	exit 1
 fi