1 |
commit: deccaea109bb0b09cf67ce85a3bfdbdcf6a769d2 |
2 |
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 12 17:38:06 2020 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 12 17:38:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deccaea1 |
7 |
|
8 |
app-admin/lastpass-binary-component: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org> |
12 |
|
13 |
.../lastpass-binary-component-4.19.0.ebuild | 114 --------------------- |
14 |
1 file changed, 114 deletions(-) |
15 |
|
16 |
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 |
17 |
deleted file mode 100644 |
18 |
index ac0969132cf..00000000000 |
19 |
--- a/app-admin/lastpass-binary-component/lastpass-binary-component-4.19.0.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,114 +0,0 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-DESCRIPTION="Binary component required by the LastPass Password Manager browser extension" |
28 |
-HOMEPAGE="https://helpdesk.lastpass.com/downloading-and-installing/#h5" |
29 |
-# sadly, upstream has no versioned distfiles |
30 |
-SRC_URI="https://download.cloud.lastpass.com/linux/lplinux.tar.bz2 -> ${P}.tar.bz2" |
31 |
- |
32 |
-LICENSE="LastPass" |
33 |
-SLOT="0" |
34 |
-KEYWORDS="-* ~amd64 ~x86" |
35 |
-RESTRICT="bindist strip mirror" # We can't mirror it, but we can fetch it |
36 |
- |
37 |
-LASTPASS_EXEDIR=/opt/lastpass/ |
38 |
- |
39 |
-QA_PREBUILT=" |
40 |
- ${LASTPASS_EXEDIR}nplastpass* |
41 |
-" |
42 |
- |
43 |
-S="${WORKDIR}" |
44 |
- |
45 |
-src_install() { |
46 |
- # This is based on the upstream installer script that's in the tarball |
47 |
- bin=nplastpass |
48 |
- use amd64 && bin="${bin}64" |
49 |
- exeinto ${LASTPASS_EXEDIR} |
50 |
- doexe "${S}"/${bin} |
51 |
- |
52 |
- # Generate the policy file for Chrome/Chromium/Opera |
53 |
- cat >"${T}"/lastpass_policy.json <<-EOF || die |
54 |
- { |
55 |
- "ExtensionInstallSources": [ |
56 |
- "https://lastpass.com/*", |
57 |
- "https://*.lastpass.com/*", |
58 |
- "https://d1jxck0p3rkj0.cloudfront.net/lastpass/*" |
59 |
- ] |
60 |
- } |
61 |
- EOF |
62 |
- # Install the policy file for Chrome/Chromium/Opera |
63 |
- for d in /etc/chromium /etc/opt/chrome; do |
64 |
- insinto ${d}/policies/managed |
65 |
- doins "${T}"/lastpass_policy.json |
66 |
- done |
67 |
- |
68 |
- # Generate the app manifest for Chrome/Opera |
69 |
- cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die |
70 |
- { |
71 |
- "name": "com.lastpass.nplastpass", |
72 |
- "description": "LastPass", |
73 |
- "path": "${LASTPASS_EXEDIR}${bin}", |
74 |
- "type": "stdio", |
75 |
- "allowed_origins": [ |
76 |
- "chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/", |
77 |
- "chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/", |
78 |
- "chrome-extension://hnjalnkldgigidggphhmacmimbdlafdo/", |
79 |
- "chrome-extension://hgnkdfamjgnljokmokheijphenjjhkjc/" |
80 |
- ] |
81 |
- } |
82 |
- EOF |
83 |
- # Install the app manifest for Chrome/Opera |
84 |
- # https://developer.chrome.com/apps/nativeMessaging |
85 |
- # https://dev.opera.com/extensions/message-passing/ |
86 |
- insinto /etc/opt/chrome/native-messaging-hosts |
87 |
- doins "${T}"/com.lastpass.nplastpass.json |
88 |
- |
89 |
- # Generate the app manifest for Chromium |
90 |
- cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die |
91 |
- { |
92 |
- "name": "com.lastpass.nplastpass", |
93 |
- "description": "LastPass", |
94 |
- "path": "${LASTPASS_EXEDIR}${bin}", |
95 |
- "type": "stdio", |
96 |
- "allowed_origins": [ |
97 |
- "chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/", |
98 |
- "chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/", |
99 |
- "chrome-extension://hgnkdfamjgnljokmokheijphenjjhkjc/" |
100 |
- ] |
101 |
- } |
102 |
- EOF |
103 |
- # Install the app manifest for Chromium |
104 |
- # https://developer.chrome.com/apps/nativeMessaging |
105 |
- insinto /etc/chromium/native-messaging-hosts/ |
106 |
- doins "${T}"/com.lastpass.nplastpass.json |
107 |
- |
108 |
- # Generate the app manifest for Firefox |
109 |
- cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die |
110 |
- { |
111 |
- "name": "com.lastpass.nplastpass", |
112 |
- "description": "LastPass", |
113 |
- "path": "${LASTPASS_EXEDIR}${bin}", |
114 |
- "type": "stdio", |
115 |
- "allowed_extensions": [ |
116 |
- "support@××××××××.com" |
117 |
- ] |
118 |
- } |
119 |
- EOF |
120 |
- # Install the app manifest for Firefox |
121 |
- # https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_manifests#Manifest_location |
122 |
- insinto /usr/lib/mozilla/native-messaging-hosts/ |
123 |
- doins "${T}"/com.lastpass.nplastpass.json |
124 |
-} |
125 |
- |
126 |
-pkg_postinst() { |
127 |
- einfo "This package only installs the components required by the browser extension." |
128 |
- einfo "Visit the links below for your browser to install the extension itself:" |
129 |
- einfo "Chrome/Chromium: https://lastpass.com/dl/inline/?full=1" |
130 |
- einfo "Firefox: https://lastpass.com/lastpassffx/" |
131 |
- einfo "Opera: https://lastpass.com/dl/" |
132 |
- einfo |
133 |
- einfo "Chrome, Chromium and Opera users need to manually enable the binary component." |
134 |
- einfo "For more info, visit: https://lastpass.com/support.php?cmd=showfaq&id=5576" |
135 |
-} |