package/oath-toolkit: new package

OATH Toolkit provide components to build one-time password
authentication systems. It contains shared C libraries,
command line tools and a PAM module. Supported technologies
include the event-based HOTP algorithm (RFC 4226), the
time-based TOTP algorithm (RFC 6238), and Portable Symmetric
Key Container (PSKC, RFC 6030) to manage secret key
data. OATH stands for Open AuTHentication, which is the
organization that specify the algorithms.

https://www.nongnu.org/oath-toolkit/

Signed-off-by: Julien Olivain <ju.o@free.fr>
Reviewed-by: Gilles Talis <gilles.talis@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Julien Olivain
2024-10-06 00:58:07 +02:00
committed by Thomas Petazzoni
parent 954098b142
commit 7334d81697
5 changed files with 78 additions and 0 deletions

View File

@@ -1798,6 +1798,7 @@ F: package/kexec/
F: package/libjxl/
F: package/libopenmpt/
F: package/mokutil/
F: package/oath-toolkit/
F: package/octave/
F: package/ola/
F: package/openblas/

View File

@@ -1612,6 +1612,7 @@ menu "Crypto"
source "package/libxcrypt/Config.in"
source "package/mbedtls/Config.in"
source "package/nettle/Config.in"
source "package/oath-toolkit/Config.in"
source "package/openssl/Config.in"
source "package/parsec-tool/Config.in"
source "package/pkcs11-helper/Config.in"

View File

@@ -0,0 +1,27 @@
config BR2_PACKAGE_OATH_TOOLKIT
bool "oath-toolkit"
depends on BR2_USE_WCHAR
help
OATH Toolkit provide components to build one-time password
authentication systems. It contains shared C libraries,
command line tools and a PAM module. Supported technologies
include the event-based HOTP algorithm (RFC 4226), the
time-based TOTP algorithm (RFC 6238), and Portable Symmetric
Key Container (PSKC, RFC 6030) to manage secret key
data. OATH stands for Open AuTHentication, which is the
organization that specify the algorithms.
https://www.nongnu.org/oath-toolkit/
if BR2_PACKAGE_OATH_TOOLKIT
config BR2_PACKAGE_OATH_TOOLKIT_PSKC
bool "enable PSKC"
select BR2_PACKAGE_LIBXML2
help
Enable the Portable Symmetric Key Container (PSKC) support.
endif
comment "oath-toolkit needs a toolchain w/ wchar"
depends on !BR2_USE_WCHAR

View File

@@ -0,0 +1,12 @@
# After checking pgp signature from:
# https://download.savannah.nongnu.org/releases/oath-toolkit/oath-toolkit-2.6.12.tar.gz.sig
# using key A3CC9C870B9D310ABAD4CF2F51722B08FE4745A2
# From release announce:
# https://mail.gnu.org/archive/html/oath-toolkit-help/2024-10/msg00002.html
sha1 0bfb6ad29d59628487c9e180c7a43f4ca301e4d1 oath-toolkit-2.6.12.tar.gz
sha256 cafdf739b1ec4b276441c6aedae6411434bbd870071f66154b909cc6e2d9e8ba oath-toolkit-2.6.12.tar.gz
# Locally calculated
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 liboath/COPYING
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 oathtool/COPYING
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 pam_oath/COPYING

View File

@@ -0,0 +1,37 @@
################################################################################
#
# oath-toolkit
#
################################################################################
OATH_TOOLKIT_VERSION = 2.6.12
OATH_TOOLKIT_SITE = https://download.savannah.nongnu.org/releases/oath-toolkit
OATH_TOOLKIT_LICENSE = GPL-3.0+ (tools), LGPL-2.1+ (libraries)
OATH_TOOLKIT_LICENSE_FILES = \
COPYING \
liboath/COPYING \
oathtool/COPYING \
pam_oath/COPYING
OATH_TOOLKIT_CPE_ID_VENDOR = nongnu
OATH_TOOLKIT_CPE_ID_PRODUCT = oath_toolkit
OATH_TOOLKIT_INSTALL_STAGING = YES
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
# Set the pam directory defined in linux-pam (see --enable-securedir
# in LINUX_PAM_CONF_OPTS in package/linux-pam/linux-pam.mk).
OATH_TOOLKIT_CONF_OPTS += \
--enable-pam \
--with-pam-dir=/lib/security
OATH_TOOLKIT_DEPENDENCIES += linux-pam
else
OATH_TOOLKIT_CONF_OPTS += --disable-pam
endif
ifeq ($(BR2_PACKAGE_OATH_TOOLKIT_PSKC),y)
OATH_TOOLKIT_CONF_OPTS += --enable-pskc
OATH_TOOLKIT_DEPENDENCIES += libxml2
else
OATH_TOOLKIT_CONF_OPTS += --disable-pskc
endif
$(eval $(autotools-package))