diff options
| author | Michael Gmelin <grembo@FreeBSD.org> | 2020-02-08 15:03:50 +0000 |
|---|---|---|
| committer | Michael Gmelin <grembo@FreeBSD.org> | 2020-02-08 15:03:50 +0000 |
| commit | cf9dc85fc93251b0aaf0ed612b600a13d4022c43 (patch) | |
| tree | 8bf470f5f68185becd167ef71a651aee5231a877 /security/spm/files/patch-spm | |
| parent | Revert "sysutils/uefi-edk2-bhyve: update to be same as uefi-edk2-bhyve-devel" (diff) | |
[NEW PORT] security/spm: spm - Simple password manager
Notes
Notes:
svn path=/head/; revision=525558
Diffstat (limited to 'security/spm/files/patch-spm')
| -rw-r--r-- | security/spm/files/patch-spm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/security/spm/files/patch-spm b/security/spm/files/patch-spm new file mode 100644 index 000000000000..652e654126d6 --- /dev/null +++ b/security/spm/files/patch-spm @@ -0,0 +1,33 @@ +See: +https://notabug.org/mcz/spm/commit/8c3120fd44df117e5947d2705ba0d87443be831c.diff +--- spm.orig 2017-10-22 12:27:00 UTC ++++ spm +@@ -21,6 +21,7 @@ umask u=rwx,go= + ## Variables + GPG_OPTS='--quiet --yes --batch' + STORE_DIR="${PASSWORD_STORE_DIR:-${HOME}/.spm}" ++STORE_KEY="${PASSWORD_STORE_KEY:-}" + + ## Helper + usage() { +@@ -41,10 +42,10 @@ check() { + } + + gpg() { +- if [ -z "${PASSWORD_STORE_KEY}" ]; then ++ if [ -z "${STORE_KEY}" ]; then + gpg2 ${GPG_OPTS} --default-recipient-self "${@}" + else +- gpg2 ${GPG_OPTS} --recipient "${PASSWORD_STORE_KEY}" "${@}" ++ gpg2 ${GPG_OPTS} --recipient "${STORE_KEY}" "${@}" + fi + } + +@@ -53,6 +54,7 @@ readpw() { + IFS= read -r "${2}" + [ -t 0 ] && stty echo + [ -z "${2}" ] && usage 'empty password' ++ return 0 + } + + find() { |
