diff options
author | 2016-02-09 23:51:03 +0000 | |
---|---|---|
committer | 2016-02-09 23:51:03 +0000 | |
commit | 7a9ddf7e5cd1e459b2d5895802b2171136955f90 (patch) | |
tree | 25f9785197c98f61472f98ee9682967aeecb9366 /sys-auth/yubipam/yubipam-1.1_beta1.ebuild | |
parent | Add www-servers/3dm2-10.2.2.1, update README.md (diff) | |
download | srcshelton-7a9ddf7e5cd1e459b2d5895802b2171136955f90.tar.gz srcshelton-7a9ddf7e5cd1e459b2d5895802b2171136955f90.tar.bz2 srcshelton-7a9ddf7e5cd1e459b2d5895802b2171136955f90.zip |
Add sys-auth/yubipam-1.1_beta1, sys-auth/yubipam-9999, update README.md
Diffstat (limited to 'sys-auth/yubipam/yubipam-1.1_beta1.ebuild')
-rw-r--r-- | sys-auth/yubipam/yubipam-1.1_beta1.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/sys-auth/yubipam/yubipam-1.1_beta1.ebuild b/sys-auth/yubipam/yubipam-1.1_beta1.ebuild new file mode 100644 index 00000000..44b6b1e2 --- /dev/null +++ b/sys-auth/yubipam/yubipam-1.1_beta1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +MY_PV="${PV/_/-}" + +inherit eutils multilib user + +DESCRIPTION="YubiPAM: PAM module for Yubikeys" +HOMEPAGE="http://www.securixlive.com/yubipam/" +SRC_URI="http://www.securixlive.com/download/yubipam/YubiPAM-${MY_PV}.tar.gz" +RESTRICT="nomirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~mips ~x86" +IUSE="" + +DEPEND="sys-libs/pam" +RDEPEND="${DEPEND}" + +DOCS=( README INSTALL RELEASE.NOTES ) +S="${WORKDIR}/YubiPAM-${MY_PV}" + +pkg_setup() { + enewgroup yubiauth +} + +src_prepare() { + cd "${S}" + + epatch "${FILESDIR}/${P}-concat-twofactor.patch" || die "epatch failed" + epatch "${FILESDIR}/${P}-resource.h.patch" || die "epatch failed" +} + +src_install() { + emake install DESTDIR="${ED}" PAMDIR="$(get_libdir)/security" + find "${ED}" -type f -name \*.a -delete + find "${ED}" -type f -name \*.la -delete + + #diropts -m0660 -g yubiauth + #dodir /etc/yubikey || die "creation of state directory failed" + touch "${T}"/yubikey + insinto /etc + doins "${T}"/yubikey + + fowners :yubiauth /etc/yubikey /sbin/yk_chkpwd + fperms g+rw /etc/yubikey + fperms g+s /sbin/yk_chkpwd + + dodoc "${DOCS[@]}" +} + +pkg_postinst() { + einfo "To enable YubiPAM for system authentication" + einfo "edit your /etc/pam.d/system-auth to include:" + einfo + einfo " auth sufficient pam_yubikey.so" + einfo + einfo "... just before pam_unix.so" + echo + einfo "See included README for module parameters" +} |