Description: config debian paths
 Make installation paths more Debian compatible.
Author: Obey Arthur Liu <arthur@milliways.fr>
Last-Update: 2012-05-23
--- a/configure
+++ b/configure
@@ -2816,14 +2816,14 @@ case ${VIRTUOSO_LAYOUT} in
 		prefix=/usr
 		localstatedir=/var
 	fi
-	vaddir=$datadir/virtuoso/vad
-	docdir=$datadir/doc/virtuoso
-	htmldocdir=$datadir/doc/virtuoso/html
-	pdfdocdir=$datadir/doc/virtuoso/pdf
-	demodir=$localstatedir/lib/virtuoso/demo
-	dbdir=$localstatedir/lib/virtuoso/db
-	httprootdir=$localstatedir/lib/virtuoso/vsp
-	hostingdir=$libdir/virtuoso/hosting
+	vaddir=$datadir/$DEBIANPKG/vad
+	docdir=$datadir/doc/$DEBIANPKG
+	htmldocdir=$datadir/doc/$DEBIANPKG/html
+	pdfdocdir=$datadir/doc/$DEBIANPKG/pdf
+	demodir=$localstatedir/lib/$DEBIANPKG/demo
+	dbdir=$localstatedir/lib/$DEBIANPKG/db
+	httprootdir=$localstatedir/lib/$DEBIANPKG/vsp
+	hostingdir=$libdir/$DEBIANPKG/hosting
 	;;
 
   [Gg][Ee][Nn][Tt][Oo][Oo])			# Gentoo
--- a/configure.in
+++ b/configure.in
@@ -156,14 +156,14 @@ case ${VIRTUOSO_LAYOUT} in
 		prefix=/usr
 		localstatedir=/var
 	fi
-	vaddir=$datadir/virtuoso/vad
-	docdir=$datadir/doc/virtuoso
-	htmldocdir=$datadir/doc/virtuoso/html
-	pdfdocdir=$datadir/doc/virtuoso/pdf
-	demodir=$localstatedir/lib/virtuoso/demo
-	dbdir=$localstatedir/lib/virtuoso/db
-	httprootdir=$localstatedir/lib/virtuoso/vsp
-	hostingdir=$libdir/virtuoso/hosting
+	vaddir=$datadir/$DEBIANPKG/vad
+	docdir=$datadir/doc/$DEBIANPKG
+	htmldocdir=$datadir/doc/$DEBIANPKG/html
+	pdfdocdir=$datadir/doc/$DEBIANPKG/pdf
+	demodir=$localstatedir/lib/$DEBIANPKG/demo
+	dbdir=$localstatedir/lib/$DEBIANPKG/db
+	httprootdir=$localstatedir/lib/$DEBIANPKG/vsp
+	hostingdir=$libdir/$DEBIANPKG/hosting
 	;;
 
   [[Gg]][[Ee]][[Nn]][[Tt]][[Oo]][[Oo]])			# Gentoo
