From 53cba99042fa967e2a93da9f8db806fe2d035543 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 17 Feb 2020 01:16:38 +0000 Subject: gentoo resync : 17.02.2020 --- app-admin/lastpass-binary-component/Manifest | 2 +- .../lastpass-binary-component-4.19.0-r1.ebuild | 116 +++++++++++++++++++++ .../lastpass-binary-component-4.19.0.ebuild | 114 -------------------- 3 files changed, 117 insertions(+), 115 deletions(-) create mode 100644 app-admin/lastpass-binary-component/lastpass-binary-component-4.19.0-r1.ebuild delete mode 100644 app-admin/lastpass-binary-component/lastpass-binary-component-4.19.0.ebuild (limited to 'app-admin/lastpass-binary-component') diff --git a/app-admin/lastpass-binary-component/Manifest b/app-admin/lastpass-binary-component/Manifest index 811d4d50b89e..0b7a6fd988c5 100644 --- a/app-admin/lastpass-binary-component/Manifest +++ b/app-admin/lastpass-binary-component/Manifest @@ -1,3 +1,3 @@ DIST lastpass-binary-component-4.19.0.tar.bz2 1625255 BLAKE2B 714fb34708f9dda8dbacfce8e76adf004f1cc966d685c0efbaac7b25c45068bb5595e954e554092852d575f1fedc5f318d05b121bc2ce1aa4888e4bf374f7b96 SHA512 2535d72c5b545b364dd1e91503590cafa16d3de4f4745c4f1fa236135580e2af47094e364a7f0ebde5fcfd11282ab9329ef333866a985f02a873e092aabb9b22 -EBUILD lastpass-binary-component-4.19.0.ebuild 3650 BLAKE2B 3961eb1a2547df5b362e99421c7a6d38ddb9bd6ca1d6856810b1b6ddabf39dc2826fef22d657d1a58cefc91335dc5022be807f4a62603748ca442c0e35a95fe6 SHA512 60696a2938092e0b3702cf051b256223b8ee68d20bbaad24ef840f89936b2afe35aeadfafcc47733d0756ca48e9e350f74c5572ad4b5235b1b021d8f99831f33 +EBUILD lastpass-binary-component-4.19.0-r1.ebuild 3766 BLAKE2B 90037dc5e17cbe65a5e5ce69f4897cc387edc431f23b33ebedf5ff21a6ab364d59411e93dfffded7bd8a34ebe167732422bcd835440377f8a8e4d4a96f375343 SHA512 bf53793b9ff0855af319e0cf8609a077e17292bfa10f4f8ea1eeeeab8debcf777e7752e64de1fbae90ef8819c44a813b5cd23f70cd1ce7a2858966bda314e00d MISC metadata.xml 816 BLAKE2B ea7163f64706263e360241192a07e1e12eabc6fb196e5029cec931c53dacad20a9a4d851402f8942120328aa551159e2ba340257d50a5fcc36f7a72145e13a18 SHA512 71eb5c8aa836f75a5bfed79d7398e30628a274586a019d094a114d582ae2011d148cae325eb79b67e64035822cd18f154b9626142a7b2cc4c57f1e40f2f15b6b diff --git a/app-admin/lastpass-binary-component/lastpass-binary-component-4.19.0-r1.ebuild b/app-admin/lastpass-binary-component/lastpass-binary-component-4.19.0-r1.ebuild new file mode 100644 index 000000000000..0913632e723a --- /dev/null +++ b/app-admin/lastpass-binary-component/lastpass-binary-component-4.19.0-r1.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Binary component required by the LastPass Password Manager browser extension" +HOMEPAGE="https://helpdesk.lastpass.com/downloading-and-installing/#h5" +# sadly, upstream has no versioned distfiles +SRC_URI="https://download.cloud.lastpass.com/linux/lplinux.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="LastPass" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="bindist strip mirror" # We can't mirror it, but we can fetch it + +LASTPASS_EXEDIR=/opt/lastpass/ + +QA_PREBUILT=" + ${LASTPASS_EXEDIR}nplastpass* +" + +S="${WORKDIR}" + +src_install() { + # This is based on the upstream installer script that's in the tarball + bin=nplastpass + use amd64 && bin="${bin}64" + exeinto ${LASTPASS_EXEDIR} + doexe "${S}"/${bin} + + # Generate the policy file for Chrome/Chromium/Opera + cat >"${T}"/lastpass_policy.json <<-EOF || die + { + "ExtensionInstallSources": [ + "https://lastpass.com/*", + "https://*.lastpass.com/*", + "https://d1jxck0p3rkj0.cloudfront.net/lastpass/*" + ] + } + EOF + # Install the policy file for Chrome/Chromium/Opera + for d in /etc/chromium /etc/opt/chrome; do + insinto ${d}/policies/managed + doins "${T}"/lastpass_policy.json + done + + # Generate the app manifest for Chrome/Opera + cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die + { + "name": "com.lastpass.nplastpass", + "description": "LastPass", + "path": "${LASTPASS_EXEDIR}${bin}", + "type": "stdio", + "allowed_origins": [ + "chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/", + "chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/", + "chrome-extension://hnjalnkldgigidggphhmacmimbdlafdo/", + "chrome-extension://hgnkdfamjgnljokmokheijphenjjhkjc/" + ] + } + EOF + # Install the app manifest for Chrome/Opera + # https://developer.chrome.com/apps/nativeMessaging + # https://dev.opera.com/extensions/message-passing/ + insinto /etc/opt/chrome/native-messaging-hosts + doins "${T}"/com.lastpass.nplastpass.json + + # Generate the app manifest for Chromium + cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die + { + "name": "com.lastpass.nplastpass", + "description": "LastPass", + "path": "${LASTPASS_EXEDIR}${bin}", + "type": "stdio", + "allowed_origins": [ + "chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/", + "chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/", + "chrome-extension://hgnkdfamjgnljokmokheijphenjjhkjc/" + ] + } + EOF + # Install the app manifest for Chromium + # https://developer.chrome.com/apps/nativeMessaging + insinto /etc/chromium/native-messaging-hosts/ + doins "${T}"/com.lastpass.nplastpass.json + + # Generate the app manifest for Firefox + cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die + { + "name": "com.lastpass.nplastpass", + "description": "LastPass", + "path": "${LASTPASS_EXEDIR}${bin}", + "type": "stdio", + "allowed_extensions": [ + "support@lastpass.com" + ] + } + EOF + # Install the app manifest for both firefox and firefox-bin + # https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_manifests#Manifest_location + insinto /usr/lib/mozilla/native-messaging-hosts/ + doins "${T}"/com.lastpass.nplastpass.json + insinto /usr/lib64/mozilla/native-messaging-hosts/ + doins "${T}"/com.lastpass.nplastpass.json +} + +pkg_postinst() { + einfo "This package only installs the components required by the browser extension." + einfo "Visit the links below for your browser to install the extension itself:" + einfo "Chrome/Chromium: https://lastpass.com/dl/inline/?full=1" + einfo "Firefox: https://lastpass.com/lastpassffx/" + einfo "Opera: https://lastpass.com/dl/" + einfo + einfo "Chrome, Chromium and Opera users need to manually enable the binary component." + einfo "For more info, visit: https://lastpass.com/support.php?cmd=showfaq&id=5576" +} diff --git a/app-admin/lastpass-binary-component/lastpass-binary-component-4.19.0.ebuild b/app-admin/lastpass-binary-component/lastpass-binary-component-4.19.0.ebuild deleted file mode 100644 index ac0969132cf4..000000000000 --- a/app-admin/lastpass-binary-component/lastpass-binary-component-4.19.0.ebuild +++ /dev/null @@ -1,114 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="Binary component required by the LastPass Password Manager browser extension" -HOMEPAGE="https://helpdesk.lastpass.com/downloading-and-installing/#h5" -# sadly, upstream has no versioned distfiles -SRC_URI="https://download.cloud.lastpass.com/linux/lplinux.tar.bz2 -> ${P}.tar.bz2" - -LICENSE="LastPass" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -RESTRICT="bindist strip mirror" # We can't mirror it, but we can fetch it - -LASTPASS_EXEDIR=/opt/lastpass/ - -QA_PREBUILT=" - ${LASTPASS_EXEDIR}nplastpass* -" - -S="${WORKDIR}" - -src_install() { - # This is based on the upstream installer script that's in the tarball - bin=nplastpass - use amd64 && bin="${bin}64" - exeinto ${LASTPASS_EXEDIR} - doexe "${S}"/${bin} - - # Generate the policy file for Chrome/Chromium/Opera - cat >"${T}"/lastpass_policy.json <<-EOF || die - { - "ExtensionInstallSources": [ - "https://lastpass.com/*", - "https://*.lastpass.com/*", - "https://d1jxck0p3rkj0.cloudfront.net/lastpass/*" - ] - } - EOF - # Install the policy file for Chrome/Chromium/Opera - for d in /etc/chromium /etc/opt/chrome; do - insinto ${d}/policies/managed - doins "${T}"/lastpass_policy.json - done - - # Generate the app manifest for Chrome/Opera - cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die - { - "name": "com.lastpass.nplastpass", - "description": "LastPass", - "path": "${LASTPASS_EXEDIR}${bin}", - "type": "stdio", - "allowed_origins": [ - "chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/", - "chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/", - "chrome-extension://hnjalnkldgigidggphhmacmimbdlafdo/", - "chrome-extension://hgnkdfamjgnljokmokheijphenjjhkjc/" - ] - } - EOF - # Install the app manifest for Chrome/Opera - # https://developer.chrome.com/apps/nativeMessaging - # https://dev.opera.com/extensions/message-passing/ - insinto /etc/opt/chrome/native-messaging-hosts - doins "${T}"/com.lastpass.nplastpass.json - - # Generate the app manifest for Chromium - cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die - { - "name": "com.lastpass.nplastpass", - "description": "LastPass", - "path": "${LASTPASS_EXEDIR}${bin}", - "type": "stdio", - "allowed_origins": [ - "chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/", - "chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/", - "chrome-extension://hgnkdfamjgnljokmokheijphenjjhkjc/" - ] - } - EOF - # Install the app manifest for Chromium - # https://developer.chrome.com/apps/nativeMessaging - insinto /etc/chromium/native-messaging-hosts/ - doins "${T}"/com.lastpass.nplastpass.json - - # Generate the app manifest for Firefox - cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die - { - "name": "com.lastpass.nplastpass", - "description": "LastPass", - "path": "${LASTPASS_EXEDIR}${bin}", - "type": "stdio", - "allowed_extensions": [ - "support@lastpass.com" - ] - } - EOF - # Install the app manifest for Firefox - # https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_manifests#Manifest_location - insinto /usr/lib/mozilla/native-messaging-hosts/ - doins "${T}"/com.lastpass.nplastpass.json -} - -pkg_postinst() { - einfo "This package only installs the components required by the browser extension." - einfo "Visit the links below for your browser to install the extension itself:" - einfo "Chrome/Chromium: https://lastpass.com/dl/inline/?full=1" - einfo "Firefox: https://lastpass.com/lastpassffx/" - einfo "Opera: https://lastpass.com/dl/" - einfo - einfo "Chrome, Chromium and Opera users need to manually enable the binary component." - einfo "For more info, visit: https://lastpass.com/support.php?cmd=showfaq&id=5576" -} -- cgit v1.2.3