-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinit-code.sh
executable file
·51 lines (40 loc) · 913 Bytes
/
init-code.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
#!/usr/bin/env bash
set -x
LIBTOOLIZE=libtoolize
if [ "$(uname -s)" = "Darwin" ]; then
LIBTOOLIZE=glibtoolize
fi
# required packages on a clean debian installation:
# subversion autotools-dev autoconf libtool automake
# libexpat1-dev
CWD=`pwd`
# download ldns code, required by the unbound server
if [ ! -e ldns.svn ]; then
svn co http://nlnetlabs.nl/svn/ldns/trunk/ ldns.svn
fi
cd ldns.svn
#update svn repo
svn up
if [ ! -e configure ]; then
$LIBTOOLIZE -c --install
autoreconf --install
fi
#compile data
if [ ! -e Makefile ]; then
./configure --disable-gost
fi
make all doc
cd $CWD
#download unbound code
if [ ! -e unbound.svn ]; then
svn co http://unbound.nlnetlabs.nl/svn/trunk/ unbound.svn
fi
cd unbound.svn
#update svn repo
svn up
#compile data
if [ ! -e Makefile ]; then
./configure --disable-gost --with-ldns=../ldns.svn/ --with-pythonmodule --with-pyunbound
fi
make
cd $CWD