From patchwork Thu Jun 27 12:26:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Lechner X-Patchwork-Id: 65690 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B806227BBEA; Thu, 27 Jun 2024 13:28:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 561C927BBE2 for ; Thu, 27 Jun 2024 13:28:14 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMoEO-0008Ii-JF; Thu, 27 Jun 2024 08:28:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMoEL-0008Co-UT for guix-patches@gnu.org; Thu, 27 Jun 2024 08:28:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMoEL-0003mN-Jx for guix-patches@gnu.org; Thu, 27 Jun 2024 08:28:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMoEM-0007kB-Jj; Thu, 27 Jun 2024 08:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71794] [PATCH] Add openpam. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, w@wmeyer.eu, guix-patches@gnu.org Resent-Date: Thu, 27 Jun 2024 12:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71794 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71794@debbugs.gnu.org Cc: Felix Lechner , Leo Famulari , Wilko Meyer X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Leo Famulari , Wilko Meyer Received: via spool by submit@debbugs.gnu.org id=B.171949122929679 (code B ref -1); Thu, 27 Jun 2024 12:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jun 2024 12:27:09 +0000 Received: from localhost ([127.0.0.1]:41186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMoDU-0007id-FX for submit@debbugs.gnu.org; Thu, 27 Jun 2024 08:27:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:33628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMoDS-0007iV-FG for submit@debbugs.gnu.org; Thu, 27 Jun 2024 08:27:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMoDP-0007lz-6w for guix-patches@gnu.org; Thu, 27 Jun 2024 08:27:03 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sMoDN-0003hH-0Y for guix-patches@gnu.org; Thu, 27 Jun 2024 08:27:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=BWZEuaQorI1sWOn QKjs+4hyOEOJB8H4n99SwZoDcW0U=; h=date:subject:cc:to:from; d=lease-up.com; b=ppgiyXtJRyAlToU6BQni0kh/7edDRc59x3wLZo6gwnu+Z1OtlAjI /dqI6ALpsDhzW7ifctFW73n87jUIp6O/VfHzcdeuTpp7HHQEcPCtICnxz4tkr/K2f44jaH mOTGxwAl+zVd1HlM1G0NStyTWP/5A1LyBip8daaNNS4raZWEc= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id fc0f8417 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Thu, 27 Jun 2024 12:26:57 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 94adaa72; Thu, 27 Jun 2024 12:26:56 +0000 (UTC) Date: Thu, 27 Jun 2024 05:26:24 -0700 Message-ID: <90b568dd6bb743f2d2820dcae6f5a1ef7385c434.1719491082.git.felix.lechner@lease-up.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@us-core.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches X-Patchwork-Original-From: Felix Lechner via Guix-patches via From: Felix Lechner Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Change-Id: If013192a6802b36f4199fe23aacb5076cb8c7ec9 --- gnu/packages/linux.scm | 39 ++++++++++++++ gnu/packages/patches/openpam-pkgconfig.patch | 55 ++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 gnu/packages/patches/openpam-pkgconfig.patch base-commit: 71c678a16aae416298a0e3fa322b425315bb7b00 diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 9e5482ba8d..347e80e25b 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1954,6 +1954,45 @@ (define-public linux-pam at login. Local and dynamic reconfiguration are its key features.") (license license:bsd-3))) +(define-public openpam + (let ((commit "d61017e61587a577237436025f2d25e04393d64f") + (revision "0")) + (package + (name "openpam") + (version (git-version "0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.des.dev/OpenPAM/OpenPAM.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "16qqa21j1xmh1nr0v7ypgzml5aj16b053ja5arvdclw99fm5m43w")) + (patches (search-patches "openpam-pkgconfig.patch")))) + (native-inputs (list + autoconf + automake + libtool + perl + pkg-config)) + (build-system gnu-build-system) + (arguments + (list + #:configure-flags #~(list + "--with-pam-unix" + "--with-su"))) + (home-page "https://git.des.dev/OpenPAM/OpenPAM") + (synopsis "OpenPAM Authentication Framework") + (description + "OpenPAM is an open source PAM library that focuses on simplicity, +correctness, and cleanliness. Its aim is to gather the best features +of Solaris PAM, XSSO and Linux-PAM, plus some innovations of its +own. In areas where these implementations disagree, OpenPAM tries to +remain compatible with Solaris, at the expense of XSSO conformance and +Linux-PAM compatibility.") + (license license:bsd-3)))) + (define-public python-pamela (package (name "python-pamela") diff --git a/gnu/packages/patches/openpam-pkgconfig.patch b/gnu/packages/patches/openpam-pkgconfig.patch new file mode 100644 index 0000000000..f5055a45a9 --- /dev/null +++ b/gnu/packages/patches/openpam-pkgconfig.patch @@ -0,0 +1,55 @@ +From 1abf0a1aee5678474b03f00999c04f43c360f917 Mon Sep 17 00:00:00 2001 +From: Felix Lechner +Date: Mon, 24 Jun 2024 12:49:04 -0700 +Subject: [PATCH] Provide a Pkgconfig file. + +--- + configure.ac | 1 + + lib/libpam/Makefile.am | 3 +++ + lib/libpam/openpam.pc.in | 11 +++++++++++ + 3 files changed, 15 insertions(+) + create mode 100644 lib/libpam/openpam.pc.in + +diff --git a/configure.ac b/configure.ac +index a51bc70..e3fa430 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -158,6 +158,7 @@ AC_CONFIG_FILES([ + include/security/Makefile + lib/Makefile + lib/libpam/Makefile ++ lib/libpam/openpam.pc + misc/Makefile + modules/Makefile + modules/pam_deny/Makefile +diff --git a/lib/libpam/Makefile.am b/lib/libpam/Makefile.am +index 6051a8a..0467153 100644 +--- a/lib/libpam/Makefile.am ++++ b/lib/libpam/Makefile.am +@@ -98,3 +98,6 @@ EXTRA_DIST = \ + pam_sm_set_mapped_authtok.c \ + pam_sm_set_mapped_username.c \ + pam_sm_setcred.c ++ ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA = openpam.pc +diff --git a/lib/libpam/openpam.pc.in b/lib/libpam/openpam.pc.in +new file mode 100644 +index 0000000..21796ed +--- /dev/null ++++ b/lib/libpam/openpam.pc.in +@@ -0,0 +1,11 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: OpenPAM ++Description: The OpenPAM library. It is used by PAM modules and PAM-aware applications. ++URL: http://www.openpam.org/ ++Version: @VERSION@ ++Cflags: -I${includedir} ++Libs: -L${libdir} -lpam +-- +2.41.0 +