commit: 2151f46ed41732bd8c570437dcf71316458e4e5c
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sun Sep 28 09:28:36 2025 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun Sep 28 09:29:20 2025 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=2151f46e
net-misc/onedrive: add 2.5.7
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
net-misc/onedrive/Manifest | 1 +
net-misc/onedrive/onedrive-2.5.7.ebuild | 83 +++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
diff --git a/net-misc/onedrive/Manifest b/net-misc/onedrive/Manifest
index 13db104..e9b6d64 100644
--- a/net-misc/onedrive/Manifest
+++ b/net-misc/onedrive/Manifest
@@ -1 +1,2 @@
DIST onedrive-2.5.6.tar.gz 4284403 BLAKE2B
0c9e9ddca88ec3766bb7c575f594d99a7565da49c26e4f0b740efb19896fa718100b866a2fbc148c284b498e833d892fd1ae5517abf7f682d3c1595153a31a57
SHA512
0d67318978b08057bb2dab28bd66914bed4fcc6b967c5c833c381af09a03b9de340369cb5c5117a8c3c6795347a96ed661e0c14cb4e112fcf73a3318fb3c713e
+DIST onedrive-2.5.7.tar.gz 8269826 BLAKE2B
5ea04cb4c42fe53efc660121d8c8d477bcf00e9786a131e781a4c3679810fb55dbe02557cb4feff287210c6bf10d241303de0e1e57418d8048faced8fa1efd99
SHA512
b08d54df9505690cb62aba43afa1f23bb31fa2dff5301446dfacbc3025c9ac0d459e5008d3b32942dd0468f1a264a220c9096ba0fec46462ce73aedf89b082d2
diff --git a/net-misc/onedrive/onedrive-2.5.7.ebuild
b/net-misc/onedrive/onedrive-2.5.7.ebuild
new file mode 100644
index 0000000..eccb6b5
--- /dev/null
+++ b/net-misc/onedrive/onedrive-2.5.7.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DLANG_COMPAT=( dmd-2_{107..111} gdc-15 ldc2-1_{36..40} )
+inherit dlang-single optfeature prefix shell-completion systemd
+
+DESCRIPTION="Free Client for OneDrive on Linux"
+HOMEPAGE="https://abraunegg.github.io/"
+SRC_URI="https://codeload.github.com/abraunegg/onedrive/tar.gz/v${PV} ->
${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+# no straight forward way to run unittests. Probably need to do
DFLAGS=-unittest econf
+IUSE="libnotify"
+RESTRICT="test"
+
+REQUIRED_USE=${DLANG_REQUIRED_USE}
+RDEPEND="
+ ${DLANG_DEPS}
+ >=dev-db/sqlite-3.7.15:3
+ net-misc/curl
+ sys-apps/dbus
+ libnotify? ( x11-libs/libnotify )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ ${DLANG_DEPS}
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ hprefixify contrib/init.d/onedrive.init
+ # Add EPREFIX to the system config path (/etc)
+ hprefixify -w '/string systemConfigDirBase/' src/config.d
+ default
+}
+
+src_configure() {
+ myeconfargs=(
+ $(use_enable libnotify notifications)
+ --with-bash-completion-dir="$(get_bashcompdir)"
+ --with-zsh-completion-dir="$(get_zshcompdir)"
+ --with-fish-completion-dir="$(get_fishcompdir)"
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
+ --with-systemduserunitdir="$(systemd_get_userunitdir)"
+ --enable-completions
+ --disable-version-check
+ # Adds -g and -debug. There are only a few instructions guarded
by debug
+ --disable-debug
+ )
+ DCFLAGS="${DCFLAGS} ${DLANG_LDFLAGS}" econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" docdir="${EPREFIX}"/usr/share/doc/${PF} install
+ # log directory
+ keepdir /var/log/onedrive
+ fperms 775 /var/log/onedrive
+ fowners root:users /var/log/onedrive
+ # init script
+ dobin contrib/init.d/onedrive_service.sh
+ newinitd contrib/init.d/onedrive.init onedrive
+}
+
+pkg_postinst() {
+ elog "OneDrive Free Client needs to be authorized to access your data
before the"
+ elog "first use. To do so, run onedrive in a terminal for the user in
question and"
+ elog "follow the steps on screen."
+
+ local old_ver minor_part="$(ver_cut 1-2)"
+ for old_ver in ${REPLACING_VERSIONS}; do
+ if ver_test "${old_ver}" -lt "${minor_part}"; then
+ ewarn "You are performing an upgrade that is not
backwards-compatible"
+ ewarn "and you need to upgrade to ${PN}-${minor_part}
on all your devices."
+ ewarn "Please read:
https://github.com/abraunegg/onedrive/releases/tag/v${PV}"
+ break
+ fi
+ done
+ optfeature "Single Sign-On via Intune" sys-apps/intune-portal
+}