wok-6.x annotate ccid/receipt @ rev 17033
Add mfstool
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 17 17:55:38 2014 +0200 (2014-08-17) |
parents | 5ef779ca99a2 |
children | 9e01bc6321ea |
rev | line source |
---|---|
pascal@13660 | 1 # SliTaz package receipt. |
pascal@13660 | 2 |
pascal@13660 | 3 PACKAGE="ccid" |
pascal@13660 | 4 VERSION="1.4.8" |
pascal@13660 | 5 CATEGORY="base-system" |
pascal@13660 | 6 SHORT_DESC="Chip/Smart Card Interface Devices driver." |
pascal@13660 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
pascal@13660 | 9 WEB_SITE="http://pcsclite.alioth.debian.org/" |
pascal@13660 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@13660 | 11 WGET_URL="https://alioth.debian.org/frs/download.php/3768/$TARBALL" |
pascal@13660 | 12 |
pascal@13660 | 13 DEPENDS="libusb pcsc-lite" |
pascal@13660 | 14 BUILD_DEPENDS="wget pcsc-lite-dev libusb-dev" |
pascal@13660 | 15 |
pascal@13660 | 16 # Rules to configure and make the package. |
pascal@13660 | 17 compile_rules() |
pascal@13660 | 18 { |
pascal@13660 | 19 cd $src |
pascal@13660 | 20 ./configure --prefix=/usr \ |
pascal@13662 | 21 --sysconfdir=/etc \ |
pascal@13665 | 22 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
pascal@13666 | 23 --enable-twinserial \ |
pascal@13660 | 24 $CONFIGURE_ARGS && |
pascal@13665 | 25 make && make DESTDIR=$DESTDIR install && |
pascal@13665 | 26 make DESTDIR=$DESTDIR -C src install_ccidtwin |
pascal@13660 | 27 } |
pascal@13660 | 28 |
pascal@13660 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13660 | 30 genpkg_rules() |
pascal@13660 | 31 { |
pascal@13667 | 32 mkdir -p $fs/etc/udev/rules.d/ $fs/usr/bin $fs/usr/sbin |
pascal@13660 | 33 cp -a $install/* $fs/ |
pascal@13660 | 34 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/ |
pascal@13665 | 35 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \ |
pascal@13665 | 36 $fs/etc/libccid_Info.plist |
pascal@13666 | 37 ln -s /etc/libccid_Info.plist \ |
pascal@13666 | 38 $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist |
pascal@13667 | 39 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd $fs/usr/bin |
pascal@13667 | 40 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch $fs/usr/sbin |
pascal@13660 | 41 } |
pascal@13665 | 42 |
pascal@13665 | 43 post_install() |
pascal@13665 | 44 { |
pascal@13665 | 45 # addgroup pcscd if needed |
pascal@13665 | 46 if ! grep -q pcscd $1/etc/group; then |
pascal@13665 | 47 echo -n "Adding group pcscd..." |
pascal@13665 | 48 chroot $1/ addgroup pcscd |
pascal@13665 | 49 status |
pascal@13665 | 50 fi |
pascal@13665 | 51 } |