summaryrefslogtreecommitdiff
path: root/net/megacmd
diff options
context:
space:
mode:
Diffstat (limited to 'net/megacmd')
-rw-r--r--net/megacmd/Makefile25
-rw-r--r--net/megacmd/distinfo10
-rw-r--r--net/megacmd/files/patch-Makefile.am17
-rw-r--r--net/megacmd/files/patch-configure.ac33
-rw-r--r--net/megacmd/files/patch-sdk_Makefile.am17
-rw-r--r--net/megacmd/files/patch-sdk_configure.ac140
-rw-r--r--net/megacmd/files/patch-sdk_include_mega_http.h11
-rw-r--r--net/megacmd/files/patch-sdk_include_mega_posix_megafs.h11
-rw-r--r--net/megacmd/files/patch-sdk_include_mega_posix_megasys.h12
-rw-r--r--net/megacmd/files/patch-sdk_src_http.cpp14
-rw-r--r--net/megacmd/files/patch-sdk_src_include.am19
-rw-r--r--net/megacmd/files/patch-sdk_src_mega__evt__tls.cpp16
-rw-r--r--net/megacmd/files/patch-src_megacmdshell_megacmdshellcommunications.cpp11
-rw-r--r--net/megacmd/files/pkg-message.in10
-rw-r--r--net/megacmd/pkg-plist5
15 files changed, 321 insertions, 30 deletions
diff --git a/net/megacmd/Makefile b/net/megacmd/Makefile
index 0363847c4e86..285fbcb6f0ae 100644
--- a/net/megacmd/Makefile
+++ b/net/megacmd/Makefile
@@ -1,6 +1,5 @@
PORTNAME= megacmd
-DISTVERSION= 1.6.3
-PORTREVISION= 3
+DISTVERSION= 1.7.0
DISTVERSIONSUFFIX= _Linux
CATEGORIES= net
@@ -11,17 +10,22 @@ WWW= https://mega.nz/cm
LICENSE= GPLv3 BSD2CLAUSE
LICENSE_COMB= multi
-LIB_DEPENDS= libcares.so:dns/c-ares libcryptopp.so:security/cryptopp \
- libcurl.so:ftp/curl libsodium.so:security/libsodium \
- libuv.so:devel/libuv libpcre.so:devel/pcre
+LIB_DEPENDS= libcares.so:dns/c-ares \
+ libcryptopp.so:security/cryptopp \
+ libcurl.so:ftp/curl \
+ libicudata.so:devel/icu \
+ libpcre.so:devel/pcre \
+ libsodium.so:security/libsodium \
+ libuv.so:devel/libuv
-USES= autoreconf libtool sqlite:3 readline shebangfix ssl pathfix
+USES= autoreconf gmake libtool pathfix readline shebangfix sqlite:3 \
+ ssl
USE_GITHUB= yes
GH_ACCOUNT= meganz
GH_PROJECT= MEGAcmd sdk:sdk
GH_SUBDIR= sdk:sdk
-GH_TAGNAME= v4.17.1d:sdk
+GH_TAGNAME= v4.31.0b:sdk
USE_LDCONFIG= yes
@@ -42,6 +46,13 @@ CONFIGURE_ARGS= --disable-examples \
.include <bsd.port.options.mk>
+.if ${OPSYS} == DragonFly
+BUILD_DEPENDS+= cxxfs_gcc8>0:misc/cxxfs_gcc8
+SUB_FILES= pkg-message
+CXXFLAGS+= -isystem ${LOCALBASE}/cxxfs_gcc8
+LDFLAGS+= -L${LOCALBASE}/cxxfs_gcc8
+.endif
+
.if ${ARCH} == i386 || ${ARCH} == amd64
CXXFLAGS+= -DCRYPTOPP_DISABLE_ASM
.endif
diff --git a/net/megacmd/distinfo b/net/megacmd/distinfo
index 7e68fcd902bf..35a8b5d000da 100644
--- a/net/megacmd/distinfo
+++ b/net/megacmd/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1683991308
-SHA256 (meganz-MEGAcmd-1.6.3_Linux_GH0.tar.gz) = d0378d2a6787f72467eadf27c82145f232b456bc7cd8719abb0ce51e7f719796
-SIZE (meganz-MEGAcmd-1.6.3_Linux_GH0.tar.gz) = 2085751
-SHA256 (meganz-sdk-v4.17.1d_GH0.tar.gz) = a9d3fffd6ecdfac4005cc84b9972a36b28aeb049febd4c688c537f4f097aaeec
-SIZE (meganz-sdk-v4.17.1d_GH0.tar.gz) = 3695020
+TIMESTAMP = 1716448787
+SHA256 (meganz-MEGAcmd-1.7.0_Linux_GH0.tar.gz) = 32aa9863ab4c8c4c2497bf1734b59a23086985bc67a90e88d8599fe2a2bf1b89
+SIZE (meganz-MEGAcmd-1.7.0_Linux_GH0.tar.gz) = 2124305
+SHA256 (meganz-sdk-v4.31.0b_GH0.tar.gz) = b81812578f7c5c689f7f221b0a07f1b0a17712f4b662c7c497946555991c0d1a
+SIZE (meganz-sdk-v4.31.0b_GH0.tar.gz) = 3592431
diff --git a/net/megacmd/files/patch-Makefile.am b/net/megacmd/files/patch-Makefile.am
new file mode 100644
index 000000000000..81e1616a8731
--- /dev/null
+++ b/net/megacmd/files/patch-Makefile.am
@@ -0,0 +1,17 @@
+--- Makefile.am.orig 2024-05-20 12:29:43 UTC
++++ Makefile.am
+@@ -39,6 +39,14 @@ endif
+ AM_LIBTOOLFLAGS="--tag=CXX"
+ endif
+
++if DRAGONFLY
++AM_LIBTOOLFLAGS="--tag=CXX"
++endif
++
++if NETBSD
++AM_LIBTOOLFLAGS="--tag=CXX"
++endif
++
+ VERSION_INFO=$(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+
+ CLEANFILES=
diff --git a/net/megacmd/files/patch-configure.ac b/net/megacmd/files/patch-configure.ac
new file mode 100644
index 000000000000..95071e8386b4
--- /dev/null
+++ b/net/megacmd/files/patch-configure.ac
@@ -0,0 +1,33 @@
+--- configure.ac.orig 2024-05-20 12:29:43 UTC
++++ configure.ac
+@@ -209,6 +209,8 @@ LINUX=no
+ DARWIN=no
+ ANDROID=no
+ LINUX=no
++DRAGONFLY=no
++NETBSD=no
+ AC_MSG_CHECKING([if building for Win32 platform])
+ case $host in
+ *-*-cygwin*)
+@@ -231,6 +233,12 @@ case $host in
+ *-linux*)
+ LINUX=yes
+ ;;
++ *-dragonfly*)
++ DRAGONFLY=yes
++ ;;
++ *-netbsd*)
++ NETBSD=yes
++ ;;
+ *)
+ LIBS_EXTRA=""
+ ;;
+@@ -240,6 +248,8 @@ AM_CONDITIONAL([LINUX], [test "${LINUX}" = "yes"])
+ AM_CONDITIONAL([DARWIN], [test "${DARWIN}" = "yes"])
+ AM_CONDITIONAL([ANDROID], [test "${ANDROID}" = "yes"])
+ AM_CONDITIONAL([LINUX], [test "${LINUX}" = "yes"])
++AM_CONDITIONAL([DRAGONFLY], [test "${DRAGONFLY}" = "yes"])
++AM_CONDITIONAL([NETBSD], [test "${NETBSD}" = "yes"])
+
+ SAVE_LDFLAGS=$LDFLAGS
+ SAVE_CXXFLAGS=$CXXFLAGS
diff --git a/net/megacmd/files/patch-sdk_Makefile.am b/net/megacmd/files/patch-sdk_Makefile.am
new file mode 100644
index 000000000000..8707a3f4bc01
--- /dev/null
+++ b/net/megacmd/files/patch-sdk_Makefile.am
@@ -0,0 +1,17 @@
+--- sdk/Makefile.am.orig 2024-05-17 14:19:43 UTC
++++ sdk/Makefile.am
+@@ -46,6 +46,14 @@ endif
+ AM_LIBTOOLFLAGS="--tag=CXX"
+ endif
+
++if DRAGONFLY
++AM_LIBTOOLFLAGS="--tag=CXX"
++endif
++
++if NETBSD
++AM_LIBTOOLFLAGS="--tag=CXX"
++endif
++
+ VERSION_INFO=$(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+
+ CLEANFILES=
diff --git a/net/megacmd/files/patch-sdk_configure.ac b/net/megacmd/files/patch-sdk_configure.ac
new file mode 100644
index 000000000000..9328d1669b1f
--- /dev/null
+++ b/net/megacmd/files/patch-sdk_configure.ac
@@ -0,0 +1,140 @@
+--- sdk/configure.ac.orig 2024-05-17 14:19:43 UTC
++++ sdk/configure.ac
+@@ -208,6 +208,8 @@ LINUX=no
+ DARWIN=no
+ ANDROID=no
+ LINUX=no
++DRAGONFLY=no
++NETBSD=no
+ AC_MSG_CHECKING([platform options])
+ case $host in
+ *-*-cygwin*)
+@@ -238,6 +240,12 @@ case $host in
+ *-linux*)
+ LINUX=yes
+ ;;
++ *-dragonfly*)
++ DRAGONFLY=yes
++ ;;
++ *-netbsd*)
++ NETBSD=yes
++ ;;
+ *)
+ LIBS_EXTRA=""
+ ;;
+@@ -247,6 +255,8 @@ AM_CONDITIONAL([LINUX], [test "${LINUX}" = "yes"])
+ AM_CONDITIONAL([DARWIN], [test "${DARWIN}" = "yes"])
+ AM_CONDITIONAL([ANDROID], [test "${ANDROID}" = "yes"])
+ AM_CONDITIONAL([LINUX], [test "${LINUX}" = "yes"])
++AM_CONDITIONAL([DRAGONFLY], [test "${DRAGONFLY}" = "yes"])
++AM_CONDITIONAL([NETBSD], [test "${NETBSD}" = "yes"])
+
+ AC_SUBST(LIBS_EXTRA)
+
+@@ -1369,6 +1379,7 @@ cares=false
+ #
+ openssl=false
+ cares=false
++rt=undef
+ if test "x$WIN32" = "xno" ; then
+
+ AC_ARG_WITH([poll],
+@@ -1381,12 +1392,71 @@ if test "x$WIN32" = "xno" ; then
+ LDFLAGS="-pthread $LDFLAGS"
+ fi
+
+- # librt #TODO: allow --with-rt=...
+- AC_CHECK_LIB([rt], [aio_write], [
+- SAVE_LDFLAGS="-lrt $SAVE_LDFLAGS"
+- LDFLAGS="-lrt $LDFLAGS"
+- AC_DEFINE(HAVE_AIO_RT, [1], [Define to indicate AIO presence in librt])
+- ],
++ # librt
++ AC_MSG_CHECKING(for rt)
++ AC_ARG_WITH([rt],
++ AS_HELP_STRING(--with-rt=PATH, base of Real-time Library installation),
++ [
++ case $with_rt in
++ no)
++ AC_MSG_RESULT([no])
++
++ rt=false
++ ;;
++ yes)
++ AC_CHECK_HEADERS([aio.h], [],
++ AC_MSG_ERROR([aio.h header not found or not usable])
++ )
++ AC_CHECK_LIB(rt, [aio_write], [LIBRT_LIBS="$LIBRT_LIBS -lrt"],
++ AC_MSG_ERROR([Could not find rt library!])
++ )
++
++ AC_SUBST(LIBRT_LIBS)
++ rt=true
++ ;;
++ *)
++ # determine if library is installed
++ if test -d "$with_rt/lib"; then
++ LDFLAGS="-L$with_rt/lib $LDFLAGS"
++ CXXFLAGS="-I$with_rt/include $CXXFLAGS"
++
++ AC_CHECK_HEADERS([aio.h], [
++ LIBRT_LDFLAGS="-L$with_rt/lib"
++ LIBRT_CXXFLAGS="-I$with_rt/include"],
++ AC_MSG_ERROR([aio.h header not found or not usable])
++ )
++
++ AC_CHECK_LIB(rt, [aio_write], [LIBRT_LIBS="$LIBRT_LIBS -lrt"],
++ AC_MSG_ERROR([Could not find rt library!])
++ )
++ else
++ AC_MSG_ERROR([Could not find rt library in "$with_rt/lib"!])
++ fi
++
++ AC_SUBST(LIBRT_LDFLAGS)
++ AC_SUBST(LIBRT_CXXFLAGS)
++ AC_SUBST(LIBRT_LIBS)
++ rt=true
++
++ #restore
++ LDFLAGS=$SAVE_LDFLAGS
++ CXXFLAGS=$SAVE_CXXFLAGS
++ ;;
++ esac
++ ],
++ [
++ AC_MSG_RESULT([--with-rt not specified])
++
++ AC_CHECK_HEADERS([aio.h], [],
++ AC_MSG_ERROR([aio.h header not found or not usable])
++ )
++ AC_CHECK_LIB(rt, [aio_write], [LIBRT_LIBS="$LIBRT_LIBS -lrt"],
++ AC_MSG_NOTICE([Could not find librt])
++ )
++
++ AC_SUBST(LIBRT_LIBS)
++ rt=true
++ ]
+ )
+
+ # OpenSSL
+@@ -1617,6 +1687,12 @@ fi
+ fi
+
+ # define on all platforms
++AM_CONDITIONAL(HAVE_RT, test x$rt = xtrue)
++if test "x$rt" = "xtrue" ; then
++ AC_DEFINE(HAVE_AIO_RT, [1], [Define to indicate AIO presence in librt])
++fi
++
++# define on all platforms
+ AM_CONDITIONAL(HAVE_OPENSSL, test x$openssl = xtrue)
+ if test "x$openssl" = "xtrue" ; then
+ AC_DEFINE(USE_OPENSSL, [1], [Define to use OpenSSL])
+@@ -2308,6 +2384,7 @@ AC_MSG_NOTICE([Configured to build Mega SDK:
+ PCRE: $PCRE_CXXFLAGS $PCRE_LDFLAGS $PCRE_LIBS
+ LIBUV: $LIBUV_CXXFLAGS $LIBUV_LDFLAGS $LIBUV_LIBS
+ LIBRAW: $LIBRAW_CXXFLAGS $LIBRAW_LDFLAGS $LIBRAW_LIBS
++ LIBRT: $LIBRT_CXXFLAGS $LIBRT_LDFLAGS $LIBRT_LIBS
+ LIBMEDIAINFO: $LIBMEDIAINFO_CXXFLAGS $LIBMEDIAINFO_LDFLAGS $LIBMEDIAINFO_LIBS
+ FFMPEG: $FFMPEG_CXXFLAGS $FFMPEG_LDFLAGS $FFMPEG_LIBS
+
diff --git a/net/megacmd/files/patch-sdk_include_mega_http.h b/net/megacmd/files/patch-sdk_include_mega_http.h
new file mode 100644
index 000000000000..f003143a584a
--- /dev/null
+++ b/net/megacmd/files/patch-sdk_include_mega_http.h
@@ -0,0 +1,11 @@
+--- sdk/include/mega/http.h.orig 2024-05-17 14:19:43 UTC
++++ sdk/include/mega/http.h
+@@ -42,7 +42,7 @@
+ #pragma warning(pop)
+ #endif
+
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ #include <netinet/in.h>
+ #endif
+
diff --git a/net/megacmd/files/patch-sdk_include_mega_posix_megafs.h b/net/megacmd/files/patch-sdk_include_mega_posix_megafs.h
new file mode 100644
index 000000000000..390f01dacb47
--- /dev/null
+++ b/net/megacmd/files/patch-sdk_include_mega_posix_megafs.h
@@ -0,0 +1,11 @@
+--- sdk/include/mega/posix/megafs.h.orig 2024-05-17 14:19:43 UTC
++++ sdk/include/mega/posix/megafs.h
+@@ -32,7 +32,7 @@
+ #define O_DIRECT 0
+ #include <sys/param.h>
+ #include <sys/mount.h>
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ #include <sys/mount.h>
+ #else
+ #include <sys/vfs.h>
diff --git a/net/megacmd/files/patch-sdk_include_mega_posix_megasys.h b/net/megacmd/files/patch-sdk_include_mega_posix_megasys.h
new file mode 100644
index 000000000000..b7d9ce1632c1
--- /dev/null
+++ b/net/megacmd/files/patch-sdk_include_mega_posix_megasys.h
@@ -0,0 +1,12 @@
+--- sdk/include/mega/posix/megasys.h.orig 2024-05-17 14:19:43 UTC
++++ sdk/include/mega/posix/megasys.h
+@@ -99,7 +99,8 @@
+ #include <endian.h>
+ #endif
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__minix)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__minix) || \
++ defined(__OpenBSD__)
+ #include <sys/endian.h>
+ #endif
+
diff --git a/net/megacmd/files/patch-sdk_src_http.cpp b/net/megacmd/files/patch-sdk_src_http.cpp
new file mode 100644
index 000000000000..45e342b59077
--- /dev/null
+++ b/net/megacmd/files/patch-sdk_src_http.cpp
@@ -0,0 +1,14 @@
+--- sdk/src/http.cpp.orig 2024-05-17 14:19:43 UTC
++++ sdk/src/http.cpp
+@@ -270,7 +270,11 @@ void HttpIO::getMEGADNSservers(string *dnsservers, boo
+ hints.ai_family = AF_UNSPEC;
+
+ #ifndef __MINGW32__
++#if defined(__NetBSD__) || defined(__OpenBSD__)
++ hints.ai_flags = AI_ADDRCONFIG;
++#else
+ hints.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG;
++#endif
+ #endif
+
+ if (!getaddrinfo("ns.mega.co.nz", NULL, &hints, &aiList))
diff --git a/net/megacmd/files/patch-sdk_src_include.am b/net/megacmd/files/patch-sdk_src_include.am
new file mode 100644
index 000000000000..3b4543a1007f
--- /dev/null
+++ b/net/megacmd/files/patch-sdk_src_include.am
@@ -0,0 +1,19 @@
+--- sdk/src/include.am.orig 2024-05-17 14:19:43 UTC
++++ sdk/src/include.am
+@@ -5,14 +5,14 @@ else
+ if WIN32
+ src_libmega_la_CXXFLAGS = -D_WIN32=1 -Iinclude/ -Iinclude/mega/win32 $(LIBS_EXTRA) $(ZLIB_CXXFLAGS) $(LIBUV_CXXFLAGS) $(LIBRAW_CXXFLAGS) $(LIBMEDIAINFO_CXXFLAGS) $(FFMPEG_CXXFLAGS) $(CRYPTO_CXXFLAGS) $(SODIUM_CXXFLAGS) $(DB_CXXFLAGS) $(CXXFLAGS) $(WINHTTP_CXXFLAGS) $(FI_CXXFLAGS) $(PDF_CXXFLAGS) $(ICU_CXXFLAGS) $(PCRE_CXXFLAGS)
+ else
+-src_libmega_la_CXXFLAGS = $(CARES_FLAGS) $(LIBCURL_FLAGS) $(ZLIB_CXXFLAGS) $(LIBUV_CXXFLAGS) $(LIBRAW_CXXFLAGS) $(LIBMEDIAINFO_CXXFLAGS) $(FFMPEG_CXXFLAGS) $(CRYPTO_CXXFLAGS) $(SODIUM_CXXFLAGS) $(DB_CXXFLAGS) $(FI_CXXFLAGS) $(PDF_CXXFLAGS) $(ICU_CXXFLAGS) $(LIBSSL_FLAGS) $(PCRE_CXXFLAGS)
++src_libmega_la_CXXFLAGS = $(CARES_FLAGS) $(LIBCURL_FLAGS) $(ZLIB_CXXFLAGS) $(LIBUV_CXXFLAGS) $(LIBRAW_CXXFLAGS) $(LIBRT_CXXFLAGS) $(LIBMEDIAINFO_CXXFLAGS) $(FFMPEG_CXXFLAGS) $(CRYPTO_CXXFLAGS) $(SODIUM_CXXFLAGS) $(DB_CXXFLAGS) $(FI_CXXFLAGS) $(PDF_CXXFLAGS) $(ICU_CXXFLAGS) $(LIBSSL_FLAGS) $(PCRE_CXXFLAGS)
+ endif
+
+ # Libs
+ if WIN32
+ src_libmega_la_LIBADD = $(LIBS_EXTRA) $(FFMPEG_LDFLAGS) $(FFMPEG_LIBS) $(LIBUV_LDFLAGS) $(LIBUV_LIBS) $(LIBRAW_LDFLAGS) $(LIBRAW_LIBS) $(LIBMEDIAINFO_LDFLAGS) $(LIBMEDIAINFO_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(CRYPTO_LDFLAGS) $(CRYPTO_LIBS) $(SODIUM_LDFLAGS) $(SODIUM_LIBS) $(DB_LDFLAGS) $(DB_LIBS) $(WINHTTP_LDFLAGS) $(WINHTTP_LIBS) $(FI_LDFLAGS) $(FI_LIBS) $(PDF_LDFLAGS) $(PDF_LIBS) $(ICU_LDFLAGS) $(ICU_LIBS) $(PCRE_LDFLAGS) $(PCRE_LIBS)
+ else
+-src_libmega_la_LIBADD = $(CARES_LDFLAGS) $(CARES_LIBS) $(LIBCURL_LIBS) $(FFMPEG_LDFLAGS) $(FFMPEG_LIBS) $(LIBUV_LDFLAGS) $(LIBUV_LIBS) $(LIBRAW_LDFLAGS) $(LIBRAW_LIBS) $(LIBMEDIAINFO_LDFLAGS) $(LIBMEDIAINFO_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(CRYPTO_LDFLAGS) $(CRYPTO_LIBS) $(SODIUM_LDFLAGS) $(SODIUM_LIBS) $(DB_LDFLAGS) $(DB_LIBS) $(FI_LDFLAGS) $(FI_LIBS) $(PDF_LDFLAGS) $(PDF_LIBS) $(ICU_LDFLAGS) $(ICU_LIBS) $(LIBSSL_LDFLAGS) $(LIBSSL_LIBS) $(PCRE_LDFLAGS) $(PCRE_LIBS)
++src_libmega_la_LIBADD = $(CARES_LDFLAGS) $(CARES_LIBS) $(LIBCURL_LIBS) $(FFMPEG_LDFLAGS) $(FFMPEG_LIBS) $(LIBUV_LDFLAGS) $(LIBUV_LIBS) $(LIBRAW_LDFLAGS) $(LIBRAW_LIBS) $(LIBRT_LDFLAGS) $(LIBRT_LIBS) $(LIBMEDIAINFO_LDFLAGS) $(LIBMEDIAINFO_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(CRYPTO_LDFLAGS) $(CRYPTO_LIBS) $(SODIUM_LDFLAGS) $(SODIUM_LIBS) $(DB_LDFLAGS) $(DB_LIBS) $(FI_LDFLAGS) $(FI_LIBS) $(PDF_LDFLAGS) $(PDF_LIBS) $(ICU_LDFLAGS) $(ICU_LIBS) $(LIBSSL_LDFLAGS) $(LIBSSL_LIBS) $(PCRE_LDFLAGS) $(PCRE_LIBS)
+ endif
+
+ # add library version
diff --git a/net/megacmd/files/patch-sdk_src_mega__evt__tls.cpp b/net/megacmd/files/patch-sdk_src_mega__evt__tls.cpp
deleted file mode 100644
index 9c0eb637365f..000000000000
--- a/net/megacmd/files/patch-sdk_src_mega__evt__tls.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
---- sdk/src/mega_evt_tls.cpp.orig 2023-06-13 08:00:40 UTC
-+++ sdk/src/mega_evt_tls.cpp
-@@ -64,9 +64,13 @@ static void tls_begin(void)
- {
- SSL_library_init();
- SSL_load_error_strings();
-+#if OPENSSL_VERSION_NUMBER >= 0x30000000L
-+ OpenSSL_add_all_algorithms();
-+#else
- ERR_load_BIO_strings();
- OpenSSL_add_all_algorithms();
- ERR_load_crypto_strings();
-+#endif
- }
-
- evt_tls_t *evt_ctx_get_tls(evt_ctx_t *d_eng)
diff --git a/net/megacmd/files/patch-src_megacmdshell_megacmdshellcommunications.cpp b/net/megacmd/files/patch-src_megacmdshell_megacmdshellcommunications.cpp
new file mode 100644
index 000000000000..887a54743ebe
--- /dev/null
+++ b/net/megacmd/files/patch-src_megacmdshell_megacmdshellcommunications.cpp
@@ -0,0 +1,11 @@
+--- src/megacmdshell/megacmdshellcommunications.cpp.orig 2024-05-20 12:29:43 UTC
++++ src/megacmdshell/megacmdshellcommunications.cpp
+@@ -55,7 +55,7 @@
+ #include <limits.h>
+ #endif
+
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ #include <netinet/in.h>
+ #endif
+
diff --git a/net/megacmd/files/pkg-message.in b/net/megacmd/files/pkg-message.in
new file mode 100644
index 000000000000..916fdb8610d0
--- /dev/null
+++ b/net/megacmd/files/pkg-message.in
@@ -0,0 +1,10 @@
+[
+{ type: install
+ message: <<EOM
+To use %%PORTNAME%% features on DragonFly you need to generate a machine-id.
+For that, run the following command as root:
+
+# dbus-uuidgen --ensure
+EOM
+}
+]
diff --git a/net/megacmd/pkg-plist b/net/megacmd/pkg-plist
index f8d2a8a49cdf..9efb7490a8b4 100644
--- a/net/megacmd/pkg-plist
+++ b/net/megacmd/pkg-plist
@@ -103,6 +103,7 @@ include/mega/posix/megafs.h
include/mega/posix/meganet.h
include/mega/posix/megasys.h
include/mega/posix/megawaiter.h
+include/mega/process.h
include/mega/proxy.h
include/mega/pubkeyaction.h
include/mega/raid.h
@@ -126,6 +127,6 @@ include/mega/waiter.h
include/megaapi.h
include/megaapi_impl.h
lib/libmega.so
-lib/libmega.so.41701
-lib/libmega.so.41701.0.0
+lib/libmega.so.43000
+lib/libmega.so.43000.0.0
libdata/pkgconfig/libmega.pc