Annotation of /smage/branches/alx-0_6_0/extras/pcsc-lite/pcsc-lite-1.7.4-r1.smage2
Parent Directory | Revision Log
Revision 3424 -
(hide annotations)
(download)
Tue Apr 10 13:50:05 2012 UTC (12 years, 1 month ago) by niro
File size: 1557 byte(s)
Tue Apr 10 13:50:05 2012 UTC (12 years, 1 month ago) by niro
File size: 1557 byte(s)
auto added: ver bump to 1.7.4-r1
1 | niro | 3424 | # $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 | DEPEND=">= dev-libs/libusb-compat-0.1.3" | ||
14 | SDEPEND=">= dev-util/pkgconfig-0.25" | ||
15 | |||
16 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
18 | |||
19 | ALX_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.* usr/sbin etc" | ||
20 | sminclude mbuild mtools alx-split | ||
21 | |||
22 | # rc cvs revision | ||
23 | RC_REV=1.2 | ||
24 | |||
25 | SRC_URI=( | ||
26 | https://alioth.debian.org/frs/download.php/3598/${SRCFILE} | ||
27 | mirror://${PNAME}/${SRCFILE} | ||
28 | mirror://${PNAME}/pcscd.rc-${RC_REV} | ||
29 | mirror://${PNAME}/pcscd.confd | ||
30 | ) | ||
31 | |||
32 | UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball" | ||
33 | |||
34 | src_compile() | ||
35 | { | ||
36 | local myconf | ||
37 | |||
38 | cd ${SRCDIR} | ||
39 | |||
40 | # needed by the systemd patch: | ||
41 | myconf="--disable-autostart" | ||
42 | |||
43 | mconfigure \ | ||
44 | --docdir=/usr/share/doc/${PNAME}-${PVER} \ | ||
45 | --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \ | ||
46 | --disable-libudev \ | ||
47 | --enable-libusb \ | ||
48 | ${myconf} \ | ||
49 | || die | ||
50 | |||
51 | mmake || die | ||
52 | } | ||
53 | |||
54 | alx_generic_src_install() | ||
55 | { | ||
56 | cd ${SRCDIR} | ||
57 | mmake DESTDIR=${BINDIR} install || die | ||
58 | |||
59 | # needed for usb support | ||
60 | mkeepdir /usr/$(mlibdir)/readers/usb || die | ||
61 | |||
62 | minstallrc pcscd.rc-${RC_REV} pcscd || die | ||
63 | minstallconf pcscd.confd pcscd || die | ||
64 | |||
65 | minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog | ||
66 | } | ||
67 | |||
68 | preinstall() | ||
69 | { | ||
70 | add_conf_prot_mask /etc/conf.d/pcsc /etc/rc.d/init.d/pcscd | ||
71 | } | ||
72 | |||
73 | postinstall() | ||
74 | { | ||
75 | mstartservice pcscd | ||
76 | } | ||
77 | |||
78 | postremove() | ||
79 | { | ||
80 | mstopservice pcscd | ||
81 | } |