SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
14
net/owncloudclient/patches/patch-src_common_utility_cpp
Normal file
14
net/owncloudclient/patches/patch-src_common_utility_cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
Index: src/common/utility.cpp
|
||||
--- src/common/utility.cpp.orig
|
||||
+++ src/common/utility.cpp
|
||||
@@ -163,8 +163,8 @@ qint64 Utility::freeDiskSpace(const QString &path)
|
||||
return (qint64)stat.f_bavail * stat.f_frsize;
|
||||
}
|
||||
#elif defined(Q_OS_UNIX)
|
||||
- struct statvfs64 stat;
|
||||
- if (statvfs64(path.toLocal8Bit().data(), &stat) == 0) {
|
||||
+ struct statvfs stat;
|
||||
+ if (statvfs(path.toLocal8Bit().data(), &stat) == 0) {
|
||||
return (qint64)stat.f_bavail * stat.f_frsize;
|
||||
}
|
||||
#elif defined(Q_OS_WIN)
|
21
net/owncloudclient/patches/patch-src_gui_CMakeLists_txt
Normal file
21
net/owncloudclient/patches/patch-src_gui_CMakeLists_txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
Index: src/gui/CMakeLists.txt
|
||||
--- src/gui/CMakeLists.txt.orig
|
||||
+++ src/gui/CMakeLists.txt
|
||||
@@ -157,9 +157,14 @@ elseif(UNIX AND NOT APPLE)
|
||||
target_link_libraries(owncloudCore PUBLIC Qt5::DBus)
|
||||
target_compile_definitions(owncloudCore PUBLIC "USE_FDO_NOTIFICATIONS")
|
||||
endif()
|
||||
- target_sources(owncloudCore PRIVATE
|
||||
- folderwatcher_linux.cpp
|
||||
- guiutility_unix.cpp)
|
||||
+
|
||||
+ if(Inotify_FOUND)
|
||||
+ target_sources(owncloudCore PRIVATE
|
||||
+ folderwatcher_linux.cpp
|
||||
+ guiutility_unix.cpp)
|
||||
+ target_include_directories(owncloudCore PRIVATE ${Inotify_INCLUDE_DIRS})
|
||||
+ target_link_libraries(owncloudCore PUBLIC ${Inotify_LIBRARIES} )
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
if(WITH_AUTO_UPDATER)
|
17
net/owncloudclient/patches/patch-src_libsync_CMakeLists_txt
Normal file
17
net/owncloudclient/patches/patch-src_libsync_CMakeLists_txt
Normal file
|
@ -0,0 +1,17 @@
|
|||
Index: src/libsync/CMakeLists.txt
|
||||
--- src/libsync/CMakeLists.txt.orig
|
||||
+++ src/libsync/CMakeLists.txt
|
||||
@@ -3,12 +3,7 @@ set(LibreGraphAPIVersion v1.0.1)
|
||||
find_package(LibreGraphAPI QUIET)
|
||||
if (NOT TARGET OpenAPI::LibreGraphAPI)
|
||||
message(WARNING "Failed to find system OpenAPI::LibreGraphAPI: fetching ${LibreGraphAPIVersion}")
|
||||
- include(FetchContent)
|
||||
- FetchContent_Populate(LibreGraphAPISrc
|
||||
- QUIET
|
||||
- GIT_REPOSITORY https://github.com/owncloud/libre-graph-api-cpp-qt-client.git
|
||||
- GIT_TAG ${LibreGraphAPIVersion})
|
||||
- add_subdirectory(${libregraphapisrc_SOURCE_DIR}/client ${libregraphapisrc_BINARY_DIR}/client EXCLUDE_FROM_ALL)
|
||||
+ add_subdirectory(libregraphapisrc-src/client libregraphapisrc-src/client EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
|
||||
set(libsync_SRCS
|
12
net/owncloudclient/patches/patch-src_libsync_platform_cpp
Normal file
12
net/owncloudclient/patches/patch-src_libsync_platform_cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: src/libsync/platform.cpp
|
||||
--- src/libsync/platform.cpp.orig
|
||||
+++ src/libsync/platform.cpp
|
||||
@@ -46,7 +46,7 @@ std::unique_ptr<Platform> Platform::create()
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
return std::make_unique<WinPlatform>();
|
||||
-#elif defined(Q_OS_LINUX)
|
||||
+#elif defined(Q_OS_UNIX)
|
||||
return std::make_unique<UnixPlatform>();
|
||||
#elif defined(Q_OS_MAC)
|
||||
return std::make_unique<MacPlatform>();
|
Loading…
Add table
Add a link
Reference in a new issue