robbat2 14/10/08 17:25:02 Added: metadata.xml lastpass-3.1.61.ebuild ChangeLog Log: Initial commit, based on Andrew Udvare's GitHub overlay work at https://github.com/Tatsh/tatsh-overlay (Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path 1.1 app-admin/lastpass/metadata.xml file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/lastpass/metadata.xml?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/lastpass/metadata.xml?rev=1.1&content-type=text/plain Index: metadata.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer> <email>[email protected]</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> 1.1 app-admin/lastpass/lastpass-3.1.61.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/lastpass/lastpass-3.1.61.ebuild?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/lastpass/lastpass-3.1.61.ebuild?rev=1.1&content-type=text/plain Index: lastpass-3.1.61.ebuild =================================================================== # 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/[email protected]/platform/Linux_x86_64-gcc3/components/lpxpcom_x86_64.so /usr/lib*/firefox/browser/extensions/[email protected]/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/[email protected]" 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" } 1.1 app-admin/lastpass/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/lastpass/ChangeLog?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/lastpass/ChangeLog?rev=1.1&content-type=text/plain Index: ChangeLog =================================================================== # 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 <[email protected]> +lastpass-3.1.61.ebuild, +metadata.xml: Initial commit, based on Andrew Udvare's GitHub overlay work at https://github.com/Tatsh/tatsh-overlay
