git: 835ff72a5483 - main - net/onedrive: update to 2.5.2

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 17 Jan 2025 12:37:26 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=835ff72a5483dfe8e9ccf356d88d92529241addc

commit 835ff72a5483dfe8e9ccf356d88d92529241addc
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-01-10 16:28:03 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-01-17 12:34:01 +0000

    net/onedrive: update to 2.5.2
    
    Changelog: https://github.com/abraunegg/onedrive/blob/v2.5.2/changelog.md
---
 UPDATING                               | 13 +++++++++++++
 net/onedrive/Makefile                  |  3 +--
 net/onedrive/distinfo                  |  6 +++---
 net/onedrive/files/patch-Makefile.in   | 24 ++++++++++++------------
 net/onedrive/files/patch-src_monitor.d | 13 ++++++++-----
 net/onedrive/pkg-descr                 | 26 +++++++-------------------
 net/onedrive/pkg-message               | 11 -----------
 7 files changed, 44 insertions(+), 52 deletions(-)

diff --git a/UPDATING b/UPDATING
index 2b402c345e24..8576c308d025 100644
--- a/UPDATING
+++ b/UPDATING
@@ -5,6 +5,19 @@ they are unavoidable.
 You should get into the habit of checking this file for changes each time
 you update your ports collection, before attempting any port upgrades.
 
+20250111:
+  AFFECTS: users of net/onedrive
+  AUTHOR: hiroo.ono+freebsd@gmail.com
+
+  The version 2.5.x introduces significant changes regarding how the
+  integrity and validation of your data is determined and is not backwards
+  compatible with v2.4.x.
+  OneDrive Business Shared Folder Sync has been 100% re-written in v2.5.0.
+  If you are using this feature, please read the new documentation
+  carefully.
+  The application function --download-only no longer automatically deletes
+  local files. Please read the new documentation regarding this feature.
+
 20250109:
   AFFECTS: users of www/kiwix-tools and devel/libkiwix
   AUTHOR: olce@FreeBSD.org
diff --git a/net/onedrive/Makefile b/net/onedrive/Makefile
index d04c237a0897..397f3ce36303 100644
--- a/net/onedrive/Makefile
+++ b/net/onedrive/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	onedrive
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2.4.25
-PORTREVISION=	1
+DISTVERSION=	2.5.2
 CATEGORIES=	net
 
 MAINTAINER=	hiroo.ono+freebsd@gmail.com
diff --git a/net/onedrive/distinfo b/net/onedrive/distinfo
index 26ed013574ca..8865b66f264b 100644
--- a/net/onedrive/distinfo
+++ b/net/onedrive/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1687482118
-SHA256 (abraunegg-onedrive-v2.4.25_GH0.tar.gz) = e7d782ea7d1973b6b578899a84c4f90ba69302263b4be30d80a363ba8ba27eb3
-SIZE (abraunegg-onedrive-v2.4.25_GH0.tar.gz) = 1243977
+TIMESTAMP = 1727676524
+SHA256 (abraunegg-onedrive-v2.5.2_GH0.tar.gz) = 2abad70160853a25b6784025ef7e7636fcb077b5623c8fe521df9e3aa8089a89
+SIZE (abraunegg-onedrive-v2.5.2_GH0.tar.gz) = 4129032
diff --git a/net/onedrive/files/patch-Makefile.in b/net/onedrive/files/patch-Makefile.in
index 6051b8bce38f..13e2c77d40c4 100644
--- a/net/onedrive/files/patch-Makefile.in
+++ b/net/onedrive/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig	2022-09-26 19:30:30 UTC
+--- Makefile.in.orig	2024-09-16 01:14:46 UTC
 +++ Makefile.in
-@@ -25,6 +25,7 @@ systemdsystemunitdir = @systemdsystemunitdir@
+@@ -25,6 +25,7 @@ notify_LIBS = @notify_LIBS@
  curl_LIBS = @curl_LIBS@
  sqlite_LIBS = @sqlite_LIBS@
  notify_LIBS = @notify_LIBS@
@@ -8,15 +8,15 @@
  COMPLETIONS = @COMPLETIONS@
  BASH_COMPLETION_DIR = @BASH_COMPLETION_DIR@
  ZSH_COMPLETION_DIR = @ZSH_COMPLETION_DIR@
-@@ -67,6 +68,7 @@ endif
- 
- SOURCES = \
- 	src/config.d \
+@@ -84,6 +85,7 @@ SOURCES = \
+ 	src/sqlite.d \
+ 	src/clientSideFiltering.d \
+ 	src/monitor.d \
 +	src/freebsd_inotify.d \
- 	src/itemdb.d \
- 	src/log.d \
- 	src/main.d \
-@@ -103,14 +105,15 @@ onedrive: $(SOURCES)
+ 	src/arsd/cgi.d
+ 
+ ifeq ($(NOTIFICATIONS),yes)
+@@ -107,14 +109,15 @@ onedrive: $(SOURCES)
  	else \
  		echo $(version) > version ; \
  	fi
@@ -37,7 +37,7 @@
  ifeq ($(HAVE_SYSTEMD),yes)
  	$(INSTALL) -d -m 0755 $(DESTDIR)$(systemduserunitdir) $(DESTDIR)$(systemdsystemunitdir)
  ifeq ($(RHEL),1)
-@@ -127,9 +130,12 @@ ifeq ($(RHEL_VERSION),6)
+@@ -131,9 +134,12 @@ ifeq ($(COMPLETIONS),yes)
  endif
  endif
  ifeq ($(COMPLETIONS),yes)
@@ -52,4 +52,4 @@
 +	$(INSTALL) -m 0644 contrib/completions/complete.fish $(DESTDIR)$(FISH_COMPLETION_DIR)/onedrive.fish
  endif
  
- 
+ uninstall:
diff --git a/net/onedrive/files/patch-src_monitor.d b/net/onedrive/files/patch-src_monitor.d
index 715a0f6c0b6a..93b394f2326c 100644
--- a/net/onedrive/files/patch-src_monitor.d
+++ b/net/onedrive/files/patch-src_monitor.d
@@ -1,9 +1,12 @@
---- src/monitor.d.orig	2019-04-24 07:47:09 UTC
+--- src/monitor.d.orig	2024-09-18 07:16:29 UTC
 +++ src/monitor.d
-@@ -1,4 +1,5 @@
+@@ -4,7 +4,8 @@ import core.stdc.stdlib;
+ // What does this module require to function?
+ import core.stdc.errno;
+ import core.stdc.stdlib;
 -import core.sys.linux.sys.inotify;
 +// import core.sys.linux.sys.inotify;
 +import freebsd_inotify;
- import core.stdc.errno;
- import core.sys.posix.poll, core.sys.posix.unistd;
- import std.exception, std.file, std.path, std.regex, std.stdio, std.string;
+ import core.sys.posix.poll;
+ import core.sys.posix.unistd;
+ import core.sys.posix.sys.select;
diff --git a/net/onedrive/pkg-descr b/net/onedrive/pkg-descr
index 8acb7dcd362c..69bc6b6efd8e 100644
--- a/net/onedrive/pkg-descr
+++ b/net/onedrive/pkg-descr
@@ -1,19 +1,7 @@
-A free Microsoft OneDrive Client which supports OneDrive Personal, OneDrive
-for Business, OneDrive for Office365 and Sharepoint.
-This Powerful and highly configurable client can run on all major Linux
-distributions, as a Docker container and on FreeBSD.
-This client is a 'fork' of skilion client which was abandoned in 2018.
-
-Features:
-    * State caching
-    * Real-Time file monitoring with Inotify
-    * File upload / download validation to ensure data integrity
-    * Resumable uploads
-    * Support OneDrive for Business (part of Office 365)
-    * Sharepoint / Office365 Shared libraries (refer to docs/Office365.md
-      to configure)
-
-What's missing:
-    * While local changes are uploaded right away, remote changes are delayed
-      until next sync when using --monitor
-    * No GUI
+A free Microsoft OneDrive Client that seemlessly supports OneDrive Personal,
+OneDrive for Business, OneDrive for Office365 and Sharepoint Libraries.
+This robust and highly customisable client is compatible with all major
+Linux distributions and FreeBSD, and can also be deployed as a container
+using Docker or Podman. It offers both one-way and two-way synchronisation
+capabilities while ensuring a secure connection to Microsoft OneDrive
+services.
diff --git a/net/onedrive/pkg-message b/net/onedrive/pkg-message
deleted file mode 100644
index f29d4b2c442c..000000000000
--- a/net/onedrive/pkg-message
+++ /dev/null
@@ -1,11 +0,0 @@
-[
-{
-  type: upgrade
-  maximum_version: "2.4.3"
-  message: <<EOM
-When upgrading from version 2.3.3, the onedrive client may fail to
-synchronize. In this case, execute onedrive --logout to logout and
-re-authenticate. For more detail, see USAGE.md.
-EOM
-}
-]