/[gentoo-x86]/sys-apps/pcsc-lite/pcsc-lite-1.8.5.ebuild
Gentoo

Contents of /sys-apps/pcsc-lite/pcsc-lite-1.8.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Aug 4 14:22:42 2012 UTC (2 years, 1 month ago) by flameeyes
Branch: MAIN
Version bump; disable silent build; cleanup old.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 flameeyes 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/pcsc-lite-1.8.4.ebuild,v 1.1 2012/06/26 21:35:46 flameeyes Exp $
4    
5     EAPI="4"
6    
7     inherit multilib eutils user
8    
9     DESCRIPTION="PC/SC Architecture smartcard middleware library"
10     HOMEPAGE="http://pcsclite.alioth.debian.org/"
11    
12     STUPID_NUM="3741"
13     MY_P="${PN}-${PV/_/-}"
14     SRC_URI="http://alioth.debian.org/download.php/${STUPID_NUM}/${MY_P}.tar.bz2"
15     S="${WORKDIR}/${MY_P}"
16    
17     LICENSE="as-is"
18     SLOT="0"
19     KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
20    
21     # This is called libusb so that it doesn't fool people in thinking that
22     # it is _required_ for USB support. Otherwise they'll disable udev and
23     # that's going to be worse.
24     IUSE="libusb +udev"
25    
26     REQUIRED_USE="^^ ( udev libusb )"
27    
28     CDEPEND="libusb? ( virtual/libusb:1 )
29     udev? ( sys-fs/udev )"
30     DEPEND="${CDEPEND}
31     virtual/pkgconfig"
32     RDEPEND="${CDEPEND}
33     !<app-crypt/ccid-1.4.1-r1"
34    
35     pkg_setup() {
36     enewgroup openct # make sure it exists
37     enewgroup pcscd
38     enewuser pcscd -1 -1 /var/run/pcscd pcscd,openct
39     }
40    
41     src_configure() {
42     econf \
43     --disable-maintainer-mode \
44     --disable-dependency-tracking \
45     --disable-silent-rules \
46     --docdir="${EPREFIX}/usr/share/doc/${PF}" \
47     --enable-usbdropdir="${EPREFIX}/usr/$(get_libdir)/readers/usb" \
48     --without-systemdsystemunitdir \
49     $(use_enable udev libudev) \
50     $(use_enable libusb) \
51     ${myconf}
52     }
53    
54     DOCS=( AUTHORS DRIVERS HELP README SECURITY ChangeLog )
55    
56     src_install() {
57     default
58     find "${D}" -name '*.la' -delete
59    
60     newinitd "${FILESDIR}/pcscd-init.5" pcscd
61    
62     if use udev; then
63     insinto /lib/udev/rules.d
64     doins "${FILESDIR}"/99-pcscd-hotplug.rules
65     fi
66     }
67    
68     pkg_postinst() {
69     elog "Starting from version 1.6.5, pcsc-lite will start as user nobody in"
70     elog "the pcscd group, to avoid running as root."
71     elog ""
72     elog "This also means you need the newest drivers available so that the"
73     elog "devices get the proper owner."
74     elog ""
75     elog "Furthermore, a conf.d file is no longer installed by default, as"
76     elog "the default configuration does not require one. If you need to"
77     elog "pass further options to pcscd, create a file and set the"
78     elog "EXTRA_OPTS variable."
79     elog ""
80     if use udev; then
81     elog "Hotplug support is provided by udev rules; you only need to tell"
82     elog "the init system to hotplug it, by setting this variable in"
83     elog "/etc/rc.conf:"
84     elog ""
85     elog " rc_hotplug=\"pcscd\""
86     fi
87     }

  ViewVC Help
Powered by ViewVC 1.1.20