[mapproxy] 16/28: Move templates, schemas & cache_data to /usr/share.

Bas Couwenberg sebastic at debian.org
Wed Jul 27 00:32:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository mapproxy.

commit ba370f524e0cb77fff1a5122c95574aca2c2d8c8
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Tue Jul 26 16:54:12 2016 +0200

    Move templates, schemas & cache_data to /usr/share.
---
 debian/changelog |  1 +
 debian/rules     | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 722ef21..172b67a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,7 @@ mapproxy (1.8.2-1) UNRELEASED; urgency=medium
   * Add separate package for Sphinx documentation.
   * Add missing sources for OpenLayers.js 2.12.
   * Use DejaVu fonts from fonts-dejavu-core package.
+  * Move templates, schemas & cache_data to /usr/share.
 
  -- Bas Couwenberg <sebastic at debian.org>  Mon, 25 Jul 2016 18:53:14 +0200
 
diff --git a/debian/rules b/debian/rules
index 5c84796..5318233 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,6 +32,33 @@ override_dh_auto_install:
 			ln -s /usr/share/fonts/truetype/dejavu/$$F \
 			      debian/python-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/image/fonts/$$F ; \
 		done ; \
+		if [ ! -e debian/python-$(PYBUILD_NAME)/usr/share/python-$(PYBUILD_NAME)/service/templates ]; then \
+			mkdir -p debian/python-$(PYBUILD_NAME)/usr/share/python-$(PYBUILD_NAME)/service ; \
+			mv debian/python-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/service/templates \
+			   debian/python-$(PYBUILD_NAME)/usr/share/python-$(PYBUILD_NAME)/service/ ; \
+		else \
+			$(RM) -r debian/python-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/service/templates ; \
+		fi ; \
+		ln -s /usr/share/python-$(PYBUILD_NAME)/services/templates \
+		      debian/python-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/service/templates ; \
+		if [ ! -e debian/python-$(PYBUILD_NAME)/usr/share/python-$(PYBUILD_NAME)/test/schemas ]; then \
+			mkdir -p debian/python-$(PYBUILD_NAME)/usr/share/python-$(PYBUILD_NAME)/test ; \
+			mv debian/python-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/schemas \
+			   debian/python-$(PYBUILD_NAME)/usr/share/python-$(PYBUILD_NAME)/test/ ; \
+		else \
+			$(RM) -r debian/python-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/schemas ; \
+		fi ; \
+		ln -s /usr/share/python-$(PYBUILD_NAME)/test/schemas \
+		      debian/python-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/schemas ; \
+		if [ ! -e debian/python-$(PYBUILD_NAME)/usr/share/python-$(PYBUILD_NAME)/test/system/fixture/cache_data ]; then \
+			mkdir -p debian/python-$(PYBUILD_NAME)/usr/share/python-$(PYBUILD_NAME)/test/system/fixture ; \
+			mv debian/python-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/system/fixture/cache_data \
+			   debian/python-$(PYBUILD_NAME)/usr/share/python-$(PYBUILD_NAME)/test/system/fixture/ ; \
+		else \
+			$(RM) -r debian/python-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/system/fixture/cache_data ; \
+		fi ; \
+		ln -s /usr/share/python-$(PYBUILD_NAME)/test/system/fixture/cache_data \
+		      debian/python-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/system/fixture/cache_data ; \
 	done
 
 	for V in `py3versions -v -s`; do \
@@ -40,6 +67,33 @@ override_dh_auto_install:
 			ln -s /usr/share/fonts/truetype/dejavu/$$F \
 			      debian/python3-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/image/fonts/$$F ; \
 		done ; \
+		if [ ! -e debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)/service/templates ]; then \
+			mkdir -p debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)/service ; \
+			mv debian/python3-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/service/templates \
+			   debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)/service/ ; \
+		else \
+			$(RM) -r debian/python3-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/service/templates ; \
+		fi ; \
+		ln -s /usr/share/python3-$(PYBUILD_NAME)/services/templates \
+		      debian/python3-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/service/templates ; \
+		if [ ! -e debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)/test/schemas ]; then \
+			mkdir -p debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)/test ; \
+			mv debian/python3-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/schemas \
+			   debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)/test/ ; \
+		else \
+			$(RM) -r debian/python3-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/schemas ; \
+		fi ; \
+		ln -s /usr/share/python3-$(PYBUILD_NAME)/test/schemas \
+		      debian/python3-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/schemas ; \
+		if [ ! -e debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)/test/system/fixture/cache_data ]; then \
+			mkdir -p debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)/test/system/fixture ; \
+			mv debian/python3-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/system/fixture/cache_data \
+			   debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)/test/system/fixture/ ; \
+		else \
+			$(RM) -r debian/python3-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/system/fixture/cache_data ; \
+		fi ; \
+		ln -s /usr/share/python3-$(PYBUILD_NAME)/test/system/fixture/cache_data \
+		      debian/python3-$(PYBUILD_NAME)/usr/lib/python$$V/dist-packages/mapproxy/test/system/fixture/cache_data ; \
 	done
 
 override_dh_install:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapproxy.git



More information about the Pkg-grass-devel mailing list