#1 General cleanup
Merged 5 years ago by nb. Opened 5 years ago by orion.
rpms/ orion/pam_yubico cleanup  into  master

@@ -1,20 +0,0 @@ 

- --- pam_yubico-2.13/configure.ac.orig	2013-01-18 13:53:43.000000000 +0000

- +++ pam_yubico-2.13/configure.ac	2013-03-04 23:42:25.119866441 +0000

- @@ -43,6 +43,7 @@

-    [AC_MSG_ERROR([[PAM header files not found, install libpam-dev.]])])

-  AC_CHECK_HEADERS([security/pam_modules.h security/_pam_macros.h security/pam_modutil.h], [], [],

-    [#include <sys/types.h>

- +   #include <sys/unistd.h>

-     #include <security/pam_appl.h>])

-  

-  AC_CHECK_LIB([pam], [pam_start])

- --- pam_yubico-2.13/drop_privs.c.orig	2013-01-16 13:46:15.000000000 +0000

- +++ pam_yubico-2.13/drop_privs.c	2013-03-04 23:38:50.861021190 +0000

- @@ -48,6 +48,7 @@

-  

-  #ifdef HAVE_PAM_MODUTIL_DROP_PRIV

-  #ifdef HAVE_SECURITY_PAM_MODUTIL_H

- +#include <unistd.h>

-  #include <security/pam_modutil.h>

-  #endif /* HAVE_SECURITY_PAM_MODUTIL_H */

-  #else

file modified
+13 -12
@@ -1,18 +1,18 @@ 

  Name:           pam_yubico

  Version:        2.26

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        A Pluggable Authentication Module for yubikeys

  

  Group:          System Environment/Base

  License:        BSD

- URL:            http://opensource.yubico.com/yubico-pam/

- Source0:        http://opensource.yubico.com/yubico-pam/releases/pam_yubico-%{version}.tar.gz

- #Patch0:         pam_yubico-pamuid_t.patch

+ URL:            https://developers.yubico.com/yubico-pam/

+ Source0:        https://developers.yubico.com/yubico-pam/Releases/pam_yubico-%{version}.tar.gz

  

  BuildRequires:  gcc

  BuildRequires:  ykclient-devel >= 2.15

  BuildRequires:  libyubikey-devel >= 1.5

  BuildRequires:  pam-devel ykpers-devel openldap-devel automake

+ Requires:       pam

  

  %description

  This is pam_yubico, a pluggable authentication module that can be used with
@@ -20,30 +20,31 @@ 

  

  %prep

  %setup -q 

- #%patch0 -p1

  

  %build

  autoconf

  %configure --libdir=/%{_lib} \

             --with-pam-dir=/%{_lib}/security/

- make %{?_smp_mflags}

+ %make_build

  

  %install

- rm -rf $RPM_BUILD_ROOT

- make install DESTDIR=$RPM_BUILD_ROOT

+ %make_install

  rm $RPM_BUILD_ROOT/%{_lib}/security/pam_yubico.la

  

  %files

- %doc NEWS README COPYING ChangeLog

+ %license COPYING

+ %doc NEWS README ChangeLog

  /%{_lib}/security/pam_yubico.so

  %{_bindir}/ykpamcfg

  %{_mandir}/man1/ykpamcfg.1.gz

  %{_mandir}/man8/pam_yubico.8.gz

  

- #%{_includedir}/util.h

- #%{_includedir}/drop_privs.h

- 

  %changelog

+ * Fri Nov 16 2018 Orion Poplawski <orion@nwra.com> - 2.26-2

+ - Update URLs

+ - Require pam

+ - Modernize specfile

+ 

  * Mon Jul 23 2018 Nick Bebout <nb@fedoraproject.org> - 2.26-1

  - Update to 2.26

  

Update URLs
Require pam
Modernize specfile
Use %license

Pull-Request has been merged by nb

5 years ago