summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2011-04-13 17:51:29 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2011-04-13 17:51:29 +0000
commitc9c239997e073b22b6c995cdb28b62f1d4693ce9 (patch)
tree711f8a5ccb4d270b12ec8288859343eee1c2de76 /sys-apps/pcsc-lite
parentx86 stable per bug 359471 (diff)
downloadhistorical-c9c239997e073b22b6c995cdb28b62f1d4693ce9.tar.gz
historical-c9c239997e073b22b6c995cdb28b62f1d4693ce9.tar.bz2
historical-c9c239997e073b22b6c995cdb28b62f1d4693ce9.zip
Create a convenience user for the pcscd daemon, and make it part of the openct group, so that it can access openct-based readers.
Package-Manager: portage-2.2.0_alpha29/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/pcsc-lite')
-rw-r--r--sys-apps/pcsc-lite/ChangeLog9
-rw-r--r--sys-apps/pcsc-lite/Manifest11
-rw-r--r--sys-apps/pcsc-lite/files/pcscd-init.433
-rw-r--r--sys-apps/pcsc-lite/pcsc-lite-1.7.2-r1.ebuild (renamed from sys-apps/pcsc-lite/pcsc-lite-1.7.2.ebuild)12
4 files changed, 54 insertions, 11 deletions
diff --git a/sys-apps/pcsc-lite/ChangeLog b/sys-apps/pcsc-lite/ChangeLog
index 3c2d80cf9215..1c31202f6ac4 100644
--- a/sys-apps/pcsc-lite/ChangeLog
+++ b/sys-apps/pcsc-lite/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/pcsc-lite
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/ChangeLog,v 1.111 2011/03/31 20:52:06 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/ChangeLog,v 1.112 2011/04/13 17:51:29 flameeyes Exp $
+
+*pcsc-lite-1.7.2-r1 (13 Apr 2011)
+
+ 13 Apr 2011; Diego E. Pettenò <flameeyes@gentoo.org>
+ -pcsc-lite-1.7.2.ebuild, +pcsc-lite-1.7.2-r1.ebuild, +files/pcscd-init.4:
+ Create a convenience user for the pcscd daemon, and make it part of the
+ openct group, so that it can access openct-based readers.
*pcsc-lite-1.7.2 (31 Mar 2011)
diff --git a/sys-apps/pcsc-lite/Manifest b/sys-apps/pcsc-lite/Manifest
index b8447727b6d1..23d27047afae 100644
--- a/sys-apps/pcsc-lite/Manifest
+++ b/sys-apps/pcsc-lite/Manifest
@@ -3,18 +3,19 @@ Hash: SHA1
AUX 99-pcscd-hotplug.rules 483 RMD160 7c15ea902e65354e1e0c65a8ab8099ca84b89591 SHA1 9fc47a6edc71671680417ecbaf1de2150f9d614a SHA256 85b0927bd4311a5aeabcadcfa69b6096befb593216579bfbb295985a5bead3d7
AUX pcscd-init.3 740 RMD160 48ca6cfcc0ca05d1f21237e5dd475ccb9b52f426 SHA1 a168b781aad5a887fd6d7077d58333022e97f41f SHA256 7c15616a1221c31d89317f29faeea4682a6d9284a6a9ce97f00ab8ee0a2a58d7
+AUX pcscd-init.4 751 RMD160 16062e1a2d87fb91abbbff4d76146ae06f10abeb SHA1 11d62095107d3581e53723bc63fa652579c7869a SHA256 4b2b35f21eb064c3eb1acf5876b04a7d6922a061abd7a14360984ae967af9c96
DIST pcsc-lite-1.6.6.tar.bz2 480232 RMD160 e4041b846d34cf94069b6ed71e1892af34d92acd SHA1 bdd4b2f87955e2719be9b4f5da253904c721fdec SHA256 7a94c27ae687619435b29ad63e0561aca20413333187b4301c75d1a1547ceea8
DIST pcsc-lite-1.6.7.tar.bz2 484104 RMD160 92ccbdcf1bd48d4061ce5d73681de2e540322600 SHA1 eb508678c3a3f7520eaac6bf803423336169ce5d SHA256 e1797726d1fa89beeba0f91dd727e8817ee85f6027e7e562eca1bacece3b8f62
DIST pcsc-lite-1.7.2.tar.bz2 484630 RMD160 1566b0110a8f70633f593f4a40f92ce38f603ee4 SHA1 b66533e2f90ce289854400db8c8b578a32980c32 SHA256 41f13d552eaa2c3978fbb6f2125e81903a0767011d999052fd1a6ee03880b398
EBUILD pcsc-lite-1.6.6.ebuild 2198 RMD160 d77a94bec7387ec502cb5da4c26ed2d29113a026 SHA1 3763765ab10ca429d3b82d0218a3c83fdeae58e2 SHA256 40f9f89bd92d44843f9bf041fcfe0a31aa57db92d64b58b88345290ea1b0b937
EBUILD pcsc-lite-1.6.7.ebuild 2243 RMD160 db256c77f2f94ba5ef5fd3d6e0f4b388f44d0ecd SHA1 456a3d106f8d025710bfcc70505c6cb855de0d5a SHA256 11da606dce6cf30f69b22f6a9d8cb7f9b1577339398db6382bd3c1d33ec4c0f0
-EBUILD pcsc-lite-1.7.2.ebuild 2399 RMD160 c6ad5eace68abe9fd0529d95d500c7170f5ab3a2 SHA1 b6cbd6d81f7abc8a033556bbc0bb2bf761acd6e9 SHA256 bd08b1cf73d31505ad40faa17d8de8a28dcfaa46947a4f9a923ab3deea4506df
-MISC ChangeLog 15699 RMD160 f39b7cf6279ca4dc2f3b4669946795b8b30ac6b3 SHA1 bc9751b4c317fe589eaeac5a441ce5072c59b355 SHA256 d8f1365ee68a267a88caeef8a00842322415e08a0fef3df26c9ded4bce694641
+EBUILD pcsc-lite-1.7.2-r1.ebuild 2471 RMD160 d102a653955396a2025188d581d3b558ddcf646e SHA1 ffa420cf65b145f15f5cfe5e2280b5b1688899c5 SHA256 6f6a68e6bcad8a51b31345925175ef4682402680d2d7259663e4eff68e25d009
+MISC ChangeLog 16001 RMD160 5a4bdc4d697841c65be6881abb98068527ea18eb SHA1 9894e827b3764d8d5daaf79a2b3316ce2b0191ef SHA256 e9b5b6c658e29b66e8d1f49b11c4495c884ad8cc8f6d256e6dd03a4d49481943
MISC metadata.xml 704 RMD160 0f066833324e6a52444bf2a79a70f80121a78f77 SHA1 a70095b31a37b688a81bc1a9e0a90a5a04200b35 SHA256 49cf3849ef13f6e44699fb5ebb45b2db5d9fd214054de18a937ddf69e60fee69
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk2U6XcACgkQAiZjviIA2XjmWwCffZ7lnC8rHkIOxqguL4zeB7Ob
-tjQAoJP6Fm0JUceNCg9yZZ3IE3sqER6V
-=ajiH
+iEYEARECAAYFAk2l4pQACgkQAiZjviIA2Xh51QCbBrRnxl+Qq6aaPwj8QY8+/UlS
+qDEAoIcq2paqYWZxTD94xH2n9i7cLL+k
+=G8YZ
-----END PGP SIGNATURE-----
diff --git a/sys-apps/pcsc-lite/files/pcscd-init.4 b/sys-apps/pcsc-lite/files/pcscd-init.4
new file mode 100644
index 000000000000..d40462a47e5a
--- /dev/null
+++ b/sys-apps/pcsc-lite/files/pcscd-init.4
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/files/pcscd-init.4,v 1.1 2011/04/13 17:51:29 flameeyes Exp $
+
+depend() {
+ need localmount
+
+ after udev openct
+}
+
+start() {
+ [ -d /var/run/pcscd ] || mkdir -p /var/run/pcscd
+
+ chown pcscd:pcscd /var/run/pcscd
+ chmod 0755 /var/run/pcscd
+
+ ebegin "Starting pcscd"
+ start-stop-daemon --start \
+ --exec /usr/sbin/pcscd \
+ --pidfile /var/run/pcscd/pcscd.pid \
+ --chuid pcscd:pcscd \
+ -- ${EXTRA_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pcscd"
+ start-stop-daemon --stop \
+ --exec /usr/sbin/pcscd \
+ --pidfile /var/run/pcscd/pcscd.pid
+ eend $?
+}
diff --git a/sys-apps/pcsc-lite/pcsc-lite-1.7.2.ebuild b/sys-apps/pcsc-lite/pcsc-lite-1.7.2-r1.ebuild
index 910e58831b11..82579caa5a16 100644
--- a/sys-apps/pcsc-lite/pcsc-lite-1.7.2.ebuild
+++ b/sys-apps/pcsc-lite/pcsc-lite-1.7.2-r1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/pcsc-lite-1.7.2.ebuild,v 1.1 2011/03/31 20:52:06 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/pcsc-lite-1.7.2-r1.ebuild,v 1.1 2011/04/13 17:51:29 flameeyes Exp $
-EAPI="3"
+EAPI="4"
inherit multilib eutils
@@ -27,7 +27,9 @@ RDEPEND="${RDEPEND}
!<app-crypt/ccid-1.4.1-r1"
pkg_setup() {
+ enewgroup openct # make sure it exists
enewgroup pcscd
+ enewuser pcscd -1 -1 /var/run/pcscd pcscd,openct
}
src_configure() {
@@ -51,13 +53,13 @@ src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
find "${D}" -name '*.la' -delete
- dodoc AUTHORS DRIVERS HELP README SECURITY ChangeLog || die
+ dodoc AUTHORS DRIVERS HELP README SECURITY ChangeLog
- newinitd "${FILESDIR}/pcscd-init.3" pcscd || die
+ newinitd "${FILESDIR}/pcscd-init.4" pcscd
if use kernel_linux; then
insinto /lib/udev/rules.d
- doins "${FILESDIR}"/99-pcscd-hotplug.rules || die
+ doins "${FILESDIR}"/99-pcscd-hotplug.rules
fi
}