From 459b28263a1689743d17a35505e19dacb95a9991 Mon Sep 17 00:00:00 2001 From: Ronald Farrer Date: Sun, 1 Aug 2021 18:36:20 -0700 Subject: [PATCH] Re-added insync (lets-try-this-again-edition). --- .../insync/files/insync-3-fix-ca-path.patch | 12 ++++ app-office/insync/files/insync-3-lib64.patch | 8 +++ app-office/insync/insync-3.4.3.40990.ebuild | 64 +++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 app-office/insync/files/insync-3-fix-ca-path.patch create mode 100644 app-office/insync/files/insync-3-lib64.patch create mode 100644 app-office/insync/insync-3.4.3.40990.ebuild diff --git a/app-office/insync/files/insync-3-fix-ca-path.patch b/app-office/insync/files/insync-3-fix-ca-path.patch new file mode 100644 index 0000000..c3599c3 --- /dev/null +++ b/app-office/insync/files/insync-3-fix-ca-path.patch @@ -0,0 +1,12 @@ +diff --git a/usr/share/applications/insync.desktop b/usr/share/applications/insync.desktop +index a328b53..0664ebe 100644 +--- a/usr/share/applications/insync.desktop ++++ b/usr/share/applications/insync.desktop +@@ -6,6 +6,6 @@ GenericName=Insync + Comment=Launch Insync + Icon=insync + Categories=Network; +-Exec=insync start ++Exec=insync start --ca-path=/etc/ssl/certs + TryExec=insync + Terminal=false diff --git a/app-office/insync/files/insync-3-lib64.patch b/app-office/insync/files/insync-3-lib64.patch new file mode 100644 index 0000000..b7b9feb --- /dev/null +++ b/app-office/insync/files/insync-3-lib64.patch @@ -0,0 +1,8 @@ +diff --git a/insync-3.0.27/usr/bin/insync b/insync-3.0.27/usr/bin/insync +index a738ec8..b8f0304 100755 +--- a/usr/bin/insync ++++ b/usr/bin/insync +@@ -1,3 +1,3 @@ + #!/bin/bash +-LC_TIME=C exec /usr/lib/insync/insync "$@" ++LC_TIME=C exec /usr/lib64/insync/insync "$@" diff --git a/app-office/insync/insync-3.4.3.40990.ebuild b/app-office/insync/insync-3.4.3.40990.ebuild new file mode 100644 index 0000000..0ba5c40 --- /dev/null +++ b/app-office/insync/insync-3.4.3.40990.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit rpm xdg-utils + +DESCRIPTION="Advanced cross-platform Google Drive and Microsoft OneDrive client" +HOMEPAGE="https://www.insynchq.com/" + +SRC_URI="http://s.insynchq.com/builds/insync_${PV}-buster_amd64.deb" + +RESTRICT="strip" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND=" + >=sys-libs/glibc-2.29 +" +RDEPEND="${DEPEND}" +BDEPEND="" + +PATCHES=( + "${FILESDIR}/insync-3-fix-ca-path.patch" + "${FILESDIR}/insync-3-lib64.patch" +) + +src_unpack() { + unpack "insync_${PV}-buster_amd64.deb" + unpack ${WORKDIR}"/data.tar.gz" + + mkdir -p "${S}" + mv "${WORKDIR}"/usr "${S}"/ +} + +src_install() { + gzip -d usr/share/doc/insync/changelog.gz + dodoc usr/share/doc/insync/changelog + rm -rf "${WORKDIR}"/"${P}"/usr/share/doc/ + + cp -pPR "${WORKDIR}"/"${P}"/usr/ "${D}"/ || die "Installation failed" + mv "${D}"/usr/lib "${D}"/usr/lib64 + rm -Rf "${D}"/usr/lib64/.build-id + gunzip "${D}"/usr/share/man/man1/insync.1.gz + + echo "SEARCH_DIRS_MASK=\"/usr/lib*/insync\"" > "${T}/70-${PN}" || die + + insinto "/etc/revdep-rebuild" && doins "${T}/70-${PN}" || die +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + xdg_icon_cache_update +}