pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security Add 2fa version 20171122.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/40b6090461aa
branches:  trunk
changeset: 372078:40b6090461aa
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Mon Nov 27 18:47:09 2017 +0000

description:
Add 2fa version 20171122.

>From DESCR:

2fa is a two-factor authentication agent.

"2fa -add name" adds a new key to the 2fa keychain with the given name. It
prints a prompt to standard error and reads a two-factor key from standard
input. Two-factor keys are short case-insensitive strings of letters A-Z and
digits 2-7.

"2fa name" prints a two-factor authentication code from the key with the
given name.

With no arguments, "2fa" prints two-factor authentication codes from all
known time-based keys.

The default time-based authentication codes are derived from a hash of the
key and the current time, so it is important that the system clock have at
least one-minute accuracy.

The keychain is stored unencrypted in the text file "$HOME/.2fa".

diffstat:

 security/2fa/DESCR    |  18 ++++++++++++++++++
 security/2fa/Makefile |  25 +++++++++++++++++++++++++
 security/2fa/PLIST    |   3 +++
 security/2fa/distinfo |   6 ++++++
 security/Makefile     |   3 ++-
 5 files changed, 54 insertions(+), 1 deletions(-)

diffs (82 lines):

diff -r a9322b223c36 -r 40b6090461aa security/2fa/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/2fa/DESCR        Mon Nov 27 18:47:09 2017 +0000
@@ -0,0 +1,18 @@
+2fa is a two-factor authentication agent.
+
+"2fa -add name" adds a new key to the 2fa keychain with the given name. It
+prints a prompt to standard error and reads a two-factor key from standard
+input. Two-factor keys are short case-insensitive strings of letters A-Z and
+digits 2-7.
+
+"2fa name" prints a two-factor authentication code from the key with the
+given name.
+
+With no arguments, "2fa" prints two-factor authentication codes from all
+known time-based keys.
+
+The default time-based authentication codes are derived from a hash of the
+key and the current time, so it is important that the system clock have at
+least one-minute accuracy.
+
+The keychain is stored unencrypted in the text file "$HOME/.2fa".
diff -r a9322b223c36 -r 40b6090461aa security/2fa/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/2fa/Makefile     Mon Nov 27 18:47:09 2017 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2017/11/27 18:47:09 bsiegert Exp $
+
+DISTNAME=      2fa
+PKGNAME=       2fa-20171122
+CATEGORIES=    security
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=rsc/}
+GITHUB_TAG=    c9558c536f6538d59f1b012915b44e44e3563823
+
+MAINTAINER=    bsiegert%NetBSD.org@localhost
+HOMEPAGE=      ${MASTER_SITE_GITHUB:=rsc/2fa/}
+COMMENT=       Command-line client for two-factor authentication
+LICENSE=       modified-bsd
+
+GO_DIST_BASE=  2fa-${GITHUB_TAG}
+GO_SRCPATH=    rsc.io/2fa
+
+CHECK_RELRO_SKIP+=     bin/caddy
+
+INSTALLATION_DIRS=     bin
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKDIR}/bin/2fa ${DESTDIR}${PREFIX}/bin
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a9322b223c36 -r 40b6090461aa security/2fa/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/2fa/PLIST        Mon Nov 27 18:47:09 2017 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2017/11/27 18:47:09 bsiegert Exp $
+bin/2fa
+@pkgdir gopkg
diff -r a9322b223c36 -r 40b6090461aa security/2fa/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/2fa/distinfo     Mon Nov 27 18:47:09 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/11/27 18:47:09 bsiegert Exp $
+
+SHA1 (2fa-c9558c536f6538d59f1b012915b44e44e3563823.tar.gz) = 0e61f9ec9c097d894e8c7ff878edb50e97aaed59
+RMD160 (2fa-c9558c536f6538d59f1b012915b44e44e3563823.tar.gz) = ad58053b47a09180c6a51ab439dfa5810428c8f9
+SHA512 (2fa-c9558c536f6538d59f1b012915b44e44e3563823.tar.gz) = 414e79b783a6c2539827197555161019a58411a6aefb485248914e0868f60ede46b8de51eecaa38261a28c4cb418cb2a65875d0ce07f0e9fe24593fc3626e971
+Size (2fa-c9558c536f6538d59f1b012915b44e44e3563823.tar.gz) = 4249 bytes
diff -r a9322b223c36 -r 40b6090461aa security/Makefile
--- a/security/Makefile Mon Nov 27 16:09:22 2017 +0000
+++ b/security/Makefile Mon Nov 27 18:47:09 2017 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.657 2017/11/15 08:58:35 jdolecek Exp $
+# $NetBSD: Makefile,v 1.658 2017/11/27 18:47:09 bsiegert Exp $
 #
 
 COMMENT=       Security tools
 
+SUBDIR+=       2fa
 SUBDIR+=       Bastille
 SUBDIR+=       CSP
 SUBDIR+=       CoolKey



Home | Main Index | Thread Index | Old Index