orion / rpms / pam_yubico

Forked from rpms/pam_yubico 5 years ago
Clone
Blob Blame History Raw
Name:           pam_yubico
Version:        2.1
Release:        2%{?dist}
Summary:        A Pluggable Authentication Module for yubikeys

Group:          System Environment/Base
License:        BSD
URL:            http://yubico-pam.googlecode.com/
Source0:        http://yubico-pam.googlecode.com/files/pam_yubico-2.1.tar.gz
Patch0:         64bit_pam.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  ykclient-devel pam-devel
#Requires:       

%description
This is pam_yubico, a pluggable authentication module that can be used with
Linux-PAM and yubikeys. This module supports yubikey OTP checking.

%prep
%setup -q
%patch0 -p0


%build
%configure --libdir=/%{_lib} \
           --with-pam-dir=/%{_lib}/security/
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT/%{_lib}/security/pam_yubico.la
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc NEWS README COPYING ChangeLog
/%{_lib}/security/pam_yubico.so



%changelog
* Fri May  8 2009 Mike McGrath <mmcgrath@redhat.com> - 2.1-2
- Added patch to prevent segfaults in x86_64

* Wed Apr 29 2009 Dennis Gilmore <dennis@ausil.us> - 2.1-1
- initial packaging