Date: Sat, 8 Feb 2020 15:03:50 +0000 (UTC) From: Michael Gmelin <grembo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r525558 - in head/security: . spm spm/files Message-ID: <202002081503.018F3oWH027346@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: grembo Date: Sat Feb 8 15:03:50 2020 New Revision: 525558 URL: https://svnweb.freebsd.org/changeset/ports/525558 Log: [NEW PORT] security/spm: spm - Simple password manager Added: head/security/spm/ head/security/spm/Makefile (contents, props changed) head/security/spm/distinfo (contents, props changed) head/security/spm/files/ head/security/spm/files/patch-spm (contents, props changed) head/security/spm/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Sat Feb 8 14:55:34 2020 (r525557) +++ head/security/Makefile Sat Feb 8 15:03:50 2020 (r525558) @@ -1194,6 +1194,7 @@ SUBDIR += sops SUBDIR += spass SUBDIR += spass-qt5 + SUBDIR += spm SUBDIR += spybye SUBDIR += sqlmap SUBDIR += sqlninja Added: head/security/spm/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/spm/Makefile Sat Feb 8 15:03:50 2020 (r525558) @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= spm +PORTVERSION= 0.20200208 +CATEGORIES= security +MASTER_SITES= https://notabug.org/kl3/spm/archive/ +DISTNAME= f920ab3f68 + +MAINTAINER= grembo@FreeBSD.org +COMMENT= Simple password manager + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= gpg2:security/gnupg \ + tree:sysutils/tree + +PLIST_FILES= bin/spm \ + man/man1/spm.1.gz + +WRKSRC= ${WRKDIR}/spm +NO_ARCH= yes +NO_BUILD= yes + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_MAN} ${WRKSRC}/spm.1 ${STAGEDIR}${MANPREFIX}/man/man1 + +.include <bsd.port.mk> Added: head/security/spm/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/spm/distinfo Sat Feb 8 15:03:50 2020 (r525558) @@ -0,0 +1,3 @@ +TIMESTAMP = 1581170074 +SHA256 (f920ab3f68.tar.gz) = f5f23f98fae345717e8193fe0e629fe4dbed0eec32e4813cf9d5f0c0b6616fdb +SIZE (f920ab3f68.tar.gz) = 15367 Added: head/security/spm/files/patch-spm ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/spm/files/patch-spm Sat Feb 8 15:03:50 2020 (r525558) @@ -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() { Added: head/security/spm/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/spm/pkg-descr Sat Feb 8 15:03:50 2020 (r525558) @@ -0,0 +1,8 @@ +spm is a single fully POSIX shell compliant script utilizing gpg2(1) in +combination with basic tools such as find(1) and tree(1). Passwords are +stored as PGP encrypted files with directories funtioning as (sub)groups. +spm reads/writes passwords via standard input/output allowing you to build +flexible and powerful management tools. Refer to the manual page for +various examples or read its source code to see how it works. + +WWW: https://notabug.org/kl3/spm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002081503.018F3oWH027346>