Update grive2 to the latest stable version from GitHub. Not tested because I have been Google free for a long time. A new MAINTAINER is welcome.
Cheers, Rafael Sadowski Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/grive2/Makefile,v retrieving revision 1.11 diff -u -p -u -p -r1.11 Makefile --- Makefile 12 Jul 2019 20:49:43 -0000 1.11 +++ Makefile 3 Oct 2020 06:18:01 -0000 @@ -2,33 +2,28 @@ COMMENT = third-party client for Google Drive -VERSION = 0.5.0 -DISTNAME = grive2-${VERSION} -REVISION = 2 - -CATEGORIES = sysutils +GH_ACCOUNT = vitalif +GH_PROJECT = grive2 +GH_COMMIT = 548ea362f319cd1f7fcbad0344fde8449fa14255 -MAINTAINER = Rafael Sadowski <rsadow...@openbsd.org> +DISTNAME = grive2-0.5.1 -HOMEPAGE = http://yourcmc.ru/wiki/Grive2 +CATEGORIES = sysutils -GH_ACCOUNT = vitalif -GH_PROJECT = grive2 -GH_COMMIT = ae06eccb38b2fe250c9ddeac3e3973f80b8a0aa9 +HOMEPAGE = http://yourcmc.ru/wiki/Grive2 # GPLv2 only PERMIT_PACKAGE = Yes -WANTLIB += boost_filesystem-mt boost_program_options-mt boost_regex-mt -WANTLIB += boost_system-mt boost_unit_test_framework-mt c curl -WANTLIB += expat gcrypt gpg-error iberty m pthread yajl z ${COMPILER_LIBCXX} +WANTLIB += ${COMPILER_LIBCXX} boost_filesystem-mt boost_program_options-mt +WANTLIB += boost_regex-mt boost_system-mt c curl gcrypt gpg-error +WANTLIB += iberty m yajl MODULES = devel/cmake COMPILER = base-clang ports-gcc CXXFLAGS += -I${LOCALBASE}/include - LIB_DEPENDS = devel/boost \ devel/libyajl \ Index: distinfo =================================================================== RCS file: /cvs/ports/sysutils/grive2/distinfo,v retrieving revision 1.3 diff -u -p -u -p -r1.3 distinfo --- distinfo 6 May 2017 15:10:18 -0000 1.3 +++ distinfo 3 Oct 2020 06:18:01 -0000 @@ -1,2 +1,2 @@ -SHA256 (grive2-0.5.0-ae06eccb.tar.gz) = oEWgC62rbFEVn9gwnghNQmr0AN69NXXlIgstcph7Zck= -SIZE (grive2-0.5.0-ae06eccb.tar.gz) = 162870 +SHA256 (grive2-0.5.1-548ea362.tar.gz) = wJIn9bDA483dfmpHEYa3sRNtOMb6DGC3hYgpiNzUd0A= +SIZE (grive2-0.5.1-548ea362.tar.gz) = 169931 Index: patches/patch-CMakeLists_txt =================================================================== RCS file: patches/patch-CMakeLists_txt diff -N patches/patch-CMakeLists_txt --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-CMakeLists_txt 3 Oct 2020 06:18:01 -0000 @@ -0,0 +1,20 @@ +$OpenBSD$ + +Index: CMakeLists.txt +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -1,5 +1,7 @@ + cmake_minimum_required(VERSION 2.8) + ++project(grive2) ++ + include(GNUInstallDirs) + + # Grive version. remember to update it for every new release! +@@ -12,4 +14,4 @@ add_definitions( -D_FILE_OFFSET_BITS=64 -std=c++0x ) + add_subdirectory( systemd ) + add_subdirectory( libgrive ) + add_subdirectory( grive ) +- +\ No newline at end of file ++ Index: patches/patch-grive_CMakeLists_txt =================================================================== RCS file: /cvs/ports/sysutils/grive2/patches/patch-grive_CMakeLists_txt,v retrieving revision 1.1.1.1 diff -u -p -u -p -r1.1.1.1 patch-grive_CMakeLists_txt --- patches/patch-grive_CMakeLists_txt 30 Nov 2015 11:56:15 -0000 1.1.1.1 +++ patches/patch-grive_CMakeLists_txt 3 Oct 2020 06:18:01 -0000 @@ -1,9 +1,13 @@ $OpenBSD: patch-grive_CMakeLists_txt,v 1.1.1.1 2015/11/30 11:56:15 sthen Exp $ ---- grive/CMakeLists.txt.orig Sun Oct 11 17:59:25 2015 -+++ grive/CMakeLists.txt Wed Nov 4 09:30:32 2015 -@@ -26,4 +26,4 @@ set_target_properties( grive_executable +Index: grive/CMakeLists.txt +--- grive/CMakeLists.txt.orig ++++ grive/CMakeLists.txt +@@ -25,7 +25,7 @@ set_target_properties( grive_executable ) install(TARGETS grive_executable RUNTIME DESTINATION bin) --install(FILES doc/grive.1 DESTINATION share/man/man1 ) +- +install(FILES doc/grive.1 DESTINATION man/man1 ) + if ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) + install(FILES doc/grive.1 DESTINATION man/man1 ) + else ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) Index: patches/patch-libgrive_CMakeLists_txt =================================================================== RCS file: /cvs/ports/sysutils/grive2/patches/patch-libgrive_CMakeLists_txt,v retrieving revision 1.1.1.1 diff -u -p -u -p -r1.1.1.1 patch-libgrive_CMakeLists_txt --- patches/patch-libgrive_CMakeLists_txt 30 Nov 2015 11:56:15 -0000 1.1.1.1 +++ patches/patch-libgrive_CMakeLists_txt 3 Oct 2020 06:18:01 -0000 @@ -1,11 +1,12 @@ $OpenBSD: patch-libgrive_CMakeLists_txt,v 1.1.1.1 2015/11/30 11:56:15 sthen Exp $ ---- libgrive/CMakeLists.txt.orig Sun Oct 11 17:59:25 2015 -+++ libgrive/CMakeLists.txt Wed Nov 4 09:30:32 2015 -@@ -7,7 +7,6 @@ find_package(CURL REQUIRED) - find_package(EXPAT REQUIRED) +Index: libgrive/CMakeLists.txt +--- libgrive/CMakeLists.txt.orig ++++ libgrive/CMakeLists.txt +@@ -6,7 +6,6 @@ find_package(LibGcrypt REQUIRED) + find_package(CURL REQUIRED) find_package(Boost 1.40.0 COMPONENTS program_options filesystem unit_test_framework regex system REQUIRED) find_package(BFD) -find_package(CppUnit) find_package(Iberty) - find_package(ZLIB) + find_package(PkgConfig) Index: patches/patch-libgrive_src_util_File_cc =================================================================== RCS file: /cvs/ports/sysutils/grive2/patches/patch-libgrive_src_util_File_cc,v retrieving revision 1.1.1.1 diff -u -p -u -p -r1.1.1.1 patch-libgrive_src_util_File_cc --- patches/patch-libgrive_src_util_File_cc 30 Nov 2015 11:56:15 -0000 1.1.1.1 +++ patches/patch-libgrive_src_util_File_cc 3 Oct 2020 06:18:01 -0000 @@ -1,11 +1,12 @@ $OpenBSD: patch-libgrive_src_util_File_cc,v 1.1.1.1 2015/11/30 11:56:15 sthen Exp $ ---- libgrive/src/util/File.cc.orig Sun Oct 11 17:59:25 2015 -+++ libgrive/src/util/File.cc Wed Nov 4 09:30:36 2015 +Index: libgrive/src/util/File.cc +--- libgrive/src/util/File.cc.orig ++++ libgrive/src/util/File.cc @@ -32,6 +32,7 @@ #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> +#include <unistd.h> - #ifdef WIN32 - #include <io.h> + #if defined(__FreeBSD__) || defined(__OpenBSD__) + #include <unistd.h> Index: patches/patch-libgrive_src_util_OS_hh =================================================================== RCS file: patches/patch-libgrive_src_util_OS_hh diff -N patches/patch-libgrive_src_util_OS_hh --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-libgrive_src_util_OS_hh 3 Oct 2020 06:18:01 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: libgrive/src/util/OS.hh +--- libgrive/src/util/OS.hh.orig ++++ libgrive/src/util/OS.hh +@@ -31,6 +31,8 @@ class Path ; + + enum FileType { FT_FILE = 1, FT_DIR = 2, FT_UNKNOWN = 3 } ; + ++#define off64_t off_t ++ + namespace os + { + struct Error : virtual Exception {} ; Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/sysutils/grive2/pkg/PLIST,v retrieving revision 1.1.1.1 diff -u -p -u -p -r1.1.1.1 PLIST --- pkg/PLIST 30 Nov 2015 11:56:15 -0000 1.1.1.1 +++ pkg/PLIST 3 Oct 2020 06:18:01 -0000 @@ -1,3 +1,10 @@ @comment $OpenBSD: PLIST,v 1.1.1.1 2015/11/30 11:56:15 sthen Exp $ @bin bin/grive +lib/grive/ +lib/grive/grive-sync.sh +lib/systemd/ +lib/systemd/user/ +lib/systemd/user/grive-changes@.service +lib/systemd/user/grive-timer@.service +lib/systemd/user/grive-timer@.timer @man man/man1/grive.1