mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 14:21:02 +02:00
pam_yubico: by request added to the overlay, we have all the other yubikey stuff anyway
This commit is contained in:
parent
44043f73e9
commit
a5a1c00abc
3 changed files with 56 additions and 0 deletions
3
sys-auth/pam_yubico/Manifest
Normal file
3
sys-auth/pam_yubico/Manifest
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
AUX 2.11-drop_privs.patch 427 RMD160 6faebd7fa07b0a0c36acf2807b1ec4851b4f1755 SHA1 5b39e8d5f49fac743618c086d4f7a03d28d88476 SHA256 9ef850b639a255a9e372cfc8be8920f6ba64b1f042fcf1b678358e304bccb51e
|
||||
DIST pam_yubico-2.11.tar.gz 360380 RMD160 d3c379a809a4325522837df3d9ca92f52d4d3754 SHA1 e841ab473fee7c28af96e4d18fef427a8e1a947b SHA256 90f27e978313349ed6de19a57c3603b48f7c99fba02fe046396bf56b838d125f
|
||||
EBUILD pam_yubico-2.11.ebuild 851 RMD160 ca53470d96854236e71c951e6c502c137049fa34 SHA1 fca774b8dee3728f1aa3f4389055efd7be3136ba SHA256 b8c11cf29bb69f17e58497a6bc574fecb440eb79f754a81402973bcde4cc2321
|
||||
14
sys-auth/pam_yubico/files/2.11-drop_privs.patch
Normal file
14
sys-auth/pam_yubico/files/2.11-drop_privs.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
--- drop_privs.c 2012-03-09 12:36:04.792191180 -0500
|
||||
+++ drop_privs.c.new 2012-03-09 12:36:00.827333242 -0500
|
||||
@@ -47,9 +47,9 @@
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PAM_MODUTIL_DROP_PRIV
|
||||
-#ifdef HAVE_SECURITY_PAM_MODUTIL_H
|
||||
+//#ifdef HAVE_SECURITY_PAM_MODUTIL_H
|
||||
#include <security/pam_modutil.h>
|
||||
-#endif /* HAVE_SECURITY_PAM_MODUTIL_H */
|
||||
+//#endif /* HAVE_SECURITY_PAM_MODUTIL_H */
|
||||
#else
|
||||
static uid_t saved_euid;
|
||||
static gid_t saved_egid;
|
||||
39
sys-auth/pam_yubico/pam_yubico-2.11.ebuild
Normal file
39
sys-auth/pam_yubico/pam_yubico-2.11.ebuild
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=3
|
||||
inherit eutils autotools
|
||||
|
||||
DESCRIPTION="Library for authenticating against PAM with a Yubikey"
|
||||
HOMEPAGE="https://code.google.com/p/yubico-pam/"
|
||||
SRC_URI="http://yubico-pam.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="x86 amd64 ~ppc"
|
||||
IUSE="ldap cr"
|
||||
|
||||
DEPEND="virtual/pam
|
||||
>=sys-auth/ykclient-2.4
|
||||
>=sys-auth/ykpers-1.6"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PV}-drop_privs.patch"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with cr) \
|
||||
$(use_with ldap) \
|
||||
--with-pam-dir=/$(get_libdir)/security || die "econf failed!"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
dodoc AUTHORS ChangeLog NEWS README doc/* || die
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue