forked from teonet-co/teonet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-opensuse.sh
executable file
·55 lines (44 loc) · 1.13 KB
/
build-opensuse.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/sh
# Set project dependence to make Teonet project from sources at empty host
# Update OpenSuse
zypper -y update
# Autoconf dependence
zypper install -y autoconf intltool libtool glib2-devel doxygen make gcc patch
# Project dependence
zypper install -y openssl-devel libev-devel libuuid-devel libcurl-devel
# Install Suse cUnit project dependence
zypper install cunit-devel
# for opensuse less than 13.2:
#zypper addrepo -fg http://download.opensuse.org/repositories/home:Strahlex/openSUSE_13.2/home:Strahlex.repo
#zypper refresh
#zypper install cunit-devel
# Install confuse
cd distr
#zypper install -y wget
#wget http://savannah.nongnu.org/download/confuse/confuse-2.7.tar.gz
tar -xzvf confuse-2.7.tar.gz
cd confuse-2.7
./configure
cd src
cp Makefile Makefile.old
patch < ../../confuse-2.7-src-Makefile.patch
cd ..
make
make install
cd ../..
# Libtuntap dependence
zypper install -y cmake gcc-c++ unzip
# Get libtuntap
cd distr
unzip libtuntap.zip
cd libtuntap-master
# Libtuntap build
cmake ./
make
make install
# Remove libtuntap source
cd ..
rm -fr libtuntap-master
cd ..
# Update system dynamic libraries configuration
ldconfig