fix CPACK build dependency

This commit is contained in:
Ryo Nakamura
2022-11-20 18:02:13 +09:00
parent b6b283f8b5
commit e22bc5523b
4 changed files with 58 additions and 27 deletions

View File

@@ -44,35 +44,27 @@ patch introduces asynchronous SFTP Write, which is derived from
https://github.com/limes-datentechnik-gmbh/libssh (see [Re: SFTP Write
async](https://archive.libssh.org/libssh/2020-06/0000004.html)).
- macOS
```console
brew install openssl
```
- ubuntu
```console
sudo apt-get install zlib1g-dev libssl-dev libkrb5-dev
```
Clone and build this repositoy.
Currently macOS and Linux (Ubuntu, CentOS, Rocky) are supported.
```console
# 1. clone this repository
git clone https://github.com/upa/mscp.git
cd mscp
# prepare patched libssh
# 2. install build dependency
bash ./scripts/install-build-deps.sh
# 3. prepare patched libssh
git submodule init
git submodule update
cd libssh && git apply ../patch/libssh-0.10.4.patch
# configure mscp
# 4. configure mscp
cd ..
mkdir build && mv build
cmake ..
# in macOS, you may need OPENSSL_ROOT_DIR for cmake like:
## in macOS, you may need OPENSSL_ROOT_DIR for cmake like:
cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl
# build