Ryo Nakamura
2b9061f5f0
add --sysctl net.ipv6.conf.all.disable_ipv6=0 for docker run.
...
docker disables ipv6 on all interfaces inside containers by default,
even ::1 on lo. It causes testing mscp with IPv6 fails. Thus,
this commit disables disable_ipv6 via the --sysctl option.
2023-11-01 19:54:18 +09:00
Ryo Nakamura
23d9577bde
introduce git-based versioning
...
MSCP_BUILD_VERSION (`git describe --tags --dirty --match "v*"`) is
passed through include/mscp_version.h.in and cmake.
When git is failed, use VERSION file instead (for building from
source tar balls that excludes .git).
2023-08-04 16:07:37 +09:00
Ryo Nakamura
5a4c043889
cmake: add docker-build no-cache target
2023-08-03 21:58:59 +09:00
Ryo Nakamura
9f7c135b15
cleanup wrappers for file operations
...
Previously wrapper functions for open(), opendir(), and stat(), etc,
are implemneted in path.h, and now they are in fileops.h and fileops.c.
This commit is a reparation for remote glob.
2023-08-03 17:07:39 +09:00
Ryo Nakamura
a847ef1ea8
drop centos8, add almalinux 8.8, update rocky to 8.8
...
And cleanup Docker files
2023-07-20 21:54:43 +09:00
Ryo Nakamura
6e17d0ddbc
remove VERSION from package file names
...
This change enables downloading latest packages from URL
https://github.com/upa/mscp/releases/latest/download/PACKAGE
2023-03-12 23:01:06 +09:00
Ryo Nakamura
d22c02b793
remove numpy from test, and fix compiling single binary mscp
2023-03-10 22:07:07 +09:00
Ryo Nakamura
e037294d3d
add include GNUInstallDirs
2023-03-10 21:11:59 +09:00
Ryo Nakamura
309371ed75
now make install installs libmscp
2023-03-10 21:10:06 +09:00
Ryo Nakamura
1e92ff9e77
fix CMakeLists to build libmscp on ubnutu 22.04
2023-03-10 20:29:46 +09:00
Ryo Nakamura
b3b7299990
merge main into lib
2023-03-10 20:11:44 +09:00
Ryo Nakamura
ca94d77e45
fix typo
2023-03-10 02:09:04 +09:00
Ryo Nakamura
34a0e0c891
add alpine docker to build mscp as a single binary
...
The build recipe in docker/alpine-3.17.Dockerfile uses conan to
build mscp as a single binary (with statically linked musl).
Now the mscp binary is portable!
2023-03-10 00:37:06 +09:00
Ryo Nakamura
c39ab7ce62
add conanfile.txt to compile mscp as a single binary
...
conan cmake build with -DBUILD_CONAN=ON and -DBUILD_STATIC=ON in
alpine make mscp as a single binary with statically linked musl.
2023-03-09 23:21:58 +09:00
Ryo Nakamura
c07bdd60e5
fix cmake: remove modification to libssh CMake
2023-03-09 22:32:42 +09:00
Ryo Nakamura
df2f922b0d
remove pprint, use message (mpr_*) instead.
...
ToDo:
main should use pipe to receive messages from libmscp.
2023-03-04 15:44:10 +09:00
Ryo Nakamura
1b9ae51974
add message.h and message.c, mscp_set|get_error()
...
Instead of pr_err(), libmscp uses mscp_set_error() and
applications use mscp_get_errror() to get error message.
2023-03-03 21:29:43 +09:00
Ryo Nakamura
700d64b375
now mscp links libmscp
2023-02-26 23:18:39 +09:00
Ryo Nakamura
89777032cd
have written mscp.c
2023-02-26 18:17:58 +09:00
Ryo Nakamura
3d26cc2c18
add copy-related functions to path
2023-02-25 23:39:20 +09:00
Ryo Nakamura
1be9b70808
start to impliment mscp as a library
...
this commit starts to refactor file.h|c to path.h|c and
add mscp.c|h. not completed yet.
2023-02-25 22:17:29 +09:00
Ryo Nakamura
3b794ab51b
remove unused code and introduce -b buf_sz option
...
This commit removes ifdef ASYNC_WRITE. So, mscp always depends on
the patched libssh.
2022-12-03 20:48:43 +09:00
Ryo Nakamura
e22bc5523b
fix CPACK build dependency
2022-11-20 18:03:56 +09:00
Ryo Nakamura
dc0dd60287
build libssh-static from mscp cmake
2022-11-20 16:14:07 +09:00
Ryo Nakamura
8e266517da
use list(LENGTH) to iterate DIST_ lists
2022-11-20 02:02:43 +09:00
Ryo Nakamura
8395c05d67
fix CMakeLists.txt
...
* install mscp from package at docker build phase.
* add docker-*-all custom targets.
2022-11-20 00:37:01 +09:00
Ryo Nakamura
04b7ec3e4b
cleanup docker-related commands in cmake
...
TODO: add bruild procedure for async_write
2022-11-19 23:40:29 +09:00
Ryo Nakamura
e1bddb85bd
cleanup CMakeLists.txt
...
* now mscp with async write is compilable on both macos and ubuntu
2022-11-18 21:51:43 +09:00
Ryo Nakamura
d448f9eb8a
implement local-to-remote copy with async_write
2022-11-17 21:46:21 +09:00
Ryo Nakamura
4d3c37382c
add libssh as submodule and LIBSSH_PATH to build mscp with static built
...
libssh.
2022-11-17 20:29:39 +09:00
Ryo Nakamura
8719b35694
add rocky 8.6 support
2022-11-13 17:53:46 +09:00
Ryo Nakamura
df404ec3c6
cleanup docker files and build/test procedure
2022-11-06 16:03:47 +09:00
Ryo Nakamura
e02c08f417
add CMAKE_PREFIX_PATH for macOS and use find_package for libssh
2022-11-05 22:05:00 +09:00
Ryo Nakamura
fc56c53d04
add install-build-deps.sh and fix docker build procedure
2022-11-05 21:26:34 +09:00
Ryo Nakamura
07b9d8ca55
add ctest to run pytest
2022-11-01 00:02:34 +09:00
Ryo Nakamura
77651305fd
add custom_target to build mscp in contaners through cmake
2022-10-31 02:40:54 +09:00
Ryo Nakamura
6f37260411
update CMakeLists.txt for build at centos
2022-10-30 23:30:54 +09:00
Ryo Nakamura
db8dba23f2
use /etc/os-release instead of lsb_release
2022-10-30 22:55:57 +09:00
Ryo Nakamura
02eef1be92
wrap build options inside if
2022-10-30 22:02:47 +09:00
Ryo Nakamura
453e8f27ce
add cpack to build debian package
2022-10-30 12:17:17 +00:00
Ryo Nakamura
2bcbdd2292
add install to cmake
2022-10-30 17:58:56 +09:00
Ryo Nakamura
96c10a700a
fix on debug compile
2022-10-30 07:41:49 +00:00
Ryo Nakamura
c495f6b89b
rename sscp to mscp
2022-10-30 15:20:05 +09:00
Ryo Nakamura
47f6983148
wrap print progress in pprint
2022-10-25 01:47:39 +09:00
Ryo Nakamura
d11ac58f4b
compilable in linux
2022-10-23 15:51:21 +09:00
Ryo Nakamura
def9cfeba7
implement fill_file
2022-10-16 22:12:03 +09:00
Ryo Nakamura
303a9eb974
initial commit
2022-10-15 21:59:25 +09:00