From owner-svn-ports-all@freebsd.org Tue Jul 28 18:49:42 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CB5C1371960; Tue, 28 Jul 2020 18:49:42 +0000 (UTC) (envelope-from mikael@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BGQhQ550Cz3VZp; Tue, 28 Jul 2020 18:49:42 +0000 (UTC) (envelope-from mikael@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 92F97139E8; Tue, 28 Jul 2020 18:49:42 +0000 (UTC) (envelope-from mikael@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06SIngDG029458; Tue, 28 Jul 2020 18:49:42 GMT (envelope-from mikael@FreeBSD.org) Received: (from mikael@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06SInfYU029450; Tue, 28 Jul 2020 18:49:41 GMT (envelope-from mikael@FreeBSD.org) Message-Id: <202007281849.06SInfYU029450@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mikael set sender to mikael@FreeBSD.org using -f From: Mikael Urankar Date: Tue, 28 Jul 2020 18:49:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r543628 - in head/net/onedrive: . files X-SVN-Group: ports-head X-SVN-Commit-Author: mikael X-SVN-Commit-Paths: in head/net/onedrive: . files X-SVN-Commit-Revision: 543628 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2020 18:49:42 -0000 Author: mikael Date: Tue Jul 28 18:49:40 2020 New Revision: 543628 URL: https://svnweb.freebsd.org/changeset/ports/543628 Log: net/onedrive: update to 2.4.3 PR: 245805 Submitted by: Hiroo Ono (maintainer) Added: head/net/onedrive/files/patch-Makefile.in (contents, props changed) head/net/onedrive/files/patch-configure.ac (contents, props changed) head/net/onedrive/pkg-message (contents, props changed) Deleted: head/net/onedrive/files/patch-Makefile Modified: head/net/onedrive/Makefile head/net/onedrive/distinfo head/net/onedrive/files/freebsd_inotify.d head/net/onedrive/pkg-descr head/net/onedrive/pkg-plist Modified: head/net/onedrive/Makefile ============================================================================== --- head/net/onedrive/Makefile Tue Jul 28 18:30:10 2020 (r543627) +++ head/net/onedrive/Makefile Tue Jul 28 18:49:40 2020 (r543628) @@ -2,62 +2,45 @@ PORTNAME= onedrive DISTVERSIONPREFIX= v -DISTVERSION= 2.3.3 -PORTREVISION= 1 +DISTVERSION= 2.4.3 CATEGORIES= net MAINTAINER= hiroo.ono+freebsd@gmail.com COMMENT= OneDrive Free client LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libcurl.so:ftp/curl \ libinotify.so:devel/libinotify BUILD_DEPENDS= ldc2:lang/ldc RUN_DEPENDS= ${LOCALBASE}/sbin/logrotate:sysutils/logrotate -USES= gmake pkgconfig sqlite +USES= autoreconf gmake pkgconfig sqlite USE_GITHUB= yes GH_ACCOUNT= abraunegg +GNU_CONFIGURE= yes PKGCONFIG= pkgconf -MAKE_ARGS= DC=ldc2 -INSTALL_TARGET= install.noservice -OPTIONS_DEFINE= DOCS NOTIFY BASH ZSH -OPTIONS_DEFAULT= DOCS NOTIFY BASH ZSH +OPTIONS_DEFINE= NOTIFY COMPLETION +OPTIONS_DEFAULT= NOTIFY COMPLETION OPTIONS_SUB= yes -DOCFILES= README.md README.Office365.md config CHANGELOG.md - -NOTIFY_VARS= NOTIFICATIONS=1 +NOTIFY_CONFIGURE_ENABLE= notifications NOTIFY_USES= gnome -NOTIFY_USE= GNOME=glib20 +NOTIFY_USE= GNOME=glib20,gdkpixbuf2 NOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify -BASH_COMPLETION_DIR= ${LOCALBASE}/share/bash-completion/completions -ZSH_COMPLETION_DIR= ${LOCALBASE}/share/zsh/site-functions +COMPLETION_DESC= Install completion for BASH and ZSH +COMPLETION_CONFIGURE_ENABLE= completions +ONEDRIVE_LOGDIR= /var/log/${PORTNAME} + post-extract: ${CP} ${FILESDIR}/freebsd_inotify.d ${WRKSRC}/src -do-install-DOCS-on: -.for f in ${DOCFILES} - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} -.endfor - -do-install-BASH-on: - @${MKDIR} ${STAGEDIR}${BASH_COMPLETION_DIR} - ${INSTALL_DATA} ${WRKSRC}/completions/complete.bash \ - ${STAGEDIR}${BASH_COMPLETION_DIR}/onedrive - -do-install-ZSH-on: - @${MKDIR} ${STAGEDIR}${ZSH_COMPLETION_DIR} - ${INSTALL_DATA} ${WRKSRC}/completions/complete.zsh \ - ${STAGEDIR}${ZSH_COMPLETION_DIR}/_onedrive - -post-install-DOCS-on: - ${INSTALL_MAN} ${WRKSRC}/onedrive.1 ${STAGEDIR}${MANPREFIX}/man/man1 +post-install: + ${INSTALL} -d -m 0775 ${STAGEDIR}${ONEDRIVE_LOGDIR} .include Modified: head/net/onedrive/distinfo ============================================================================== --- head/net/onedrive/distinfo Tue Jul 28 18:30:10 2020 (r543627) +++ head/net/onedrive/distinfo Tue Jul 28 18:49:40 2020 (r543628) @@ -1,3 +1,3 @@ -TIMESTAMP = 1556052070 -SHA256 (abraunegg-onedrive-v2.3.3_GH0.tar.gz) = 9ee4ea4b3ea880f7624761d053bbb09a2465706685e9ed258c50925ff5e32377 -SIZE (abraunegg-onedrive-v2.3.3_GH0.tar.gz) = 599457 +TIMESTAMP = 1594652822 +SHA256 (abraunegg-onedrive-v2.4.3_GH0.tar.gz) = 4236f436b3658e360164d945a8bc5c9620539c1339ef9182e3d060d2e3b90b9b +SIZE (abraunegg-onedrive-v2.4.3_GH0.tar.gz) = 959963 Modified: head/net/onedrive/files/freebsd_inotify.d ============================================================================== --- head/net/onedrive/files/freebsd_inotify.d Tue Jul 28 18:30:10 2020 (r543627) +++ head/net/onedrive/files/freebsd_inotify.d Tue Jul 28 18:49:40 2020 (r543628) @@ -50,6 +50,7 @@ enum IN_MASK_ADD = 0x20000000; /* Add to the mas enum IN_ISDIR = 0x40000000; /* Event occurred against dir. */ enum IN_ONESHOT = 0x80000000; /* Only send event once. */ +enum IN_ALL_EVENTS = (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE | IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM | IN_MOVE_SELF | IN_MOVED_TO | IN_DELETE | IN_CREATE | IN_DELETE_SELF); /* Create and initialize inotify-kqueue instance. */ extern (C) int inotify_init (); Added: head/net/onedrive/files/patch-Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/onedrive/files/patch-Makefile.in Tue Jul 28 18:49:40 2020 (r543628) @@ -0,0 +1,61 @@ +--- Makefile.in.orig 2020-07-13 17:07:56 UTC ++++ Makefile.in +@@ -25,6 +25,7 @@ systemdsystemunitdir = @systemdsystemunitdir@ + curl_LIBS = @curl_LIBS@ + sqlite_LIBS = @sqlite_LIBS@ + notify_LIBS = @notify_LIBS@ ++inotify_LIBS = @inotify_LIBS@ + COMPLETIONS = @COMPLETIONS@ + BASH_COMPLETION_DIR = @BASH_COMPLETION_DIR@ + ZSH_COMPLETION_DIR = @ZSH_COMPLETION_DIR@ +@@ -54,7 +55,7 @@ endif + system_unit_files = contrib/systemd/onedrive@.service + user_unit_files = contrib/systemd/onedrive.service + +-DOCFILES = README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/Office365.md docs/USAGE.md docs/BusinessSharedFolders.md ++DOCFILES = README.md config CHANGELOG.md docs/Office365.md docs/USAGE.md docs/BusinessSharedFolders.md + + ifneq ("$(wildcard /etc/redhat-release)","") + RHEL = $(shell cat /etc/redhat-release | grep -E "(Red Hat Enterprise Linux Server|CentOS)" | wc -l) +@@ -66,6 +67,7 @@ endif + + SOURCES = \ + src/config.d \ ++ src/freebsd_inotify.d \ + src/itemdb.d \ + src/log.d \ + src/main.d \ +@@ -101,14 +103,15 @@ onedrive: $(SOURCES) + else \ + echo $(version) > version ; \ + fi +- $(DC) $(DCFLAGS) $(addprefix -L,$(curl_LIBS)) $(addprefix -L,$(sqlite_LIBS)) $(addprefix -L,$(notify_LIBS)) -L-ldl $(SOURCES) -of$@ ++ $(DC) $(DCFLAGS) $(addprefix -L,$(curl_LIBS)) $(addprefix -L,$(sqlite_LIBS)) $(addprefix -L,$(notify_LIBS)) $(addprefix -L,$(inotify_LIBS)) -L-ldl $(SOURCES) -of$@ + + install: all +- $(INSTALL) -D onedrive $(DESTDIR)$(bindir)/onedrive +- $(INSTALL) -D onedrive.1 $(DESTDIR)$(mandir)/man1/onedrive.1 +- $(INSTALL) -D -m 644 contrib/logrotate/onedrive.logrotate $(DESTDIR)$(sysconfdir)/logrotate.d/onedrive ++ $(INSTALL) -s onedrive $(DESTDIR)$(bindir)/onedrive ++ $(INSTALL) onedrive.1 $(DESTDIR)$(mandir)/man1/onedrive.1 ++ mkdir -p $(DESTDIR)$(sysconfdir)/logrotate.d ++ $(INSTALL) -m 644 contrib/logrotate/onedrive.logrotate $(DESTDIR)$(sysconfdir)/logrotate.d/onedrive + mkdir -p $(DESTDIR)$(docdir) +- $(INSTALL) -D -m 644 $(DOCFILES) $(DESTDIR)$(docdir) ++ $(INSTALL) -m 644 $(DOCFILES) $(DESTDIR)$(docdir) + ifeq ($(HAVE_SYSTEMD),yes) + $(INSTALL) -d -m 0755 $(DESTDIR)$(systemduserunitdir) $(DESTDIR)$(systemdsystemunitdir) + ifeq ($(RHEL),1) +@@ -125,8 +128,10 @@ ifeq ($(RHEL_VERSION),6) + endif + endif + ifeq ($(COMPLETIONS),yes) +- $(INSTALL) -D -m 644 contrib/completions/complete.zsh $(DESTDIR)$(ZSH_COMPLETION_DIR)/_onedrive +- $(INSTALL) -D -m 644 contrib/completions/complete.bash $(DESTDIR)$(BASH_COMPLETION_DIR)/onedrive ++ mkdir -p $(DESTDIR)$(ZSH_COMPLETION_DIR) ++ $(INSTALL) -m 644 contrib/completions/complete.zsh $(DESTDIR)$(ZSH_COMPLETION_DIR)/_onedrive ++ mkdir -p $(DESTDIR)$(BASH_COMPLETION_DIR) ++ $(INSTALL) -m 644 contrib/completions/complete.bash $(DESTDIR)$(BASH_COMPLETION_DIR)/onedrive + endif + + Added: head/net/onedrive/files/patch-configure.ac ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/onedrive/files/patch-configure.ac Tue Jul 28 18:49:40 2020 (r543628) @@ -0,0 +1,10 @@ +--- configure.ac.orig 2020-04-21 17:07:18 UTC ++++ configure.ac +@@ -144,6 +144,7 @@ + dnl Check for required modules: curl and sqlite at the moment + PKG_CHECK_MODULES([curl],[libcurl]) + PKG_CHECK_MODULES([sqlite],[sqlite3]) ++PKG_CHECK_MODULES([inotify],[libinotify]) + + dnl + dnl systemd and unit file directories Modified: head/net/onedrive/pkg-descr ============================================================================== --- head/net/onedrive/pkg-descr Tue Jul 28 18:30:10 2020 (r543627) +++ head/net/onedrive/pkg-descr Tue Jul 28 18:49:40 2020 (r543628) @@ -1,15 +1,21 @@ -A complete tool to interact with OneDrive on Linux. -Built following the UNIX philosophy. +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 - Resumable uploads - Support OneDrive for Business (part of Office 365) - Shared folders (not Business) + * State caching + * Real-Time file monitoring with Inotify + * File uploat / 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 - No GUI + * While local changes are uploaded right away, remote changes are delayed + until next sync when using --monitor + * No GUI -WWW: https://github.com/skilion/onedrive +WWW: https://github.com/abraunegg/onedrive Added: head/net/onedrive/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/onedrive/pkg-message Tue Jul 28 18:49:40 2020 (r543628) @@ -0,0 +1,11 @@ +[ +{ + type: upgrade + maximum_version: "2.4.3" + message: <