Magellan Linux

Contents of /smage/branches/alx-0_6_0/extras/pcsc-lite/pcsc-lite-1.8.13-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5884 - (show annotations) (download)
Fri Nov 28 10:54:34 2014 UTC (9 years, 6 months ago) by niro
File size: 1589 byte(s)
auto added: ver bump to 1.8.13-r1
1 # $Id$
2
3 PNAME="pcsc-lite"
4 PVER="1.8.13"
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 ALIOTH_ID="4126"
26
27 SRC_URI=(
28 https://alioth.debian.org/frs/download.php/file/${ALIOTH_ID}/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/pcscd.rc-${RC_REV}
31 mirror://${PNAME}/pcscd.confd
32 )
33
34 UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball"
35
36 src_compile()
37 {
38 local myconf
39
40 cd ${SRCDIR}
41
42 # needed by the systemd patch:
43 myconf="--disable-autostart"
44
45 mconfigure \
46 --docdir=/usr/share/doc/${PNAME}-${PVER} \
47 --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \
48 --disable-libudev \
49 --enable-libusb \
50 ${myconf} \
51 || die
52
53 mmake || die
54 }
55
56 alx_generic_src_install()
57 {
58 cd ${SRCDIR}
59 mmake DESTDIR=${BINDIR} install || die
60
61 # needed for usb support
62 mkeepdir /usr/$(mlibdir)/readers/usb || die
63
64 minstallrc pcscd.rc-${RC_REV} pcscd || die
65 minstallconf pcscd.confd pcscd || die
66
67 minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog
68 }
69
70 preinstall()
71 {
72 add_conf_prot_mask /etc/conf.d/pcsc /etc/rc.d/init.d/pcscd
73 }
74
75 postinstall()
76 {
77 mstartservice pcscd
78 }
79
80 postremove()
81 {
82 mstopservice pcscd
83 }