Compare commits

..

2 Commits
rawhide ... f15

Author SHA1 Message Date
Kalev Lember c2b58e4390 Really apply the patch to disable automatic card power down (#737988) 2011-09-15 23:59:31 +03:00
Kalev Lember 50b6078550 Sleep before trying to poll again in case of an error (#718375) 2011-07-02 16:52:50 +03:00
11 changed files with 379 additions and 343 deletions

32
.gitignore vendored
View File

@ -1,26 +1,6 @@
/pcsc-lite-*.tar.bz2 /pcsc-lite-1.6.4.tar.bz2
/pcsc-lite-1.8.11.tar.bz2.asc /pcsc-lite-1.6.6.tar.bz2
/pcsc-lite-1.8.12.tar.bz2.asc /pcsc-lite-1.6.7.tar.bz2
/pcsc-lite-1.8.13.tar.bz2.asc /pcsc-lite-1.7.0.tar.bz2
/pcsc-lite-1.8.14.tar.bz2.asc /pcsc-lite-1.7.1.tar.bz2
/pcsc-lite-1.8.15.tar.bz2.asc /pcsc-lite-1.7.2.tar.bz2
/pcsc-lite-1.8.16.tar.bz2.asc
/pcsc-lite-1.8.17.tar.bz2.asc
/pcsc-lite-1.8.18.tar.bz2.asc
/pcsc-lite-1.8.19.tar.bz2.asc
/pcsc-lite-1.8.20.tar.bz2.asc
/pcsc-lite-1.8.22.tar.bz2.asc
/pcsc-lite-1.8.23.tar.bz2.asc
/pcsc-lite-1.8.24.tar.bz2.asc
/pcsc-lite-1.8.25.tar.bz2.asc
/pcsc-lite-1.8.26.tar.bz2.asc
/pcsc-lite-1.9.0.tar.bz2.asc
/pcsc-lite-1.9.1.tar.bz2.asc
/pcsc-lite-1.9.2.tar.bz2.asc
/pcsc-lite-1.9.3.tar.bz2.asc
/pcsc-lite-1.9.4.tar.bz2.asc
/pcsc-lite-1.9.5.tar.bz2.asc
/pcsc-lite-1.9.6.tar.bz2.asc
/pcsc-lite-1.9.7.tar.bz2.asc
/pcsc-lite-1.9.8.tar.bz2.asc
/pcsc-lite-1.9.9.tar.bz2.asc

View File

@ -0,0 +1,11 @@
--- ./doc/Makefile.in.docinst 2008-06-26 20:32:52.000000000 -0700
+++ ./doc/Makefile.in 2008-08-28 14:18:11.240452000 -0700
@@ -612,7 +612,7 @@
info-am:
-install-data-am: install-docDATA install-man
+install-data-am: install-man
install-dvi: install-dvi-recursive

View File

@ -0,0 +1,20 @@
--- pcsc-lite-1.5.5/configure.rpath64 2009-11-18 14:03:19.000000000 +0200
+++ pcsc-lite-1.5.5/configure 2009-11-18 14:06:08.000000000 +0200
@@ -11135,7 +11135,7 @@
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
+sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no
@@ -11552,7 +11552,7 @@
# Append ld.so.conf contents to the search path
if test -f /etc/ld.so.conf; then
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib $lt_ld_extra"
fi
# We used to test for /lib/ld.so.1 and disable shared libraries on

View File

@ -0,0 +1,24 @@
diff -up pcsc-lite-1.6.6/src/pcscd.h.in.no_auto_power_down pcsc-lite-1.6.6/src/pcscd.h.in
--- pcsc-lite-1.6.6/src/pcscd.h.in.no_auto_power_down 2010-12-13 16:29:40.328693266 +0200
+++ pcsc-lite-1.6.6/src/pcscd.h.in 2010-12-13 16:30:04.531954586 +0200
@@ -63,7 +63,7 @@ enum
#define PCSCLITE_STATUS_EVENT_TIMEOUT 10*60*1000 /* 10 minutes */
/* Uncomment the next line if you do NOT want to use auto power off */
-/* #define DISABLE_ON_DEMAND_POWER_ON */
+#define DISABLE_ON_DEMAND_POWER_ON
/* Uncomment the next line if you do not want the card to be powered on
* when inserted */
diff -up pcsc-lite-1.6.6/src/pcscd.h.no_auto_power_down pcsc-lite-1.6.6/src/pcscd.h
--- pcsc-lite-1.6.6/src/pcscd.h.no_auto_power_down 2010-12-13 16:29:31.064593222 +0200
+++ pcsc-lite-1.6.6/src/pcscd.h 2010-12-13 16:29:55.337855295 +0200
@@ -63,7 +63,7 @@ enum
#define PCSCLITE_STATUS_EVENT_TIMEOUT 10*60*1000 /* 10 minutes */
/* Uncomment the next line if you do NOT want to use auto power off */
-/* #define DISABLE_ON_DEMAND_POWER_ON */
+#define DISABLE_ON_DEMAND_POWER_ON
/* Uncomment the next line if you do not want the card to be powered on
* when inserted */

View File

@ -0,0 +1,100 @@
diff -up pcsc-lite-1.6.7/src/winscard_clnt.c.noautostart pcsc-lite-1.6.7/src/winscard_clnt.c
--- pcsc-lite-1.6.7/src/winscard_clnt.c.noautostart 2011-02-23 00:20:25.000000000 +0200
+++ pcsc-lite-1.6.7/src/winscard_clnt.c 2011-02-25 17:17:32.201085695 +0200
@@ -444,80 +444,16 @@ LONG SCardEstablishContext(DWORD dwScope
LPCVOID pvReserved2, LPSCARDCONTEXT phContext)
{
LONG rv;
- int daemon_launched = FALSE;
- int retries = 0;
API_TRACE_IN("%ld, %p, %p", dwScope, pvReserved1, pvReserved2)
PROFILE_START
-again:
/* Check if the server is running */
rv = SCardCheckDaemonAvailability();
if (SCARD_E_INVALID_HANDLE == rv)
/* we reconnected to a daemon or we got called from a forked child */
rv = SCardCheckDaemonAvailability();
- if (SCARD_E_NO_SERVICE == rv)
- {
-launch:
- if (daemon_launched)
- {
- retries++;
- if (retries < 50) /* 50 x 100ms = 5 seconds */
- {
- /* give some more time to the server to start */
- SYS_USleep(100*1000); /* 100 ms */
- goto again;
- }
-
- /* the server failed to start (in time) */
- goto end;
- }
- else
- {
- int pid;
-
- pid = fork();
-
- if (pid < 0)
- {
- Log2(PCSC_LOG_CRITICAL, "fork failed: %s", strerror(errno));
- rv = SCARD_F_INTERNAL_ERROR;
- goto end;
- }
-
- if (0 == pid)
- {
- int i, max;
- char *param = getenv("PCSCLITE_PCSCD_ARGS");
-
- /* close all file handles except stdin, stdout and
- * stderr so that pcscd does not confiscate ressources
- * allocated by the application */
- max = sysconf(_SC_OPEN_MAX);
- if (-1 == max)
- max = 1024;
- for (i=3; i<max; i++)
- (void)close(i);
-
- /* son process */
- execl(PCSCD_BINARY, "pcscd", "--auto-exit", param,
- (char *)NULL);
- Log2(PCSC_LOG_CRITICAL, "exec " PCSCD_BINARY " failed: %s",
- strerror(errno));
- exit(1);
- }
-
- /* father process */
- daemon_launched = TRUE;
-
- if (waitpid(pid, NULL, 0) < 0)
- Log2(PCSC_LOG_CRITICAL, "waitpid failed: %s", strerror(errno));
-
- goto again;
- }
- }
-
if (rv != SCARD_S_SUCCESS)
goto end;
@@ -526,15 +462,6 @@ launch:
pvReserved2, phContext);
(void)SCardUnlockThread();
- /* SCardEstablishContextTH may fail if the previous pcscd crashed
- * without cleaning /var/run/pcscd/pcscd.comm */
- if (SCARD_E_NO_SERVICE == rv)
- {
- retries++;
- if (retries <= 1)
- goto launch;
- }
-
end:
PROFILE_END(rv)
API_TRACE_OUT("%ld", *phContext)

View File

@ -0,0 +1,24 @@
diff -up pcsc-lite-1.7.2/src/winscard.c.loglevel pcsc-lite-1.7.2/src/winscard.c
--- pcsc-lite-1.7.2/src/winscard.c.loglevel 2011-02-02 15:43:35.000000000 +0200
+++ pcsc-lite-1.7.2/src/winscard.c 2011-05-25 06:41:21.012756755 +0300
@@ -287,7 +287,7 @@ LONG SCardConnect(/*@unused@*/ SCARDCONT
{
if (!(readerState & SCARD_PRESENT))
{
- Log1(PCSC_LOG_ERROR, "Card Not Inserted");
+ Log1(PCSC_LOG_DEBUG, "Card Not Inserted");
return SCARD_E_NO_SMARTCARD;
}
diff -up pcsc-lite-1.7.2/src/winscard_svc.c.loglevel pcsc-lite-1.7.2/src/winscard_svc.c
--- pcsc-lite-1.7.2/src/winscard_svc.c.loglevel 2011-01-29 15:50:59.000000000 +0200
+++ pcsc-lite-1.7.2/src/winscard_svc.c 2011-05-25 06:41:21.011756744 +0300
@@ -285,7 +285,7 @@ static const char *CommandsText[] = {
#define WRITE_BODY(v) \
WRITE_BODY_WITH_COMMAND(CommandsText[header.command], v)
#define WRITE_BODY_WITH_COMMAND(command, v) \
- Log4(SCARD_S_SUCCESS == v.rv ? PCSC_LOG_DEBUG : PCSC_LOG_ERROR, "%s rv=0x%X for client %d", command, v.rv, filedes); \
+ Log4(PCSC_LOG_DEBUG, "%s rv=0x%X for client %d", command, v.rv, filedes); \
ret = MessageSend(&v, sizeof(v), filedes);
static void ContextThread(LPVOID newContext)

View File

@ -0,0 +1,36 @@
From 4f7c0110cb95e599d164e503910cde930ba3f993 Mon Sep 17 00:00:00 2001
From: rousseau <rousseau@0ce88b0d-b2fd-0310-8134-9614164e65ea>
Date: Mon, 30 May 2011 09:22:57 +0000
Subject: [PATCH] EHStatusHandlerThread(): always sleep if the driver card
event function returns an error (and not just in the case
of IFD_NO_SUCH_DEVICE)
This avoids to loop too fast in case of a problem. This happens after
activating a smart card reader in vmware workstation for example.
See https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/787451
"pcscd spams to syslog and kern.log after enabling smartcard reader in
VMWare Workstation"
git-svn-id: svn://svn.debian.org/pcsclite/trunk@5769 0ce88b0d-b2fd-0310-8134-9614164e65ea
---
src/eventhandler.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/eventhandler.c b/src/eventhandler.c
index 603ad81..e291fab 100644
--- a/src/eventhandler.c
+++ b/src/eventhandler.c
@@ -429,7 +429,7 @@ static void EHStatusHandlerThread(READER_CONTEXT * rContext)
timeout = PCSCLITE_STATUS_EVENT_TIMEOUT;
ret = rContext->pthCardEvent(rContext->slot, timeout);
- if (IFD_NO_SUCH_DEVICE == ret)
+ if (IFD_SUCCESS != ret)
(void)SYS_USleep(PCSCLITE_STATUS_POLL_RATE);
}
else
--
1.7.5.4

View File

@ -1,52 +1,38 @@
# doesn't make sense to install a polkit configuration inside a Flatpak %global upstream_build 3533
%if 0%{?flatpak}
%global with_polkit 0
%else
%global with_polkit 1
%endif
Name: pcsc-lite Name: pcsc-lite
Version: 1.9.9 Version: 1.7.2
Release: 3%{?dist} Release: 4%{?dist}
Summary: PC/SC Lite smart card framework and applications Summary: PC/SC Lite smart card framework and applications
Group: System Environment/Daemons
License: BSD License: BSD
URL: https://pcsclite.apdu.fr/ URL: http://pcsclite.alioth.debian.org/
Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2 Source0: http://alioth.debian.org/download.php/%{upstream_build}/%{name}-%{version}.tar.bz2
Source1: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2.asc Source1: pcscd.init
Source2: gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg Patch0: %{name}-1.4-docinst.patch
Patch1: %{name}-1.5.5-rpath64.patch
# Disable pcscd on-demand startup (#653903)
Patch2: %{name}-1.6.7-noautostart.patch
# Disable automatic card power down which seems to be unreliable at this point
Patch3: %{name}-1.6.6-no_auto_power_down
# Avoid filling log files with "rv=0x... for client" and "Card Not Inserted"
# messages (#657658, #707412)
Patch4: pcsc-lite-1.7.2-loglevel.patch
# Sleep before trying to poll again in case of an error (#718375)
Patch5: pcsc-lite-1.7.2-pollrate.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: make BuildRequires: libudev-devel
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: graphviz BuildRequires: graphviz
BuildRequires: systemd-devel Requires(post): initscripts
BuildRequires: systemd-rpm-macros Requires(post): /sbin/chkconfig
BuildRequires: /usr/bin/pod2man Requires(preun): /sbin/chkconfig
%if %{with_polkit} Requires(preun): initscripts
BuildRequires: polkit-devel Requires(postun): initscripts
%endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
BuildRequires: libtool
BuildRequires: gnupg2
BuildRequires: gcc
BuildRequires: python3-devel
BuildRequires: flex
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires: pcsc-ifd-handler Requires: pcsc-ifd-handler
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
%if %{with_polkit}
Requires: polkit
%endif
Requires: python3
Recommends: pcsc-lite-ccid
# This is bundled in upstream without simple way to remove
Provides: bundled(simclist) = 1.6
%description %description
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
@ -59,12 +45,14 @@ line tools.
%package libs %package libs
Summary: PC/SC Lite libraries Summary: PC/SC Lite libraries
Group: System Environment/Libraries
%description libs %description libs
PC/SC Lite libraries. PC/SC Lite libraries.
%package devel %package devel
Summary: PC/SC Lite development files Summary: PC/SC Lite development files
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
%description devel %description devel
@ -72,6 +60,7 @@ PC/SC Lite development files.
%package doc %package doc
Summary: PC/SC Lite developer documentation Summary: PC/SC Lite developer documentation
Group: Documentation
BuildArch: noarch BuildArch: noarch
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
@ -80,9 +69,13 @@ Requires: %{name}-libs = %{version}-%{release}
%prep %prep
gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%setup -q %setup -q
%patch0 -p0 -b .docinst
%patch1 -p1 -b .rpath64
%patch2 -p1 -b .noautostart
%patch3 -p1 -b .no_auto_power_down
%patch4 -p1 -b .loglevel
%patch5 -p1 -b .pollrate
# Convert to utf-8 # Convert to utf-8
for file in ChangeLog; do for file in ChangeLog; do
@ -95,316 +88,81 @@ done
%build %build
%configure \ %configure \
--disable-static \ --disable-static \
%if %{with_polkit} --enable-ipcdir=%{_localstatedir}/run \
--enable-polkit \
%endif
--with-systemdsystemunitdir=%{_unitdir} \
--enable-usbdropdir=%{_libdir}/pcsc/drivers --enable-usbdropdir=%{_libdir}/pcsc/drivers
%make_build make %{?_smp_mflags}
doxygen doc/doxygen.conf ; rm -f doc/api/*.{map,md5} doxygen doc/doxygen.conf ; rm -f doc/api/*.{map,md5}
%py3_shebang_fix src/spy/pcsc-spy
%install %install
%make_install rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -Dpm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/pcscd
# Create empty directories # Create empty directories
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers mkdir -p $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/pcscd
rm $RPM_BUILD_ROOT%{_libdir}/*.la rm $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post %post
%systemd_post pcscd.socket pcscd.service /sbin/chkconfig --add pcscd
# If install, test if pcscd socket is enabled.
# If enabled, then attempt to start it. This will silently fail
# in chroots or other environments where services aren't expected
# to be started.
if [ $1 -eq 1 ] ; then
if systemctl -q is-enabled pcscd.socket > /dev/null 2>&1 ; then
systemctl start pcscd.socket > /dev/null 2>&1 || :
fi
fi
%preun %preun
%systemd_preun pcscd.socket pcscd.service if [ $1 = 0 ] ; then
/sbin/service pcscd stop >/dev/null 2>&1 || :
/sbin/chkconfig --del pcscd
fi
%postun %postun
%systemd_postun_with_restart pcscd.socket pcscd.service if [ "$1" -ge "1" ]; then
/sbin/service pcscd condrestart >/dev/null 2>&1 || :
fi
%ldconfig_scriptlets libs %post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files %files
%doc AUTHORS ChangeLog HELP README SECURITY TODO %defattr(-,root,root,-)
%doc doc/README.polkit %doc AUTHORS ChangeLog* DRIVERS HELP README SECURITY TODO
%doc install_spy.sh uninstall_spy.sh
%dir %{_sysconfdir}/reader.conf.d/ %dir %{_sysconfdir}/reader.conf.d/
%{_unitdir}/pcscd.service %{_initrddir}/pcscd
%{_unitdir}/pcscd.socket
%{_sbindir}/pcscd %{_sbindir}/pcscd
%dir %{_libdir}/pcsc/ %dir %{_libdir}/pcsc/
%dir %{_libdir}/pcsc/drivers/ %dir %{_libdir}/pcsc/drivers/
%{_mandir}/man5/reader.conf.5* %{_mandir}/man5/reader.conf.5*
%{_mandir}/man8/pcscd.8* %{_mandir}/man8/pcscd.8*
%ghost %dir %{_localstatedir}/run/pcscd/
%if %{with_polkit}
%{_datadir}/polkit-1/actions/org.debian.pcsc-lite.policy
%endif
%files libs %files libs
%license COPYING %defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libpcsclite.so.* %{_libdir}/libpcsclite.so.*
%files devel %files devel
%{_bindir}/pcsc-spy %defattr(-,root,root,-)
%{_includedir}/PCSC/ %{_includedir}/PCSC/
%{_libdir}/libpcsclite.so %{_libdir}/libpcsclite.so
%{_libdir}/libpcscspy.so*
%{_libdir}/pkgconfig/libpcsclite.pc %{_libdir}/pkgconfig/libpcsclite.pc
%{_mandir}/man1/pcsc-spy.1*
%files doc %files doc
%defattr(-,root,root,-)
%doc doc/api/ doc/example/pcsc_demo.c %doc doc/api/ doc/example/pcsc_demo.c
%changelog %changelog
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.9-3 * Thu Sep 15 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - Really apply the patch to disable automatic card power down (#737988)
* Tue Nov 01 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.9-2 * Sat Jul 02 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.2-3
- Remove downstream patch breaking flatpak (#2054826) - Sleep before trying to poll again in case of an error (#718375)
* Mon Sep 19 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.9-1
- New upstream release (#2126065)
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.8-1
- New upstream release (#2095962)
* Fri May 13 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.7-1
- New upstream release (#2085514)
* Thu May 12 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.6-1
- New upstream release (#2084468)
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Dec 06 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.5-1
- New upstream release (#2029098)
* Mon Oct 04 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.4-1
- New upstream release (#2009927)
* Mon Aug 09 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.3-1
- New upstream release (#1991071)
* Wed Aug 04 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.2-1
- New upstream release (#1989875)
* Fri Jul 23 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.1-5
- Use upstream polkit policy to avoid annoying prompts in remote sessions (#1478345)
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 25 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.1-3
- Add support for more readers
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.1-2
- Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
* Thu Feb 25 2021 Jakub Jelen <jjelen@redhat.com> - 1.9.1-1
- New upstream release (#1932519)
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jun 15 2020 Jakub Jelen <jjelen@redhat.com> - 1.9.0-1
- New upstream release (#1846925)
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.26-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Jan 20 2020 Jakub Jelen <jjelen@redhat.com> - 1.8.26-1
- New upstream release
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.25-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Apr 05 2019 Jakub Jelen <jjelen@redhat.com> - 1.8.25-1
- New upstream release (#1692559)
- Fix memory leak in SCardEstablishContextTH() (#1684674)
- Enable socket activation after installation (#1545027)
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.24-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Nov 20 2018 Jakub Jelen <jjelen@redhat.com> - 1.8.24-1
- New upstream release (#1651353)
* Mon Jul 23 2018 Jakub Jelen <jjelen@redhat.com> - 1.8.23-4
- Add missing dependencies (#1605389)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.23-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.23-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Dec 19 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.23-1
- New upstream release
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.22-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.22-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Tue Jun 27 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.22-1
- New upstream release
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Jan 2 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.20-1
- New upstream release
* Fri Dec 9 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.19-1
- New upstream release
* Wed Nov 30 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.18-1
- New upstream release
* Thu Jun 30 2016 Ville Skyttä <ville.skytta@iki.fi> - 1.8.17-2
- Add dependency on polkit
- Mark COPYING as %%license
- Fix bogus dates in %%changelog
* Tue Jun 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.17-1
- New upstream release
* Fri Apr 1 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.16-1
- New upstream release (#1319539)
- Added gpg key verification as part of build process
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Mon Jan 11 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.15-1
- New upstream release (#1294262)
* Wed Nov 18 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.14-2
- Recommend pcsc-lite-ccid package (#1280447)
* Wed Aug 5 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.14-1
- New upstream release
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Nov 7 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.13-1
- New upstream release
* Wed Sep 24 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.12-1
- New upstream release (#1079514)
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Jun 03 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.11-1
- New upstream release
- Safer usage of libudev functions
* Tue Mar 11 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.10-3
- The default installed polkit policy allows console users to access
smart cards. Non-interactive or remote usage now requires admin
rights, or a specific policy (see README.polkit)
* Tue Feb 11 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.8.10-2
- Added upstream patch to support polkit
- Force sanity of parameters received by the client
* Sun Oct 20 2013 Kalev Lember <kalevlember@gmail.com> - 1.8.10-1
- Update to 1.8.10
- Update source URL
- Drop large ChangeLog.svn from %%doc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 28 2013 Kalev Lember <kalevlember@gmail.com> - 1.8.8-1
- Update to 1.8.8
- Use new systemd macros (#850264)
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Nov 30 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.7-1
- Update to 1.8.7
* Tue Sep 18 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.6-1
- Update to 1.8.6
* Mon Aug 06 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.5-1
- Update to 1.8.5
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jun 26 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.4-1
- Update to 1.8.4
* Thu Jun 14 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.3-2
- Rebuild for new libudev (#831987)
* Fri Mar 30 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.3-1
- Update to 1.8.3
* Mon Feb 06 2012 Kalev Lember <kalevlember@gmail.com> - 1.8.2-1
- Update to 1.8.2
- Drop the systemd support patches which are now upstreamed
- Package the new pcsc-spay tool in -devel subpackage
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Oct 10 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-6
- Remove the automatic card power down disabling patch again;
no longer needed with latest libusb1 1.0.9 rc1 (#737988)
* Fri Sep 16 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-5
- Reapply the patch to disable automatic card power down (#737988)
* Sun Sep 04 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-4
- Ignore errors from 'systemctl enable' (#734852)
* Sat Aug 20 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-3
- Use /var/run/pcscd for ipc directory (#722449)
* Fri Jul 15 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-2
- Converted initscript to systemd service file (#617330)
* Fri Jun 24 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.4-1
- Update to 1.7.4
* Wed Jun 22 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.3-1
- Update to 1.7.3
- Dropped upstreamed patches
- Dropped the lib64 rpath patch; pcsc-lite now uses system libtool
- Cleaned up the spec file for modern rpmbuild
* Wed May 25 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.2-2 * Wed May 25 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.2-2
- Don't fill log files with repeating messages (#657658, #707412) - Don't fill log files with repeating messages (#657658, #707412)
@ -503,16 +261,16 @@ fi
even though s390 does not have libusb or smartCards, the libusb even though s390 does not have libusb or smartCards, the libusb
packages are required to build other packages. packages are required to build other packages.
* Thu Aug 28 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-3 * Thu Aug 18 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-3
- bump tag becaue the build system can't deal with mistakes. - bump tag becaue the build system can't deal with mistakes.
* Thu Aug 28 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-2 * Thu Aug 18 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-2
- mock build changes - mock build changes
* Thu Aug 28 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-1 * Wed Aug 17 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-1
- Pick up 1.4.102 - Pick up 1.4.102
* Tue May 6 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.101-1 * Wed May 6 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.101-1
- Pick up 1.4.101 - Pick up 1.4.101
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-3 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-3
@ -522,7 +280,7 @@ fi
- Silence libpcsc-lite even when the daemon isn't running. - Silence libpcsc-lite even when the daemon isn't running.
- fix typo in init file which prevents the config file from being read. - fix typo in init file which prevents the config file from being read.
* Thu Nov 22 2007 Bob Relyea <rrelyea@redhat.com> - 1.4.4-1 * Tue Nov 22 2007 Bob Relyea <rrelyea@redhat.com> - 1.4.4-1
- Pick up 1.4.4 - Pick up 1.4.4
* Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.3.3-1 * Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.3.3-1
@ -539,7 +297,7 @@ fi
- follow packaging guidelines for setting up init service - follow packaging guidelines for setting up init service
(bug 200778) (bug 200778)
* Mon Jul 24 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-5 * Sun Jul 24 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-5
- start pcscd when pcsc-lite is installed - start pcscd when pcsc-lite is installed
* Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.3.1-4 * Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.3.1-4
@ -577,7 +335,7 @@ fi
* Thu May 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-12 * Thu May 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-12
- Rebuild. - Rebuild.
* Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.0-11 * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.0-11
- rebuilt - rebuilt
* Tue Aug 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-10 * Tue Aug 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-10

84
pcscd.init Executable file
View File

@ -0,0 +1,84 @@
#!/bin/sh
#
# pcscd Starts the pcscd Daemon
#
# chkconfig: 2345 27 73
# description: The PC/SC smart card daemon is a resource manager for the \
# PC/SC lite and Musclecard frameworks. It coordinates \
# communications with smart card readers, smart cards, and \
# cryptographic tokens that are connected to the system.
#
# processname: pcscd
# config: /etc/reader.conf
#
### BEGIN INIT INFO
# Provides: pcscd
# Required-Start: $local_fs $remote_fs $syslog haldaemon
# Required-Stop: $local_fs $remote_fs $syslog haldaemon
# Should-Start: openct
# Should-Stop: openct
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Daemon to access a smart card using PC/SC
# Description: The PC/SC smart card daemon is a resource manager for the
# PC/SC lite and Musclecard frameworks. It coordinates
# communications with smart card readers, smart cards, and
# cryptographic tokens that are connected to the system.
### END INIT INFO
#
# Note! pcscd should be started after pcmcia, and shut down before it
# for smooth experience with PCMCIA readers.
. /etc/init.d/functions
umask 077
exec=/usr/sbin/pcscd
prog=$(basename $exec)
lockfile=/var/lock/subsys/$prog
PCSCD_OPTIONS=
# Source config
if [ -f /etc/sysconfig/pcscd ] ; then
. /etc/sysconfig/pcscd
fi
start() {
echo -n $"Starting PC/SC smart card daemon ($prog): "
daemon $prog $PCSCD_OPTIONS
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}
stop() {
echo -n $"Stopping PC/SC smart card daemon ($prog): "
killproc $prog
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
restart() {
stop
start
}
case "$1" in
start|stop|restart)
$1
;;
reload|force-reload)
restart
;;
status)
status $prog
;;
condrestart|try-restart)
[ ! -f $lockfile ] || restart
;;
*)
echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
exit 2
esac

View File

@ -1,2 +1 @@
SHA512 (pcsc-lite-1.9.9.tar.bz2) = 748ec3d82ff48af1a8dc5a581863e5d94adc47ab8f3158ceb838c2b521ece3a746b737c7b4bb2ba8b545be85ff18b9639443864e50b2e065cf2fbfdf79ef9700 47e7055cfc14399fdaa1b7a4aa06e5aa pcsc-lite-1.7.2.tar.bz2
SHA512 (pcsc-lite-1.9.9.tar.bz2.asc) = b2f81fb9ec4dfdf73fce16b139206a5d606038d728ec6a5cdc5d3fb13b908add597baa490df9132155714b295222fef62ae2e0b50de212461af9ac8008297400