Compare commits

...

119 Commits

Author SHA1 Message Date
Fedora Release Engineering 3d4d432393 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 23:33:45 +00:00
Lumir Balhar a778786377 Switch from pathfix.py to %py3_shebang_fix
For more info see https://fedoraproject.org/wiki/Changes/Python3.12#pathfix.py_tool_will_be_removed
2022-11-03 19:04:04 +01:00
Jakub Jelen 4272428e1b pcsc-lite-1.9.9-2 2022-11-01 16:14:37 +01:00
Jakub Jelen 330bcc20f3 Drop support for more than 16 readers to unbreak flatpak (#2054826) 2022-11-01 16:13:52 +01:00
Jakub Jelen 9a496f324e pcsc-lite-1.9.9-1 2022-09-19 13:31:28 +02:00
Jakub Jelen 8121f3d07a Use explicit unit directory as the pkgconfig detection looks broken 2022-09-19 13:31:28 +02:00
Fedora Release Engineering 6c53acc9b2 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 02:53:14 +00:00
Jakub Jelen ac56c5855b pcsc-lite-1.9.8-1 2022-06-13 08:59:08 +02:00
Jakub Jelen e6d18cee6c pcsc-lite-1.9.7-1 2022-05-13 19:20:48 +02:00
Jakub Jelen 0337f401bd add sources 2022-05-12 19:08:41 +02:00
Jakub Jelen 7cdb01ad72 New upstream release (#2084468) 2022-05-12 18:52:28 +02:00
Jakub Jelen 99550479bd fix typos 2022-05-12 17:40:49 +02:00
Jay W 0c7c15d36f Update pcsc-lite.spec to allow flatpak builds 2022-02-11 02:22:03 +00:00
Fedora Release Engineering 040635b9c1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 23:04:34 +00:00
Jakub Jelen e1270b53e1 Avoid rpmlint warnings/errors
pcsc-lite.spec:10: W: mixed-use-of-spaces-and-tabs (spaces: line 1, tab: line 10)
pcsc-lite.spec: E: specfile-error error: %changelog not in descending chronological order
2021-12-08 17:28:58 +01:00
Jakub Jelen bd2a6b2926 pcsc-lite-1.9.5-1 2021-12-06 12:51:59 +01:00
Jakub Jelen db40ee7cba pcsc-lite-1.9.4-1 2021-10-04 10:53:34 +02:00
Jakub Jelen acfce4c37b pcsc-lite-1.9.3 2021-08-09 09:13:56 +02:00
Jakub Jelen 7227818ae8 pcsc-lite-1.9.2-1 2021-08-04 12:09:08 +02:00
Jakub Jelen 5c948aa002 pcsc-lite-1.9.1-5 2021-08-02 09:14:08 +02:00
Jakub Jelen af345491c0 Drop downstream polkit policy (#1478345)
This will use more restrictive from upstream preventing non-local users to access
pcsc and preventing annonying prompts in remote sessions such as VNC
2021-08-02 09:13:35 +02:00
Fedora Release Engineering cc2e03558c - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 17:52:29 +00:00
Jakub Jelen 48f7d18455 pcsc-lite-1.9.1-3 2021-06-25 17:23:59 +02:00
Jakub Jelen 0f5bfe6b39 Add support for more readers 2021-06-25 17:23:11 +02:00
Zbigniew Jędrzejewski-Szmek 183f19723c Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:13:06 +01:00
Jakub Jelen 204a1d7ec8 pcsc-lite-1.9.1-1 2021-02-25 11:56:30 +01:00
Fedora Release Engineering 89ecd85159 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 23:06:33 +00:00
Tom Stellard d430cf7537 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-08 01:11:55 +00:00
Jakub Jelen c5ce1b9dc3 Use make macros
Based on https://src.fedoraproject.org/rpms/pcsc-lite/pull-request/1

https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
2020-07-31 15:24:51 +02:00
Fedora Release Engineering 545c0b1c1a - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 13:19:42 +00:00
Jakub Jelen 34c0c97392 pcsc-lite-1.9.0-1 2020-06-15 11:49:32 +02:00
Fedora Release Engineering 60cd4f246f - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-29 21:06:37 +00:00
Jakub Jelen dd12aed23a pcsc-lite-1.8.26-1 2020-01-20 08:58:03 +01:00
Jakub Jelen 4a4a855587 Add a comment about bundling 2019-09-30 13:21:23 +02:00
Fedora Release Engineering 1e8301e9c8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 00:15:29 +00:00
Jakub Jelen 86feaeed2a pcsc-lite-1.8.25 2019-04-05 13:03:15 +02:00
Jakub Jelen 05466448c2 Attempt to start the socket after installation (#1545027) 2019-04-05 13:02:30 +02:00
Fedora Release Engineering 5aaa51ec63 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 18:09:22 +00:00
Igor Gnatenko a3e7b6ccec Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:25 +01:00
Igor Gnatenko 99d0851222
Remove obsolete ldconfig scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-22 18:40:40 +01:00
Jakub Jelen a61691941a Make sure the correct python path is used 2018-11-20 10:26:34 +01:00
Jakub Jelen 5dac192f57 New upstream release (#1651353) 2018-11-20 09:52:34 +01:00
Jakub Jelen 485d777113 Add missing dependencies (#1605389) 2018-07-23 14:58:34 +02:00
Fedora Release Engineering dcbc60843f - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 15:36:48 +00:00
Fedora Release Engineering 98725a41d1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 18:29:06 +00:00
Nikos Mavrogiannopoulos b06a1707ba updated to 1.8.23 2017-12-19 13:35:53 +01:00
Fedora Release Engineering 3c8db3b6b4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 04:55:51 +00:00
Fedora Release Engineering 8e98e84ca3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 02:18:53 +00:00
Nikos Mavrogiannopoulos 110b8790b5 updated to 1.8.22 2017-06-27 15:41:52 +02:00
Fedora Release Engineering 743ef34772 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 01:22:46 +00:00
Nikos Mavrogiannopoulos 6cc74902ec updated to 1.8.20 2017-01-02 08:34:03 +01:00
Nikos Mavrogiannopoulos e1953a4cb8 updated to 1.8.19 2016-12-09 14:00:48 +01:00
Nikos Mavrogiannopoulos cf14e86860 updated to 1.8.18 2016-11-30 08:11:48 +01:00
Ville Skyttä 0a2e4dbaff Add dependency on polkit, COPYING => %license, fix bogus dates in %changelog
https://bugzilla.redhat.com/show_bug.cgi?id=1351437
2016-06-30 08:32:11 +02:00
Nikos Mavrogiannopoulos 62987aa666 updated to 1.8.17 2016-06-21 13:49:15 +02:00
Nikos Mavrogiannopoulos 83847912e6 Added gpg key verification as part of build process 2016-04-01 13:06:45 +02:00
Nikos Mavrogiannopoulos c1be910712 Updated to 1.8.16 2016-04-01 13:01:43 +02:00
Fedora Release Engineering ecb7364417 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 12:02:33 +00:00
Nikos Mavrogiannopoulos 92b3d283da Updated 1.8.15 2016-01-11 09:52:26 +01:00
Nikos Mavrogiannopoulos 8f731c0054 recommend pcsc-lite-ccid
Resolves: rhbz#1280447
2015-11-18 09:31:45 +01:00
Nikos Mavrogiannopoulos 7a798a0dbc Updated to 1.8.14
Resolves: rhbz#1250530
2015-08-05 14:24:39 +02:00
Dennis Gilmore e24da492b4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 00:54:14 +00:00
Nikos Mavrogiannopoulos 317ff328c5 new upstream release 2014-11-07 14:19:33 +01:00
Nikos Mavrogiannopoulos a21aad9a8b removed old patch 2014-09-24 16:51:38 +02:00
Nikos Mavrogiannopoulos 855a3e5dce new upstream release
Related: rhbz#1079514
2014-09-24 16:21:44 +02:00
Peter Robinson 2bbca3d282 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 15:08:16 +00:00
Dennis Gilmore 261a8be1fd - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-06 18:57:46 -05:00
Nikos Mavrogiannopoulos 24e9134327 Removed autoreconf; it is no longer needed. 2014-06-03 10:47:02 +02:00
Nikos Mavrogiannopoulos 94e15f1564 new upstream release. 2014-06-03 10:17:35 +02:00
Nikos Mavrogiannopoulos 7ca80f4d98 Safer usage of libudev functions 2014-06-03 10:17:32 +02:00
Nikos Mavrogiannopoulos 5d49035ba2 The default installed polkit policy only allows console users to access smart cards
Non-interactive or remote usage now requires admin rights, or a specific policy (see README.polkit)
2014-03-13 09:14:24 +01:00
Nikos Mavrogiannopoulos db032e045f Added support for Polkit and force sanity of parameters received by the client 2014-02-11 14:51:10 +01:00
Kalev Lember 8d28bb26f1 Drop large ChangeLog.svn from %doc 2013-10-20 23:03:47 +02:00
Kalev Lember 61ab4c27d1 Update source URL 2013-10-20 23:02:08 +02:00
Kalev Lember f62bc28ede Update to 1.8.10 2013-10-20 23:01:24 +02:00
Dennis Gilmore 5270dae459 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 11:46:13 -05:00
Kalev Lember 2faeee9483 Fix the build
List pod2man as a build dep; it's used for building the man page.
2013-02-28 21:56:57 +01:00
Kalev Lember 65d9e94bca Use new systemd macros
https://bugzilla.redhat.com/show_bug.cgi?id=850264
2013-02-28 21:39:23 +01:00
Kalev Lember 2c8ae8fcbd Drop the sysv -> systemd init script conversion
The pcsc-lite systemd support was introduced in F16 and we are now at
F19. Drop the sysv -> systemd conversion; direct F15 -> F19 upgrades are
unsupported.
2013-02-28 21:33:24 +01:00
Kalev Lember 804118d1ca Update to 1.8.8 2013-02-28 21:28:40 +01:00
Dennis Gilmore cfdac56b35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 03:57:57 -06:00
Kalev Lember f65bb4f955 Update to 1.8.7 2012-11-30 14:58:11 +01:00
Kalev Lember 09427f5060 Update to 1.8.6 2012-09-18 12:35:30 +02:00
Kalev Lember bbf6ba7733 Update to 1.8.5 2012-08-06 11:30:26 +03:00
Dennis Gilmore 0f2defb35a - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-20 04:12:54 -05:00
Kalev Lember 9616084412 Update to 1.8.4 2012-06-26 22:55:56 +03:00
Kalev Lember 9022291342 Rebuild for new libudev
BuildRequire systemd-devel instead of libudev-devel as the libudev
project was merged into systemd.

https://bugzilla.redhat.com/show_bug.cgi?id=831987
2012-06-14 12:01:25 +03:00
Kalev Lember d16ee7d49e Update to 1.8.3 2012-03-30 16:09:10 +03:00
Kalev Lember 0c8cc1580f Update to 1.8.2
- Drop the systemd support patches which are now upstreamed
- Package the new pcsc-spay tool in -devel subpackage
2012-02-06 23:35:15 +02:00
Dennis Gilmore 58a491a615 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 06:06:07 -06:00
Kalev Lember 96a526ad7d Remove the automatic card power down disabling patch again (#737988)
According to the bug report, pcsc-lite now works fine with latest
libusb1 1.0.9 rc1 and the patch can be removed.

https://bugzilla.redhat.com/show_bug.cgi?id=737988
2011-10-10 19:43:36 +03:00
Kalev Lember 2c48e8d706 Reapply the patch to disable automatic card power down (#737988) 2011-09-16 16:25:20 +03:00
Kalev Lember fd30a60e01 Ignore errors from 'systemctl enable' 2011-09-04 00:50:31 +03:00
Kalev Lember 98d53e9579 Use /var/run/pcscd for ipc directory (#722449)
This changes the ipc directory used for libpcsclite / pcscd
communication to /var/run/pcscd, following the upstream default.

The main motivation behind the change is to work around a bug in
systemd where socket files created by systemd get mislabelled. With
moving the pcscd.comm socket file to a subdirectory, the selinux policy
can is applied to the whole subdirectory, fixing the issue with
labelling individual socket files.

https://bugzilla.redhat.com/show_bug.cgi?id=722449
2011-08-22 22:04:08 +03:00
Kalev Lember 305f583cd4 Converted initscript to systemd service file (#617330)
Thanks to Jóhann B. Guðmundsson for initial work.
2011-07-15 11:18:44 +03:00
Kalev Lember 854751f9bd Drop pcsc-lite-1.4-docinst.patch
Instead of patching the generated Makefile.in, just rm the file at the
end of %install.
2011-07-15 10:54:09 +03:00
Kalev Lember b194beb411 Update to 1.7.4 2011-06-24 10:59:38 +03:00
Kalev Lember aa0d4be3fc Use wildcards in .gitignore 2011-06-22 11:50:55 +03:00
Kalev Lember 99341b798e Cleaned up the spec file for modern rpmbuild 2011-06-22 11:50:12 +03:00
Kalev Lember 9d606c83ad Update to 1.7.3
- Dropped upstreamed patches
- Dropped the lib64 rpath patch; pcsc-lite now uses system libtool
2011-06-22 11:48:42 +03:00
Kalev Lember 2803499a70 Don't fill log files with repeating messages (#657658, #707412)
"rv=0x... for client" and "Card Not Inserted" should be DEBUG log level,
not ERROR.
2011-05-25 06:51:27 +03:00
Kalev Lember cafc7d6df2 Update to 1.7.2 2011-03-31 23:30:14 +03:00
Kalev Lember 96fd0e9a20 Update to 1.7.1
Removed the chmod in %install section as pcscd is now installed 0755 by
default.
2011-03-30 12:23:34 +03:00
Kalev Lember 6369ed822e Explicitly create and own drivers directory 2011-03-17 20:53:19 +02:00
Kalev Lember d7b5fb019d Update to 1.7.0
Use libudev for hotplugging instead of hal.
2011-03-15 18:11:24 +02:00
Kalev Lember 87ca8061db Update to 1.6.7
Rebased noautostart patch.
2011-02-25 17:40:15 +02:00
Dennis Gilmore 3ea230dc78 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 09:21:40 -06:00
Kalev Lember ab22f81cde Disabled automatic card power down which seems to be unreliable at this point 2010-12-13 16:55:15 +02:00
Kalev Lember 44d0838947 Update to 1.6.6 2010-12-13 15:14:52 +02:00
Kalev Lember 7d47f6f2cb Disabled pcscd on-demand startup (#653903) 2010-12-13 00:08:31 +02:00
Kalev Lember 85c0568314 Buildrequire graphviz for apidoc generation 2010-08-15 23:12:36 +03:00
Kalev Lember 1b7cef5e70 Update to 1.6.4 2010-08-15 23:11:53 +03:00
Kalev Lember 6e6ca791fd Removed explicit configure --disable-dependency-tracking option 2010-08-04 15:09:11 +03:00
Kalev Lember 6c6652d125 Update to 1.6.2 2010-08-04 14:58:05 +03:00
Fedora Release Engineering d29d9c761c dist-git conversion 2010-07-29 17:53:31 +00:00
Kalev Lember a270ae04c6 Include COPYING in libs subpackage as per new licensing guidelines 2010-07-08 19:26:58 +00:00
Kalev Lember 09072f55f1 Patch to fix crash with empty config directory 2010-07-04 21:19:06 +00:00
Kalev Lember 69dd29391c Patch to fix config dir handling 2010-07-04 01:14:52 +00:00
Kalev Lember 7558b7074c Removed call to non-existent update-reader.conf in init script 2010-07-03 23:53:50 +00:00
9 changed files with 406 additions and 201 deletions

View File

@ -1 +0,0 @@
pcsc-lite-1.6.1.tar.bz2

26
.gitignore vendored Normal file
View File

@ -0,0 +1,26 @@
/pcsc-lite-*.tar.bz2
/pcsc-lite-1.8.11.tar.bz2.asc
/pcsc-lite-1.8.12.tar.bz2.asc
/pcsc-lite-1.8.13.tar.bz2.asc
/pcsc-lite-1.8.14.tar.bz2.asc
/pcsc-lite-1.8.15.tar.bz2.asc
/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

@ -1,21 +0,0 @@
# Makefile for source rpm: pcsc-lite
# $Id$
NAME := pcsc-lite
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attempt a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

Binary file not shown.

View File

@ -1,11 +0,0 @@
--- ./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

@ -1,20 +0,0 @@
--- 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

@ -1,29 +1,52 @@
%global upstream_build 3298
# doesn't make sense to install a polkit configuration inside a Flatpak
%if 0%{?flatpak}
%global with_polkit 0
%else
%global with_polkit 1
%endif
Name: pcsc-lite
Version: 1.6.1
Release: 1%{?dist}
Version: 1.9.9
Release: 3%{?dist}
Summary: PC/SC Lite smart card framework and applications
Group: System Environment/Daemons
License: BSD
URL: http://pcsclite.alioth.debian.org/
Source0: http://alioth.debian.org/download.php/%{upstream_build}/%{name}-%{version}.tar.bz2
Source1: pcscd.init
Patch0: %{name}-1.4-docinst.patch
Patch1: %{name}-1.5.5-rpath64.patch
URL: https://pcsclite.apdu.fr/
Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2
Source1: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2.asc
Source2: gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: hal-devel
BuildRequires: make
BuildRequires: doxygen
Requires(post): initscripts
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
BuildRequires: graphviz
BuildRequires: systemd-devel
BuildRequires: systemd-rpm-macros
BuildRequires: /usr/bin/pod2man
%if %{with_polkit}
BuildRequires: polkit-devel
%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: %{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
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
@ -36,14 +59,12 @@ line tools.
%package libs
Summary: PC/SC Lite libraries
Group: System Environment/Libraries
%description libs
PC/SC Lite libraries.
%package devel
Summary: PC/SC Lite development files
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
%description devel
@ -51,17 +72,17 @@ PC/SC Lite development files.
%package doc
Summary: PC/SC Lite developer documentation
Group: Documentation
BuildArch: noarch
Requires: %{name}-libs = %{version}-%{release}
%description doc
%{summary}.
%prep
gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%setup -q
%patch0 -p0 -b .docinst
%patch1 -p1 -b .rpath64
# Convert to utf-8
for file in ChangeLog; do
@ -73,78 +94,372 @@ done
%build
%configure \
--disable-dependency-tracking \
--disable-static \
--enable-ipcdir=%{_localstatedir}/run \
%if %{with_polkit}
--enable-polkit \
%endif
--with-systemdsystemunitdir=%{_unitdir} \
--enable-usbdropdir=%{_libdir}/pcsc/drivers
make %{?_smp_mflags}
%make_build
doxygen doc/doxygen.conf ; rm -f doc/api/*.{map,md5}
%py3_shebang_fix src/spy/pcsc-spy
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%make_install
install -dm 755 $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
install -Dpm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/pcscd
# remove setuid bit
chmod 0755 $RPM_BUILD_ROOT%{_sbindir}/pcscd
# Create empty directories
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/pcscd
rm $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add pcscd
%systemd_post pcscd.socket pcscd.service
# 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
if [ $1 = 0 ] ; then
/sbin/service pcscd stop >/dev/null 2>&1 || :
/sbin/chkconfig --del pcscd
fi
%systemd_preun pcscd.socket pcscd.service
%postun
if [ "$1" -ge "1" ]; then
/sbin/service pcscd condrestart >/dev/null 2>&1 || :
fi
%systemd_postun_with_restart pcscd.socket pcscd.service
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%ldconfig_scriptlets libs
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog* COPYING DRIVERS HELP README SECURITY TODO
%doc AUTHORS ChangeLog HELP README SECURITY TODO
%doc doc/README.polkit
%doc install_spy.sh uninstall_spy.sh
%dir %{_sysconfdir}/reader.conf.d/
%{_initrddir}/pcscd
%{_unitdir}/pcscd.service
%{_unitdir}/pcscd.socket
%{_sbindir}/pcscd
%{_libdir}/pcsc/
%dir %{_libdir}/pcsc/
%dir %{_libdir}/pcsc/drivers/
%{_mandir}/man5/reader.conf.5*
%{_mandir}/man8/pcscd.8*
%ghost %dir %{_localstatedir}/run/pcscd/
%if %{with_polkit}
%{_datadir}/polkit-1/actions/org.debian.pcsc-lite.policy
%endif
%files libs
%defattr(-,root,root,-)
%license COPYING
%{_libdir}/libpcsclite.so.*
%files devel
%defattr(-,root,root,-)
%{_bindir}/pcsc-spy
%{_includedir}/PCSC/
%{_libdir}/libpcsclite.so
%{_libdir}/libpcscspy.so*
%{_libdir}/pkgconfig/libpcsclite.pc
%{_mandir}/man1/pcsc-spy.1*
%files doc
%defattr(-,root,root,-)
%doc doc/api/ doc/example/pcsc_demo.c
%changelog
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Nov 01 2022 Jakub Jelen <jjelen@redhat.com> - 1.9.9-2
- Remove downstream patch breaking flatpak (#2054826)
* 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
- Don't fill log files with repeating messages (#657658, #707412)
* Thu Mar 31 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.2-1
- Update to 1.7.2
* Wed Mar 30 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.1-1
- Update to 1.7.1
* Thu Mar 17 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.0-2
- Explicitly create and own drivers directory
* Wed Mar 09 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.0-1
- Update to 1.7.0
- Use libudev for hotplugging instead of hal
* Fri Feb 25 2011 Kalev Lember <kalev@smartlink.ee> - 1.6.7-1
- Update to 1.6.7
- Rebased noautostart patch
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Dec 13 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.6-2
- Disabled automatic card power down which seems to be unreliable at this point
* Mon Dec 13 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.6-1
- Update to 1.6.6
* Mon Dec 13 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.4-2
- Disabled pcscd on-demand startup (#653903)
* Sun Aug 15 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.4-1
- Update to 1.6.4
- Buildrequire graphviz for apidoc generation
* Wed Aug 04 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.2-1
- Update to 1.6.2
- Dropped upstreamed patches
- Removed configure --disable-dependency-tracking option which is the
default with configure macro.
* Thu Jul 08 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.1-5
- Include COPYING in libs subpackage as per new licensing guidelines
* Mon Jul 05 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.1-4
- Patch to fix crash with empty config directory
* Sun Jul 04 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.1-3
- Patch to fix config dir handling
* Sun Jul 04 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.1-2
- Removed call to non-existent update-reader.conf in init script
* Fri Jun 18 2010 Kalev Lember <kalev@smartlink.ee> - 1.6.1-1
- Update to 1.6.1
@ -188,16 +503,16 @@ fi
even though s390 does not have libusb or smartCards, the libusb
packages are required to build other packages.
* Thu Aug 18 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-3
* Thu Aug 28 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-3
- bump tag becaue the build system can't deal with mistakes.
* Thu Aug 18 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-2
* Thu Aug 28 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-2
- mock build changes
* Wed Aug 17 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-1
* Thu Aug 28 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-1
- Pick up 1.4.102
* Wed May 6 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.101-1
* Tue May 6 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.101-1
- Pick up 1.4.101
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-3
@ -207,7 +522,7 @@ fi
- Silence libpcsc-lite even when the daemon isn't running.
- fix typo in init file which prevents the config file from being read.
* Tue Nov 22 2007 Bob Relyea <rrelyea@redhat.com> - 1.4.4-1
* Thu Nov 22 2007 Bob Relyea <rrelyea@redhat.com> - 1.4.4-1
- Pick up 1.4.4
* Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.3.3-1
@ -224,7 +539,7 @@ fi
- follow packaging guidelines for setting up init service
(bug 200778)
* Sun Jul 24 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-5
* Mon Jul 24 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-5
- start pcscd when pcsc-lite is installed
* Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.3.1-4
@ -262,7 +577,7 @@ fi
* Thu May 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-12
- Rebuild.
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.0-11
* Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.0-11
- rebuilt
* Tue Aug 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-10

View File

@ -1,84 +0,0 @@
#!/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): "
/usr/sbin/update-reader.conf && 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 +1,2 @@
ed023be61feebfafce12e86075912695 pcsc-lite-1.6.1.tar.bz2
SHA512 (pcsc-lite-1.9.9.tar.bz2) = 748ec3d82ff48af1a8dc5a581863e5d94adc47ab8f3158ceb838c2b521ece3a746b737c7b4bb2ba8b545be85ff18b9639443864e50b2e065cf2fbfdf79ef9700
SHA512 (pcsc-lite-1.9.9.tar.bz2.asc) = b2f81fb9ec4dfdf73fce16b139206a5d606038d728ec6a5cdc5d3fb13b908add597baa490df9132155714b295222fef62ae2e0b50de212461af9ac8008297400