#!/usr/bin/make -f # -*- makefile -*- # FeatureServer debian/rules # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PREFIX := debian/featureserver PYSUPPORT := /usr/share/python-support/python-package build: clean: dh_testdir dh_testroot rm -rf build FeatureServer.egg-info dh_clean *.pyc lib/FeatureServer/*.pyc install: build dh_testdir dh_testroot dh_clean -k dh_installdirs python ./setup.py install --debian --no-compile --root=$(PREFIX) --install-lib=$(PYSUPPORT) chmod +x $(PREFIX)/$(PYSUPPORT)/FeatureServer/Server.py chmod +x $(PREFIX)/$(PYSUPPORT)/FeatureServer/DataSource/Flickr.py # Experimental only rm $(PREFIX)/$(PYSUPPORT)/FeatureServer/DataSource/VersionedPostGIS.py cp template/default.html $(PREFIX)/usr/share/featureserver/template sed -i -e 's!template/default.html!/usr/share/featureserver/template/default.html!' \ $(PREFIX)/$(PYSUPPORT)/FeatureServer/Service/HTML.py rm $(PREFIX)/usr/bin/featureserver_install_config.py # only used for eggs mv $(PREFIX)/usr/bin/featureserver.* $(PREFIX)/usr/lib/cgi-bin # .cgi, .fcgi mv $(PREFIX)/usr/bin/featureserver_http_server.py $(PREFIX)/usr/sbin/featureserver_http_server rmdir $(PREFIX)/usr/bin # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installchangelogs doc/News.txt dh_installdocs dh_installexamples dh_installman dh_compress dh_fixperms dh_pysupport dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch: .PHONY: build clean binary-indep binary install