mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-25 10:59:53 +03:00
fix debian package builds (#554)
* fix debian builds issue described: https://github.com/SoftEtherVPN/SoftEtherVPN/issues/550 * add cmake3 dependency (for ubuntu 14.04) * "compat" belongs to debian/ subfolder that file is not needed in root folder * update debian package version * compare debian/changelog and src/CurrentBuild.txt
This commit is contained in:
parent
1e8cf1dc5d
commit
be0ebb65c1
30
.ci/check-debian-package-version.sh
Executable file
30
.ci/check-debian-package-version.sh
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
while IFS=$'\n\r' read -r line || [[ -n "$line" ]]; do
|
||||||
|
echo "Text read from file: $line"
|
||||||
|
case $line in
|
||||||
|
BUILD_NUMBER\ *)
|
||||||
|
BUILD_NUMBER=${line#BUILD_NUMBER }
|
||||||
|
;;
|
||||||
|
VERSION\ *)
|
||||||
|
VERSION=${line#VERSION }
|
||||||
|
;;
|
||||||
|
BUILD_NAME\ *)
|
||||||
|
BUILD_NAME=${line#BUILD_NAME }
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
done < "src/CurrentBuild.txt"
|
||||||
|
|
||||||
|
VERSION=${VERSION:0:1}.${VERSION:1} # Add a colon after the first character. ("501" => "5.01")
|
||||||
|
|
||||||
|
CHANGELOG_VERSION="(0:$VERSION.$BUILD_NUMBER) $BUILD_NAME"
|
||||||
|
|
||||||
|
IFS=$'\n\r' read -r line < "debian/changelog"
|
||||||
|
if [[ $line == *$CNANGELOG_VERSION* ]]; then
|
||||||
|
echo "debian/changelog matches src/CurrentBuild.txt"
|
||||||
|
else
|
||||||
|
echo "debian/changelog does not match src/CurrentBuild.txt"
|
||||||
|
exit 1
|
||||||
|
fi
|
@ -20,6 +20,12 @@ matrix:
|
|||||||
- env: OPENSSL_VERSION="1.1.0f"
|
- env: OPENSSL_VERSION="1.1.0f"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
- env: DESCRIPTION="check debian package version"
|
||||||
|
os: linux
|
||||||
|
before_install:
|
||||||
|
- true
|
||||||
|
script:
|
||||||
|
- .ci/check-debian-package-version.sh
|
||||||
- os: osx
|
- os: osx
|
||||||
compiler: clang
|
compiler: clang
|
||||||
before_install:
|
before_install:
|
||||||
|
7
configure
vendored
7
configure
vendored
@ -21,7 +21,12 @@ if [ ! -d "tmp" ]; then
|
|||||||
mkdir tmp
|
mkdir tmp
|
||||||
fi
|
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 ""
|
echo ""
|
||||||
|
|
||||||
|
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -1,5 +1,5 @@
|
|||||||
softether-vpn (0:4.23.9647) unstable; urgency=low
|
softether-vpn (0:5.01.9657) unstable; urgency=low
|
||||||
|
|
||||||
* Updated release version
|
* Updated release version
|
||||||
|
|
||||||
-- Quintin Beukes <github.com@last.za.net> Thu, 14 Dec 2017 13:41:00 +0000
|
-- Ilya Shipitsin <chipitsine@gmail.com> Mon, 11 Jun 2018 22:50:39 +05
|
||||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -2,7 +2,7 @@ Source: softether-vpn
|
|||||||
Section: net
|
Section: net
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Dmitry Orlov <me@mosquito.su>
|
Maintainer: Dmitry Orlov <me@mosquito.su>
|
||||||
Build-Depends: debhelper (>= 7.0.50~), libncurses5-dev, linux-libc-dev, libssl-dev, zlib1g-dev, libreadline-dev, build-essential, cmake, dh-exec
|
Build-Depends: debhelper (>= 7.0.50~), libncurses5-dev, linux-libc-dev, libssl-dev, zlib1g-dev, libreadline-dev, build-essential, cmake3 | cmake, dh-exec
|
||||||
Standards-Version: 3.9.1
|
Standards-Version: 3.9.1
|
||||||
Homepage: http://www.softether.org/
|
Homepage: http://www.softether.org/
|
||||||
|
|
||||||
|
8
debian/rules
vendored
8
debian/rules
vendored
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
export DH_VERBOSE=1
|
export DH_VERBOSE=1
|
||||||
|
export CMAKE_INSTALL_PREFIX=`pwd`/../../usr
|
||||||
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
|
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
|
||||||
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
|
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_configure: configure_config
|
||||||
|
|
||||||
|
override_dh_auto_make:
|
||||||
|
make -C tmp
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
rm -fr Makefile* usr bin tmp src/bin/BuiltHamcoreFiles
|
rm -fr Makefile* usr bin tmp src/bin/BuiltHamcoreFiles
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
patch -f < debian/makefile.patch
|
make -C tmp install
|
||||||
mkdir -p usr/bin
|
|
||||||
make install
|
|
||||||
|
|
||||||
configure_config:
|
configure_config:
|
||||||
if [ $(shell uname -m) = 'x86_64' ]; then echo -e "1\n2\n" | ./configure; fi
|
if [ $(shell uname -m) = 'x86_64' ]; then echo -e "1\n2\n" | ./configure; fi
|
||||||
|
2
debian/softether-vpnbridge.install
vendored
2
debian/softether-vpnbridge.install
vendored
@ -1,3 +1,3 @@
|
|||||||
#! /usr/bin/dh-exec
|
#! /usr/bin/dh-exec
|
||||||
debian/bin/vpnbridge usr/bin/
|
debian/bin/vpnbridge usr/bin/
|
||||||
usr/vpnbridge opt/
|
usr/bin/vpnbridge opt/
|
||||||
|
2
debian/softether-vpnclient.install
vendored
2
debian/softether-vpnclient.install
vendored
@ -1,3 +1,3 @@
|
|||||||
#! /usr/bin/dh-exec
|
#! /usr/bin/dh-exec
|
||||||
debian/bin/vpnclient usr/bin/
|
debian/bin/vpnclient usr/bin/
|
||||||
usr/vpnclient opt/
|
usr/bin/vpnclient opt/
|
||||||
|
2
debian/softether-vpncmd.install
vendored
2
debian/softether-vpncmd.install
vendored
@ -1,3 +1,3 @@
|
|||||||
#! /usr/bin/dh-exec
|
#! /usr/bin/dh-exec
|
||||||
debian/bin/vpncmd usr/bin/
|
debian/bin/vpncmd usr/bin/
|
||||||
usr/vpncmd opt/
|
usr/bin/vpncmd opt/
|
||||||
|
2
debian/softether-vpnserver.install
vendored
2
debian/softether-vpnserver.install
vendored
@ -1,3 +1,3 @@
|
|||||||
#! /usr/bin/dh-exec
|
#! /usr/bin/dh-exec
|
||||||
debian/bin/vpnserver usr/bin/
|
debian/bin/vpnserver usr/bin/
|
||||||
usr/vpnserver opt/
|
usr/bin/vpnserver opt/
|
||||||
|
Loading…
Reference in New Issue
Block a user