summaryrefslogtreecommitdiff
path: root/src/configure
blob: 0e8e08bbca11501a2c4b50458846cd9f2e30af53 (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
28
29
30
31
32
33
#!/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 
	;;
	bsd)
		rm -rf tunDevice.cpp
		rm -rf tunDevice.h
		ln -sf bsd/tunDevice.cpp 
		ln -sf bsd/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|bsd|ovpn)"
	;;
esac