aboutsummaryrefslogtreecommitdiff
path: root/build/socat/build-int.sh
blob: 0709a909c807ec2fc6e34fe23a7d78e8f84fcfd8 (plain) (blame)
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
#!/bin/sh
set -e
set -x
ver=1.7.3.4
export LDFLAGS='-static'

cd /build

if [ -e socat ] ; then exit 0 ; fi

if ! [ -e socat.tgz ] ; then
		wget -O socat.tgz "http://www.dest-unreach.org/socat/download/socat-${ver}.tar.gz"
fi

tar xzvf socat.tgz

cd socat-${ver}

./configure
make -j$(nproc)
cp socat ../

cd ..

gzip -c < socat > socat.gz
base64 < socat.gz > socat.base64.gz