From owner-svn-ports-all@freebsd.org Sat Feb 8 15:03:52 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 092B8244175; Sat, 8 Feb 2020 15:03:52 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48FFml69Dnz3QTD; Sat, 8 Feb 2020 15:03:51 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CE5631F2E9; Sat, 8 Feb 2020 15:03:51 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 018F3pT7027351; Sat, 8 Feb 2020 15:03:51 GMT (envelope-from grembo@FreeBSD.org) Received: (from grembo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 018F3oWH027346; Sat, 8 Feb 2020 15:03:50 GMT (envelope-from grembo@FreeBSD.org) Message-Id: <202002081503.018F3oWH027346@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: grembo set sender to grembo@FreeBSD.org using -f From: Michael Gmelin Date: Sat, 8 Feb 2020 15:03:50 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: grembo X-SVN-Commit-Paths: in head/security: . spm spm/files X-SVN-Commit-Revision: 525558 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Feb 2020 15:03:52 -0000 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 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