Contents of /smage/trunk/extras/pcsc-lite/pcsc-lite-1.7.4-r1.smage2
Parent Directory | Revision Log
Revision 3228 -
(show annotations)
(download)
Fri Sep 16 15:10:21 2011 UTC (12 years, 9 months ago) by niro
File size: 1503 byte(s)
Fri Sep 16 15:10:21 2011 UTC (12 years, 9 months ago) by niro
File size: 1503 byte(s)
auto added: ver bump to 1.7.4-r1.
1 | # $Id$ |
2 | |
3 | PNAME="pcsc-lite" |
4 | PVER="1.7.4" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="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-171" |
13 | SDEPEND=">= dev-util/pkgconfig-0.25" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | ALX_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.* usr/sbin etc" |
19 | sminclude mbuild mtools alx-split |
20 | |
21 | # rc cvs revision |
22 | RC_REV=1.2 |
23 | |
24 | SRC_URI=( |
25 | https://alioth.debian.org/frs/download.php/3598/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/pcscd.rc-${RC_REV} |
28 | mirror://${PNAME}/pcscd.confd |
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 | # needed by the systemd patch: |
40 | myconf="--disable-autostart" |
41 | |
42 | mconfigure \ |
43 | --docdir=/usr/share/doc/${PNAME}-${PVER} \ |
44 | --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \ |
45 | --enable-libudev \ |
46 | --disable-libusb \ |
47 | ${myconf} \ |
48 | || die |
49 | |
50 | mmake || die |
51 | } |
52 | |
53 | src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | mmake DESTDIR=${BINDIR} install || die |
57 | |
58 | # needed for usb support |
59 | mkeepdir /usr/$(mlibdir)/readers/usb || die |
60 | |
61 | minstallrc pcscd.rc-${RC_REV} pcscd || die |
62 | minstallconf pcscd.confd pcscd || die |
63 | |
64 | minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog |
65 | } |
66 | |
67 | preinstall() |
68 | { |
69 | add_conf_prot_mask /etc/conf.d/pcsc /etc/rc.d/init.d/pcscd |
70 | } |
71 | |
72 | postinstall() |
73 | { |
74 | mstartservice pcscd |
75 | } |
76 | |
77 | postremove() |
78 | { |
79 | mstopservice pcscd |
80 | } |