From 2f9f027ddaa0db197b38252e48b4b3e1cc8dedad Mon Sep 17 00:00:00 2001 From: donnstro Date: Sat, 14 Jan 2023 20:47:12 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20'app?= =?UTF-8?q?-crypt/sbis3plugin'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sbis3plugin-22.7220.178.ebuild | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 app-crypt/sbis3plugin/sbis3plugin-22.7220.178.ebuild diff --git a/app-crypt/sbis3plugin/sbis3plugin-22.7220.178.ebuild b/app-crypt/sbis3plugin/sbis3plugin-22.7220.178.ebuild new file mode 100644 index 0000000..785b686 --- /dev/null +++ b/app-crypt/sbis3plugin/sbis3plugin-22.7220.178.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=7 +inherit font gnome2-utils eutils multilib unpacker + +DESCRIPTION="СБИС Плагин. Desktop Plugin for convenient work in the browser SBIS3Plugin (SABY Plugin) — a desktop application for working with notifications, editing documents in a browser, entering your personal account by certificate, uploading files to the cloud, and so on" +HOMEPAGE="https://sbis.ru/" + +KEYWORDS="amd64" + +SRC_URI="amd64? ( https://update-msk2.sbis.ru/Sbis3Plugin/master/linux/sbis3plugin.deb -> sbis3plugin-${PV}.deb )" + +SLOT="0" +RESTRICT="strip mirror" +LICENSE="GPL-3" +IUSE="" + +NATIVE_DEPEND="app-crypt/sbis3plugin-core" +RDEPEND="${NATIVE_DEPEND}" +DEPEND="${RDEPEND}" + +S="${WORKDIR}" + +src_install() { + cp -R "${WORKDIR}/opt" "${D}" || die "install failed!" + cp -R "${FILESDIR}/sbis3plugin-postinst.sh" "${D}/opt/sbis3plugin/sbis3plugin-postinst.sh" || die "install failed!" +} + +pkg_postinst() { + cp -R /opt/sbis3plugin/temp/* /opt/sbis3plugin/ + /etc/init.d/SBIS3Plugin-daemon stop + cp -R "${FILESDIR}/SBIS3Plugin-daemon" "/etc/init.d/SBIS3Plugin-daemon" || die "install failed!" + mkdir -p /var/run/sbis + elog "Установка происходит в автоматическом режиме." + elog "При возникновении проблем с запуском, используйте сценарий ниже:" + elog "1. Настройте версию sbis3plugin в файле /opt/sbis3plugin/sbis3plugin-postinst.sh в строке VERSBIS=<устанавливаемая версия>" + elog "2. Исполните файл сценария /opt/sbis3plugin/sbis3plugin-postinst.sh" + elog "3. Пропишите автозапуск rc-update add SBIS3Plugin-daemon default" + elog "4. Запустите /etc/init.d/SBIS3Plugin-daemon start" + elog "5. Повторите исполнение сценария /opt/sbis3plugin/sbis3plugin-postinst.sh" + elog "6. Запустите приложение самостоятельно с помощью ярлыка на рабочем столе." + /bin/bash /opt/sbis3plugin/sbis3plugin-postinst.sh + rc-update add SBIS3Plugin-daemon default + /etc/init.d/SBIS3Plugin-daemon start + /bin/bash /opt/sbis3plugin/sbis3plugin-postinst.sh + rm -R /opt/sbis3plugin/temp + rm -R /opt/sbis3plugin/temp_minimal_core +}