wok-6.x view pcsc-lite/receipt @ rev 14593
Add antinat
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 27 12:17:25 2013 +0200 (2013-05-27) |
parents | e509bd507650 |
children | 51a1ebbda768 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pcsc-lite"
4 VERSION="1.8.6"
5 CATEGORY="base-system"
6 SHORT_DESC="SCard interface for communicating to smart cards and readers."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://pcsclite.alioth.debian.org/"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL"
12 SUGGESTED="ccid"
13 DEPENDS="udev"
14 BUILD_DEPENDS="wget udev-dev perl libtool"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --enable-libudev \
23 --enable-ipcdir=/run/pcscd \
24 --enable-usbdropdir=/usr/lib/pcsc/drivers \
25 $CONFIGURE_ARGS &&
26 make && make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib/pcsc/drivers $fs/etc
33 cp -a $install/usr/lib/*.so* $fs/usr/lib
34 cp -a $install/usr/sbin $fs/usr
35 cp -a $install/usr/bin $fs/usr
36 cp -a $stuff/init.d $fs/etc
37 }
39 # Daemon options in: daemons.conf
40 post_install()
41 {
42 local root
43 root=$1
44 if ! grep -q 'PCSCD_OPTIONS' $root/etc/daemons.conf; then
45 echo '# PC/SC smart card daemon options.' >> $root/etc/daemons.conf
46 echo 'PCSCD_OPTIONS=""' >> $root/etc/daemons.conf
47 echo '' >> $root/etc/daemons.conf
48 fi
49 }