Contents of /smage/trunk/extras/pcsc-lite/pcsc-lite-1.8.11-r1.smage2
Parent Directory
|
Revision Log
Revision 5832 -
(show annotations)
(download)
Fri Jul 18 11:21:11 2014 UTC (9 years, 11 months ago) by niro
File size: 1375 byte(s)
Fri Jul 18 11:21:11 2014 UTC (9 years, 11 months ago) by niro
File size: 1375 byte(s)
-fixed SRC_URI and missing include
1 | # $Id$ |
2 | |
3 | PNAME="pcsc-lite" |
4 | PVER="1.8.11" |
5 | PBUILD="r1" |
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-210" |
13 | SDEPEND=">= dev-util/pkgconfig-0.25" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | ALX_PKG_KEEP="usr/$(mlibdir)/*.so.* usr/sbin etc usr/lib/systemd" |
19 | sminclude mbuild mtools systemd alx-split |
20 | |
21 | # rc cvs revision |
22 | RC_REV=1.2 |
23 | |
24 | ALIOTH_ID="3991" |
25 | |
26 | SRC_URI=( |
27 | https://alioth.debian.org/frs/download.php/file/${ALIOTH_ID}/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | ) |
30 | |
31 | UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball" |
32 | |
33 | src_compile() |
34 | { |
35 | local myconf |
36 | |
37 | cd ${SRCDIR} |
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 | } |