summaryrefslogtreecommitdiff
path: root/app-admin/lastpass-binary-component
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-12-15 17:25:28 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-12-15 17:25:28 +0000
commit6b933047f46efec1aa747570f945344254227457 (patch)
treea12a4b87b38f954c4de435272cf4b90d721df5e8 /app-admin/lastpass-binary-component
parentf45955e60d4da9b7f4a1088c98042f9c06669039 (diff)
gentoo resync : 15.12.2017
Diffstat (limited to 'app-admin/lastpass-binary-component')
-rw-r--r--app-admin/lastpass-binary-component/Manifest4
-rw-r--r--app-admin/lastpass-binary-component/lastpass-binary-component-4.1.44_p20171210.ebuild (renamed from app-admin/lastpass-binary-component/lastpass-binary-component-4.1.44.ebuild)59
2 files changed, 54 insertions, 9 deletions
diff --git a/app-admin/lastpass-binary-component/Manifest b/app-admin/lastpass-binary-component/Manifest
index 2b59ac46507f..bf1f3ea2528f 100644
--- a/app-admin/lastpass-binary-component/Manifest
+++ b/app-admin/lastpass-binary-component/Manifest
@@ -1,3 +1,3 @@
-DIST lastpass-binary-component-4.1.44.tar.bz2 1623477 SHA256 adb0e91f8d212d34dbb85db0b11738fe36db1a741ad5674d7070c4019a9fc75e SHA512 6fd518fa19f7206a1007376460c61e5a5c8d868126a767b3978309f0cc7ccd069e743cb12364e6841d8d3cb29452d058122b95f42bcfd2bd4deb4b8c77dc5f75 WHIRLPOOL c50bde0ee3f82abe56803beb2bda09786f7806b5e480eb8401fe0302ee984465f2682af66243095f3ea83744d59d6d3548806c423b69a8603abed9fc3ba3d00c
-EBUILD lastpass-binary-component-4.1.44.ebuild 1987 BLAKE2B 559b2d020f9551ca6f14a1f6a2f4785a7a8540654888f5bc32af30a956241c37f298c8ea5d1c9a9c1c8e55563612e255a8f37746088c487f3445c9c7d854f890 SHA512 65bf16de59b633847eef329c2e7333002c442332f86bc284577d0fc4fbd210adeaca455b65c70bc8fd62855198b74cbf4fbb32927b6c4ccd561032ea99147f6a
+DIST lastpass-binary-component-4.1.44_p20171210.tar.bz2 1625075 BLAKE2B 90812cfae90c90ab7f91ac293e501e9b8c6d0b4fca9e1f05e88865eb85042286308d2ce6eb90d306583aa9481de7588746a3402c3b4b9f29e2e540e4a4c2b287 SHA512 16ceebd054fe807975f838305044bf5e75ccbba2c592f7bf08af18d1209067c7e8b0e00457092242c3869de2ec5c59bfdfdb3ff06f801dbb2108b7dac1a7adbf
+EBUILD lastpass-binary-component-4.1.44_p20171210.ebuild 3659 BLAKE2B 3c5b5e500329013a373f05d94862fe6f1181ff6853623b709fd7385c985e7e7d61542df3d1fbff6f4d571ed328e306718e0401ecc55b4dfe5006c728f172d59e SHA512 7003c1bad71275ec8e1cebfd933b0087702ac65c3d8a5daa2655c7e65150986f8de1f1bfb89fb795a1ec72b0a86dae0138469e5e34023c2a3c03174a18c46f79
MISC metadata.xml 816 BLAKE2B ea7163f64706263e360241192a07e1e12eabc6fb196e5029cec931c53dacad20a9a4d851402f8942120328aa551159e2ba340257d50a5fcc36f7a72145e13a18 SHA512 71eb5c8aa836f75a5bfed79d7398e30628a274586a019d094a114d582ae2011d148cae325eb79b67e64035822cd18f154b9626142a7b2cc4c57f1e40f2f15b6b
diff --git a/app-admin/lastpass-binary-component/lastpass-binary-component-4.1.44.ebuild b/app-admin/lastpass-binary-component/lastpass-binary-component-4.1.44_p20171210.ebuild
index c46f9987de0a..beff308bc57f 100644
--- a/app-admin/lastpass-binary-component/lastpass-binary-component-4.1.44.ebuild
+++ b/app-admin/lastpass-binary-component/lastpass-binary-component-4.1.44_p20171210.ebuild
@@ -23,7 +23,7 @@ QA_PREBUILT="
${LASTPASS_EXEDIR}nplastpass*
"
-S="${WORKDIR}/lplinux"
+S="${WORKDIR}"
src_install() {
# This is based on the upstream installer script that's in the tarball
@@ -32,6 +32,7 @@ src_install() {
exeinto ${LASTPASS_EXEDIR}
doexe "${S}"/${bin}
+ # Generate the policy file for Chrome/Chromium/Opera
cat >"${T}"/lastpass_policy.json <<-EOF || die
{
"ExtensionInstallSources": [
@@ -41,6 +42,13 @@ src_install() {
]
}
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",
@@ -55,19 +63,56 @@ src_install() {
]
}
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
- for d in /etc/chromium /etc/opt/chrome; do
- insinto ${d}/policies/managed
- doins "${T}"/lastpass_policy.json
- insinto ${d}/native-messaging-hosts
- doins "${T}"/com.lastpass.nplastpass.json
- done
+ # 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"
}