rpms/pam_pkcs11/devel pam_pkcs11-0.5.3-examples.patch, NONE, 1.1 pam_pkcs11-0.5.3-genmapper-config.patch, NONE, 1.1 pam_pkcs11-0.5.3-pcsc120.patch, NONE, 1.1 .cvsignore, 1.2, 1.3 pam_pkcs11.spec, 1.1, 1.2 sources, 1.2, 1.3 pam_pkcs11-0.5.2-pki.patch, 1.1, NONE
Ville Skytta (scop)
fedora-extras-commits at redhat.com
Wed Sep 21 19:56:08 UTC 2005
- Previous message (by thread): rpms/hddtemp/devel .cvsignore, 1.5, 1.6 hddtemp.db, 1.7, 1.8 hddtemp.spec, 1.13, 1.14 sources, 1.6, 1.7
- Next message (by thread): rpms/colorscheme/devel colorscheme-0.2.1-include64.patch, NONE, 1.1 colorscheme.spec, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: scop
Update of /cvs/extras/rpms/pam_pkcs11/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13406
Modified Files:
.cvsignore pam_pkcs11.spec sources
Added Files:
pam_pkcs11-0.5.3-examples.patch
pam_pkcs11-0.5.3-genmapper-config.patch
pam_pkcs11-0.5.3-pcsc120.patch
Removed Files:
pam_pkcs11-0.5.2-pki.patch
Log Message:
WIP commit, not quite ready yet:
* Wed Sep 21 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.5.3-1
- 0.5.3, patch to compile with pcsc-lite < 1.2.9.
- Comment out example entries in default configuration files.
- Sync installation layout in config files and on disk.
- Specfile cleanups and maintainability improvements.
pam_pkcs11-0.5.3-examples.patch:
--- NEW FILE pam_pkcs11-0.5.3-examples.patch ---
Index: etc/digest_mapping.example
===================================================================
--- etc/digest_mapping.example (revision 182)
+++ etc/digest_mapping.example (working copy)
@@ -1,4 +1,5 @@
# Mapping for certificate sha1 digest
# Format: Cert SHA1 digest (hexdot) -> login
#
-90:17:64:09:4C:42:D6:9C:91:52:7F:1C:86:00:23:DC:BB:5D:27:50 -> jantonio
+# Example:
+# 90:17:64:09:4C:42:D6:9C:91:52:7F:1C:86:00:23:DC:BB:5D:27:50 -> jantonio
Index: etc/subject_mapping.example
===================================================================
--- etc/subject_mapping.example (revision 182)
+++ etc/subject_mapping.example (working copy)
@@ -1,4 +1,5 @@
# Mapping file for Certificate Subject
# format: Certificate Subject -> login
#
-/C=ES/O=FNMT/OU=FNMT Clase 2 CA/OU=500051483/CN=NOMBRE MARTINEZ CASTA\xF1O JUAN ANTONIO - NIF 50431138G -> jantonio
+# Example:
+# /C=ES/O=FNMT/OU=FNMT Clase 2 CA/OU=500051483/CN=NOMBRE MARTINEZ CASTA\xF1O JUAN ANTONIO - NIF 50431138G -> jantonio
Index: etc/mail_mapping.example
===================================================================
--- etc/mail_mapping.example (revision 182)
+++ etc/mail_mapping.example (working copy)
@@ -1,7 +1,8 @@
# mapping file for Certificate E-email
# format: email -> login
#
-jantonio at dit.upm.es -> jantonio
-juan_a_mtnez at yahoo.es -> jantonio
-jonsito at terra.es -> jantonio
-pjpg at dit.upm.es -> pjpg
+# Examples:
+# jantonio at dit.upm.es -> jantonio
+# juan_a_mtnez at yahoo.es -> jantonio
+# jonsito at terra.es -> jantonio
+# pjpg at dit.upm.es -> pjpg
pam_pkcs11-0.5.3-genmapper-config.patch:
--- NEW FILE pam_pkcs11-0.5.3-genmapper-config.patch ---
Index: src/mappers/Makefile.am
===================================================================
--- src/mappers/Makefile.am (revision 182)
+++ src/mappers/Makefile.am (working copy)
@@ -10,6 +10,7 @@
# Statically linked mapperis list
# Uncomment to get refered mapper statically linked
# DON'T FORGET update libmappers_la_SOURCES and lib_LTLIBRARIES entries below
+# nor the corresponding "module = ..." in etc/pam_pkcs11.conf.example
#
AM_CFLAGS += -DSUBJECT_MAPPER_STATIC
#AM_CFLAGS += -DLDAP_MAPPER_STATIC
Index: etc/pam_pkcs11.conf.example
===================================================================
--- etc/pam_pkcs11.conf.example (revision 182)
+++ etc/pam_pkcs11.conf.example (working copy)
@@ -99,7 +99,8 @@
# Generic certificate contents mapper
mapper generic {
debug = true;
- module = /usr/lib/pam_pkcs11/generic_mapper.so;
+ # module = /usr/lib/pam_pkcs11/generic_mapper.so;
+ module = internal;
# ignore letter case on match/compare
ignorecase = false;
# Use one of "cn" , "subject" , "kpn" , "email" , "upn" or "uid"
pam_pkcs11-0.5.3-pcsc120.patch:
--- NEW FILE pam_pkcs11-0.5.3-pcsc120.patch ---
--- src/tools/card_eventmgr.c~ 2005-09-21 00:19:50.000000000 +0300
+++ src/tools/card_eventmgr.c 2005-09-21 00:25:54.000000000 +0300
@@ -311,7 +311,7 @@
LONG rv;
SCARD_READERSTATE_A *rgReaderStates_t = NULL;
DWORD dwReaders, dwReadersOld;
- LPTSTR mszReaders = NULL;
+ char *mszReaders = NULL;
char *ptr, **readers = NULL;
int nbReaders, i;
int first_loop = TRUE;
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/pam_pkcs11/devel/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore 29 Aug 2005 03:15:27 -0000 1.2
+++ .cvsignore 21 Sep 2005 19:56:06 -0000 1.3
@@ -1 +1 @@
-pam_pkcs11-0.5.2.tar.gz
+pam_pkcs11-0.5.3.tar.gz
Index: pam_pkcs11.spec
===================================================================
RCS file: /cvs/extras/rpms/pam_pkcs11/devel/pam_pkcs11.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pam_pkcs11.spec 29 Aug 2005 03:15:27 -0000 1.1
+++ pam_pkcs11.spec 21 Sep 2005 19:56:06 -0000 1.2
@@ -1,19 +1,24 @@
Name: pam_pkcs11
-Version: 0.5.2
-Release: 2%{?dist}
+Version: 0.5.3
+Release: 1%{?dist}
Summary: PKCS #11 PAM login module
Group: System Environment/Base
License: LGPL
URL: http://www.opensc.org/pam_pkcs11
-Source0: http://oasis.dit.upm.es/~jantonio/pam-pkcs11/downloads/%{name}-%{version}.tar.gz
+Source0: http://www.opensc.org/files/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Patch0: pam_pkcs11-0.5.2-pki.patch
-Patch1: pam_pkcs11-0.5.2-badstatic.patch
+# http://www.opensc.org/pam_pkcs11/ticket/11
+Patch0: %{name}-0.5.3-pcsc120.patch
+Patch1: %{name}-0.5.2-badstatic.patch
+# http://www.opensc.org/pam_pkcs11/ticket/9
+Patch2: %{name}-0.5.3-examples.patch
+# http://www.opensc.org/pam_pkcs11/ticket/10
+Patch3: %{name}-0.5.3-genmapper-config.patch
BuildRequires: pam-devel, openssl-devel, openldap-devel
%{?_with_curl:BuildRequires: curl-devel}
-BuildRequires: libxslt docbook-style-xsl
+BuildRequires: libxslt docbook-style-xsl
Provides: pkcs11_login = %{version}-%{release}
%description
@@ -41,17 +46,25 @@
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
-# 64bit arches
-%ifarch ia64 sparc64 alpha ppc64 x86_64
-for i in etc/pam_pkcs11.conf.example etc/pkcs11_eventmgr.conf.example etc/pam.d_login.example src/pam_pkcs11/pam_config.c src/tools/pkcs11_eventmgr.c; do
- sed -i 's/usr\/lib/usr\/lib64/g' $i
-done
-%endif
+if ! pkg-config --atleast-version 1.2.9 libpcsclite ; then
+%patch0
+fi
+#patch1 -p1
+%patch2
+%patch3
+
+grep -rlF /etc/pam_pkcs11/pkcs11_module.so * \
+| xargs sed -i -e \
+ 's|/etc/pam_pkcs11/pkcs11_module\.so|%{_libdir}/pam_pkcs11/pkcs11_module.so|g'
+
+grep -rlF /etc/pam_pkcs11 * \
+| xargs sed -i -e 's|/etc/pam_pkcs11|%{_sysconfdir}/pki/pam_pkcs11|g'
+
+grep -rl '/usr/lib\b' * | xargs sed -i -e 's|/usr/lib\b|%{_libdir}|g'
%build
+# --disable-static is broken as of 0.5.[23]
%configure --disable-dependency-tracking %{?_with_curl}
make %{?_smp_mflags}
@@ -59,45 +72,41 @@
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
+install -dm 755 $RPM_BUILD_ROOT/%{_lib}
+mv $RPM_BUILD_ROOT%{_libdir}/security $RPM_BUILD_ROOT/%{_lib}
+
# Nuke the static and libtool bits
rm -rf $RPM_BUILD_ROOT%{_libdir}/pam_pkcs11/*.*a
-# 64 bit correction
-%ifarch ia64 sparc64 alpha ppc64 x86_64
-mv $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib64
-%endif
-
-# Nuke %{_datadir}/pam_pkcs11
+# Example configs are installed in-place and some as docs
rm -rf $RPM_BUILD_ROOT%{_datadir}/pam_pkcs11
-# Hardcoded defaults... no sysconfdir
-mkdir -p $RPM_BUILD_ROOT/etc/pki/pkcs11/mapdir
-install -dm 755 $RPM_BUILD_ROOT/etc/pki/pkcs11/cacerts
-install -dm 755 $RPM_BUILD_ROOT/etc/pki/pkcs11/crls
-install -m 644 etc/pam_pkcs11.conf.example $RPM_BUILD_ROOT/etc/pki/pkcs11/pam_pkcs11.conf
-install -m 644 etc/card_eventmgr.conf.example $RPM_BUILD_ROOT/etc/pki/pkcs11/card_eventmgr.conf
-install -m 644 etc/pkcs11_eventmgr.conf.example $RPM_BUILD_ROOT/etc/pki/pkcs11/pkcs11_eventmgr.conf
-install -m 644 etc/digest_mapping.example $RPM_BUILD_ROOT/etc/pki/pkcs11/digest_mapping
-install -m 644 etc/mail_mapping.example $RPM_BUILD_ROOT/etc/pki/pkcs11/mail_mapping
-install -m 644 etc/subject_mapping.example $RPM_BUILD_ROOT/etc/pki/pkcs11/subject_mapping
+install -dm 755 \
+ $RPM_BUILD_ROOT%{_sysconfdir}/pki/pam_pkcs11/{cacerts,crls,mapdir}
+for file in card_eventmgr.conf pam_pkcs11.conf pkcs11_eventmgr.conf {digest,mail,subject}_mapping ; do
+ install -pm 644 etc/$file.example \
+ $RPM_BUILD_ROOT%{_sysconfdir}/pki/pam_pkcs11/$file
+done
+
%clean
rm -rf $RPM_BUILD_ROOT
+
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README TODO ChangeLog NEWS
-%doc docs/pam_pkcs11.html
-%doc docs/README.autologin
-%doc docs/README.mappers
+%doc doc/pam_pkcs11.html
+%doc doc/README.autologin doc/README.ldap_mapper doc/README.mappers
%doc etc/pam.d_login.example
-%dir %{_sysconfdir}/pki/pkcs11
-%config(noreplace) %{_sysconfdir}/pki/pkcs11/cacerts
-%config(noreplace) %{_sysconfdir}/pki/pkcs11/crls
-%config(noreplace) %{_sysconfdir}/pki/pkcs11/pam_pkcs11.conf
-%config(noreplace) %{_sysconfdir}/pki/pkcs11/digest_mapping
-%config(noreplace) %{_sysconfdir}/pki/pkcs11/mail_mapping
-%config(noreplace) %{_sysconfdir}/pki/pkcs11/subject_mapping
+%dir %{_sysconfdir}/pki/pam_pkcs11
+%config(noreplace) %{_sysconfdir}/pki/pam_pkcs11/cacerts/
+%config(noreplace) %{_sysconfdir}/pki/pam_pkcs11/crls/
+%config(noreplace) %{_sysconfdir}/pki/pam_pkcs11/mapdir/
+%config(noreplace) %{_sysconfdir}/pki/pam_pkcs11/pam_pkcs11.conf
+%config(noreplace) %{_sysconfdir}/pki/pam_pkcs11/digest_mapping
+%config(noreplace) %{_sysconfdir}/pki/pam_pkcs11/mail_mapping
+%config(noreplace) %{_sysconfdir}/pki/pam_pkcs11/subject_mapping
%{_bindir}/make_hash_link.sh
%{_libdir}/pam_pkcs11/
/%{_lib}/security/pam_pkcs11.so
@@ -105,20 +114,23 @@
%files tools
%defattr(-,root,root,-)
-%dir %{_sysconfdir}/pki/pkcs11
-%config(noreplace) %{_sysconfdir}/pki/pkcs11/card_eventmgr.conf
-%config(noreplace) %{_sysconfdir}/pki/pkcs11/pkcs11_eventmgr.conf
+%doc doc/README.eventmgr
+%config(noreplace) %{_sysconfdir}/pki/pam_pkcs11/card_eventmgr.conf
+%config(noreplace) %{_sysconfdir}/pki/pam_pkcs11/pkcs11_eventmgr.conf
%{_bindir}/card_eventmgr
%{_bindir}/pkcs11_eventmgr
%{_bindir}/pklogin_finder
%{_bindir}/pkcs11_inspect
-%{_mandir}/man1/card_eventmgr.1.gz
-%{_mandir}/man1/pkcs11_eventmgr.1.gz
-%{_mandir}/man1/pkcs11_inspect.1.gz
-%{_mandir}/man1/pklogin_finder.1.gz
-%doc docs/README.eventmgr
+%{_mandir}/man1/*
+
%changelog
+* Wed Sep 21 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.5.3-1
+- 0.5.3, patch to compile with pcsc-lite < 1.2.9.
+- Comment out example entries in default configuration files.
+- Sync installation layout in config files and on disk.
+- Specfile cleanups and maintainability improvements.
+
* Sun Aug 28 2005 Tom "spot" Callaway <tcallawa at redhat.com> 0.5.2-2
- don't need the datadir
- 64bit fixups
@@ -131,7 +143,6 @@
- remove BR:automake
- own directories
- use /etc/pki
-- use --disable-static
* Sat Aug 13 2005 Tom "spot" Callaway <tcallawa at redhat.com> 0.5.1-1
- minor cleanups (and naming change) for Fedora Extras
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/pam_pkcs11/devel/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources 29 Aug 2005 03:15:27 -0000 1.2
+++ sources 21 Sep 2005 19:56:06 -0000 1.3
@@ -1 +1 @@
-5b5c6ac1c718297fa250d8a5b6e7cb82 pam_pkcs11-0.5.2.tar.gz
+607e3ba84b8938eff20c51c597e522c0 pam_pkcs11-0.5.3.tar.gz
--- pam_pkcs11-0.5.2-pki.patch DELETED ---
- Previous message (by thread): rpms/hddtemp/devel .cvsignore, 1.5, 1.6 hddtemp.db, 1.7, 1.8 hddtemp.spec, 1.13, 1.14 sources, 1.6, 1.7
- Next message (by thread): rpms/colorscheme/devel colorscheme-0.2.1-include64.patch, NONE, 1.1 colorscheme.spec, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list