diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2017-11-27 18:47:09 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2017-11-27 18:47:09 +0000 |
commit | 89ab54099e40414f6c2b58ad29ce563c57b26266 (patch) | |
tree | ad9fba7099593ce7c75085521fc895a05c80540f | |
parent | ed22372badf6f4efd7b7edd2c454aed0186ab475 (diff) | |
download | pkgsrc-89ab54099e40414f6c2b58ad29ce563c57b26266.tar.gz |
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".
-rw-r--r-- | security/2fa/DESCR | 18 | ||||
-rw-r--r-- | security/2fa/Makefile | 25 | ||||
-rw-r--r-- | security/2fa/PLIST | 3 | ||||
-rw-r--r-- | security/2fa/distinfo | 6 | ||||
-rw-r--r-- | security/Makefile | 3 |
5 files changed, 54 insertions, 1 deletions
diff --git a/security/2fa/DESCR b/security/2fa/DESCR new file mode 100644 index 00000000000..faf4d8fc2ac --- /dev/null +++ b/security/2fa/DESCR @@ -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 --git a/security/2fa/Makefile b/security/2fa/Makefile new file mode 100644 index 00000000000..1805d4ac545 --- /dev/null +++ b/security/2fa/Makefile @@ -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 +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 --git a/security/2fa/PLIST b/security/2fa/PLIST new file mode 100644 index 00000000000..db7701d88a9 --- /dev/null +++ b/security/2fa/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2017/11/27 18:47:09 bsiegert Exp $ +bin/2fa +@pkgdir gopkg diff --git a/security/2fa/distinfo b/security/2fa/distinfo new file mode 100644 index 00000000000..0a58443bc1b --- /dev/null +++ b/security/2fa/distinfo @@ -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 --git a/security/Makefile b/security/Makefile index 41af26d28c5..ec719525615 100644 --- a/security/Makefile +++ b/security/Makefile @@ -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 |