From nobody Wed Mar 29 11:38:49 2023 X-Original-To: dev-commits-ports-all@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 4Pml1j5cSnz42RrX; Wed, 29 Mar 2023 11:38:49 +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 4Pml1j53Chz44xg; Wed, 29 Mar 2023 11:38:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680089929; 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=PRr1KolKykXBFMmDseGYamN39xFBnuxYCOUPIJBKbm8=; b=SlnOB4X0/fHM9yACxUMrrAcbiCHxH/yEk9hR+OaLFSJwQKpbgcRO/8FQPLW2tfDxc+P/oG vS23xjRr2ZuKeBhU4M3YpSe04sh7eLdeGg9CFoW++2r1OqsuHTHQbpHrvf8IV5GaOXYwvN 8LOwI9von5V75Pvk05gvsHqHMfwhzVtRCxBAnftVHDf1muajHc6TtoeloqPrbjx8u4Yhum nq4Y4Hm5HC7SoZB0K3hH9p6hEU5HCsBDgYVGbUH3hTrzEnzan8ZksaOzRbOtY4JFLjLnGJ fBQB0JA7iFtV0jduTq8Jq43eZxOZxGLVhWMiiP4bjl2+Ct7LR7Ym6YN/PP3uNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680089929; 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=PRr1KolKykXBFMmDseGYamN39xFBnuxYCOUPIJBKbm8=; b=vpuJLqfP3o3Lyw4kIGpG+1r/TPDCmV2hCEeP/ApyPfV9mxj11QFBVu3diDDtKgCP75d9fJ 0pUQ5dj0UcyaIvWw/VrHr66IPH0apN1rL3rkGrYr2bipm+xgcBLgNPPcAjoNE503O/D/wp OUoA6FUuc6fl0jv8SuIMc7vxMw0p4QrtOZn0cXGLOVGDvD4SWhQfMJpBthIiZ6ETIXE1V0 3u6+ySfcETwaAMsJHr1kFBh+VQCZHhb31Odlm3XOv0q6bW4kra+6F3VojtsOFIgpvYplwf CaNy897pAuBVoqoMiuFnpW6xU9GMujVxjApvMSBOjkYo6qPcEkvzTH8pepX8AA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680089929; a=rsa-sha256; cv=none; b=s7iYUPR+ChI2mO5oXQ/4KcVI3bzgdSnZ/ukBZ62wg+6B0Ay57eMf4WERN50UACRyv7/crr 8BJlx5iDm5ovQKRAG8vFRxLZWvENrQOmM6L/NdoSb5dmtklMhOi8LmutvHgtcNeHiJ5CHL UTnat6V8S1Uhaf/avZUfsg1GsEdSFHKkXLjpdSdupVoSnw/7uDQ/ByxgFrri/KZkxRvjq8 Lj8RxdJbX49TS2W9bWcSHQoC+OfaoZsa0RdxL2nX9RTqjIujeDZ4wLzEozlc/LpA0RoSGR t3DH4Zw22OU43gGDcUPt2kMLsj1vVkTgqU6xkZg2I1OaJ/NDhQxqjS7CJBb+kA== 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 4Pml1j46dQzTF7; Wed, 29 Mar 2023 11:38:49 +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 32TBcnV8013884; Wed, 29 Mar 2023 11:38:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32TBcnlC013883; Wed, 29 Mar 2023 11:38:49 GMT (envelope-from git) Date: Wed, 29 Mar 2023 11:38:49 GMT Message-Id: <202303291138.32TBcnlC013883@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 8bb43708468c - main - security/pam_howdy: + PAM module for Howdy Face Recognition. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8bb43708468c6d423b784981b1facdcfa61e1b45 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=8bb43708468c6d423b784981b1facdcfa61e1b45 commit 8bb43708468c6d423b784981b1facdcfa61e1b45 Author: Alexey Yushkin <636808@mail.ru> AuthorDate: 2023-03-29 11:36:55 +0000 Commit: Gleb Popov CommitDate: 2023-03-29 11:38:17 +0000 security/pam_howdy: + PAM module for Howdy Face Recognition. This is a beta version for the upcoming release. Co-authored-by: Alexey Donskov Reviewed by: arrowd --- security/Makefile | 1 + security/pam_howdy/Makefile | 33 ++++++++++++++++++++++ security/pam_howdy/distinfo | 3 ++ security/pam_howdy/files/patch-enter__device.cc | 10 +++++++ security/pam_howdy/files/patch-main.cc | 37 +++++++++++++++++++++++++ security/pam_howdy/files/patch-meson.build | 23 +++++++++++++++ security/pam_howdy/pkg-descr | 3 ++ 7 files changed, 110 insertions(+) diff --git a/security/Makefile b/security/Makefile index 7a5c1905a97f..8138752548fa 100644 --- a/security/Makefile +++ b/security/Makefile @@ -721,6 +721,7 @@ SUBDIR += pam_fprint SUBDIR += pam_google_authenticator SUBDIR += pam_helper + SUBDIR += pam_howdy SUBDIR += pam_jail SUBDIR += pam_kde SUBDIR += pam_krb5 diff --git a/security/pam_howdy/Makefile b/security/pam_howdy/Makefile new file mode 100644 index 000000000000..60af8998ca62 --- /dev/null +++ b/security/pam_howdy/Makefile @@ -0,0 +1,33 @@ +PORTNAME= pam_howdy +PORTVERSION= 3.0.0.b +CATEGORIES= security + +MAINTAINER= arrowd@FreeBSD.org +COMMENT= PAM module for Howdy Face Recognition +WWW= https://github.com/boltgolt/howdy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/../../../LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto +LIB_DEPENDS= libevdev.so:devel/libevdev \ + libinih.so:devel/inih \ + libINIReader.so:devel/inih \ + libepoll-shim.so:devel/libepoll-shim + +USES= gettext-runtime localbase:ldflags pkgconfig meson ninja + +USE_GITHUB= yes +GH_ACCOUNT= boltgolt +GH_PROJECT= howdy +GH_TAGNAME= 30728a6d3634479c24ffd4e094c34a30bbb43058 + +WRKSRC_SUBDIR= howdy/src/pam +PLIST_FILES= lib/pam_howdy.so + +post-patch: + ${REINPLACE_CMD} \ + -e 's|/lib/security|${LOCALBASE}/lib|' \ + ${WRKSRC}/meson.build + +.include diff --git a/security/pam_howdy/distinfo b/security/pam_howdy/distinfo new file mode 100644 index 000000000000..6328e9b0e71d --- /dev/null +++ b/security/pam_howdy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1680089055 +SHA256 (boltgolt-howdy-3.0.0.b-30728a6d3634479c24ffd4e094c34a30bbb43058_GH0.tar.gz) = 76078fbfb48a186678476cf9844987c97793a71135f1e612d761350c6b27fa42 +SIZE (boltgolt-howdy-3.0.0.b-30728a6d3634479c24ffd4e094c34a30bbb43058_GH0.tar.gz) = 130651 diff --git a/security/pam_howdy/files/patch-enter__device.cc b/security/pam_howdy/files/patch-enter__device.cc new file mode 100644 index 000000000000..59eff8cc9ba2 --- /dev/null +++ b/security/pam_howdy/files/patch-enter__device.cc @@ -0,0 +1,10 @@ +--- enter_device.cc.orig 2023-03-08 16:41:32 UTC ++++ enter_device.cc +@@ -3,6 +3,7 @@ + #include + #include + #include ++#include + + EnterDevice::EnterDevice() + : raw_device(libevdev_new(), &libevdev_free), diff --git a/security/pam_howdy/files/patch-main.cc b/security/pam_howdy/files/patch-main.cc new file mode 100644 index 000000000000..6a3890b21e2d --- /dev/null +++ b/security/pam_howdy/files/patch-main.cc @@ -0,0 +1,37 @@ +--- main.cc.orig 2023-03-08 16:41:32 UTC ++++ main.cc +@@ -35,13 +35,25 @@ + #include + + #include ++ ++#ifndef __FreeBSD__ + #include ++#else ++#include ++#include ++#endif ++ + #include + ++ + #include "enter_device.hh" + #include "main.hh" + #include "optional_task.hh" + ++#ifdef __FreeBSD__ ++#define euidaccess eaccess ++#endif ++ + const auto DEFAULT_TIMEOUT = + std::chrono::duration(100); + const auto MAX_RETRIES = 5; +@@ -229,7 +241,7 @@ auto identify(pam_handle_t *pamh, int flags, int argc, + + // Wrap the PAM conversation function in our own, easier function + auto conv_function = [conv](int msg_type, const char *msg_str) { +- const struct pam_message msg = {.msg_style = msg_type, .msg = msg_str}; ++ const struct pam_message msg = {.msg_style = msg_type, .msg = const_cast(msg_str)}; + const struct pam_message *msgp = &msg; + + struct pam_response res = {}; diff --git a/security/pam_howdy/files/patch-meson.build b/security/pam_howdy/files/patch-meson.build new file mode 100644 index 000000000000..761de0f00a2c --- /dev/null +++ b/security/pam_howdy/files/patch-meson.build @@ -0,0 +1,23 @@ +--- meson.build.orig 2023-03-08 16:41:32 UTC ++++ meson.build +@@ -5,6 +5,11 @@ threads = dependency('threads') + libpam = meson.get_compiler('cpp').find_library('pam') + threads = dependency('threads') + ++# On FreeBSD, libepoll-shim library is required for signalfd.h ++epoll_shim = dependency('epoll-shim', required : false) ++# On libintl library is required for gettext ++libintl_dep = meson.get_compiler('cpp').find_library('intl', required: false) ++ + # Translations + subdir('po') + +@@ -17,6 +22,8 @@ shared_library( + inih_cpp, + threads, + libevdev, ++ epoll_shim, ++ libintl_dep, + ], + install: true, + install_dir: '/lib/security', diff --git a/security/pam_howdy/pkg-descr b/security/pam_howdy/pkg-descr new file mode 100644 index 000000000000..2b5965ff998a --- /dev/null +++ b/security/pam_howdy/pkg-descr @@ -0,0 +1,3 @@ +Howdy PAM is an authentication tool that allows you to unlock your desktop +session using your webcam. It uses facial recognition to authenticate and +unlock the session. This package provides PAM module for Howdy.