wok diff pcsc-lite/receipt @ rev 13661
ccid: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 21 21:52:14 2012 +0100 (2012-11-21) |
parents | 46fe3a436982 |
children | a4016f7bd89c |
line diff
1.1 --- a/pcsc-lite/receipt Wed Aug 29 13:09:27 2012 +0200 1.2 +++ b/pcsc-lite/receipt Wed Nov 21 21:52:14 2012 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="pcsc-lite" 1.7 -VERSION="1.8.5" 1.8 +VERSION="1.8.6" 1.9 CATEGORY="base-system" 1.10 SHORT_DESC="SCard interface for communicating to smart cards and readers." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 @@ -9,15 +9,18 @@ 1.13 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL" 1.15 1.16 -DEPENDS="udev" 1.17 +DEPENDS="udev python" 1.18 BUILD_DEPENDS="wget udev-dev perl libtool" 1.19 1.20 # Rules to configure and make the package. 1.21 compile_rules() 1.22 { 1.23 cd $src 1.24 - ./configure --prefix=/usr \ 1.25 - --enable-usbdropdir=/usr/lib/pscs/drivers \ 1.26 + ./configure \ 1.27 + --prefix=/usr \ 1.28 + --enable-libudev \ 1.29 + --enable-ipcdir=/run/pcscd \ 1.30 + --enable-usbdropdir=/usr/lib/pcsc/drivers \ 1.31 $CONFIGURE_ARGS && 1.32 make && make DESTDIR=$DESTDIR install 1.33 } 1.34 @@ -25,8 +28,21 @@ 1.35 # Rules to gen a SliTaz package suitable for Tazpkg. 1.36 genpkg_rules() 1.37 { 1.38 - mkdir -p $fs/usr/lib 1.39 + mkdir -p $fs/usr/lib/pcsc/drivers $fs/etc 1.40 cp -a $install/usr/lib/*.so* $fs/usr/lib 1.41 cp -a $install/usr/sbin $fs/usr 1.42 cp -a $install/usr/bin $fs/usr 1.43 + cp -a $stuff/init.d $fs/etc 1.44 } 1.45 + 1.46 +# Daemon options in: daemons.conf 1.47 +post_install() 1.48 +{ 1.49 + local root 1.50 + root=$1 1.51 + if ! grep -q 'PCSCD_OPTIONS' $root/etc/daemons.conf; then 1.52 + echo '# PC/SC smart card daemon options.' >> $root/etc/daemons.conf 1.53 + echo 'PCSCD_OPTIONS=""' >> $root/etc/daemons.conf 1.54 + echo '' >> $root/etc/daemons.conf 1.55 + fi 1.56 +}