| 1 | Name: pam_pkcs11 |
|---|
| 2 | Version: 0.6.0 |
|---|
| 3 | Release: 0 |
|---|
| 4 | Epoch: 0 |
|---|
| 5 | Summary: PKCS #11 PAM module |
|---|
| 6 | |
|---|
| 7 | Group: System Environment/Base |
|---|
| 8 | License: LGPL |
|---|
| 9 | URL: http://www.opensc-project.org/pam_pkcs11/ |
|---|
| 10 | Source0: http://www.opensc-project.org/files/pam_pkcs11-0.6.0.tar.gz |
|---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|---|
| 12 | |
|---|
| 13 | BuildRequires: pam-devel, openssl-devel |
|---|
| 14 | %{?_with_ldap:BuildRequires: openldap-devel} |
|---|
| 15 | %{?_with_curl:BuildRequires: curl-devel} |
|---|
| 16 | BuildRequires: libxslt docbook-style-xsl |
|---|
| 17 | BuildRequires: automake >= 1.7.8 |
|---|
| 18 | Provides: pam_pkcs11 = %{epoch}:%{version}-%{release} |
|---|
| 19 | |
|---|
| 20 | %description |
|---|
| 21 | This Linux-PAM module allows a X.509 certificate based user |
|---|
| 22 | authentication. The certificate and its dedicated private key are thereby |
|---|
| 23 | accessed by means of an appropriate PKCS #11 module. For the |
|---|
| 24 | verification of the users' certificates, locally stored CA |
|---|
| 25 | certificates as well as either online or locally accessible CRLs are |
|---|
| 26 | used. |
|---|
| 27 | Adittional included pam_pkcs11 related tools |
|---|
| 28 | - pkcs11_eventmgr: Generate actions on card insert/removal/timeout events |
|---|
| 29 | - pklogin_finder: Get the loginname that maps to a certificate |
|---|
| 30 | - pkcs11_inspect: Inspect the contents of a certificate |
|---|
| 31 | - make_hash_links: create hash link directories for storeing CA's and CRL's |
|---|
| 32 | |
|---|
| 33 | %package pcsc |
|---|
| 34 | Group: System Environment/Utilities |
|---|
| 35 | Summary: PCSC-Lite extra tools for pam_pkcs11 |
|---|
| 36 | BuildRequires: pcsc-lite-devel |
|---|
| 37 | Requires: pcsc-lite |
|---|
| 38 | Requires: pam_pkcs11 |
|---|
| 39 | Provides: pam_pkcs11-pcsc |
|---|
| 40 | |
|---|
| 41 | %description pcsc |
|---|
| 42 | This package contains pam_pkcs11 tools that relies on PCSC-Lite library |
|---|
| 43 | - card_eventmgr: Generate card insert/removal events |
|---|
| 44 | |
|---|
| 45 | %package ldap |
|---|
| 46 | Group: System Environment/Utilities |
|---|
| 47 | Summary: LDAP Cert-to-Login mapper for pam_pkcs11 |
|---|
| 48 | BuildRequires: openldap-devel |
|---|
| 49 | Requires: openldap |
|---|
| 50 | Requires: pam_pkcs11 |
|---|
| 51 | Provides: pam_pkcs11-ldap |
|---|
| 52 | |
|---|
| 53 | %description ldap |
|---|
| 54 | This package contains a Certificate-To-Login mapper based on queries |
|---|
| 55 | to a LDAP server. As it depends on extra libraries, is distributed |
|---|
| 56 | as a separate package |
|---|
| 57 | |
|---|
| 58 | - ldap_mapper.so: ldap based mapper library |
|---|
| 59 | %prep |
|---|
| 60 | %setup -q -n %{name}-%{version} |
|---|
| 61 | #./bootstrap |
|---|
| 62 | |
|---|
| 63 | %build |
|---|
| 64 | %configure --disable-dependency-tracking %{?_with_curl} %{?_with_ldap} |
|---|
| 65 | make %{?_smp_mflags} |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | %install |
|---|
| 69 | rm -rf $RPM_BUILD_ROOT |
|---|
| 70 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 71 | rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.*a |
|---|
| 72 | rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.*a |
|---|
| 73 | |
|---|
| 74 | # Hardcoded defaults... no sysconfdir |
|---|
| 75 | install -dm 755 $RPM_BUILD_ROOT/etc/%{name}/cacerts |
|---|
| 76 | install -dm 755 $RPM_BUILD_ROOT/etc/%{name}/crls |
|---|
| 77 | install -m 644 etc/%{name}.conf.example $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf |
|---|
| 78 | install -m 644 etc/card_eventmgr.conf.example $RPM_BUILD_ROOT/etc/%{name}/card_eventmgr.conf |
|---|
| 79 | install -m 644 etc/pkcs11_eventmgr.conf.example $RPM_BUILD_ROOT/etc/%{name}/pkcs11_eventmgr.conf |
|---|
| 80 | |
|---|
| 81 | %clean |
|---|
| 82 | rm -rf $RPM_BUILD_ROOT |
|---|
| 83 | |
|---|
| 84 | %files |
|---|
| 85 | %defattr(-,root,root,-) |
|---|
| 86 | %doc AUTHORS COPYING README TODO ChangeLog NEWS |
|---|
| 87 | %doc doc/pam_pkcs11.html |
|---|
| 88 | %doc doc/mappers_api.html |
|---|
| 89 | %doc doc/README.autologin |
|---|
| 90 | %doc doc/README.mappers |
|---|
| 91 | %config(noreplace) %{_sysconfdir}/%{name}/cacerts |
|---|
| 92 | %config(noreplace) %{_sysconfdir}/%{name}/crls |
|---|
| 93 | %config(noreplace) %{_sysconfdir}/%{name}/pam_pkcs11.conf |
|---|
| 94 | %config(noreplace) %{_sysconfdir}/%{name}/pkcs11_eventmgr.conf |
|---|
| 95 | %{_bindir}/make_hash_link.sh |
|---|
| 96 | %{_bindir}/pkcs11_eventmgr |
|---|
| 97 | %{_bindir}/pklogin_finder |
|---|
| 98 | %{_bindir}/pkcs11_inspect |
|---|
| 99 | %{_bindir}/pkcs11_listcerts |
|---|
| 100 | %{_bindir}/pkcs11_setup |
|---|
| 101 | %{_libdir}/%{name}/openssh_mapper.so |
|---|
| 102 | %{_libdir}/%{name}/opensc_mapper.so |
|---|
| 103 | %{_libdir}/security/pam_pkcs11.so |
|---|
| 104 | %{_mandir}/man8/%{name}.8.gz |
|---|
| 105 | %{_mandir}/man1/pkcs11_eventmgr.1.gz |
|---|
| 106 | %{_mandir}/man1/pkcs11_inspect.1.gz |
|---|
| 107 | %{_mandir}/man1/pklogin_finder.1.gz |
|---|
| 108 | %{_datadir}/%{name}/%{name}.conf.example |
|---|
| 109 | %{_datadir}/%{name}/pam.d_login.example |
|---|
| 110 | %{_datadir}/%{name}/subject_mapping.example |
|---|
| 111 | %{_datadir}/%{name}/mail_mapping.example |
|---|
| 112 | %{_datadir}/%{name}/digest_mapping.example |
|---|
| 113 | %{_datadir}/%{name}/pkcs11_eventmgr.conf.example |
|---|
| 114 | %{_datadir}/locale/*/LC_MESSAGES/* |
|---|
| 115 | |
|---|
| 116 | %files pcsc |
|---|
| 117 | %config(noreplace) %{_sysconfdir}/%{name}/card_eventmgr.conf |
|---|
| 118 | %{_bindir}/card_eventmgr |
|---|
| 119 | %{_mandir}/man1/card_eventmgr.1.gz |
|---|
| 120 | %{_datadir}/%{name}/card_eventmgr.conf.example |
|---|
| 121 | %doc doc/README.eventmgr |
|---|
| 122 | |
|---|
| 123 | %files ldap |
|---|
| 124 | %{_libdir}/%{name}/ldap_mapper.so |
|---|
| 125 | %doc doc/README.ldap_mapper |
|---|
| 126 | |
|---|
| 127 | %changelog |
|---|
| 128 | * Wed Jun 6 2007 Ludovic Rousseau <ludovic.rousseau@free.fr> 0:0.6.0-1 |
|---|
| 129 | - Update to 0.6.0 |
|---|
| 130 | |
|---|
| 131 | * Thu Sep 7 2005 Juan Antonio Martinez <jonsito at teleline.es 0:0.5.3-2 |
|---|
| 132 | - Add ldap_mapper.so as separate package, as it depends on external library |
|---|
| 133 | - Changes from FC4 team |
|---|
| 134 | |
|---|
| 135 | * Thu Sep 1 2005 Juan Antonio Martinez <jonsito at teleline.es 0:0.5.3-0 |
|---|
| 136 | - Update to 0.5.3 |
|---|
| 137 | - Remove tools package, and create pcsc one with pcsc-lite dependent files |
|---|
| 138 | |
|---|
| 139 | * Fri Apr 11 2005 Juan Antonio Martinez <jonsito at teleline.es 0:0.5.2-1 |
|---|
| 140 | - Changed package name to pam_pkcs11 |
|---|
| 141 | |
|---|
| 142 | * Fri Apr 8 2005 Juan Antonio Martinez <jonsito at teleline.es 0:0.5.2-0 |
|---|
| 143 | - Updated to 0.5.2 release |
|---|
| 144 | - Changed /etc/pkcs11 for /etc/pam_pkcs11 |
|---|
| 145 | - Changed /usr/share/pkcs11_login for /usr/share/pam_pkcs11 |
|---|
| 146 | - Next item is change package name to pam_pkcs11 |
|---|
| 147 | |
|---|
| 148 | * Thu Apr 7 2005 Juan Antonio Martinez <jonsito at teleline.es 0:0.5.1-0 |
|---|
| 149 | - patches to avoid autotools in compile from tgz |
|---|
| 150 | |
|---|
| 151 | * Thu Mar 29 2005 Juan Antonio Martinez <jonsito at teleline.es 0:0.5-1 |
|---|
| 152 | - upgrade to 0.5beta1 version |
|---|
| 153 | - BuildRequires now complains compilation of html manual from xml file |
|---|
| 154 | |
|---|
| 155 | * Thu Feb 28 2005 Juan Antonio Martinez <jonsito at teleline.es> 0:0.4.4-2 |
|---|
| 156 | - New pkcs11_eventmgr app in "tools" package |
|---|
| 157 | |
|---|
| 158 | * Thu Feb 24 2005 Juan Antonio Martinez <jonsito at teleline.es> 0:0.4.4-1 |
|---|
| 159 | - Fix pcsc-lite dependencies |
|---|
| 160 | |
|---|
| 161 | * Thu Feb 15 2005 Juan Antonio Martinez <jonsito at teleline.es> 0:0.4.4-0 |
|---|
| 162 | - Update to 0.4.4b2 |
|---|
| 163 | |
|---|
| 164 | * Sun Sep 12 2004 Ville SkyttÀ <ville.skytta at iki.fi> - 0:0.3b-0.fdr.1 |
|---|
| 165 | - Update to 0.3b. |
|---|
| 166 | - Disable dependency tracking to speed up the build. |
|---|
| 167 | |
|---|
| 168 | * Tue May 4 2004 Ville SkyttÀ <ville.skytta at iki.fi> - 0:0.3-0.fdr.1 |
|---|
| 169 | - Update to 0.3. |
|---|
| 170 | - Do not use libcurl by default; rebuild using "--with curl" to use it. |
|---|
| 171 | |
|---|
| 172 | * Mon Mar 29 2004 Ville SkyttÀ <ville.skytta at iki.fi> - 0:0.2-0.fdr.1 |
|---|
| 173 | - Update to 0.2. |
|---|
| 174 | - Use libcurl by default; rebuild using "--without curl" to disable. |
|---|
| 175 | |
|---|
| 176 | * Wed Jan 21 2004 Ville SkyttÀ <ville.skytta at iki.fi> - 0:0.1-0.fdr.0.2.beta5 |
|---|
| 177 | - Add the user_mapping config file. |
|---|
| 178 | |
|---|
| 179 | * Mon Jan 19 2004 Ville SkyttÀ <ville.skytta at iki.fi> - 0:0.1-0.fdr.0.1.beta5 |
|---|
| 180 | - First build. |
|---|