aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2021-07-07 16:05:59 +0200
committerMarco Leise <marco.leise@gmx.de>2021-07-07 16:05:59 +0200
commit2eb8259418a5aa86d66be7504daaa03e82ace8a5 (patch)
tree38e6da2417d9a30ceaa4081c69adf42436456463 /net-misc/onedrive/onedrive-2.4.12.ebuild
parentldc2-1.25.1 & ldc2-1.26.0 (diff)
downloaddlang-2eb8259418a5aa86d66be7504daaa03e82ace8a5.tar.gz
dlang-2eb8259418a5aa86d66be7504daaa03e82ace8a5.tar.bz2
dlang-2eb8259418a5aa86d66be7504daaa03e82ace8a5.zip
onedrive-2.4.12
Signed-off-by: Marco Leise <marco.leise@gmx.de>
Diffstat (limited to 'net-misc/onedrive/onedrive-2.4.12.ebuild')
-rw-r--r--net-misc/onedrive/onedrive-2.4.12.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/net-misc/onedrive/onedrive-2.4.12.ebuild b/net-misc/onedrive/onedrive-2.4.12.ebuild
new file mode 100644
index 0000000..e6ca50f
--- /dev/null
+++ b/net-misc/onedrive/onedrive-2.4.12.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Free Client for OneDrive on Linux"
+HOMEPAGE="https://abraunegg.github.io/"
+LICENSE="GPL-3"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RDEPEND="
+ >=dev-db/sqlite-3.7.15:3
+ net-misc/curl
+ libnotify? ( x11-libs/libnotify )
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+SRC_URI="https://codeload.github.com/abraunegg/onedrive/tar.gz/v${PV} -> ${P}.tar.gz"
+DLANG_VERSION_RANGE="2.082-"
+DLANG_PACKAGE_TYPE="single"
+IUSE="debug libnotify"
+
+inherit dlang systemd bash-completion-r1
+
+d_src_configure() {
+ # LDC is supported without wrapper
+ if [[ "${DLANG_VENDOR}" == "LDC" ]]; then
+ export DC=${DC}
+ export DCFLAGS=${DCFLAGS}
+ else
+ export DC=${DMD}
+ export DCFLAGS=${DMDFLAGS}
+ fi
+ econf --disable-version-check --enable-completions $(use_enable debug) $(use_enable libnotify notifications) \
+ --with-zsh-completion-dir=/usr/share/zsh/site-functions \
+ --with-bash-completion-dir="$(get_bashcompdir)" \
+ --with-fish-completion-dir=/usr/share/fish/completions \
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
+ --with-systemduserunitdir="$(systemd_get_userunitdir)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" docdir=/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."
+ elog
+ ewarn "When upgrading from 2.3 you are required you to reauthorise your client."
+ ewarn "This is due to changing the client identifier to assist with resolving"
+ ewarn "the correct handling of 429 error responses (activityLimitReached)"
+}