commit:     d64b7f684e7510fe995613f894b2e3c09853d91b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  1 14:53:56 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Mar  1 15:09:43 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d64b7f68

sys-auth/openpam: Bump to EAPI=6

 .../files/openpam-20130907-module-dir.patch        |  4 +-
 sys-auth/openpam/openpam-20140912-r2.ebuild        | 48 ++++++++++++++++++++++
 2 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/sys-auth/openpam/files/openpam-20130907-module-dir.patch 
b/sys-auth/openpam/files/openpam-20130907-module-dir.patch
index 01afadbbfb8..28c4414f912 100644
--- a/sys-auth/openpam/files/openpam-20130907-module-dir.patch
+++ b/sys-auth/openpam/files/openpam-20130907-module-dir.patch
@@ -1,7 +1,7 @@
 diff --git a/openpam-20130907/lib/libpam/openpam_constants.c 
b/openpam-20130907/lib/libpam/openpam_constants.c
 index 1cdd810..f66e469 100644
---- a/openpam-20130907/lib/libpam/openpam_constants.c
-+++ b/openpam-20130907/lib/libpam/openpam_constants.c
+--- a/lib/libpam/openpam_constants.c
++++ b/lib/libpam/openpam_constants.c
 @@ -135,8 +135,8 @@ const char *openpam_policy_path[] = {
  };
  

diff --git a/sys-auth/openpam/openpam-20140912-r2.ebuild 
b/sys-auth/openpam/openpam-20140912-r2.ebuild
new file mode 100644
index 00000000000..50de35c46fe
--- /dev/null
+++ b/sys-auth/openpam/openpam-20140912-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Open source PAM library"
+HOMEPAGE="http://www.openpam.org/";
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+RDEPEND="!sys-libs/pam"
+DEPEND="
+       sys-devel/make
+       dev-lang/perl"
+
+PDEPEND="
+       sys-auth/pambase"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-20130907-gentoo.patch"
+       "${FILESDIR}/${PN}-20130907-nbsd.patch"
+       "${FILESDIR}/${PN}-20130907-module-dir.patch"
+)
+
+src_prepare() {
+       sed -i -e 's:-Werror::' "${S}/configure.ac"
+       default
+       eautoreconf
+}
+
+multilib_src_configure() {
+       local myconf=(
+               --with-modules-dir=/$(get_libdir)/security
+       )
+       ECONF_SOURCE=${S} \
+       econf "${myconf[@]}"
+}
+
+multilib_src_install_all() {
+       dodoc CREDITS HISTORY RELNOTES README
+       find "${D}" -name '*.la' -delete || die
+}

Reply via email to