1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2026-09-19 09:51:28 +03:00
Commit Graph

22 Commits

Author SHA1 Message Date
Ilya Shipitsin c3e505de95 Merge pull request #2298 from realmeylisdev/configure-cpack-macos
configure: select TGZ rather than DEB for CPack on macOS
2026-08-29 10:21:48 +02:00
Meylis Annagurbanov 26270939d5 configure: select TGZ rather than DEB for CPack on macOS
configure picks the CPack generator by probing for an rpm executable: if
present it selects RPM, otherwise it falls through to DEB. macOS has neither,
so it selects DEB, which is not a meaningful package format there.

Add a Darwin branch selecting TGZ, which always works. An explicit
CPACK_GENERATOR in the environment still takes precedence, so anyone wanting
productbuild or DragNDrop can ask for it.

This only affects 'make package'; ordinary builds never read CPACK_GENERATOR,
which is why macOS CI is unaffected.
2026-08-29 11:06:04 +05:00
Meylis Annagurbanov 9a7d618a60 configure: ask brew for the OpenSSL prefix on macOS
On macOS, configure exports a hardcoded OPENSSL_ROOT_DIR of
/usr/local/opt/openssl/. That is the Homebrew prefix on Intel Macs; on Apple
Silicon Homebrew installs to /opt/homebrew, so the directory does not exist.

Nothing is broken today: CMake's FindOpenSSL treats OPENSSL_ROOT_DIR as a
hint rather than an exclusive search path, so it ignores the dead directory
and finds OpenSSL anyway. The problem is the log line, which confidently
names a path that exists on no Apple Silicon machine and sends anyone
debugging an OpenSSL pickup down a false trail.

Ask brew for the real prefix, preferring openssl@3 and falling back to
openssl, and keep the previous value as a last resort so behaviour is
unchanged where Homebrew is absent.
2026-08-29 11:06:03 +05:00
Davide Beatrici 369a8850c4 CMake: don't hardcode build directories
Our CMake project used to forcefully create and use two different build directories: "build" and "tmp".

This commit changes the behavior so that only the build directory CMake is ran in is used.

The "configure" script now runs CMake in "build" by default, instead of "tmp".
2020-07-20 18:31:41 +02:00
Koichiro IWAO a6652fead2 configure: respect environment CMAKE_FLAGS 2020-03-20 20:59:29 +09:00
Daiyuu Nobori 63c01ba736 Merge pull request #832 from dnobori/181202_switch_to_apache_license
Switching license from GPLv2 to Apache License 2.0.
2019-01-21 09:36:19 +09:00
Ilya Shipitsin 07c5716374 configure: allow to specify CPACK_GENERATOR explicitly 2018-12-15 22:32:19 +05:00
Daiyuu Nobori 16ed2f3e0c Documents: Switching license from GPLv2 to Apache License 2.0. 2018-12-02 09:37:24 +09:00
Davide Beatrici 4e7d946214 configure: set build type to "RelWithDebInfo" 2018-11-18 04:18:51 +01:00
Ilya Shipitsin a5c63a8ed7 configure: detect "rpm" instead of "rpmbuild" 2018-08-18 00:48:27 +05:00
Davide Beatrici de656ba1a7 CMake: add support for RPM packaging with CPack 2018-08-13 05:48:45 +02:00
Ilya Shipitsin 099eedf99e configure: stop on any error 2018-08-11 11:40:44 +05:00
Andy Walsh 0bbf08fea7 cmake: lib cleanup and use cmake package_find
* use OPENSSL_ROOT_DIR
* add special .configure handling for osx
* move readline, curses to cedar

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2018-07-31 18:11:13 +02:00
Ilya Shipitsin be0ebb65c1 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
2018-06-28 13:23:21 +02:00
Davide Beatrici f65ae2bf7d Replace hand-written Makefiles with CMake (#518)
* src: remove makefiles

* .gitignore: remove CMakeLists.txt

* README.md: add CMake to the required packages

* debian: add CMake to the dependencies

* Travis CI: specify Makefile directory

* Replace hand-written Makefiles with CMake
2018-05-22 22:20:41 +02:00
dnobori 4df2eb4f9c v4.22-9634-beta 2016-11-27 17:43:14 +09:00
Bernhard Rosenkränzer ccc9def495 Try to autodetect OS and CPU instead of requiring user input 2014-08-18 13:48:08 +02:00
dnobori d2be460d7c v4.05-9418-beta 2014-02-06 13:20:11 +09:00
dnobori bb853cc18b v4.05-9416-beta 2014-02-06 01:36:42 +09:00
Renaud Allard 02ddb08236 Enable compilation on OpenBSD 2014-02-05 11:28:28 +01:00
dnobori d1bc9c57c5 v4.03-9411-rtm 2014-01-07 05:40:52 +09:00
dnobori 749497dde0 v4.03-9408-rtm 2014-01-04 22:00:08 +09:00