[med-svn] r3066 - in trunk/packages/mlstdbnet/trunk/debian: . more_examples
tille at alioth.debian.org
tille at alioth.debian.org
Wed Jan 28 09:50:01 UTC 2009
Author: tille
Date: 2009-01-28 09:50:00 +0000 (Wed, 28 Jan 2009)
New Revision: 3066
Modified:
trunk/packages/mlstdbnet/trunk/debian/config
trunk/packages/mlstdbnet/trunk/debian/more_examples/cdif.xml
trunk/packages/mlstdbnet/trunk/debian/postinst
Log:
Fix pathes and set dbprof to "" as default because the profile database is less important database. This should go to a second configuration file. Actually after dealing with the configuration of the package I wonder whether debconf makes really sense or whether a proper README.Debian explaining the setuo procedure in detail might make more sense.
Modified: trunk/packages/mlstdbnet/trunk/debian/config
===================================================================
--- trunk/packages/mlstdbnet/trunk/debian/config 2009-01-27 18:28:17 UTC (rev 3065)
+++ trunk/packages/mlstdbnet/trunk/debian/config 2009-01-28 09:50:00 UTC (rev 3066)
@@ -78,10 +78,13 @@
# set "/${pkg}" name as default webroot
db_set ${pkg}/webroot "/${pkg}"
fi
- DBPROF=`grep 'dbprof="' /etc/${pkg}/${XMLNAME}.xml | sed 's/.*dbprof="[^"]\+">\([^<]\+\)<.*/\1/'`
+ DBPROF=`grep 'dbprof="' /etc/${pkg}/${XMLNAME}.xml | sed 's/.*dbprof="\([^"]*\)"/\1/'`
# verify whether DPPROF is set in config file
if [ "$DBPROF" != "##dbprofiles##" -a "$DBPROF" != "" ] ; then
db_set ${pkg}/dbprof "$DBPROF"
+ else
+ # Unset Profiles DB for the moment
+ db_set ${pkg}/dbprof ""
fi
fi
Modified: trunk/packages/mlstdbnet/trunk/debian/more_examples/cdif.xml
===================================================================
--- trunk/packages/mlstdbnet/trunk/debian/more_examples/cdif.xml 2009-01-27 18:28:17 UTC (rev 3065)
+++ trunk/packages/mlstdbnet/trunk/debian/more_examples/cdif.xml 2009-01-28 09:50:00 UTC (rev 3066)
@@ -13,9 +13,9 @@
<system
longcode="cdif"
- webroot="/cdif"
+ webroot="/mlstdbnet"
indexpage=""
- dbprof="cdif"
+ dbprof=""
profhome="/cgi-bin/mlstdbnet/mlstdbnet.pl?file=pub-cdif.xml"
description="Clostridium Difficile">Test</system>
Modified: trunk/packages/mlstdbnet/trunk/debian/postinst
===================================================================
--- trunk/packages/mlstdbnet/trunk/debian/postinst 2009-01-27 18:28:17 UTC (rev 3065)
+++ trunk/packages/mlstdbnet/trunk/debian/postinst 2009-01-28 09:50:00 UTC (rev 3066)
@@ -91,6 +91,7 @@
mkdir -p /var/www/${pkg}
if [ ! -L "/var/www/${pkg}/$XMLNAME" -a ! -d "/var/www/${pkg}/$XMLNAME" ] ; then
ln -s "$STYLEDIR" "/var/www/${pkg}/$XMLNAME"
+ ln -s "${STYLEDIR}/stylesheet.css" "/var/www/${pkg}/stylesheet.css"
fi
# Link to image directory
More information about the debian-med-commit
mailing list