summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Schwartz2017-06-05 01:19:37 -0500
committerEli Schwartz2017-06-05 01:19:37 -0500
commit0c947033b5899595bfdc9a19e8e352bff0bb82b9 (patch)
tree264e4549e5b471b99543665d34f7181eb5d03b32
parent154482ce147162c9b5e4ab965598cbab6895233f (diff)
downloadaur-0c947033b5899595bfdc9a19e8e352bff0bb82b9.tar.gz
upgpkg: lastpass 4.1.53-1
Adoption and massive cleanup of pretty much every possible bad practice a maintainer can do. :(
-rw-r--r--.SRCINFO54
-rw-r--r--License.txt85
-rw-r--r--PKGBUILD126
-rw-r--r--com.lastpass.nplastpass.json2
-rw-r--r--lastpass.install110
-rw-r--r--lastpass_policy_install.json4
-rw-r--r--lastpass_policy_sources.json (renamed from lastpass_policy.json)0
-rw-r--r--profiles.ini8
8 files changed, 167 insertions, 222 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0aff1c19d4ca..5eba4219333a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,43 +1,31 @@
pkgbase = lastpass
pkgdesc = The Universal LastPass installer for Firefox, Chrome, and Opera
- pkgver = 4.1.44
- pkgrel = 9
+ pkgver = 4.1.53
+ pkgrel = 1
url = https://lastpass.com
- install = lastpass.install
arch = i686
arch = x86_64
license = custom
- depends = libx11
- depends = libxau
- depends = libxcb
- depends = libxdmcp
- optdepends = chromium: for Chromium
- optdepends = chromium-dev: for Chromium (Dev Channel) (AUR)
- optdepends = firefox: for Mozilla Firefox
- optdepends = firefox-beta-bin: for Mozilla Firefox (Beta) (AUR)
- optdepends = firefox-nightly: for Mozilla Firefox (Nightly) (AUR)
- optdepends = google-chrome: for Google Chrome (AUR)
- optdepends = google-chrome-beta: for Google Chrome (Beta Channel) (AUR)
- optdepends = google-chrome-dev: for Google Chrome (Dev Channel) (AUR)
- optdepends = opera: for Opera
- optdepends = opera-beta: for Opera Beta (AUR)
- optdepends = opera-developer: for Opera Developer (AUR)
- noextract = lpchrome_4.1.52.crx
- noextract = lpfirefox_4.1.53a.xpi
- source = lplinux_4.1.44.tar.bz2::https://lastpass.com/lplinux.tar.bz2
- source = lpchrome_4.1.52.crx::https://clients2.google.com/service/update2/crx?response=redirect&prodversion=56.0.2924.87&x=id%3Dhdokiejnpimakedhajhdlcegeplioahd%26uc
- source = lpchrome_lib_4.1.23.crx::https://lastpass.com/lpchrome_linux.crx
+ optdepends = chromium
+ optdepends = firefox
+ optdepends = google-chrome
+ optdepends = opera
+ noextract = lastpass-4.1.53.xpi
+ noextract = lpchrome-4.1.52.crx
+ source = lastpass-4.1.53.xpi::https://addons.mozilla.org/firefox/downloads/file/650260/
+ source = lpchrome-4.1.52.crx::https://lastpass.com/lpchrome_linux.crx
+ source = lplinux-4.1.44.tar.bz2::https://lastpass.com/lplinux.tar.bz2
source = com.lastpass.nplastpass.json
- source = lastpass_policy.json
- source = lpfirefox_4.1.53a.xpi::https://lastpass.com/lastpassffx/xpi.php
- source = profiles.ini
- md5sums = 5a9bb6e274c8d5102400fa03a3cab776
- md5sums = 2f1632b33cae35a4dfa8099851f243de
- md5sums = bd7678de722909acd89ba768edf0d5d5
- md5sums = 151251e415bccdffc1dc0df592d1d7e1
- md5sums = 9af777d2eea8e67ad332235718a7653d
- md5sums = a742b797ace7134cf3f49575fe1d11ce
- md5sums = d0f555a644484baccf649f7969794ece
+ source = lastpass_policy_sources.json
+ source = lastpass_policy_install.json
+ source = License.txt
+ sha256sums = 927a56376751e75e6bbfb29eec6a13defd06e991cfa79116bf2e8aaadb0b2c9d
+ sha256sums = 47937f48972b73f024a1e616547405d41e368cb3756f97958423d20d2196762d
+ sha256sums = adb0e91f8d212d34dbb85db0b11738fe36db1a741ad5674d7070c4019a9fc75e
+ sha256sums = e8eb3b585809d6644807727c5bd0a74ead96dd2c5a7e6d2ce29e0b6ea28b9e59
+ sha256sums = f82b920620575654fcbc0baf9b5d6c275835cbfc05b779ad309de5c6411c8bc9
+ sha256sums = 1c061cb5352d84dd6cde4dd6ce3889d41a31fd38acc4d97a7d69709e3d5ac693
+ sha256sums = 17a871edf1134c498f6e91465f5b3138ba5af7d822e4c253cda81ab929906388
pkgname = lastpass
diff --git a/License.txt b/License.txt
new file mode 100644
index 000000000000..c866520d4e02
--- /dev/null
+++ b/License.txt
@@ -0,0 +1,85 @@
+The following terms and conditions govern all use of the LastPass.com and other LastPass websites and all content, services and products available at or through the website (taken together, the Website). The Website is owned and operated by LastPass. The Website is offered subject to your acceptance without modification of all of the terms and conditions contained herein and all other operating rules, policies and procedures that may be published from time to time on this Site by LastPass (collectively, the ‘Agreement’).
+
+Please read this Agreement carefully before accessing or using the web site. By accessing or using any part of the web site, you agree to become bound by the terms and conditions of this agreement. If you do not agree to all the terms and conditions of this agreement, then you may not access the website or use any services. If these terms and conditions are considered an offer by LastPass, acceptance is expressly limited to these terms.
+
+
+* Your Account.
+
+You are responsible for maintaining the security of your account, and you are fully responsible for all activities that occur under the account and any other actions taken in connection with it. You must not use your account in a misleading or unlawful manner, including in a manner intended to trade on the name or reputation of others, and LastPass may change or remove any description or keyword that it considers inappropriate or unlawful, or otherwise likely to cause LastPass liability. You must immediately notify LastPass of any unauthorized uses of your account or any other breaches of security. LastPass will not be liable for any acts or omissions by You, including any damages of any kind incurred as a result of such acts or omissions.
+
+Without limiting any of those representations or warranties, LastPass has the right (though not the obligation) to, in LastPass’ sole discretion (i) refuse or remove any content that, in LastPass’ reasonable opinion, violates any LastPass policy or is in any way harmful or objectionable, or (ii) terminate or deny access to and use of the Website to any individual or entity for any reason, in LastPass’ sole discretion. LastPass will have no obligation to provide a refund of any amounts previously paid.
+
+LastPass Standard (free edition) is intended for personal, non-commercial use only. The unauthorized commercial use of LastPass Standard is prohibited. LastPass reserves all its rights in the event of a violation of this policy, which may include discontinuation of the subscription itself, suspension of your privileges as a user, and enforcement of LastPass’ rights under law and equity.
+
+
+* Responsibility of Website Visitors.
+
+LastPass has not reviewed, and cannot review, all of the material, including computer software that is not cryptographically signed by LastPass, posted to the Website, and cannot therefore be responsible for that material’s content, use or effects. By operating the Website, LastPass does not represent or imply that it endorses the material there posted, or that it believes such material to be accurate, useful or non-harmful. You are responsible for taking precautions as necessary to protect yourself and your computer systems from viruses, worms, Trojan horses, and other harmful or destructive content. The Website may contain content that is offensive, indecent, or otherwise objectionable, as well as content containing technical inaccuracies, typographical mistakes, and other errors. The Website may also contain material that violates the privacy or publicity rights, or infringes the intellectual property and other proprietary rights, of third parties, or the downloading, copying or use of which is subject to additional terms and conditions, stated or unstated. LastPass disclaims any responsibility for any harm resulting from the use by visitors of the Website, or from any downloading by those visitors of content there posted.
+
+
+* Content Posted on Other Websites.
+
+We have not reviewed, and cannot review, all of the material, including computer software, made available through the websites and webpages to which LastPass.com links, and that link to LastPass.com. LastPass does not have any control over those non-LastPass.com websites and webpages, and is not responsible for their contents or their use. By linking to a non-LastPass.com website or webpage, LastPass does not represent or imply that it endorses such website or webpage. You are responsible for taking precautions as necessary to protect yourself and your computer systems from viruses, worms, Trojan horses, and other harmful or destructive content. LastPass disclaims any responsibility for any harm resulting from your use of non-LastPass websites and webpages.
+
+
+* Copyright Infringement and DMCA Policy.
+
+As LastPass asks others to respect its intellectual property rights, it respects the intellectual property rights of others. If you believe that material located on or linked to by LastPass.com violates your copyright, you are encouraged to notify LastPass in accordance with LastPass’ Digital Millennium Copyright Act (‘DMCA’) Policy. LastPass will respond to all such notices, including as required or appropriate by removing the infringing material or disabling all links to the infringing material. In the case of a visitor who may infringe or repeatedly infringes the copyrights or other intellectual property rights of LastPass or others, LastPass may, in its discretion, terminate or deny access to and use of the Website. In the case of such termination, LastPass will have no obligation to provide a refund of any amounts previously paid to LastPass.
+
+
+* Intellectual Property.
+
+This Agreement does not transfer from LastPass to you any LastPass or third party intellectual property, and all right, title and interest in and to such property will remain (as between the parties) solely with LastPass. LastPass, LastPass.com, and all other trademarks, service marks, graphics and logos used in connection with LastPass.com, or the Website are trademarks or registered trademarks of LastPass or LastPass’ licensors. Other trademarks, service marks, graphics and logos used in connection with the Website may be the trademarks of other third parties. Your use of the Website grants you no right or license to reproduce or otherwise use any LastPass or third-party trademarks.
+
+
+* Changes.
+
+LastPass reserves the right, at its sole discretion, to modify or replace any part of this Agreement. It is your responsibility to check this Agreement periodically for changes. Your continued use of or access to the Website following the posting of any changes to this Agreement constitutes acceptance of those changes. LastPass may also, in the future, offer new services and/or features through the Website (including, the release of new tools and resources). Such new features and/or services shall be subject to the terms and conditions of this Agreement.
+
+
+* Termination.
+
+LastPass may terminate your access to all or any part of the Website at any time, with or without cause, with or without notice, effective immediately. If you wish to terminate this Agreement or your account (if you have one), you may simply discontinue using the Website. Notwithstanding the foregoing, if you have a Services account, such account can only be terminated by LastPass if you materially breach this Agreement and fail to cure such breach within thirty (30) days from LastPass’ notice to you thereof; provided that, LastPass can terminate the Website immediately as part of a general shut down of our service. All provisions of this Agreement which by their nature should survive termination shall survive termination, including, without limitation, ownership provisions, warranty disclaimers, indemnity and limitations of liability.
+
+
+* Disclaimer of Warranties.
+
+The Website is provided ‘as is’. LastPass and its suppliers, licensors and affiliate companies hereby disclaim all warranties of any kind, express or implied, including, without limitation, the warranties of merchantability, fitness for a particular purpose and non-infringement. Neither LastPass nor its suppliers and licensors, makes any warranty that the Website will be error free or that access thereto will be continuous or uninterrupted. You understand that you download from, or otherwise obtain content or services through, the Website at your own discretion and risk.
+
+
+* Limitation of Liability.
+
+In no event will LastPass, or its suppliers or licensors, be liable with respect to any subject matter of this agreement under any contract, negligence, strict liability or other legal or equitable theory for: (i) any special, incidental or consequential damages; (ii) the cost of procurement or substitute products or services; (iii) for interruption of use or loss or corruption of data; or (iv) for any amounts that increase the fees paid by you to LastPass under this agreement during the twelve (12) month period prior to the date the cause of the action accrues. LastPass shall have no liability for any failure or delay due to matters beyond their reasonable control. The foregoing shall not apply to the extent prohibited by applicable law.
+
+
+* General Representation and Warranty.
+
+You represent and warrant that (i) your use of the Website will be in strict accordance with the LastPass Privacy Statement, with this Agreement and with all applicable laws and regulations (including without limitation any local laws or regulations in your country, state, city, or other governmental area, regarding online conduct and acceptable content, and including all applicable laws regarding the transmission of technical data exported from the United States or the country in which you reside) and (ii) your use of the Website will not infringe or misappropriate the intellectual property rights of any third party.
+
+
+* Indemnification.
+
+You agree to indemnify and hold harmless LastPass, its contractors, and its licensors, and their respective directors, officers, employees and agents from and against any and all claims and expenses, including attorneys’ fees, arising out of your use of the Website, including but not limited to out of your violation this Agreement.
+
+
+* Use of LastPass by Kids.
+
+LastPass can be used by kids, however LastPass is not currently developed for children specifically and any use by children should be done with the guidance, supervision and consent of their parents, guardians and/or authorized school officials. It is also the parents’ or guardian’s responsibility to understand our Terms and our Privacy Policy.
+
+If you are an educational organization or an educator like a school, district or teacher in the United States and want your students who to create LastPass accounts, including any use of a LastPass Enterprise account for the schools or a group of students at the school, you agree that you are responsible for complying with the U.S. Children’s Online Privacy Protection Act (“COPPA”) and, to the extent applicable, The Family Educational Rights and Privacy Act (“FERPA”). Students’ parents/guardians must be notified of the use of LastPass, of the personally identifiable information that LastPass will collect, and of the LastPass Terms and Privacy Policy and you must obtain parental/guardian consent before your students establish accounts or use the Service. Copies of any communication should be kept for LastPass’ review if needed. For more information on complying with COPPA, see the Federal Trade Commission’s website at http://www.ftc.gov/privacy/coppafaqs.shtm. If you are located outside of the United States, we will rely upon you to obtain any required consent or approval from the parent or guardian of any student covered by similar laws and, as a condition to your and your students’ use of the Service, you agree that you will be responsible for complying with such laws.
+
+
+* Third Party Software.
+
+Certain portions of LastPass contain technology, software, and data owned by third parties and licensed to LastPass for use and redistribution under open-source and commercial licenses and in accordance to their terms. A list of disclosures and disclaimers in connection with LastPass' incorporation of third party licensed software into its products may be found at https://lastpass.com/docs/licenses.php. Notwithstanding any of the terms and conditions of your license agreement with LastPass, you agree to the terms and conditions of these third party licenses. The list of third party licenses may not be complete and may be updated from time to time. LastPass reserves the right, at its sole discretion, to modify, replace, or add to any part of this list. It is your responsibility to check the list periodically for changes. Your continued use of or access to the Website following the posting of any changes to the list constitutes acceptance of those changes.
+
+
+* Miscellaneous.
+
+This Agreement constitutes the entire agreement between LastPass and you concerning the subject matter hereof, and they may only be modified by a written amendment signed by an authorized executive of LastPass, or by the posting by LastPass of a revised version. Except to the extent applicable law, if any, provides otherwise, this Agreement, any access to or use of the Website will be governed by the laws of the state of Virginia, excluding its conflict of law provisions, and the proper venue for any disputes arising out of or relating to any of the same will be the state and federal courts located in Fairfax, VA.
+
+The prevailing party in any action or proceeding to enforce this Agreement shall be entitled to costs and attorneys’ fees. If any part of this Agreement is held invalid or unenforceable, that part will be construed to reflect the parties’ original intent, and the remaining portions will remain in full force and effect. A waiver by either party of any term or condition of this Agreement or any breach thereof, in any one instance, will not waive such term or condition or any subsequent breach thereof. You may assign your rights under this Agreement to any party that consents to, and agrees to be bound by, its terms and conditions; LastPass may assign its rights under this Agreement without condition. This Agreement will be binding upon and will inure to the benefit of the parties, their successors and permitted assigns.
+
+Marvasol Inc. DBA LastPass
+
+These terms are licensed under Creative Commons Share-Alike.
diff --git a/PKGBUILD b/PKGBUILD
index 47740299f669..fc26128aa786 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,50 +1,37 @@
-# Maintainer: Det <nimetonmaili g-mail>
+# Maintainer: Eli Schwartz <eschwartz93@gmail.com>
pkgname=lastpass
-pkgver=4.1.44
-_universal=$pkgver # Version of the universal installer: https://lastpass.com/misc_download2.php
-_chromver=4.1.52 # The actual extensions' versions
-_chromver_lib=4.1.23
-_ffver=4.1.53a
-pkgrel=9
+pkgver=4.1.53
+_universalver=4.1.44
+_chromever=4.1.52
+pkgrel=1
+_amo_file=650260
+_crx_id=hdokiejnpimakedhajhdlcegeplioahd
pkgdesc="The Universal LastPass installer for Firefox, Chrome, and Opera"
arch=('i686' 'x86_64')
url="https://lastpass.com"
license=('custom')
-depends=('libx11' 'libxau' 'libxcb' 'libxdmcp')
-optdepends=('chromium: for Chromium'
- 'chromium-dev: for Chromium (Dev Channel) (AUR)'
- 'firefox: for Mozilla Firefox'
- 'firefox-beta-bin: for Mozilla Firefox (Beta) (AUR)'
- 'firefox-nightly: for Mozilla Firefox (Nightly) (AUR)'
- 'google-chrome: for Google Chrome (AUR)'
- 'google-chrome-beta: for Google Chrome (Beta Channel) (AUR)'
- 'google-chrome-dev: for Google Chrome (Dev Channel) (AUR)'
- 'opera: for Opera'
- 'opera-beta: for Opera Beta (AUR)'
- 'opera-developer: for Opera Developer (AUR)')
-install=$pkgname.install
-source=(# Universal
- "lplinux_$_universal.tar.bz2::$url/lplinux.tar.bz2"
- # Chrome
- "lpchrome_$_chromver.crx::https://clients2.google.com/service/update2/crx?response=redirect&prodversion=56.0.2924.87&x=id%3Dhdokiejnpimakedhajhdlcegeplioahd%26uc"
- "lpchrome_lib_${_chromver_lib}.crx::$url/lpchrome_linux.crx"
- 'com.lastpass.nplastpass.json'
- 'lastpass_policy.json'
- # Firefox
- #"https://addons.cdn.mozilla.net/user-media/addons/8542/lastpass_password_manager-$_ffver-an+fx.xpi"
- #"$url/lp4.xpi"
- "lpfirefox_$_ffver.xpi::$url/lastpassffx/xpi.php"
- 'profiles.ini')
-noextract=("lpchrome_$_chromver.crx"
- "lpfirefox_$_ffver.xpi")
-md5sums=('5a9bb6e274c8d5102400fa03a3cab776' # Universal
- '2f1632b33cae35a4dfa8099851f243de' # Chrome
- 'bd7678de722909acd89ba768edf0d5d5' # Chrome with Lib
- '151251e415bccdffc1dc0df592d1d7e1'
- '9af777d2eea8e67ad332235718a7653d'
- 'a742b797ace7134cf3f49575fe1d11ce' # Firefox
- 'd0f555a644484baccf649f7969794ece')
+optdepends=('chromium'
+ 'firefox'
+ 'google-chrome'
+ 'opera')
+# Apparently, API endpoints are all the rage -- so this isn't actually a file...
+source=("${pkgname}-${pkgver}.xpi::https://addons.mozilla.org/firefox/downloads/file/${_amo_file}/"
+ "lpchrome-${_chromever}.crx::${url}/lpchrome_linux.crx"
+ "lplinux-${_universalver}.tar.bz2::${url}/lplinux.tar.bz2"
+ "com.lastpass.nplastpass.json"
+ "lastpass_policy_sources.json"
+ "lastpass_policy_install.json"
+ "License.txt")
+noextract=("${pkgname}-${pkgver}.xpi"
+"lpchrome-${_chromever}.crx")
+sha256sums=('927a56376751e75e6bbfb29eec6a13defd06e991cfa79116bf2e8aaadb0b2c9d'
+ '47937f48972b73f024a1e616547405d41e368cb3756f97958423d20d2196762d'
+ 'adb0e91f8d212d34dbb85db0b11738fe36db1a741ad5674d7070c4019a9fc75e'
+ 'e8eb3b585809d6644807727c5bd0a74ead96dd2c5a7e6d2ce29e0b6ea28b9e59'
+ 'f82b920620575654fcbc0baf9b5d6c275835cbfc05b779ad309de5c6411c8bc9'
+ '1c061cb5352d84dd6cde4dd6ce3889d41a31fd38acc4d97a7d69709e3d5ac693'
+ '17a871edf1134c498f6e91465f5b3138ba5af7d822e4c253cda81ab929906388')
# 64-bit?
if [[ $CARCH = x86_64 ]]; then
@@ -52,42 +39,41 @@ if [[ $CARCH = x86_64 ]]; then
fi
prepare() {
- # Write user var to .install
- sed -i "s/_user=[^ ]*/_user=$USER/" "$startdir"/$pkgname.install
+ cd "${srcdir}"
+
+ tail -c +307 lpchrome-${_chromever}.crx > lpchrome-${_chromever}.zip
+ unzip -qqo lpchrome-${_chromever}.zip -d lpchrome-${_chromever}
+
+ unzip -qqo "${pkgname}-${pkgver}.xpi" -d "${pkgname}-${pkgver}"
}
-_chrome_package() {
- # Install to single place for linking
- install -Dm644 lpchrome_$_chromver.crx "$pkgdir"/usr/share/lastpass/lpchrome_$_chromver.crx
- install -Dm755 lplinux/nplastpass$_64 "$pkgdir"/etc/opt/chrome/native-messaging-hosts/nplastpass$_64
+package() {
+ cd "${srcdir}"
- # 64-bit?
- sed -i "s|/nplastpass|/nplastpass$_64|" com.lastpass.nplastpass.json
+ # Firefox
+ _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' ${pkgname}-${pkgver}/install.rdf)"
+ _extension_dest="${pkgdir}/usr/lib/firefox/browser/extensions/${_extension_id}"
+ # Should this extension be unpacked or not?
+ if grep '<em:unpack>true</em:unpack>' ${pkgname}-${pkgver}/install.rdf > /dev/null; then
+ install -dm755 "${_extension_dest}"
+ cp -R ${pkgname}-${pkgver}/* "${_extension_dest}"
+ chmod -R ugo+rX "${_extension_dest}"
+ else
+ install -Dm644 ${pkgname}-${pkgver}.xpi "${_extension_dest}.xpi"
+ fi
- # JSONs
+ # Chrome(ium)
+ install -Dm755 lplinux/nplastpass$_64 "$pkgdir"/usr/lib/lastpass/nplastpass
for i in opt/chrome chromium chromium-dev; do
- # Messaging host
install -Dm644 com.lastpass.nplastpass.json "$pkgdir"/etc/$i/native-messaging-hosts/com.lastpass.nplastpass.json
-
- # Allow silent installation since Chrome v21: http://www.chromium.org/administrators/policy-list-3#ExtensionInstallSources
- install -Dm644 lastpass_policy.json "$pkgdir"/etc/$i/policies/managed/lastpass_policy.json
+ install -Dm644 lastpass_policy_sources.json "$pkgdir"/etc/$i/policies/managed/lastpass.json
+ done
+ for i in google-chrome chromium ; do
+ install -Dm644 lastpass_policy_install.json "$pkgdir"/usr/share/$i/extensions/hdokiejnpimakedhajhdlcegeplioahd.json
done
-}
-
-_firefox_package() {
- # Extension + profiles.ini go to $HOME, so do this in .install
- install -m644 lpfirefox_$_ffver.xpi "$pkgdir"/usr/share/lastpass/
- install -m644 profiles.ini "$pkgdir"/usr/share/lastpass/
-
- # Binary plugin
- #bsdtar -xf lpchrome_linux_${_chromver_lib}.crx libnplastpass$_64.so
- install -Dm755 libnplastpass$_64.so "$pkgdir"/usr/lib/mozilla/plugins/libnplastpass$_64.so
-}
-package() {
- msg2 "Installing for Google Chromes/Chromiums..."
- _chrome_package
+ # Opera
+ install -Dm755 lpchrome-${_chromever}/libnplastpass${_64}.so "${pkgdir}"/usr/lib/opera/plugins/libnplastpass.so
- msg2 "Installing for Mozilla Firefoxes..."
- _firefox_package
+ install -Dm644 License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
diff --git a/com.lastpass.nplastpass.json b/com.lastpass.nplastpass.json
index 8cb1342b1ae4..e6706ce7e954 100644
--- a/com.lastpass.nplastpass.json
+++ b/com.lastpass.nplastpass.json
@@ -1,6 +1,6 @@
{ "name": "com.lastpass.nplastpass",
"description": "LastPass",
- "path": "/etc/opt/chrome/native-messaging-hosts/nplastpass",
+ "path": "/usr/lib/lastpass/nplastpass",
"type": "stdio",
"allowed_origins": [ "chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/",
"chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/",
diff --git a/lastpass.install b/lastpass.install
deleted file mode 100644
index 1b18cba79087..000000000000
--- a/lastpass.install
+++ /dev/null
@@ -1,110 +0,0 @@
-# Directories
-_user=det # User
-_home=/home/$_user/ # $HOME
-
-## Install for Mozilla Firefoxes
-_firefox() {
- echo -e "\nInstalling Mozilla Firefox leftovers..."
-
- # Try to use existing profiles
- IFS=$'\n' _ff_profiles=($(ls -d $_home/.mozilla/firefox/*.*/ 2>/dev/null))
- if [[ $_ff_profiles ]]; then
- for _ff_profile in ${_ff_profiles[@]}; do
- # Install
- install -d -o $_user $_ff_profile/extensions/support@lastpass.com/
- bsdtar -xf /usr/share/lastpass/lpfirefox_*.xpi -C $_ff_profile/extensions/support@lastpass.com/
-
- # Enable auto-installation through 'extensions.autoDisableScopes'
- echo 'user_pref("extensions.autoDisableScopes", 10);' >> $_ff_profile/prefs.js
- echo 'user_pref("xpinstall.signatures.required", false);' >> $_ff_profile/prefs.js
-
- # Set the correct ownerships
- chown $_user $_ff_profile/extensions/
- chown $_user -R $_ff_profile/extensions/support@lastpass.com/
- done
- else
- # Create our own
- install -d $_home/.mozilla/firefox/lastpass.default/extensions/support@lastpass.com/
- bsdtar -xf /usr/share/lastpass/lpfirefox_*.xpi -C \
- $_home/.mozilla/firefox/lastpass.default/extensions/support@lastpass.com/
-
- # Install 'profiles.ini'
- install -m644 /usr/share/lastpass/profiles.ini $_home/.mozilla/firefox/
-
- # Enable the auto-installation
- echo "user_pref(\"extensions.autoDisableScopes\", 10);" >> \
- $_home/.mozilla/firefox/lastpass.default/prefs.js
- echo 'user_pref("xpinstall.signatures.required", false);' >> \
- $_home/.mozilla/firefox/lastpass.default/prefs.js
-
- # Set the correct ownerships
- chown $_user -R $_home/.mozilla/
- fi
-}
-
-post_install() {
- _firefox
-
- # Create the settings dir
- install -d -o $_user $_home/.lastpass/
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- ## Google Chromes/Chromiums
- echo -e "\nRemoving from Google Chromes/Chromiums..."
- for i in 'google-chrome' 'chromium' 'chromium-dev'; do
- for j in 'hdokiejnpimakedhajhdlcegeplioahd' 'debgaelkhoipmbjnhpoblmbacnmmgbeg' \
- 'hnjalnkldgigidggphhmacmimbdlafdo' 'hgnkdfamjgnljokmokheijphenjjhkjc'; do
- rm -rf $_home/.config/$i/Default/Extensions/$j/
- done
- done
-
- ## Mozilla Firefoxes
- echo -e "\nRemoving from Mozilla Firefoxes..."
- for i in $_home/.mozilla/firefox/*; do
- rm -rf $i/extensions/support@lastpass.com/
- done
-
- # Get rid of anything we might have created
- # 1) Omit our own stuff with bash's extglob ("!(argument1|argument2)") (turned on by default)
- # 2) Use the $(wc -l)=2 to see, if extensions/ and prefs.js is all we have (our own stuff)
- if [[ $(ls -d ~/.mozilla/firefox/lastpass/ 2>&- | wc -l) = 2 ]]; then
- # Remove the profile folder
- rm -r $_home/.mozilla/firefox/lastpass/
-
- # If ~/.mozilla/firefox/ or the whole thing was created by us, get rid of them too
- for j in firefox ""; do
- if [[ ! $(ls -d $_home/.mozilla/$j/!(profiles.ini) 2>&-) ]]; then
- rm -r $_home/.mozilla/$j/
- fi
- done
- fi
-
- ## Operas
- echo -e "\nRemoving from Operas...\n"
- for i in .opera .opera-next; do
- rm -rf $_home/$i/widgets/lastpass-*
-
- # widgets.dat won't be cleaned automatically by Opera startup
- if [[ $(grep "wuid-" $_home/$i/widgets/widgets.dat 2>&-) ]]; then
- sed "/lastpass/,/section/d" \
- -i $_home/$i/widgets/widgets.dat
- else
- rm $_home/$i/widgets/widgets.dat
- fi
-
- # If ~/.opera(-next)/widgets or the whole thing was created by us, get rid of them too
- for j in widgets ""; do
- if [[ ! $(ls $_home/$i/$j/ 2>&-) ]]; then
- rm -r $_home/$i/$j/
- fi
- done
- done
-
- ## Remove the settings dir
- rm -rf $_home/.lastpass/
-} \ No newline at end of file
diff --git a/lastpass_policy_install.json b/lastpass_policy_install.json
new file mode 100644
index 000000000000..3e8a1ad2783e
--- /dev/null
+++ b/lastpass_policy_install.json
@@ -0,0 +1,4 @@
+{
+ "external_update_url": "https://clients2.google.com/service/update2/crx"
+}
+
diff --git a/lastpass_policy.json b/lastpass_policy_sources.json
index 88f805a8533c..88f805a8533c 100644
--- a/lastpass_policy.json
+++ b/lastpass_policy_sources.json
diff --git a/profiles.ini b/profiles.ini
deleted file mode 100644
index cdc2e7d90104..000000000000
--- a/profiles.ini
+++ /dev/null
@@ -1,8 +0,0 @@
-[General]
-StartWithLastProfile=1
-
-[Profile0]
-Name=lastpass
-IsRelative=1
-Path=lastpass.default
-