1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-06-28 11:55:08 +03:00

fix debian builds

issue described: https://github.com/SoftEtherVPN/SoftEtherVPN/issues/550
This commit is contained in:
Ilya Shipitsin 2018-06-10 12:11:23 +05:00
parent 1e8cf1dc5d
commit 9024658821
6 changed files with 15 additions and 8 deletions

7
configure vendored
View File

@ -21,7 +21,12 @@ if [ ! -d "tmp" ]; then
mkdir tmp
fi
(cd tmp && cmake .. || exit 1)
if [ ! -z ${CMAKE_INSTALL_PREFIX+x} ]; then
CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
fi
(cd tmp && cmake ${CMAKE_FLAGS} .. || exit 1)
echo ""

8
debian/rules vendored
View File

@ -1,6 +1,7 @@
#!/usr/bin/make -f
export DH_VERBOSE=1
export CMAKE_INSTALL_PREFIX=`pwd`/../../usr
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
@ -9,13 +10,14 @@ LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
override_dh_auto_configure: configure_config
override_dh_auto_make:
make -C tmp
override_dh_auto_clean:
rm -fr Makefile* usr bin tmp src/bin/BuiltHamcoreFiles
override_dh_auto_install:
patch -f < debian/makefile.patch
mkdir -p usr/bin
make install
make -C tmp install
configure_config:
if [ $(shell uname -m) = 'x86_64' ]; then echo -e "1\n2\n" | ./configure; fi

View File

@ -1,3 +1,3 @@
#! /usr/bin/dh-exec
debian/bin/vpnbridge usr/bin/
usr/vpnbridge opt/
usr/bin/vpnbridge opt/

View File

@ -1,3 +1,3 @@
#! /usr/bin/dh-exec
debian/bin/vpnclient usr/bin/
usr/vpnclient opt/
usr/bin/vpnclient opt/

View File

@ -1,3 +1,3 @@
#! /usr/bin/dh-exec
debian/bin/vpncmd usr/bin/
usr/vpncmd opt/
usr/bin/vpncmd opt/

View File

@ -1,3 +1,3 @@
#! /usr/bin/dh-exec
debian/bin/vpnserver usr/bin/
usr/vpnserver opt/
usr/bin/vpnserver opt/