summaryrefslogtreecommitdiff
path: root/src/configure
blob: 9f6ff4bac66f9e8814e1288f787b02535e1c13dd (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
27
#!/bin/sh

TARGET=$1
if [ -z "$TARGET" ]; then
    TARGET="ovpn"
fi

case $TARGET in 
	linux)
		rm -rf tunDevice.cpp
		rm -rf tunDevice.h
		ln -sf linux/tunDevice.cpp 
		ln -sf linux/tunDevice.h 
	;;
	ovpn)
		rm -rf tunDevice.cpp
		rm -rf tunDevice.cpp
		ln -sf ovpn/tunDevice.cpp 
		ln -sf ovpn/tunDevice.h
		cd openvpn
		./configure --disable-lzo --disable-crypto
		cd ..
	;;
	*)
		echo "Usage: $0 (linux|ovpn)"
	;;
esac