From f703af0874edebde27531376271ebc18c487adcd Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 14 Aug 2020 21:24:34 -0700 Subject: sys-libs/pam_wrapper: Add new package Closes: https://bugs.gentoo.org/730974 Signed-off-by: Matt Turner --- sys-libs/pam_wrapper/Manifest | 1 + sys-libs/pam_wrapper/metadata.xml | 8 ++++++ sys-libs/pam_wrapper/pam_wrapper-1.1.3.ebuild | 40 +++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 sys-libs/pam_wrapper/Manifest create mode 100644 sys-libs/pam_wrapper/metadata.xml create mode 100644 sys-libs/pam_wrapper/pam_wrapper-1.1.3.ebuild (limited to 'sys-libs/pam_wrapper') diff --git a/sys-libs/pam_wrapper/Manifest b/sys-libs/pam_wrapper/Manifest new file mode 100644 index 000000000000..d4f66f3a2a4b --- /dev/null +++ b/sys-libs/pam_wrapper/Manifest @@ -0,0 +1 @@ +DIST pam_wrapper-1.1.3.tar.gz 118034 BLAKE2B 3c05e74959f3c6dfd35575cc5f9187f4a328bfd7ce002e327fc135c82a4ff1513add87678360992d2010c124f7fd95e4bdb3c0a4d63418d9711069cbc200e417 SHA512 3b7cbd25ae7dd73f4a0c64a7762cdeb38cc7ba6e8b4e18e79aceffea09241d520aa884de88e4105b5957b2b18ec682be6568a6bfccf82b9354a3510cd2cd98eb diff --git a/sys-libs/pam_wrapper/metadata.xml b/sys-libs/pam_wrapper/metadata.xml new file mode 100644 index 000000000000..48f6ca46f45a --- /dev/null +++ b/sys-libs/pam_wrapper/metadata.xml @@ -0,0 +1,8 @@ + + + + + samba@gentoo.org + Samba Team + + diff --git a/sys-libs/pam_wrapper/pam_wrapper-1.1.3.ebuild b/sys-libs/pam_wrapper/pam_wrapper-1.1.3.ebuild new file mode 100644 index 000000000000..517f2391cbeb --- /dev/null +++ b/sys-libs/pam_wrapper/pam_wrapper-1.1.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +CMAKE_ECLASS=cmake +inherit cmake-multilib python-single-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 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + sys-libs/pam:0=[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND} + test? ( dev-util/cmocka[${MULTILIB_USEDEP}] )" + +multilib_src_configure() { + local libpam="${EPREFIX}" + multilib_is_native_abi || libpam+="/usr" + libpam+="/$(get_libdir)/libpam.so.0" + + local mycmakeargs=( + -DPAM_LIBRARY="${libpam}" + -DUNIT_TESTING=$(usex test) + -DPYTHON2_LIBRARY="/dev/null" # Disabled + -DPYTHON3_INCLUDE_DIR="$(python_get_includedir)" + -DPYTHON3_SITELIB="$(python_get_sitedir)" + ) + cmake_src_configure +} -- cgit v1.2.3-65-gdbad