Skip to content

Commit 4a65c8d

Browse files
committed
initial commit of tirex - a new tile rendering manager
0 parents  commit 4a65c8d

File tree

116 files changed

+12784
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+12784
-0
lines changed

LICENSE

+339
Large diffs are not rendered by default.

Makefile

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
build: Makefile.perl
2+
cd tirex-renderd; $(MAKE) $(MFLAGS)
3+
$(MAKE) -f Makefile.perl
4+
5+
Makefile.perl: Makefile.PL
6+
perl Makefile.PL PREFIX=/usr DESTDIR=$(DESTDIR) FIRST_MAKEFILE=Makefile.perl
7+
rm -f Makefile.perl.old
8+
9+
install: build
10+
install -m 755 -g root -o root -d $(DESTDIR)/usr/bin/
11+
install -m 755 -g root -o root -d $(DESTDIR)/usr/share/tirex
12+
install -m 755 -g root -o root -d $(DESTDIR)/usr/share/munin/plugins
13+
install -m 755 -g root -o root bin/tirex-batch $(DESTDIR)/usr/bin/
14+
install -m 755 -g root -o root bin/tirex-send $(DESTDIR)/usr/bin/
15+
install -m 755 -g root -o root bin/tirex-master $(DESTDIR)/usr/bin/
16+
install -m 755 -g root -o root bin/tirex-renderd-starter $(DESTDIR)/usr/bin/
17+
install -m 755 -g root -o root bin/tirex-status $(DESTDIR)/usr/bin/
18+
install -m 755 -g root -o root bin/tirex-syncd $(DESTDIR)/usr/bin/
19+
install -m 755 -g root -o root bin/tirex-tiledir-check $(DESTDIR)/usr/bin/
20+
install -m 755 -g root -o root bin/tirex-tiledir-stat $(DESTDIR)/usr/bin/
21+
install -m 755 -g root -o root munin/* $(DESTDIR)/usr/share/munin/plugins
22+
23+
mkdir -p man-generated
24+
for i in bin/*; do if grep -q "=head" $$i; then pod2man $$i > man-generated/`basename $$i`.1; fi; done
25+
pod2man --section=5 doc/tirex.conf.pod > man-generated/tirex.conf.5
26+
27+
install -m 755 -g root -o root -d $(DESTDIR)/etc/tirex
28+
install -m 644 -g root -o root etc/tirex.conf.dist $(DESTDIR)/etc/tirex/tirex.conf
29+
install -m 755 -g root -o root -d $(DESTDIR)/usr/share/man/man1/
30+
install -m 644 -g root -o root man-generated/*.1 $(DESTDIR)/usr/share/man/man1/
31+
install -m 755 -g root -o root -d $(DESTDIR)/usr/share/man/man5/
32+
install -m 644 -g root -o root man-generated/*.5 $(DESTDIR)/usr/share/man/man5/
33+
34+
cd tirex-renderd; $(MAKE) DESTDIR=$(DESTDIR) install
35+
$(MAKE) -f Makefile.perl install
36+
37+
clean: Makefile.perl
38+
$(MAKE) -f Makefile.perl clean
39+
cd tirex-renderd; $(MAKE) DESTDIR=$(DESTDIR) clean
40+
rm -f Makefile.perl
41+
rm -f Makefile.perl.old
42+
rm -f build-stamp
43+
rm -f configure-stamp
44+
rm -rf blib man-generated
45+

Makefile.PL

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
use ExtUtils::MakeMaker;
2+
3+
unless (eval { require Test::More; 1 }) {
4+
print STDERR "*** Test::More is not installed, you will not be able to run the tests\n";
5+
}
6+
unless ($] >= 5.006001) {
7+
print STDERR "*** This Perl version ($]) is not supported\n";
8+
}
9+
10+
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
11+
# the contents of the Makefile that is written.
12+
WriteMakefile(
13+
'NAME' => 'Tirex',
14+
'AUTHOR' => 'Jochen Topf',
15+
'LICENSE' => 'GPL',
16+
'INSTALLDIRS' => 'vendor',
17+
'VERSION_FROM' => 'lib/Tirex.pm', # finds $VERSION
18+
'ABSTRACT' => "Modules for the Tirex tile server",
19+
'PREREQ_PM' => { 'IPC::ShareLite' => 0, 'JSON' => 0 },
20+
test => { TESTS => join(' ', glob('t/*/*.t')) },
21+
);

README

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Tirex Tile Rendering System
3+
===========================
4+
5+
6+
7+
PERL MODULES
8+
------------
9+
10+
You'll need the following Perl modules:
11+
* IPC::ShareLite (Debian/Ubuntu/: libipc-sharelite-perl)
12+
* JSON (Debian/Ubuntu: libjson-perl)
13+
14+
15+
LOGGING
16+
-------
17+
18+
Tirex-master has two logs:
19+
* General noticies, warnings, errors, debug messages and the like are
20+
logged via syslog. You can configure the syslog facility that should
21+
be used ('master_syslog_facility').
22+
* For each rendered metatile a line is written to a logfile. This can
23+
be used for generating statistics. Failed renderings (when the
24+
renderd didn't answer) are not logged here (but in the syslog). Use
25+
the config variable 'master_logfile' to set the filename for this
26+
log.
27+
28+
29+
TESTING
30+
-------
31+
32+
Call 'prove' in the main directory to run Perl tests. You need Test::More
33+
(Debian/Ubuntu: libtest-simple-perl) and Test::Harness (Debian/Ubuntu:
34+
libtest-harness-perl) installed.
35+
36+
Call 'perl t/tirex_queue_speed_test.pl' to run queue speed test.
37+

0 commit comments

Comments
 (0)