aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-12-26 20:05:53 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-12-26 20:07:50 +0000
commitdcdc9494db92ab3127fbe18f1e26aa42738c2c0a (patch)
tree53ff3c68cad0391ebab8376a42b16ab2abf8c7df
parent6096ae6adbd9c014960b76914b6019ad1e75f35c (diff)
www/py-onetimepass: New port: Module for generating and validating HOTP and TOTP tokens
-rw-r--r--www/Makefile1
-rw-r--r--www/py-onetimepass/Makefile21
-rw-r--r--www/py-onetimepass/distinfo3
-rw-r--r--www/py-onetimepass/pkg-descr1
4 files changed, 26 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 48a69e98cb62..6059870b367b 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1690,6 +1690,7 @@
SUBDIR += py-mwoauth
SUBDIR += py-nevow
SUBDIR += py-notebook
+ SUBDIR += py-onetimepass
SUBDIR += py-openbrokerapi
SUBDIR += py-pafy
SUBDIR += py-paste
diff --git a/www/py-onetimepass/Makefile b/www/py-onetimepass/Makefile
new file mode 100644
index 000000000000..7fb1711ec94a
--- /dev/null
+++ b/www/py-onetimepass/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= onetimepass
+DISTVERSION= 1.0.1
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Module for generating and validating HOTP and TOTP tokens
+WWW= https://github.com/tadeck/onetimepass/
+
+LICENSE= MIT
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-onetimepass/distinfo b/www/py-onetimepass/distinfo
new file mode 100644
index 000000000000..558ef62e5034
--- /dev/null
+++ b/www/py-onetimepass/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672081898
+SHA256 (onetimepass-1.0.1.tar.gz) = a569dac076d6e3761cbc55e36952144a637ca1b075c6d509de1c1dbc5e7f6a27
+SIZE (onetimepass-1.0.1.tar.gz) = 6046
diff --git a/www/py-onetimepass/pkg-descr b/www/py-onetimepass/pkg-descr
new file mode 100644
index 000000000000..c0e73e06ec91
--- /dev/null
+++ b/www/py-onetimepass/pkg-descr
@@ -0,0 +1 @@
+One-time password library for HMAC-based (HOTP) and time-based (TOTP) passwords.