const IdentityStore = require('./idStore') const HdKeyring = require('../keyrings/hd') const sigUtil = require('./sig-util') const normalize = sigUtil.normalize const denodeify = require('denodeify') module.exports = class IdentityStoreMigrator { constructor ({ configManager }) { this.configManager = configManager const hasOldVault = this.hasOldVault() if (!hasOldVault) { this.idStore = new IdentityStore({ configManager }) } } migratedVaultForPassword (password) { const hasOldVault = this.hasOldVault() const configManager = this.configManager if (!this.idStore) { this.idStore = new IdentityStore({ configManager }) } if (!hasOldVault) { return Promise.resolve(null) } const idStore = this.idStore const submitPassword = denodeify(idStore.submitPassword.bind(idStore)) return submitPassword(password) .then(() => { const serialized = this.serializeVault() return this.checkForLostAccounts(serialized) }) } serializeVault () { const mnemonic = this.idStore._idmgmt.getSeed() const numberOfAccounts = this.idStore._getAddresses().length return { type: 'HD Key Tree', data: { mnemonic, numberOfAccounts }, } } checkForLostAccounts (serialized) { const hd = new HdKeyring() return hd.deserialize(serialized.data) .then((hexAccounts) => { const newAccounts = hexAccounts.map(normalize) const oldAccounts = this.idStore._getAddresses().map(normalize) const lostAccounts = oldAccounts.reduce((result, account) => { if (newAccounts.includes(account)) { return result } else { result.push(account) return result } }, []) return { serialized, lostAccounts: lostAccounts.map((address) => { return { address, privateKey: this.idStore.exportAccount(address), } }), } }) } hasOldVault () { const wallet = this.configManager.getWallet() return wallet } } FreeBSD Ports (https://github.com/freebsd/freebsd-ports)
aboutsummaryrefslogtreecommitdiffstats
path: root/astro/siril
Commit message (Collapse)AuthorAgeFilesLines
* astro/siril: Update 1.0.5 -> 1.0.6Yuri Victorovich2022-11-152-4/+4
| | | | Reported by: portscout
* astro/siril: Update 1.0.4 -> 1.0.5Yuri Victorovich2022-09-102-4/+4
| | | | Reported by: portscout
* */*: Update path set in BUILD_DEPENDS for CMakeDaniel Engberg2022-09-101-1/+1
| | | | | | | Commit b23ea4e2d2f51b53d8915fe9fd7b4efbdd575e38 changed its location to devel/cmake-core Approved by: portmgr (blanket)
* Remove WWW entries moved into port MakefilesStefan Eßer2022-09-081-2/+0
| | | | | | | | | | Commit b7f05445c00f has added WWW entries to port Makefiles based on WWW: lines in pkg-descr files. This commit removes the WWW: lines of moved-over URLs from these pkg-descr files. Approved by: portmgr (tcberner)
* Add WWW entries to port MakefilesStefan Eßer2022-09-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
* astro/siril: Update 1.0.3 -> 1.0.4Yuri Victorovich2022-09-043-5/+6
| | | | Reported by: portscout
* graphics/opencv: bump consumers after e21578d954550998435c5d6d532e2d5a67398bfeTobias C. Berner2022-09-021-1/+1
| | | | | | This was missed in the upgrade of graphics/opencv. Reported by: VVD
* */*: bump all consumers after recent boost upgradeDima Panov2022-08-121-0/+1
|
* astro/siril: Broken on systems where OpenMP isn't enabledYuri Victorovich2022-08-081-0/+3
| | | | Reported by: fallout
* astro/siril: Update 1.0.2 -> 1.0.3Yuri Victorovich2022-07-043-6/+7
| | | | Reported by: portscout
* astro/siril: Update 1.0.1 -> 1.0.2Yuri Victorovich2022-05-173-16/+4
| | | | Reported by: portscout
* astro/siril: Update 0.99.10.1 -> 1.0.1Yuri Victorovich2022-05-084-16/+20
|
* astro/cfitsio: Update to 4.0.0Po-Chuan Hsieh2022-02-281-1/+1
| | | | | | - Bump PORTREVISION of dependent ports for shlib change Changes: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/docs/changes.txt
* */*: Bump PORTREVISION of users due to bump of graphics/libheifDaniel Engberg2022-02-261-1/+1
|
* devel/libconfig: update to 1.7.3Marius Strobl2022-01-261-1/+1
| | | | | | | | | | | - Chase shared library bump across dependant ports. - Fetch releases rather than tags from GitHub. [1] - Properly depend on makeinfo, adding an INFO knob. - Refresh pkg-descr and COMMENT accordingly. PR: 261062 Reported by: dizzy [1] Approved by: maintainer timeout
* math/gsl: bump portrevision of consumers after update to 2.7.1Tobias C. Berner2022-01-131-1/+1
| | | | PR: 260201
* INSTALLS_ICONS: retire the macro and rework the related dependenciesBaptiste Daroussin2021-10-111-2/+0
| | | | | | | While here, make sure gtk-update-icon-cache is only on run dependency where added as a dependency Enforce gtk3 to depend on gtk-update-icon-cache (previously it was inheriting the dependency)
* devel/meson: update to 0.59.1Jan Beich2021-09-062-2/+2
| | | | | | | | | Changes: https://mesonbuild.com/Release-notes-for-0-59-0.html PR: 257251 Reported by: GitHub (watch releases) Submitted by: tcberner, vishwin (based on) Exp-run by: antoine Approved by: tcberner
* astro/siril: Fix unintended deletion of the lineYuri Victorovich2021-08-131-1/+3
|
* astro/siril: Fix libcurl dysfunction by adding the CURL option and enabling ↵Yuri Victorovich2021-08-131-4/+5
| | | | | | it properly Reported by: Andreas Kempe <kempe@lysator.liu.se> (via e-mail)
* astro/siril: Update 0.99.8.1 -> 0.99.10.1Yuri Victorovich2021-07-052-6/+9
|
* math/gsl: update to 2.7Tobias C. Berner2021-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From [1] * What is new in gsl-2.7: * fixed doc bug for gsl_histogram_min_bin (lhcsky at 163.com) * fixed bug #60335 (spmatrix test failure, J. Lamb) * fixed bug #36577 * clarified documentation on interpolation accelerators (V. Krishnan) * fixed bug #45521 (erroneous GSL_ERROR_NULL in ode-initval2, thanks to M. Sitte) * fixed doc bug #59758 * fixed bug #58202 (rstat median for n=5) * added support for native C complex number types in gsl_complex when using a C11 compiler * upgraded to autoconf 2.71, automake 1.16.3, libtool 2.4.6 * updated exponential fitting example for nonlinear least squares * added banded LU decomposition and solver (gsl_linalg_LU_band) * New functions added to the library: - gsl_matrix_norm1 - gsl_spmatrix_norm1 - gsl_matrix_complex_conjtrans_memcpy - gsl_linalg_QL: decomp, unpack - gsl_linalg_complex_QR_* (thanks to Christian Krueger) - gsl_vector_sum - gsl_matrix_scale_rows - gsl_matrix_scale_columns - gsl_multilarge_linear_matrix_ptr - gsl_multilarge_linear_rhs_ptr - gsl_spmatrix_dense_add (renamed from gsl_spmatrix_add_to_dense) - gsl_spmatrix_dense_sub - gsl_linalg_cholesky_band: solvem, svxm, scale, scale_apply - gsl_linalg_QR_UD: decomp, lssolve - gsl_linalg_QR_UU: decomp, lssolve, QTvec - gsl_linalg_QR_UZ: decomp - gsl_multifit_linear_lcurvature - gsl_spline2d_eval_extrap * bug fix in checking vector lengths in gsl_vector_memcpy (dieggsy@pm.me) * made gsl_sf_legendre_array_index() inline and documented - gsl_sf_legendre_nlm() [1] http://git.savannah.gnu.org/cgit/gsl.git/tree/NEWS PR: 256423 Exp-run by: antoine
* astro/siril: Add run-time dependency on devel/gvfsYuri Victorovich2021-06-071-1/+2
| | | | | PR: 256435 Reported by: Stefan Rumetshofer <sterum77@gmail.com>
* One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0
| | | | Reported by: lwhsu
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
|
* astro/siril: Update 0.99.6 -> 0.99.8.1Yuri Victorovich2021-02-144-46/+45
| | | | Notes: svn path=/head/; revision=565204
* graphics/opencv: update to 4.5.1 -- and make port more easily maintainableTobias C. Berner2021-01-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a major upgrade from 3.x to 4.x. Changelog from versions 3.4.1--4.5.1 can be found here: https://github.com/opencv/opencv/wiki/ChangeLog Note: this has explicitely not been added as a new graphics/opencv4 port, but replaces the previous graphics/opencv[3] port. Again, to improve maintainability by not giving ports the option to pick the "wrong one" - this leads however to some abandoned ports being broken. The port has been greatly simplified: * graphics/opencv-core which existed to enable ffmpeg to depend on opencv, and vice versa has been removed. ffmpeg no longer can depend on opencv. * graphics/py-opencv has been integrated into graphics/opencv, the default versions python bindings will be built unless the PYTHON option is explicitely turned off. * graphics/opencv-java has been integrated into graphics/opencv -- it is off by default, but can be enabled by toggling the JAVA option -- there are no consumers in the tree, so that option might go away in the future. * All the previous options have been removed and replaced by a (hopefully) sane set of dependencies that make the port and package most usable for the majority of consumers. - Please let me know if you think there are better defaults (i.e. anything that is missing, or something that should not be dependet on). - If you think something should be added or removed, please open a bug report. - If you think something should be added as an optional dependency, please open a bug report (with a good reason [tm]). The depending ports have been updated to work against opencv4, or marked broken. * Ports broken: - graphics/rubygem-objectdetect: OpenCV4 no longer ships opencv-1.0 API - graphics/p5-Image-ObjectDetect: OpenCV4 no longer ships opencv-1.0 API - graphics/gimp-gmic-plugin: OpenCV4 no longer ships opencv-1.0 API * Backports: - misc/visp: https://github.com/lagadic/visp/commit/dfa7e4bd47c24cd2e631477e6afb18806733ff8a - multimedia/zart: https://github.com/c-koi/zart/commit/6ca1964690afbbc78627d7c868a692401043a584, https://github.com/c-koi/zart/commit/d3a2931b1a07ec0322211f253468000363c4b6cb * Others: - misc/actiona: switch to pkgconfig 'opencv4' - multimedia/libav: drop opencv support - misc/darknet: already failed to build prior to the upgrade - math/saga: remove patching added to work against opencv3 Notes: svn path=/head/; revision=563430
* Bump PORTREVISION for astro/cfitsio shlib changeSunpoet Po-Chuan Hsieh2021-01-261-1/+1
| | | | Notes: svn path=/head/; revision=562668
* graphics/libraw: Update to 0.20.2Jason E. Hale2021-01-011-1/+1
| | | | | | | | | Bump PORTREVISION on consumers due to shared library bump. Changes: https://www.libraw.org/news/libraw-0-20-2-Release Notes: svn path=/head/; revision=559789
* astro/siril: Fix run-time error: Undefined symbol "cblas_dcopy"Yuri Victorovich2020-11-174-12/+12
| | | | | | | | | | | | | | | | | | This was because math/gsl installs 2 libraries, libgsl.so and libgslcblas.so, the former of which should depend on the latter one. Instead, the gsl package through its pkg-config script asks users to link to both libraries. This fails when the link line also has -Wl,--as-needed which causes the linker to drop the second library. In such case the above error is triggered at runtime. Also update WWW. PR: 251206 Submitted by: Ned Leitch <ned.leitch+freebsd@gmail.com> MFH: 2020Q4 Notes: svn path=/head/; revision=555541
* astro/siril: Update 0.9.12 -> 0.99.6Yuri Victorovich2020-09-283-34/+29
| | | | Notes: svn path=/head/; revision=550402
* astro/siril: Fix build on 13Yuri Victorovich2020-09-281-1/+4
| | | | | | | Reported by: fallout Notes: svn path=/head/; revision=550401
* multimedia/ffms2: update to 2.40Jan Beich2020-09-151-1/+1
| | | | | | | | Changes: https://github.com/FFMS/ffms2/releases/tag/2.40 Reported by: GitHub (watch releases) Notes: svn path=/head/; revision=548688
* Drop dependency on devel/openmpJan Beich2020-03-091-1/+1
| | | | | | | | | | - Drop if devel/llvm* was used as a substitute Approved by: yuri, rene (earlier version) Differential Revision: https://reviews.freebsd.org/D23020 Notes: svn path=/head/; revision=528082
* astro/siril: Update 0.9.10 -> 0.9.12Yuri Victorovich2020-01-284-23/+33
| | | | | | | Reported by: portscout Notes: svn path=/head/; revision=524459
* math/gsl: update to 2.6Tobias C. Berner2019-10-261-1/+1
| | | | | | | | | | | | | - math/p5-Math-GSL does not seem to have any upstream activity to make it work with this version -> mark it broken - this also breaks the two consumers of this port - biology/gemma: has a conflict with cblas, and is makred broken. PR: 241363 Exp-run by: antoine Notes: svn path=/head/; revision=515671
* devel/openmp: update to 9.0.0Jan Beich2019-09-221-1/+1
| | | | | | | | | | | - Connect tests to the framework to help QA remaining patches - Force rebuild all consumers after https://reviews.llvm.org/D59783 Changes: http://llvm.org/viewvc/llvm-project/openmp/tags/RELEASE_900/final/?view=log ABI: https://abi-laboratory.pro/tracker/timeline/llvm_openmp/ Notes: svn path=/head/; revision=512535
* multimedia/ffmpeg: update to 4.2Jan Beich2019-08-061-1/+1
| | | | | | | | Changes: https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n4.2:/Changelog ABI: https://abi-laboratory.pro/tracker/timeline/ffmpeg/ Notes: svn path=/head/; revision=508216
* Update to 3.47Sunpoet Po-Chuan Hsieh2019-07-271-1/+1
| | | | | | | | | - Bump PORTREVISION of dependent ports for shlib change Changes: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/docs/changes.txt Notes: svn path=/head/; revision=507401
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2019-07-271-1/+1
| | | | | | | | | | | | | | | | | | as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330 Notes: svn path=/head/; revision=507372
* Add compiler:c++11-lang to USES to fix the following on GCC-based systems:Mark Linimon2019-06-171-1/+2
| | | | | | | | | configure: error: *** A compiler with support for C++11 language features is required. Approved by: portmgr (tier-2 blanket) Notes: svn path=/head/; revision=504411
* devel/openmp: phase outJan Beich2019-05-091-1/+1
| | | | | | | | | | | | - Expire after the last version without /usr/lib/libomp.so - Drop SOVERSION for seamless transition (i.e., avoid conditionals) PR: 236907 Approved by: bapt (maintainer) Differential Revision: https://reviews.freebsd.org/D19767 Notes: svn path=/head/; revision=501030
* graphics/libraw: Update to 0.19.2Jason E. Hale2019-03-301-0/+1
| | | | | | | | | | - Demosaic packs are no longer distributed nor supported upstream - Bump PORTREVISON on all consumers due to libraw shlib version increase Changes: https://www.libraw.org/news/libraw-0-19-2-release Notes: svn path=/head/; revision=497222
* astro/siril: Update 0.9.9 -> 0.9.10Yuri Victorovich2019-01-214-15/+22
| | | | | | | Reported by: portscout Notes: svn path=/head/; revision=490828
* multimedia/ffmpeg: update to 4.1Jan Beich2018-11-061-1/+1
| | | | | | | | Changes: https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n4.1:/Changelog ABI: https://abi-laboratory.pro/tracker/timeline/ffmpeg/ Notes: svn path=/head/; revision=484273
* devel/libconfig: update to 1.7.2Fernando Apesteguía2018-08-071-1/+1
| | | | | | | | | | | | | | | * Change to USE_GH * Bump PORTREVISION of dependant ports. Committing after maintainer timeout PR: 229961 Submitted by: che@bein.link Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D16442 Notes: svn path=/head/; revision=476517
* Update math/gsl to 2.5Tobias C. Berner2018-06-231-0/+1
| | | | | | | PR: 229067 Notes: svn path=/head/; revision=473116
* astro/siril: Update 0.9.8 -> 0.9.9Yuri Victorovich2018-06-093-6/+7
| | | | | | | Reported by: portscout Notes: svn path=/head/; revision=472023
* Bump PORTREVISION on more opencv consumers due to opencv updateSteve Wills2018-05-101-1/+1
| | | | Notes: svn path=/head/; revision=469466
* multimedia/ffmpeg: update to 4.0Jan Beich2018-05-02