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