Skip to content

Commit 013838d

Browse files
Mike Jerrismjerris
Mike Jerris
authored andcommitted
cleanup build process and document package deps
1 parent 0cfe83a commit 013838d

File tree

5 files changed

+33
-39
lines changed

5 files changed

+33
-39
lines changed

.drone.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ steps:
1010
image: signalwire/freeswitch-public-base
1111
pull: true
1212
commands:
13-
- apt-get update && apt-get install -y clang-tools-7 libjansson-dev libcurl-ocaml-dev libjwt-dev libks
14-
- autoreconf -i
15-
- automake --add-missing
16-
- libtoolize
17-
- autoreconf
13+
- apt-get update && apt-get install -y clang-tools-7 libcurl4-openssl-dev libjwt-dev libks
14+
- ./bootstrap.sh
1815
- ./configure --enable-address-sanitizer
1916
- mkdir -p scan-build
2017
- echo '#!/bin/bash\nscan-build-7 -o ./scan-build/ make -j`nproc --all` |& tee ./scan-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./scan-build-status.txt\n' > scan.sh
@@ -47,6 +44,6 @@ trigger:
4744
- push
4845
---
4946
kind: signature
50-
hmac: 819345d4900a92433c08880af7dd12f668f502a6a8f84a0596130741c90b5d8d
47+
hmac: 700f49ce871925296c00888ff8842aba8f5d1660ccea1784b07a20ab8619ec22
5148

5249
...

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM signalwire/freeswitch-public-base
2-
RUN apt-get update && apt-get install -y clang-tools-7 libjansson-dev libcurl-ocaml-dev libjwt-dev libks
2+
RUN apt-get update && apt-get install -y clang-tools-7 automake autoconf libtool libcurl4-openssl-dev libjwt-dev libks
33
COPY . /usr/local/src/libstirshaken
44
WORKDIR /usr/local/src/libstirshaken
55

README.txt

+19-21
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ FOLDERS
1313
======
1414
/ - main folder
1515
README.txt - this file
16-
.do_install.sh - installation script
1716
src/ - library sources
1817
include/ - library headers
1918
util/ - helper programs (stirshaken tool for running multiple commands, see below)
@@ -23,33 +22,32 @@ FOLDERS
2322
COMPILATION
2423
============
2524

26-
NOTE: the latest libjwt is required.
27-
debian packages: https://files.freeswitch.org/repo/deb/debian-unstable/pool/main/libj/libjwt/
28-
RPM: https://files.freeswitch.org/repo/yum/centos-dev/7/x86_64/libjwt-devel-1.12.0-0.sdl7.x86_64.rpm
29-
source: https://github.com/benmcollins/libjwt
30-
31-
If you just want to get on with it, then please run
32-
./do_install.sh
33-
This will install dependencies as well as tools needed to make build, and will build and install it.
34-
If there are problems with dependencies, then install them manually and rerun ./do_install.sh.
35-
This will build all Shaken targets if packages are installed.
36-
3725
Dependencies:
3826

39-
LIBS += -lcurl -lcrypto -lssl -ljwt -pthread -lks
4027
CURL: https://github.com/curl/curl
41-
OpenSSL: https://github.com/openssl/openssl
42-
LibJWT: https://github.com/benmcollins/libjwt
28+
OpenSSL: https://github.com/openssl/openssl version 1.1 or later
29+
LibJWT: https://github.com/benmcollins/libjwt version 1.12 or later
4330
LibKS: https://github.com/signalwire/libks
4431

32+
packages for latest libks and libjwt which are required are available in the freeswitch package repositories:
33+
34+
Debian 10:
35+
apt-get update && apt-get install -y gnupg2 wget lsb-release
36+
wget -O - https://files.freeswitch.org/repo/deb/debian-release/fsstretch-archive-keyring.asc | apt-key add -
37+
echo "deb http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch.list
38+
echo "deb-src http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch.list
39+
apt-get update && apt-get install -y automake autoconf libtool libcurl4-openssl-dev libjwt-dev libks
40+
41+
If you just want to get on with it, then please run
42+
./do_install.sh
43+
This will install dependencies as well as tools needed to make build, and will build and install it on debian buster
44+
If there are problems with dependencies, then install them manually and rerun ./do_install.sh.
45+
This will build all Shaken targets if packages are installed.
4546

46-
Please run ./install.sh or perform these manual steps:
47+
Please run ./do_install.sh (debian specific) or perform these manual steps:
4748

48-
autoreconf -i
49-
automake --add-missing
50-
libtoolize
51-
autoreconf
52-
configure
49+
./bootstrap.sh
50+
./configure
5351
make
5452
sudo make install
5553

bootstrap.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
autoreconf -i

do_install.sh

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
tools="automake autoconf libtool"
2-
libs="libjansson-dev libcurl-ocaml-dev libjwt-dev libks"
1+
sudo apt-get update && sudo apt install --yes gnupg2 wget lsb-release
2+
wget -O - https://files.freeswitch.org/repo/deb/debian-release/fsstretch-archive-keyring.asc | apt-key add -
3+
echo "deb http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch-stir-deps.list
4+
echo "deb-src http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch-stir-deps.list
5+
sudo apt-get update && sudo apt install --yes automake autoconf libtool libcurl4-openssl-dev libjwt-dev libks
36

4-
sudo apt install --yes $tools
5-
sudo apt install --yes $libs
6-
7-
autoreconf -i
8-
automake --add-missing
9-
libtoolize
10-
autoreconf
7+
./bootstrap.sh
118
./configure
12-
make && sudo make install
13-
make stirshaken
9+
make
1410
make check
11+
sudo make install

0 commit comments

Comments
 (0)