commit:     70a45faff39142bdb634855b50f9a4d177d658d4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 25 05:21:43 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 25 05:21:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70a45faf

sys-libs/pam_wrapper: add 1.1.8

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/pam_wrapper/Manifest                 |  1 +
 sys-libs/pam_wrapper/pam_wrapper-1.1.8.ebuild | 89 +++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/sys-libs/pam_wrapper/Manifest b/sys-libs/pam_wrapper/Manifest
index a91360001353..009c5097c533 100644
--- a/sys-libs/pam_wrapper/Manifest
+++ b/sys-libs/pam_wrapper/Manifest
@@ -1 +1,2 @@
 DIST pam_wrapper-1.1.5.tar.gz 95037 BLAKE2B 
78adeaac3994349460c2c9966e1145c3c6b78189cf1e6092cf0272bc82498c2182b114d718ce47b3403e32255d8ae5e65dee22e7bc261442323a661a4dbd1b38
 SHA512 
eee2c0683bd87c5416b52115105a9a2397cbec261e358ff20d9b272509f64ee5ea50a4adcb04f7791d451ca904ffd31c3bc07dc53555c3808f50f71634ab6323
+DIST pam_wrapper-1.1.8.tar.gz 93569 BLAKE2B 
52fd3f25bc2426e3b66a0b1a85598c1fd6e1bff67858eed524fb4531f300bc4828e2471c595457a907cf595506dc49545c9256d96219d2869433fb3e44f4ff3b
 SHA512 
f79362f451b1fc6562cf06b35522502c4055474f33a24262c83df8bc598ab8672cfe410ebc8f6713050db84aa5ce5aeca28a81092928e6fbb51f51e29583feb5

diff --git a/sys-libs/pam_wrapper/pam_wrapper-1.1.8.ebuild 
b/sys-libs/pam_wrapper/pam_wrapper-1.1.8.ebuild
new file mode 100644
index 000000000000..30bb112744fb
--- /dev/null
+++ b/sys-libs/pam_wrapper/pam_wrapper-1.1.8.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit cmake-multilib python-r1
+
+DESCRIPTION="A tool to test PAM applications and PAM modules"
+HOMEPAGE="https://cwrap.org/pam_wrapper.html";
+SRC_URI="
+       https://www.samba.org/ftp/pub/cwrap/${P}.tar.gz
+       https://ftp.samba.org/pub/cwrap/${P}.tar.gz
+"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# Require newer PAM so we know where it's located, bug #825078
+RDEPEND="
+       ${PYTHON_DEPS}
+       >=sys-libs/pam-1.5.3-r1:=[${MULTILIB_USEDEP}]
+"
+DEPEND="
+       ${RDEPEND}
+       test? ( dev-util/cmocka[${MULTILIB_USEDEP}] )
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.1.5-tests-import.patch
+)
+
+multilib_src_configure() {
+       configure_for_python() {
+               # TODO: -DRUN_PYTHON_TESTS?
+               local mycmakeargs=( -DUNIT_TESTING=OFF )
+               cmake_src_configure
+       }
+
+       if multilib_is_native_abi ; then
+               # Build the Pythons for each version (but only for the native 
ABI)
+               # bug #737468
+               python_foreach_impl configure_for_python
+       fi
+
+       # Do the regular build now
+       local mycmakeargs=(
+               -DUNIT_TESTING=$(usex test)
+               -DCMAKE_DISABLE_FIND_PACKAGE_Python=ON
+       )
+       cmake_src_configure
+}
+
+multilib_src_compile() {
+       if multilib_is_native_abi ; then
+               python_foreach_impl cmake_src_compile
+       fi
+
+       # Compile the "proper" version without Python last
+       cmake_src_compile
+}
+
+multilib_src_test() {
+       cmake_src_test
+
+       # Fails b/c of sandbox?
+       #python_test() {
+       #       local -x 
PYTHONPATH="${BUILD_DIR}/src/python/python3:${PYTHONPATH}"
+       #       elog "${PYTHONPATH}"
+       #       ${EPYTHON} "${S}"/tests/pypamtest_test.py || die "Tests failed 
with ${EPYTHON}"
+       #}
+
+       #if multilib_is_native_abi ; then
+       #       python_foreach_impl python_test
+       #fi
+}
+
+multilib_src_install() {
+       if multilib_is_native_abi ; then
+               python_foreach_impl cmake_src_install
+       fi
+
+       # Install the "proper" version without Python last
+       cmake_src_install
+}

Reply via email to