The following commit has been merged in the master branch:
commit b3dbf92483c5b411fab9f91255188da1b311f169
Author: Uwe Steinmann <ste...@debian.org>
Date:   Fri Nov 18 17:02:11 2011 +0100

    - make extra package routino-www

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..71c2ffc
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,27 @@
+routino for Debian
+------------------
+
+routino is a set of applications for finding a route based on topographical
+information from OpenStreetMap and creating the underlying database files.
+The router application itself has been renamed from 'router' to
+'routino-router'. The other programms (planetsplitter, filedumpeĊ— and
+tagmodifier) has remained its name.
+
+routino has been split into two packages:
+
+routino:
+  containing the command line programms
+routino-www:
+  containing the web interface
+
+The web interface can be reached under http://localhost/routino
+It requires the two directories /var/lib/routino/data and
+/var/lib/routino/results. Both are created during installation of
+routino-www. /var/lib/routino/data must contain the four database
+files: nodes.mem, relations.mem, segments.mem and ways.mem previously
+created by planetsplitter. 
+Results of the router when called by the web frontend are stored in
+/var/lib/routino/results. This directory is cleared from old files
+by a cron job weekly.
+
+ -- Uwe Steinmann <ste...@debian.org>, Thu, 10 Nov 2011 8:24:13 +0100
diff --git a/debian/apache.conf b/debian/apache.conf
new file mode 100644
index 0000000..9e5cc0d
--- /dev/null
+++ b/debian/apache.conf
@@ -0,0 +1,15 @@
+Alias /routino /usr/share/routino/www
+<Directory /usr/share/routino/www>
+AddHandler cgi-script .cgi
+LanguagePriority en
+ForceLanguagePriority Prefer Fallback
+Options +ExecCGI
+AllowOverride None
+Order deny,allow
+Deny from all
+Allow from 127.0.0.0/255.0.0.0 ::1/128
+<FilesMatch .*\.pl$>
+   Order deny,allow
+   Deny from all
+</FilesMatch>
+</Directory>
diff --git a/debian/patches/map_bounds b/debian/patches/map_bounds
new file mode 100644
index 0000000..9c70209
--- /dev/null
+++ b/debian/patches/map_bounds
@@ -0,0 +1,24 @@
+Description: Enlarge bounds of visible map to world
+Author: Thibaut Gridel <tgri...@free.fr>
+
+--- routino-2.1.1.orig/web/www/routino/router.js
++++ routino-2.1.1/web/www/routino/router.js
+@@ -458,12 +458,12 @@ function map_init(lat,lon,zoom)
+ 
+  // EDIT THIS below to change the visible map limits
+ 
+- var westedge  = -11.0;          // Minimum longitude (degrees)
+- var eastedge  =   2.0;          // Maximum longitude (degrees)
+- var southedge =  49.5;          // Minimum latitude (degrees)
+- var northedge =  61.0;          // Maximum latitude (degrees)
+- var zoomout   =     4;          // Minimum zoom
+- var zoomin    =    15;          // Maximum zoom
++ var westedge  = -180.0;          // Minimum longitude (degrees)
++ var eastedge  = +180.0;          // Maximum longitude (degrees)
++ var southedge =  -80.0;          // Minimum latitude (degrees)
++ var northedge =  +80.0;          // Maximum latitude (degrees)
++ var zoomout   =      2;          // Minimum zoom
++ var zoomin    =     16;          // Maximum zoom
+ 
+  // EDIT THIS above to change the visible map limits
+ 
diff --git a/debian/patches/use_openlayers b/debian/patches/use_openlayers
new file mode 100644
index 0000000..ff22d81
--- /dev/null
+++ b/debian/patches/use_openlayers
@@ -0,0 +1,37 @@
+Description: use installed openlayers form libjs-openlayers
+Author: Thibaut Gridel <tgri...@free.fr>
+
+--- routino-2.1.1.orig/web/www/routino/router.html.en
++++ routino-2.1.1/web/www/routino/router.html.en
+@@ -28,7 +28,7 @@
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ 
+ <!-- OpenLayers Javascript library -->
+-<script src="../openlayers/OpenLayers.js" type="text/javascript"></script>
++<script src="/javascript/openlayers/OpenLayers.js" 
type="text/javascript"></script>
+ 
+ <!-- Page elements -->
+ <script src="page-elements.js" type="text/javascript"></script>
+--- routino-2.1.1.orig/web/www/routino/router.html.nl
++++ routino-2.1.1/web/www/routino/router.html.nl
+@@ -30,7 +30,7 @@
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ 
+ <!-- OpenLayers Javascript library -->
+-<script src="../openlayers/OpenLayers.js" type="text/javascript"></script>
++<script src="/javascript/openlayers/OpenLayers.js" 
type="text/javascript"></script>
+ 
+ <!-- Page elements -->
+ <script src="page-elements.js" type="text/javascript"></script>
+
+--- routino-2.1.1.orig/web/www/routino/visualiser.html
++++ routino-2.1.1/web/www/routino/visualiser.html
+@@ -28,7 +28,7 @@
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ 
+ <!-- OpenLayers Javascript library -->
+-<script src="../openlayers/OpenLayers.js" type="text/javascript"></script>
++<script src="/javascript/openlayers/OpenLayers.js" 
type="text/javascript"></script>
+ 
+ <!-- Page elements -->
+ <script src="page-elements.js" type="text/javascript"></script>
diff --git a/debian/routino-www.cron.d b/debian/routino-www.cron.d
new file mode 100644
index 0000000..428714f
--- /dev/null
+++ b/debian/routino-www.cron.d
@@ -0,0 +1,4 @@
+#
+# Regular cron jobs for the routino-www package
+#
+0 3    * * *   root    find /var/lib/routino/results -atime 7 -exec rm "{}" \;
diff --git a/debian/routino-www.install b/debian/routino-www.install
new file mode 100644
index 0000000..586445a
--- /dev/null
+++ b/debian/routino-www.install
@@ -0,0 +1,2 @@
+usr/share/routino/www
+etc/apache2/conf.d
diff --git a/debian/routino-www.postinst b/debian/routino-www.postinst
new file mode 100644
index 0000000..3eda835
--- /dev/null
+++ b/debian/routino-www.postinst
@@ -0,0 +1,32 @@
+#! /bin/sh
+# postinst script for routino-www
+#
+
+if [ "$DPKG_DEBUG" = "developer" ]; then
+       set -x
+fi
+
+case "$1" in
+       configure)
+               if [ ! -d "/var/lib/routino/data" ] ; then
+                       mkdir -p /var/lib/routino/data
+               fi
+               if [ ! -d "/var/lib/routino/results" ] ; then
+                       mkdir -p /var/lib/routino/results
+               fi
+               chown -R www-data.www-data /var/lib/routino/results
+
+       ;;
+
+       abort-upgrade|abort-remove|abort-deconfigure)
+       ;;
+
+       *)
+               echo "postinst called with unknown argument \`$1'" >&2
+               exit 1
+       ;;
+esac
+
+#DEBHELPER#
+
+
diff --git a/debian/routino-www.postrm b/debian/routino-www.postrm
new file mode 100644
index 0000000..73e94f7
--- /dev/null
+++ b/debian/routino-www.postrm
@@ -0,0 +1,34 @@
+#! /bin/sh
+# postrm script for routino-www
+#
+
+if [ "$DPKG_DEBUG" = "developer" ]; then
+  set -x
+fi
+
+case "$1" in
+       purge)
+               rm -rf /var/lib/routino/results
+               rmdir --ignore-fail-on-non-empty /var/lib/routino/data
+
+       ;;
+       remove)
+               rm -rf /var/lib/routino/results
+               rmdir --ignore-fail-on-non-empty /var/lib/routino/data
+
+       ;;
+
+  upgrade)
+
+  ;;
+
+       failed-upgrade|abort-install|abort-upgrade|disappear)
+       ;;
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+
+esac
+
+#DEBHELPER#
+
diff --git a/debian/routino.install b/debian/routino.install
new file mode 100644
index 0000000..302ba88
--- /dev/null
+++ b/debian/routino.install
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/routino/*.xml

-- 
Packaging for routino

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to