Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Joan Erraez | a9b979b011 | |
Quentin Rouland | 42efea67d8 | |
Quentin Rouland | 1818d3d7e8 | |
Quentin Rouland | df5321644a |
|
@ -1,18 +1,3 @@
|
|||
[submodule "third/gpgme"]
|
||||
path = libs/gpg/gpgme
|
||||
url = https://github.com/gpg/gpgme
|
||||
[submodule "third/libassuan"]
|
||||
path = libs/gpg/libassuan
|
||||
url = https://github.com/gpg/libassuan
|
||||
[submodule "third/libgpg-error"]
|
||||
path = libs/gpg/libgpg-error
|
||||
url = https://github.com/gpg/libgpg-error
|
||||
[submodule "third/gnupg"]
|
||||
path = libs/gpg/gnupg
|
||||
url = https://github.com/gpg/gnupg
|
||||
[submodule "libs/utils/quazip"]
|
||||
path = libs/quazip
|
||||
url = https://github.com/stachenov/quazip
|
||||
[submodule "libs/gpg/gpgme"]
|
||||
path = libs/gpg/gpgme
|
||||
url = https://github.com/gpg/gpgme
|
||||
|
@ -28,3 +13,6 @@
|
|||
[submodule "libs/quazip"]
|
||||
path = libs/quazip
|
||||
url = https://github.com/stachenov/quazip
|
||||
[submodule "libs/libgit2"]
|
||||
path = libs/libgit2
|
||||
url = https://github.com/libgit2/libgit2
|
||||
|
|
17
README.md
17
README.md
|
@ -21,6 +21,22 @@ See [Contributing wiki page](https://taiga.rdrive.ovh/project/utpass/wiki/contri
|
|||
The goal is to be closest possible of the features offer by [ZX2C4’s pass command line application](https://www.passwordstore.org/).
|
||||
See [Features wiki page](https://taiga.rdrive.ovh/project/utpass/wiki/contributing) for details.
|
||||
|
||||
## Export/Import
|
||||
|
||||
Assuming that there are already passwords in another device using [ZX2C4’s pass command line application](https://www.passwordstore.org/) and, therefore, that [gpg keys](https://gnupg.org/) have been previously generated for encryption purposes, these may be helpful commands:
|
||||
|
||||
Export gpg private keys in order to decrypt passwords:
|
||||
```
|
||||
gpg --output keys.gpg --export-secret-keys
|
||||
```
|
||||
|
||||
Export passwords, assuming they reside in *.password-store* folder:
|
||||
```
|
||||
zip passwords.zip -r .password-store/
|
||||
```
|
||||
|
||||
Both files have the correct format for UTPass to import them and work as intended. It is highly recommended to remove them after imported to **UTPass**.
|
||||
|
||||
## License
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
|
@ -45,4 +61,5 @@ Some useful links related to UTPass development :
|
|||
* [Ubports](https://ubports.com/) : Ubuntu Touch Community
|
||||
* [ZX2C4’s pass command line application](https://www.passwordstore.org/) : the standard unix password manager.
|
||||
* [Clickable](https://github.com/bhdouglass/clickable) : Compile, build, and deploy Ubuntu Touch click packages
|
||||
* [GnuPG](https://gnupg.org/): The GNU Privacy Guard
|
||||
* [Gpgme](https://www.gnupg.org/software/gpgme/index.html) : GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications
|
||||
|
|
|
@ -1,22 +1,27 @@
|
|||
{
|
||||
"template": "cmake",
|
||||
"kill": "UTPass",
|
||||
"scripts": {
|
||||
"template": "cmake",
|
||||
"kill": "UTPass",
|
||||
"scripts": {
|
||||
"style": "echo 'Astyle :' && astyle --options=.astylerc main.cpp && astyle --options=.astylerc --recursive 'plugins/*.cpp,*.h' && echo 'QmlFmt :' && qmlfmt -l tests && qmlfmt -w tests && qmlfmt -l qml && qmlfmt -w qml"
|
||||
},
|
||||
"libraries": {
|
||||
"gpg": {
|
||||
"template": "cmake",
|
||||
"make_jobs": 4,
|
||||
"dependencies_build": [
|
||||
"texinfo",
|
||||
"gpgsm",
|
||||
"bison"
|
||||
]
|
||||
},
|
||||
"quazip": {
|
||||
"template": "cmake",
|
||||
"make_jobs": 4
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"gpg": {
|
||||
"template": "cmake",
|
||||
"make_jobs": 4,
|
||||
"dependencies_build": [
|
||||
"texinfo",
|
||||
"gpgsm",
|
||||
"bison"
|
||||
]
|
||||
},
|
||||
"quazip": {
|
||||
"template": "cmake",
|
||||
"make_jobs": 4
|
||||
},
|
||||
"libgit2": {
|
||||
"template": "cmake",
|
||||
"make_jobs": 4,
|
||||
"build_args": "-DBUILD_SHARED_LIBS=OFF"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 3828d7afdd08b595584048e8e4dab6ddd4506ed1
|
|
@ -10,7 +10,7 @@
|
|||
"content-hub": "UTPass.contenthub"
|
||||
}
|
||||
},
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3-dev",
|
||||
"maintainer": "Quentin Rouland <quentin@qrouland.com>",
|
||||
"framework" : "ubuntu-sdk-16.04"
|
||||
}
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
add_subdirectory(Git)
|
||||
add_subdirectory(Pass)
|
||||
add_subdirectory(Utils)
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
set(PLUGIN "Git")
|
||||
|
||||
set(
|
||||
SRC
|
||||
plugin.cpp
|
||||
git.cpp
|
||||
)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
|
||||
execute_process(
|
||||
COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
|
||||
OUTPUT_VARIABLE ARCH_TRIPLET
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
||||
if(ARCH_TRIPLET STREQUAL "")
|
||||
set(ARCH_TRIPLET x86_64-linux-gnu)
|
||||
endif()
|
||||
|
||||
add_library(${PLUGIN} MODULE ${SRC})
|
||||
set_target_properties(${PLUGIN} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PLUGIN})
|
||||
qt5_use_modules(${PLUGIN} Qml Quick DBus)
|
||||
|
||||
set(EXTERNAL_LIBS "${CMAKE_SOURCE_DIR}/build/${ARCH_TRIPLET}/libgit2/install/")
|
||||
|
||||
INCLUDE_DIRECTORIES(${EXTERNAL_LIBS}/include)
|
||||
|
||||
add_library(libgit2 STATIC IMPORTED)
|
||||
set_property(TARGET libgit2 PROPERTY IMPORTED_LOCATION "${EXTERNAL_LIBS}/lib/libgit2.a")
|
||||
|
||||
target_link_libraries(${PLUGIN} libgit2)
|
||||
|
||||
|
||||
set(QT_IMPORTS_DIR "/lib/${ARCH_TRIPLET}")
|
||||
|
||||
install(TARGETS ${PLUGIN} DESTINATION ${QT_IMPORTS_DIR}/${PLUGIN}/)
|
||||
install(FILES qmldir DESTINATION ${QT_IMPORTS_DIR}/${PLUGIN}/)
|
|
@ -0,0 +1,10 @@
|
|||
#include <QDebug>
|
||||
#include <QUrl>
|
||||
#include <git2.h>
|
||||
|
||||
#include "git.h"
|
||||
|
||||
|
||||
|
||||
Git::Git() {};
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef GIT_H
|
||||
#define GIT_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
|
||||
class Git : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Git();
|
||||
~Git() override = default;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
|
@ -0,0 +1,10 @@
|
|||
#include <QtQml>
|
||||
|
||||
#include "plugin.h"
|
||||
#include "git.h"
|
||||
|
||||
void GitPlugin::registerTypes(const char *uri)
|
||||
{
|
||||
//@uri Utils
|
||||
qmlRegisterSingletonType<Git>(uri, 1, 0, "Git", [](QQmlEngine *, QJSEngine *) -> QObject * { return new Git; });
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef GITPLUGIN_H
|
||||
#define GITPLUGIN_H
|
||||
|
||||
#include <QQmlExtensionPlugin>
|
||||
|
||||
class GitPlugin : public QQmlExtensionPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID
|
||||
"org.qt-project.Qt.QQmlExtensionInterface")
|
||||
|
||||
public:
|
||||
void registerTypes(const char *uri) override;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -0,0 +1,2 @@
|
|||
module Git
|
||||
plugin Git
|
|
@ -4,7 +4,6 @@
|
|||
#include <QDir>
|
||||
#include <QtCore/QStandardPaths>
|
||||
|
||||
|
||||
#include <gpgme.h>
|
||||
#include <gpgme++/data.h>
|
||||
#include <gpgme++/global.h>
|
||||
|
|
Loading…
Reference in New Issue