Ryo Nakamura
76892a69f9
do not build strlcat.c if HAVE_STRLCAT is true
2024-02-06 16:25:05 +09:00
Ryo Nakamura
c95e6a4fff
do not passing msg_fp via mscp opts
...
instead, mpr_* functions print messages to stdout or stderr directly.
2024-02-04 20:23:08 +09:00
Ryo Nakamura
ec663cc966
bump up container image versions and drop using CPack
...
We have already provided DEB packages in launchpad PPA and RPM packages
in COPR. Thus, we need no more deb/rpm packages in Github releases. The
single binary build of mscp is an execptio.
Updated container image versions:
- almalinux 8.8 -> 9.3
- rocky 8.8 -> 8.9, and 9.3 is added
- alpine 3.17 -> 3.19
2024-02-04 17:22:31 +09:00
Ryo Nakamura
d57ed4149d
drop python binding support
2024-02-04 16:18:27 +09:00
Ryo Nakamura
36e45cd5f3
change build target update-mscp-rst to update-rst
2024-02-04 11:50:14 +09:00
Ryo Nakamura
25207cf865
build deb sources inside a container
...
A new build target `build-deb` builds mscp deb inside a docker
container. All debuild -us -uc outputs are copied to build/debbuild
directory.
2024-02-04 11:35:20 +09:00
Ryo Nakamura
306a00ced5
build source rpm inside a container
...
A new build target `build-srpm` builds mscp src.rpm inside a docker
container. The src.rpm can be published at COPR.
2024-02-04 10:58:11 +09:00
Ryo Nakamura
7ab5cc3ce9
make it buildable at FreeBSD
2024-01-21 04:50:34 +09:00
Ryo Nakamura
60977a8e7a
update doc version
...
and remove --dirty from git-describe-based versioning
2024-01-18 13:52:26 +09:00
Ryo Nakamura
1479607efe
add manpage for mscp
...
doc/mscp.rst is generate from mscp.1 by make generate-mscp-rst.
README is also updateded to reference doc/mscp.rst.
2024-01-14 18:07:17 +09:00
Ryo Nakamura
abe94897ae
cmake: add INSTALL_EXECUTABLE_ONLY option
2023-12-10 17:06:57 +09:00
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