Magellan Linux

Contents of /smage/trunk/extras/pcsc-lite/pcsc-lite-1.8.14-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8470 - (show annotations) (download)
Tue Feb 2 12:25:24 2016 UTC (8 years, 3 months ago) by niro
File size: 1484 byte(s)
-pcsc-lite >=1.8.14 breaks ehealth plugin
1 # $Id$
2
3 PNAME="pcsc-lite"
4 PVER="1.8.14"
5 PBUILD="r2"
6
7 STATE="disabled" # udev-version, but pcsc-lite >=1.8.14 break ehealth plugin
8 PCAT="sys-apps"
9
10 DESCRIPTION="Middleware to access a smart card using SCard API (PC/SC)."
11 HOMEPAGE="http://pcsclite.alioth.debian.org/"
12
13 DEPEND=">= sys-fs/udev-228"
14 SDEPEND=">= dev-util/pkgconfig-0.25"
15
16 SRCFILE="${PNAME}-${PVER}.tar.bz2"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 ALX_PKG_KEEP="usr/$(mlibdir)/*.so.* usr/sbin etc usr/lib/systemd"
20 sminclude mbuild mtools systemd alx-split
21
22 ALIOTH_ID="4138"
23
24 SRC_URI=(
25 https://alioth.debian.org/frs/download.php/file/${ALIOTH_ID}/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball"
30
31 src_compile()
32 {
33 cd ${SRCDIR}
34
35 # needed by the systemd patch:
36 local myconf
37 myconf="--disable-autostart"
38
39 mconfigure \
40 --docdir=/usr/share/doc/${PNAME}-${PVER} \
41 --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \
42 --with-systemdsystemunitdir=/usr/lib/systemd/system \
43 --enable-ipcdir=/run/pcscd \
44 --enable-libudev \
45 ${myconf} \
46 || die
47
48 mmake || die
49 }
50
51 alx_generic_src_install()
52 {
53 cd ${SRCDIR}
54 mmake DESTDIR=${BINDIR} install || die
55
56 # needed for usb support
57 mkeepdir /usr/$(mlibdir)/readers/usb || die
58
59 minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog
60 }
61
62 postinstall()
63 {
64 mstartunit pcscd.socket
65 mstartunit pcscd.service
66 }
67
68 postremove()
69 {
70 mstopunit pcscd.service
71 mstopunit pcscd.socket
72 }