1 |
flameeyes 11/02/22 11:56:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pcsc-lite-1.6.6-r1.ebuild |
5 |
Log: |
6 |
Add patch from upstream and me to avoid a feature regression with libusb. |
7 |
|
8 |
(Portage version: 2.2.0_alpha24/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.104 sys-apps/pcsc-lite/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-lite/ChangeLog?rev=1.104&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-lite/ChangeLog?rev=1.104&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-lite/ChangeLog?r1=1.103&r2=1.104 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/ChangeLog,v |
20 |
retrieving revision 1.103 |
21 |
retrieving revision 1.104 |
22 |
diff -u -r1.103 -r1.104 |
23 |
--- ChangeLog 10 Jan 2011 18:51:08 -0000 1.103 |
24 |
+++ ChangeLog 22 Feb 2011 11:55:59 -0000 1.104 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for sys-apps/pcsc-lite |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/ChangeLog,v 1.103 2011/01/10 18:51:08 flameeyes Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/ChangeLog,v 1.104 2011/02/22 11:55:59 flameeyes Exp $ |
30 |
+ |
31 |
+*pcsc-lite-1.6.6-r1 (22 Feb 2011) |
32 |
+ |
33 |
+ 22 Feb 2011; Diego E. Pettenò <flameeyes@g.o> |
34 |
+ +pcsc-lite-1.6.6-r1.ebuild, |
35 |
+ +files/pcsc-lite-1.6.6-libusb-multiinterface.patch: |
36 |
+ Add patch from upstream and me to avoid a feature regression with libusb. |
37 |
|
38 |
10 Jan 2011; Diego E. Pettenò <flameeyes@g.o> |
39 |
-pcsc-lite-1.6.1.ebuild, -files/pcscd-confd, -files/pcscd-init, |
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-apps/pcsc-lite/pcsc-lite-1.6.6-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-lite/pcsc-lite-1.6.6-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-lite/pcsc-lite-1.6.6-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: pcsc-lite-1.6.6-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/pcsc-lite-1.6.6-r1.ebuild,v 1.1 2011/02/22 11:55:59 flameeyes Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
|
56 |
inherit multilib eutils |
57 |
|
58 |
DESCRIPTION="PC/SC Architecture smartcard middleware library" |
59 |
HOMEPAGE="http://pcsclite.alioth.debian.org/" |
60 |
|
61 |
STUPID_NUM="3479" |
62 |
MY_P="${PN}-${PV/_/-}" |
63 |
SRC_URI="http://alioth.debian.org/download.php/${STUPID_NUM}/${MY_P}.tar.bz2" |
64 |
S="${WORKDIR}/${MY_P}" |
65 |
|
66 |
LICENSE="as-is" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
69 |
IUSE="usb kernel_linux" |
70 |
|
71 |
RDEPEND="usb? ( virtual/libusb:1 )" |
72 |
DEPEND="${RDEPEND} |
73 |
dev-util/pkgconfig" |
74 |
RDEPEND="${RDEPEND} |
75 |
!<app-crypt/ccid-1.4.1-r1 |
76 |
kernel_linux? ( sys-fs/udev )" |
77 |
|
78 |
pkg_setup() { |
79 |
enewgroup pcscd |
80 |
} |
81 |
|
82 |
src_prepare() { |
83 |
# upstream deprecates libusb in favour of libhal, but we don't want |
84 |
# libhal. Problem is that with 1.6.6 release, there is no way for |
85 |
# multi-interface devices to work without libhal. This patch was |
86 |
# written by me (Flameeyes) and edited by upstream to support such |
87 |
# device. I also have one to test. |
88 |
epatch "${FILESDIR}"/${P}-libusb-multiinterface.patch |
89 |
} |
90 |
|
91 |
src_configure() { |
92 |
econf \ |
93 |
--disable-maintainer-mode \ |
94 |
--disable-dependency-tracking \ |
95 |
--docdir="/usr/share/doc/${PF}" \ |
96 |
--enable-usbdropdir="/usr/$(get_libdir)/readers/usb" \ |
97 |
$(use_enable usb libusb) \ |
98 |
--disable-libhal |
99 |
} |
100 |
|
101 |
src_install() { |
102 |
emake DESTDIR="${D}" install || die "emake install failed" |
103 |
dodoc AUTHORS DRIVERS HELP README SECURITY ChangeLog || die |
104 |
|
105 |
newinitd "${FILESDIR}/pcscd-init.3" pcscd || die |
106 |
|
107 |
if use kernel_linux; then |
108 |
insinto /lib/udev/rules.d |
109 |
doins "${FILESDIR}"/99-pcscd-hotplug.rules || die |
110 |
fi |
111 |
} |
112 |
|
113 |
pkg_postinst() { |
114 |
elog "Starting from version 1.6.5, pcsc-lite will start as user nobody in" |
115 |
elog "the pcscd group, to avoid running as root." |
116 |
elog "" |
117 |
elog "This also means you need the newest drivers available so that the" |
118 |
elog "devices get the proper owner." |
119 |
elog "" |
120 |
elog "Furthermore, a conf.d file is no longer installed by default, as" |
121 |
elog "the default configuration does not require one. If you need to" |
122 |
elog "pass further options to pcscd, create a file and set the" |
123 |
elog "EXTRA_OPTS variable." |
124 |
elog "" |
125 |
if use kernel_linux; then |
126 |
elog "HAL support has been dropped by the ebuild; if you want hotplug" |
127 |
elog "support, that's provided already by UDEV rules; you only need to" |
128 |
elog "tell the init system to hotplug it, by setting this variable in" |
129 |
elog "/etc/rc.conf:" |
130 |
elog "" |
131 |
elog " rc_hotplug=\"pcscd\"" |
132 |
fi |
133 |
} |