simple debian package builds for mod_tile and renderd

This commit is contained in:
Frederik Ramm
2009-06-04 15:54:11 +00:00
parent a4e125af5e
commit cf634d2ba6
12 changed files with 160 additions and 0 deletions

4
debian/README vendored Normal file
View File

@ -0,0 +1,4 @@
Debian packages for mod_tile and renderd
----------------------------------------
-- Frederik Ramm <frederik@remote.org> Fri, 04 Jun 2009

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
7

22
debian/control vendored Normal file
View File

@ -0,0 +1,22 @@
Source: libapache2-mod-tile
Section: utils
Priority: optional
Maintainer: Frederik Ramm <frederik@remote.org>
Build-Depends: debhelper (>= 7), apache2-prefork-dev (>= 2.2.3) | apache2-threaded-dev (>= 2.2.3), libmapnik-dev
Standards-Version: 3.8.0
Package: libapache2-mod-tile
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, renderd, apache2.2-common, apache2-mpm-prefork | apache2-mpm-worker
Suggests: renderd
Description: Apache module to deliver tiles created by renderd
This Apache module receives map tiles requests and satisfies them from
tiles stored on disk, or queries a renderd instance to create them.
Package: renderd
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libmapnik
Suggests: libapache2-mod-tile
Description: Daemon that renders map tiles using mapnik
This daemon creates "metatiles" for map tile requests issued by mod_tile
using the mapnik library.

3
debian/copyright vendored Normal file
View File

@ -0,0 +1,3 @@
Licensed under GPL v2 or later
Various authors, as per http://svn.openstreetmap.org/applications/utils/mod_tile/

1
debian/libapache2-mod-tile.conffiles vendored Normal file
View File

@ -0,0 +1 @@
/etc/renderd.conf

4
debian/libapache2-mod-tile.install vendored Normal file
View File

@ -0,0 +1,4 @@
.libs/mod_tile.so usr/lib/apache2/modules
debian/libapache2-mod-tile.load etc/apache2/mods-available/mod_tile.load
readme.txt usr/share/doc/libapache2-mod-tile
renderd.conf /etc

1
debian/libapache2-mod-tile.load vendored Normal file
View File

@ -0,0 +1 @@
LoadModule tile_module /usr/lib/apache2/modules/mod_tile.so

10
debian/libapache2-mod-tile.postinst vendored Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
if [ -d /var/lib/mod_tile ]
then
;
else
mkdir /var/lib/mod_tile
chown www-data:www-data /var/lib/mod_tile
fi

1
debian/renderd.conffiles vendored Normal file
View File

@ -0,0 +1 @@
/etc/renderd.conf

8
debian/renderd.install vendored Normal file
View File

@ -0,0 +1,8 @@
readme.txt usr/share/doc/renderd
renderd.conf /etc
render_all /usr/bin
convert_meta /usr/bin
renderd /usr/bin
speedtest /usr/bin
update /usr/bin
render_list /usr/bin

10
debian/renderd.postinst vendored Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
if [ -d /var/lib/mod_tile ]
then
;
else
mkdir /var/lib/mod_tile
chown www-data:www-data /var/lib/mod_tile
fi

95
debian/rules vendored Executable file
View File

@ -0,0 +1,95 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
configure: configure-stamp
configure-stamp: patch
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
$(MAKE)
touch $@
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
$(MAKE) clean
dh_clean
patch: patch-stamp
patch-stamp:
dpatch apply-all
dpatch cat-all >patch-stamp
unpatch:
dpatch deapply-all
rm -rf patch-stamp debian/patched
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/libapache2-mod-tile.
$(MAKE) DESTDIR=$(CURDIR)/debian/libapache2-mod-tile install
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_python
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure