Contents of /branches/magellan-next/extras/pcsc-lite/pcsc-lite-1.7.4-r2.smage2
Parent Directory
|
Revision Log
Revision 9287 -
(show annotations)
(download)
Thu Nov 24 20:55:08 2011 UTC (12 years, 6 months ago) by niro
File size: 1744 byte(s)
Thu Nov 24 20:55:08 2011 UTC (12 years, 6 months ago) by niro
File size: 1744 byte(s)
-systemd support and dropped SysV init
1 | # $Id$ |
2 | |
3 | PNAME="pcsc-lite" |
4 | PVER="1.7.4" |
5 | PBUILD="r2" |
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 | sminclude mbuild mtools |
19 | |
20 | SRC_URI=( |
21 | https://alioth.debian.org/frs/download.php/3598/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${PNAME}-${PVER}-systemd-socket-activation.patch |
24 | mirror://${PNAME}/${PNAME}-${PVER}-systemd-disable-autostart.patch |
25 | mirror://${PNAME}/${PNAME}-${PVER}-systemd-install-service-files.patch |
26 | mirror://${PNAME}/pcscd.service |
27 | mirror://${PNAME}/pcscd.confd |
28 | ) |
29 | |
30 | UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | # add systemd support |
38 | mpatch ${PNAME}-${PVER}-systemd-socket-activation.patch || die |
39 | mpatch ${PNAME}-${PVER}-systemd-disable-autostart.patch || die |
40 | mpatch ${PNAME}-${PVER}-systemd-install-service-files.patch || die |
41 | |
42 | mautoreconf || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | local myconf |
48 | |
49 | cd ${SRCDIR} |
50 | |
51 | # needed by the systemd patch: |
52 | myconf="--disable-autostart" |
53 | |
54 | mconfigure \ |
55 | --docdir=/usr/share/doc/${PNAME}-${PVER} \ |
56 | --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \ |
57 | --enable-libudev \ |
58 | --disable-libusb \ |
59 | ${myconf} \ |
60 | || die |
61 | |
62 | mmake || die |
63 | } |
64 | |
65 | src_install() |
66 | { |
67 | cd ${SRCDIR} |
68 | mmake DESTDIR=${BINDIR} install || die |
69 | minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog |
70 | } |
71 | |
72 | postinstall() |
73 | { |
74 | mstartunit pcscd.socket pcscd |
75 | mstartunit pcscd.service pcscd |
76 | } |
77 | |
78 | postremove() |
79 | { |
80 | mstopunit pcscd.socket pcscd |
81 | mstopunit pcscd.service pcscd |
82 | } |