diff options
author | 2014-10-08 17:25:08 +0000 | |
---|---|---|
committer | 2014-10-08 17:25:08 +0000 | |
commit | 15331d1af277db5472ab194c42bae56c645629b4 (patch) | |
tree | 502fb4eda9a2a6cd9e23c025f4d84737fd549a12 /app-admin | |
parent | Add LastPass EULA, copied from https://lastpass.com/terms-of-service/ as of 2... (diff) | |
download | historical-15331d1af277db5472ab194c42bae56c645629b4.tar.gz historical-15331d1af277db5472ab194c42bae56c645629b4.tar.bz2 historical-15331d1af277db5472ab194c42bae56c645629b4.zip |
Initial commit, based on Andrew Udvare's GitHub overlay work at https://github.com/Tatsh/tatsh-overlay
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/lastpass/ChangeLog | 10 | ||||
-rw-r--r-- | app-admin/lastpass/Manifest | 6 | ||||
-rw-r--r-- | app-admin/lastpass/lastpass-3.1.61.ebuild | 107 | ||||
-rw-r--r-- | app-admin/lastpass/metadata.xml | 15 |
4 files changed, 138 insertions, 0 deletions
diff --git a/app-admin/lastpass/ChangeLog b/app-admin/lastpass/ChangeLog new file mode 100644 index 000000000000..9f67c2600e8c --- /dev/null +++ b/app-admin/lastpass/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-admin/lastpass +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/lastpass/ChangeLog,v 1.1 2014/10/08 17:25:02 robbat2 Exp $ + +*lastpass-3.1.61 (08 Oct 2014) + + 08 Oct 2014; Robin H. Johnson <robbat2@gentoo.org> +lastpass-3.1.61.ebuild, + +metadata.xml: + Initial commit, based on Andrew Udvare's GitHub overlay work at + https://github.com/Tatsh/tatsh-overlay diff --git a/app-admin/lastpass/Manifest b/app-admin/lastpass/Manifest new file mode 100644 index 000000000000..da17d5e8ece4 --- /dev/null +++ b/app-admin/lastpass/Manifest @@ -0,0 +1,6 @@ +DIST lp_linux.xpi 3965257 SHA256 1d98b3649f51e5f08a16379a73791b7e85fa5fab35b3a6190860c900788c5dbc SHA512 e39a6ada0e75dcb3bf943bce9b573bf8d22be7c07baf86f3651cbaaa5abcec7c31dd43341369b1fe562aff572befd1f15114ba030e6b9fb317bd476798d7b5e5 WHIRLPOOL 85f7eebc2f155d4beb7a1f69ef9d1e58508c76ac2807536d7a07885f395f342b218587199c9b57a77f9e54e75e1dfaf311341c16a59830c114283e542aa18767 +DIST lpchrome_linux.crx 4722909 SHA256 511fd7968bb45ab1425ca9584873f4dbf0812b63c64a4e604796cb0a76849f3f SHA512 01935a34a0be63b96556009cb50364df83599aeab6cad10d7e4b49af5a5acfeecf61171aa36f932901a42e2e0b58141e649d17525a259343fe9b2f287d413dc0 WHIRLPOOL 230f2c820d2cf8d3a937866c5c3dde8b7f05e37547180a4e666bc0bac592671f5c1d7bb84498d5bd930053e47ec80d75207dcaba1b71f307d1ea011d80e9e5f9 +DIST lplinux.tar.bz2 1523508 SHA256 535fe4ce97a55f3baf9311962a7a4812ea7a32c8a545ee1e533c0794c665abf1 SHA512 4433701df5a6c04bb914f3b342c458a28ff7cd232936f77dfec6ddd959060be1e8bf067b88e05d1c1ac69f63f1660c49c262f85515d6cf97188ea365f7bf309b WHIRLPOOL 818f00fc43944b8eb1c0f4816e82fa06be69845d1d6a3eb8de453db1647e9bfdce0ff0812ea9c0fec64c904dce1cc1fa4c514a79ead2c5e98aeb7416a8a2fb41 +EBUILD lastpass-3.1.61.ebuild 3071 SHA256 07958df55f4fd530777900dcb9556f66f748e42542dfc79dd189b7057d38bf95 SHA512 7b61b6df329c5b1c73945951f08771b26b016242ccb47ca526b121a4dd463c931bae5d48d46348954c1f37686ea1e77541e6da668329233c536d4def41727ba5 WHIRLPOOL 397675e0cf76383fd057435b4d1c0808a8499c43aaa8bc0b28951c8485b07cc47e9b79466caaf81955b54943741103a080378b8930f77276ddd0dfb235d0d99f +MISC ChangeLog 444 SHA256 463d96f483f5f539ea30c575ef3b0929093e3ea5975bbc1a603120624f746628 SHA512 dff051953e87233346f0da87da4a49aadcf8677a80c3637de875906af5078e0d0977b935fc4a0f206b8baea5d49a7efe264f27fbc47a01ed5c2aaf35596c225d WHIRLPOOL e637b90761bbe9ce66ab1e4d39fdbe48212ce010352f30eebec481de81c0aee9f068934a6676ed7c313ec8912988f033ad159f2c65cb0dc08b3a6c2845c87df9 +MISC metadata.xml 513 SHA256 c129b3492d6c00daf82c2e0119025ddb72e82856b35489faa3bf8e8084a8b6e4 SHA512 f7e25966b30c07daed2f989041009f7efaf162af46174ad227dad5c2eef6cdf7e1da87fcfd9a1e2a6466c0e6d027075bac2c9cdd9554541bbd86070dc4682dc0 WHIRLPOOL 28ea2af17b2c50aa02df250fe626254da3e26c2f70636a273532d929a150e206651e3cb80d80bd95cffd1dc97e16a10e6bf3e70949da04a9597838628808c52c diff --git a/app-admin/lastpass/lastpass-3.1.61.ebuild b/app-admin/lastpass/lastpass-3.1.61.ebuild new file mode 100644 index 000000000000..a0a13bd7c7cc --- /dev/null +++ b/app-admin/lastpass/lastpass-3.1.61.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/lastpass/lastpass-3.1.61.ebuild,v 1.1 2014/10/08 17:25:02 robbat2 Exp $ + +EAPI=5 +inherit eutils + +DESCRIPTION="Online password manager and form filler that makes web browsing easier and more secure" +HOMEPAGE="https://lastpass.com/misc_download2.php" +# sadly, upstream has no versioned distfiles +MAINDISTFILE=lplinux.tar.bz2 +SRC_URI="https://lastpass.com/$MAINDISTFILE + firefox? ( https://lastpass.com/lp_linux.xpi ) + https://lastpass.com/lpchrome_linux.crx" + +LICENSE="LastPass" +SLOT="0" +KEYWORDS="-* ~x86 ~amd64" +IUSE="+chromium +firefox +chrome" +RESTRICT="strip mirror" # We can't mirror it, but we can fetch it + +DEPEND="" +RDEPEND=" + chrome? ( || ( + www-client/google-chrome + www-client/google-chrome-beta + www-client/google-chrome-unstable + ) ) + chromium? ( >=www-client/chromium-32.0.1700.102 ) + firefox? ( www-client/firefox )" +REQUIRED_USE="|| ( firefox chromium chrome )" + +LASTPASS_EXEDIR=/opt/lastpass/ + +QA_PREBUILT=" +${LASTPASS_EXEDIR}/nplastpass* +/usr/lib*/firefox/browser/extensions/support@lastpass.com/platform/Linux_x86_64-gcc3/components/lpxpcom_x86_64.so +/usr/lib*/firefox/browser/extensions/support@lastpass.com/platform/Linux_x86-gcc3/components/lpxpcom.so +" + +S="${WORKDIR}" + +src_unpack() { + unpack $MAINDISTFILE + mkdir -p "${S}"/crx + unzip -qq -o "${DISTDIR}/lpchrome_linux.crx" -d "${S}"/crx +} + +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 + + # despite the name, this piece seems used by both firefox+chrome + exeinto /usr/$(get_libdir)/nsbrowser/plugins + doexe "${S}"/crx/lib${bin}.so + + cat >"${T}"/lastpass_policy.json <<-EOF + { + "ExtensionInstallSources": [ + "https://lastpass.com/*", + "https://*.lastpass.com/*", + "https://*.cloudfront.net/lastpass/*" + ] + } + EOF + cat >"${T}"/com.lastpass.nplastpass.json <<-EOF + { + "name": "com.lastpass.nplastpass", + "description": "LastPass", + "path": "${LASTPASS_EXEDIR}/$bin", + "type": "stdio", + "allowed_origins": [ + "chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/", + "chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/", + "chrome-extension://hnjalnkldgigidggphhmacmimbdlafdo/" + ] + } + EOF + + if use chromium; then + insinto /etc/chromium/policies/managed + doins "${T}"/lastpass_policy.json + insinto /etc/opt/chrome/native-messaging-hosts/ + doins "${T}"/com.lastpass.nplastpass.json + fi + if use chrome; then + insinto /etc/opt/chrome/policies/managed/ + doins "${T}"/lastpass_policy.json + insinto /etc/chromium/native-messaging-hosts + doins "${T}"/com.lastpass.nplastpass.json + fi + + if use firefox; then + d="$D/usr/$(get_libdir)/firefox/browser/extensions/support@lastpass.com" + mkdir -p $d + unzip -qq -o "${DISTDIR}/lp_linux.xpi" -d "$d" + fi + +} + +pkg_postinst() { + einfo "Visit https://lastpass.com/dl/inline/?full=1 to finish installing for Chrome/Chromium/Firefox" +} + diff --git a/app-admin/lastpass/metadata.xml b/app-admin/lastpass/metadata.xml new file mode 100644 index 000000000000..2d591a320cdf --- /dev/null +++ b/app-admin/lastpass/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>robbat2@gentoo.org</email> + <name>Robin H. Johnson</name> + </maintainer> + <longdescription lang="en"> + </longdescription> + <use> + <flag name="firefox">Support for <pkg>www-client/firefox</pkg></flag> + <flag name="chromium">Support for <pkg>www-client/chromium</pkg></flag> + <flag name="chrome">Support for <pkg>www-client/chrome</pkg></flag> + </use> +</pkgmetadata> |