From 3cbf478ac8c1261f14ba6ebbbb6ff525e3fe0e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Sun, 5 Mar 2023 11:41:00 -1000 Subject: [PATCH] security/pam_u2f: New port This module implements PAM over U2F and FIDO2, providing an easy way to integrate the YubiKey (or other U2F/FIDO2 compliant authenticators) into your existing infrastructure. --- security/Makefile | 1 + security/pam_u2f/Makefile | 32 ++++++++++++++++++++++++++++++++ security/pam_u2f/distinfo | 3 +++ security/pam_u2f/pkg-descr | 3 +++ 4 files changed, 39 insertions(+) create mode 100644 security/pam_u2f/Makefile create mode 100644 security/pam_u2f/distinfo create mode 100644 security/pam_u2f/pkg-descr diff --git a/security/Makefile b/security/Makefile index b7d3272376864..008983a629cde 100644 --- a/security/Makefile +++ b/security/Makefile @@ -732,6 +732,7 @@ SUBDIR += pam_script SUBDIR += pam_search_list SUBDIR += pam_ssh_agent_auth + SUBDIR += pam_u2f SUBDIR += pam_yubico SUBDIR += pamtester SUBDIR += paperkey diff --git a/security/pam_u2f/Makefile b/security/pam_u2f/Makefile new file mode 100644 index 0000000000000..7bff9b5e1ef70 --- /dev/null +++ b/security/pam_u2f/Makefile @@ -0,0 +1,32 @@ +PORTNAME= pam_u2f +DISTVERSIONPREFIX=${PORTNAME}- +DISTVERSION= 1.2.1 +CATEGORIES= security + +MAINTAINER= romain@FreeBSD.org +COMMENT= Pluggable Authentication Module for U2F and FIDO2 +WWW= https://developers.yubico.com/pam-u2f/ + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= a2x:textproc/asciidoc +LIB_DEPENDS= libfido2.so:security/libfido2 + +USES= autoreconf libtool pkgconfig ssl +USE_GITHUB= yes +GH_ACCOUNT= Yubico +GH_PROJECT= pam-u2f +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-pam-dir=${PREFIX}/lib + +PLIST_FILES= bin/pamu2fcfg \ + lib/pam_u2f.so \ + man/man1/pamu2fcfg.1.gz \ + man/man8/pam_u2f.8.gz + +.if !exists(/usr/libdata/pkgconfig/libcrypto.pc) +CONFIGURE_ENV= LIBCRYPTO_CFLAGS="-I${OPENSSLINC}" LIBCRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" +.endif + +.include diff --git a/security/pam_u2f/distinfo b/security/pam_u2f/distinfo new file mode 100644 index 0000000000000..14a06ca91a672 --- /dev/null +++ b/security/pam_u2f/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1678046721 +SHA256 (Yubico-pam-u2f-pam_u2f-1.2.1_GH0.tar.gz) = 2983d9fff6107219c1adcc4cbb2b563bbf6b7975aa642b34c5508f7924bdc450 +SIZE (Yubico-pam-u2f-pam_u2f-1.2.1_GH0.tar.gz) = 81481 diff --git a/security/pam_u2f/pkg-descr b/security/pam_u2f/pkg-descr new file mode 100644 index 0000000000000..6b17dd23e50cd --- /dev/null +++ b/security/pam_u2f/pkg-descr @@ -0,0 +1,3 @@ +This module implements PAM over U2F and FIDO2, providing an easy way to +integrate the YubiKey (or other U2F/FIDO2 compliant authenticators) into your +existing infrastructure.