forked from kartoza/docker-mapserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·62 lines (48 loc) · 1.48 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
#Install libharfbuzz from source as it is not in a repository
VERSION=harfbuzz-0.9.19.tar.bz2
if [ ! -f /tmp/resources/harfbuzz-0.9.19.tar.bz2 ]; then \
wget http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0.9.19.tar.bz2 -P /tmp/resources/; \
fi; \
cd /tmp/resources &&\
tar xjf harfbuzz-0.9.19.tar.bz2 &&\
cd harfbuzz-0.9.19 && \
./configure && \
make && \
make install && \
ldconfig
if [ ! -d /tmp/resources/mapserver ]; then \
git clone https://github.com/mapserver/mapserver /tmp/resources/mapserver; \
fi;\
mkdir -p /tmp/resources/mapserver/build && \
cd /tmp/resources/mapserver/build && \
cmake /tmp/resources/mapserver/ -DWITH_THREAD_SAFETY=1 \
-DWITH_PROJ=1 \
-DWITH_KML=1 \
-DWITH_SOS=1 \
-DWITH_WMS=1 \
-DWITH_FRIBIDI=1 \
-DWITH_HARFBUZZ=1 \
-DWITH_ICONV=1 \
-DWITH_CAIRO=1 \
-DWITH_RSVG=1 \
-DWITH_MYSQL=1 \
-DWITH_GEOS=1 \
-DWITH_POSTGIS=1 \
-DWITH_GDAL=1 \
-DWITH_OGR=1 \
-DWITH_CURL=1 \
-DWITH_CLIENT_WMS=1 \
-DWITH_CLIENT_WFS=1 \
-DWITH_WFS=1 \
-DWITH_WCS=1 \
-DWITH_LIBXML2=1 \
-DWITH_GIF=1 \
-DWITH_EXEMPI=1 \
-DWITH_XMLMAPFILE=1 \
-DWITH_FCGI=0 && \
make && \
make install && \
ldconfig
echo "ServerName localhost" >> /etc/apache2/apache2.conf
echo '<?php phpinfo();' > /var/www/html/info.php