From nobody Sun Feb 19 11:02:23 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PKN1C404rz3klV4; Sun, 19 Feb 2023 11:02:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PKN1C3HVwz47wt; Sun, 19 Feb 2023 11:02:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676804543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2nWh23FVZ1RpCFoLeUrSRdoo81ao9WZfeHXDKBrlyIE=; b=M6PqihZJjyZzI4K8z/RFJnIELNRj057GnuTs7WVqC+rZmt/BfL6X/RDr7UfS26lbWVBKVk 96B8LtmVkkZSLLr2p3OUOxsAfbm87nWlvFTKp7gs7EPOUiNsJOpGsyyP1KbvdsKhv3jqZ4 fCFqVHLM5AjQrCecdNwUM4ayqMSA/dqmdA7PcRakcI9Lme0HTEutcGMuL9UEDWwzEE9hzq lFw+Yxc20snT+vtQDhfvjXLVPPUotyYyTQH8hNd7NYn1hYDeM9O/iklLMo4m0iQZUyN1rD 3zb9MNLoIo9wmeK7P5g5e0wKxegMEzbSv9mNMkfS9dSMgda7UOTiqDmtuiRrbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676804543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2nWh23FVZ1RpCFoLeUrSRdoo81ao9WZfeHXDKBrlyIE=; b=VMJ3svIX0tsfGiU+WCk2dI+36floPmB+DuzhIx2CBlqzfdNO7s5toQcXOpOMqARLQXYLfG Zcftgq4huNaaY4remnxzWEv7nO7rO3xRu7Qmy4lheDcOYw2mYthcdQo9gNxvyNEZc8U8bz 5NVNsBk93AlMVkB1x5TplaDRLS9z16pX0GTfm1FbwrrlMSkbGvdkHk/o1hO7pB2FU09lGI Crj0pK+03BEjVqqhY7Hk3g0sK0AEnVjluYlFUwONPE46MZIqmm5Z3uJ2q6oYg3RVLBV5CQ qqTUeA4I+AbhgGsGwRvngT+p8neGrR4dUZ7G32+P9O6w3ocwEnfuUApYMoKjzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676804543; a=rsa-sha256; cv=none; b=mzLq+s5LlA63XhO09SFD36Aickk10l1FHC/r0/t5soEIktYiQUDeM/KUApaPbWLVQXpQwr 8NIagRe6s69pn0E0Vao5XufJFxnnTQPmGzwfoxKsZfchOgaBxqfieLzw89Sv0U5HKd/2T4 Ssc7+LBTEnA6olCe9csphKkIBFPGYigs/LzN8Eh2nBTHGd96WmLvQQ3ka8susAAciLDHGi 30KCtsV3uX6AEfxyHET70ZylzHjr6qToau5n4xDgcK4Sjyi8TT1uM2vS5RKZV99Qd5tNUU KA+brfEhBTfEzdeJ0mLpIyQbESWizJXl3Tuim00ysF67Yw4bDu9LnWGaTWKOeA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PKN1C2M3bz10YK; Sun, 19 Feb 2023 11:02:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31JB2N6W052609; Sun, 19 Feb 2023 11:02:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31JB2NZ0052608; Sun, 19 Feb 2023 11:02:23 GMT (envelope-from git) Date: Sun, 19 Feb 2023 11:02:23 GMT Message-Id: <202302191102.31JB2NZ0052608@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: cae60e628488 - main - security/pam_fprint: revive port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cae60e628488326d7c9837ca3d688e8dce738e2d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=cae60e628488326d7c9837ca3d688e8dce738e2d commit cae60e628488326d7c9837ca3d688e8dce738e2d Author: Clockwork6400 AuthorDate: 2023-02-14 16:58:34 +0000 Commit: Robert Clausecker CommitDate: 2023-02-19 11:01:39 +0000 security/pam_fprint: revive port pam_fprint is a simple PAM module which uses libfprint's fingerprint processing and verification functionality for authentication. In other words, instead of seeing a password prompt, you're asked to scan your fingerprint. Submitter becomes maintainer. Is already maintainer of other ports. PR: 269554 Approved by: flo (mentor) Differential Revision: https://reviews.freebsd.org/D38628 --- MOVED | 1 - security/Makefile | 1 + security/pam_fprint/Makefile | 26 +++++++++ security/pam_fprint/distinfo | 3 ++ security/pam_fprint/files/patch-src_Makefile.am | 11 ++++ security/pam_fprint/files/patch-src_pam__fprint.c | 62 ++++++++++++++++++++++ .../files/patch-src_pam__fprint__enroll.c | 20 +++++++ security/pam_fprint/files/pkg-message.in | 20 +++++++ security/pam_fprint/pkg-descr | 3 ++ 9 files changed, 146 insertions(+), 1 deletion(-) diff --git a/MOVED b/MOVED index 6823b3c2e314..68479d0c55f9 100644 --- a/MOVED +++ b/MOVED @@ -14714,7 +14714,6 @@ security/libbf||2020-05-05|Has expired: Broken for more than 6 months security/log2timeline||2020-05-05|Has expired: Broken for more than 6 months security/opencdk||2020-05-05|Has expired: Broken for more than 6 months security/pad||2020-05-05|Has expired: Broken for more than 6 months -security/pam_fprint||2020-05-05|Has expired: Broken for more than 6 months security/pam_per_user||2020-05-05|Has expired: Broken for more than 6 months security/razorback-dispatcher||2020-05-05|Has expired: Broken for more than 6 months security/ruby-camellia||2020-05-05|Has expired: Broken for more than 6 months diff --git a/security/Makefile b/security/Makefile index cda53cb58d72..5bb9cf5b9256 100644 --- a/security/Makefile +++ b/security/Makefile @@ -714,6 +714,7 @@ SUBDIR += pam-modules SUBDIR += pam-mysql SUBDIR += pam-pgsql + SUBDIR += pam_fprint SUBDIR += pam_google_authenticator SUBDIR += pam_helper SUBDIR += pam_jail diff --git a/security/pam_fprint/Makefile b/security/pam_fprint/Makefile new file mode 100644 index 000000000000..bc2a1883527a --- /dev/null +++ b/security/pam_fprint/Makefile @@ -0,0 +1,26 @@ +PORTNAME= pam_fprint +DISTVERSION= 20080330 +PORTREVISION= 1 +CATEGORIES= security + +MAINTAINER= Clockwork6400@protonmail.com +COMMENT= PAM module offering finger print authentication using libfprint +WWW= https://github.com/Clockwork6400/pam-fprint + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libfprint.so:security/libfprint + +GNU_CONFIGURE= yes +USES= autoreconf pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= Clockwork6400 + +PLIST_FILES+= bin/pam_fprint_enroll \ + lib/pam_fprint.so + +SUB_FILES= pkg-message + +.include diff --git a/security/pam_fprint/distinfo b/security/pam_fprint/distinfo new file mode 100644 index 000000000000..be803ebe9af8 --- /dev/null +++ b/security/pam_fprint/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1676392070 +SHA256 (Clockwork6400-pam_fprint-20080330_GH0.tar.gz) = 35d9ed7a3e0d6d32db88da2b7ca5c70d656dff2548a3e417c1c49b8952ca650f +SIZE (Clockwork6400-pam_fprint-20080330_GH0.tar.gz) = 15853 diff --git a/security/pam_fprint/files/patch-src_Makefile.am b/security/pam_fprint/files/patch-src_Makefile.am new file mode 100644 index 000000000000..3b4fd1202f39 --- /dev/null +++ b/security/pam_fprint/files/patch-src_Makefile.am @@ -0,0 +1,11 @@ +--- src/Makefile.am.orig 2023-02-14 15:43:27 UTC ++++ src/Makefile.am +@@ -1,7 +1,6 @@ +-noinst_PROGRAMS = pamtest + bin_PROGRAMS = pam_fprint_enroll + pammod_PROGRAMS = pam_fprint.so +-pammoddir=/lib/security ++pammoddir=$(PREFIX)/lib + + pam_fprint_so_SOURCES = pam_fprint.c + pam_fprint_so_CFLAGS = -fPIC $(FPRINT_CFLAGS) diff --git a/security/pam_fprint/files/patch-src_pam__fprint.c b/security/pam_fprint/files/patch-src_pam__fprint.c new file mode 100644 index 000000000000..5a17b9c68ba8 --- /dev/null +++ b/security/pam_fprint/files/patch-src_pam__fprint.c @@ -0,0 +1,62 @@ +--- src/pam_fprint.c.orig 2023-02-14 15:43:27 UTC ++++ src/pam_fprint.c +@@ -18,6 +18,7 @@ + */ + + #include ++#include + #include + #include + #include +@@ -27,6 +28,7 @@ + + #define PAM_SM_AUTH + #include ++#include + + static int send_info_msg(pam_handle_t *pamh, char *msg) + { +@@ -41,10 +43,10 @@ static int send_info_msg(pam_handle_t *pamh, char *msg + + r = pam_get_item(pamh, PAM_CONV, (const void **) &pc); + if (r != PAM_SUCCESS) +- return; ++ return r; + + if (!pc || !pc->conv) +- return; ++ return PAM_BUF_ERR; + + return pc->conv(1, &msgp, &resp, pc->appdata_ptr); + } +@@ -62,10 +64,10 @@ static int send_err_msg(pam_handle_t *pamh, char *msg) + + r = pam_get_item(pamh, PAM_CONV, (const void **) &pc); + if (r != PAM_SUCCESS) +- return; ++ return r; + + if (!pc || !pc->conv) +- return; ++ return PAM_BUF_ERR; + + return pc->conv(1, &msgp, &resp, pc->appdata_ptr); + } +@@ -102,7 +104,7 @@ static struct fp_print_data **find_dev_and_prints(stru + struct fp_print_data **gallery; + + /* TODO: add device selection */ +- while (print = prints[i++]) { ++ while ((print = prints[i++])) { + if (!ddev) { + ddev = fp_dscv_dev_for_dscv_print(ddevs, print); + driver_id = fp_dscv_print_get_driver_id(print); +@@ -133,7 +135,7 @@ static struct fp_print_data **find_dev_and_prints(stru + } + + i = 0, j = 0; +- while (print = prints[i++]) { ++ while ((print = prints[i++])) { + driver_id_cur = fp_dscv_print_get_driver_id(print); + if (driver_id_cur == driver_id) { + err = fp_print_data_from_dscv_print(print, & (gallery[j])); diff --git a/security/pam_fprint/files/patch-src_pam__fprint__enroll.c b/security/pam_fprint/files/patch-src_pam__fprint__enroll.c new file mode 100644 index 000000000000..e468aea9214d --- /dev/null +++ b/security/pam_fprint/files/patch-src_pam__fprint__enroll.c @@ -0,0 +1,20 @@ +--- src/pam_fprint_enroll.c.orig 2023-02-14 15:43:27 UTC ++++ src/pam_fprint_enroll.c +@@ -26,7 +26,7 @@ + #include + #include + +-#include ++#include + + static const char *finger_names[] = { + [LEFT_THUMB] = "Left Thumb", +@@ -47,7 +47,7 @@ static struct fp_dscv_dev *discover_device(struct fp_d + struct fp_dscv_dev *ddev = NULL; + int i; + +- for (i = 0; ddev = discovered_devs[i]; i++) { ++ for (i = 0; (ddev = discovered_devs[i]); i++) { + struct fp_driver *drv = fp_dscv_dev_get_driver(ddev); + printf("Found device claimed by %s driver\n", + fp_driver_get_full_name(drv)); diff --git a/security/pam_fprint/files/pkg-message.in b/security/pam_fprint/files/pkg-message.in new file mode 100644 index 000000000000..ea1d127270a2 --- /dev/null +++ b/security/pam_fprint/files/pkg-message.in @@ -0,0 +1,20 @@ +[ +{ type: install + message: <