git: 11a451f52dc9 - main - security/pam_fprint: Remove, it's deprecated
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Oct 2024 11:49:45 UTC
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=11a451f52dc9f2137c3fd2bf36c9a5bd94c6b452
commit 11a451f52dc9f2137c3fd2bf36c9a5bd94c6b452
Author: Daniel Schaefer <dhs@frame.work>
AuthorDate: 2024-07-10 15:21:06 +0000
Commit: Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2024-10-21 11:49:14 +0000
security/pam_fprint: Remove, it's deprecated
See here: https://fprint.freedesktop.org/
> pam_fprint is replaced by fprintd’s pam_fprintd module, which splits
> the PAM conversation from hardware access.
It also doesn't work with the latest libfprint anymore.
Co-authored-by: Sheng-Yi Hung <aokblast@FreeBSD.org>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
PR: 280749
Sponsored by: Framework Computer Inc
Sponsored by: The FreeBSD Foundation
Pull Request: https://github.com/freebsd/freebsd-ports/pull/291
---
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, 1 insertion(+), 146 deletions(-)
diff --git a/MOVED b/MOVED
index a277371b7e8a..4082fbbc11ab 100644
--- a/MOVED
+++ b/MOVED
@@ -3538,3 +3538,4 @@ devel/qscintilla2-qt5|devel/qscintilla2@qt5|2024-10-19|Converted to a flavorized
devel/qscintilla2-qt6|devel/qscintilla2@qt6|2024-10-19|Converted to a flavorized port. Use devel/qscintilla2@qt6 instead
devel/qscintilla2-designerplugin-qt5|devel/qscintilla2-designerplugin@qt5|2024-10-19|Converted to a flavorized port. Use devel/qscintilla2-designerplugin@qt5 instead
lang/gcc10||2024-10-20|Has expired: Unsupported by upstream. Use GCC 12 or newer instead
+security/pam_fprintd|security/fprintd|2024-10-21|pam_fprint is replaced by fprintd’s pam_fprintd module
diff --git a/security/Makefile b/security/Makefile
index b74783e132c0..7e163d29f909 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -751,7 +751,6 @@
SUBDIR += pam-modules
SUBDIR += pam-mysql
SUBDIR += pam-pgsql
- SUBDIR += pam_fprint
SUBDIR += pam_google_authenticator
SUBDIR += pam_helper
SUBDIR += pam_howdy
diff --git a/security/pam_fprint/Makefile b/security/pam_fprint/Makefile
deleted file mode 100644
index bc2a1883527a..000000000000
--- a/security/pam_fprint/Makefile
+++ /dev/null
@@ -1,26 +0,0 @@
-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 <bsd.port.mk>
diff --git a/security/pam_fprint/distinfo b/security/pam_fprint/distinfo
deleted file mode 100644
index be803ebe9af8..000000000000
--- a/security/pam_fprint/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-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
deleted file mode 100644
index 3b4fd1202f39..000000000000
--- a/security/pam_fprint/files/patch-src_Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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
deleted file mode 100644
index 5a17b9c68ba8..000000000000
--- a/security/pam_fprint/files/patch-src_pam__fprint.c
+++ /dev/null
@@ -1,62 +0,0 @@
---- src/pam_fprint.c.orig 2023-02-14 15:43:27 UTC
-+++ src/pam_fprint.c
-@@ -18,6 +18,7 @@
- */
-
- #include <stdio.h>
-+#include <stdlib.h>
- #include <unistd.h>
- #include <sys/types.h>
- #include <pwd.h>
-@@ -27,6 +28,7 @@
-
- #define PAM_SM_AUTH
- #include <security/pam_modules.h>
-+#include <security/pam_appl.h>
-
- 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
deleted file mode 100644
index e468aea9214d..000000000000
--- a/security/pam_fprint/files/patch-src_pam__fprint__enroll.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/pam_fprint_enroll.c.orig 2023-02-14 15:43:27 UTC
-+++ src/pam_fprint_enroll.c
-@@ -26,7 +26,7 @@
- #include <unistd.h>
- #include <getopt.h>
-
--#include <libfprint/fprint.h>
-+#include <fprint.h>
-
- 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
deleted file mode 100644
index ea1d127270a2..000000000000
--- a/security/pam_fprint/files/pkg-message.in
+++ /dev/null
@@ -1,20 +0,0 @@
-[
-{ type: install
- message: <<EOM
-The security/fprint_demo port contains the graphical `fprint_demo'
-application that allows you to manage your finger prints in a comfortable
-way.
-
-After enrolling fingerprints for your user(s), you can enable finger
-print authentication by adding the following line to the corresponding
-PAM configuration file(s) (see the PAM documentation and the pam_fprint
-web site for more information).
-
-auth sufficient %%PREFIX%%/lib/pam_fprint.so
-
-/etc/pam.d/system is used for system-wide defaults,
-/etc/pam.d/{gdm, kde} are used by the GDM/KDM login managers.
-EOM
-}
-]
-
diff --git a/security/pam_fprint/pkg-descr b/security/pam_fprint/pkg-descr
deleted file mode 100644
index 442ca161c435..000000000000
--- a/security/pam_fprint/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-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.