wok-6.x annotate ccid/receipt @ rev 22681
elilo: race condition
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 18 18:53:45 2020 +0100 (2020-01-18) |
parents | f9690e227edd |
children | 45f846c0c126 |
rev | line source |
---|---|
pascal@13660 | 1 # SliTaz package receipt. |
pascal@13660 | 2 |
pascal@13660 | 3 PACKAGE="ccid" |
Hans-G?nter@22586 | 4 VERSION="1.4.31" |
pascal@13660 | 5 CATEGORY="base-system" |
Hans-G?nter@22586 | 6 SHORT_DESC="Chip and Smart Card Interface Devices driver." |
pascal@13660 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
pascal@20671 | 9 WEB_SITE="https://ccid.apdu.fr/" |
Hans-G?nter@20769 | 10 |
pascal@13660 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@22586 | 12 WGET_URL="${WEB_SITE}files/$TARBALL" |
pascal@13660 | 13 |
pascal@13660 | 14 DEPENDS="libusb pcsc-lite" |
Hans-G?nter@22586 | 15 BUILD_DEPENDS="libusb-dev pcsc-lite-dev" |
pascal@13660 | 16 |
pascal@13660 | 17 # Rules to configure and make the package. |
pascal@13660 | 18 compile_rules() |
pascal@13660 | 19 { |
Hans-G?nter@22586 | 20 ./configure \ |
Hans-G?nter@22586 | 21 --prefix=/usr \ |
Hans-G?nter@22586 | 22 --sysconfdir=/etc \ |
Hans-G?nter@22586 | 23 --enable-serialconfdir=/etc/reader.conf.d \ |
Hans-G?nter@22586 | 24 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
Hans-G?nter@22586 | 25 --enable-twinserial \ |
pascal@13660 | 26 $CONFIGURE_ARGS && |
Hans-G?nter@20769 | 27 make && |
Hans-G?nter@20769 | 28 make DESTDIR=$DESTDIR install && |
pascal@13665 | 29 make DESTDIR=$DESTDIR -C src install_ccidtwin |
pascal@13660 | 30 } |
pascal@13660 | 31 |
pascal@13660 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13660 | 33 genpkg_rules() |
pascal@13660 | 34 { |
Hans-G?nter@22586 | 35 mkdir -p $fs/etc/udev/rules.d |
Hans-G?nter@22586 | 36 mkdir -p $fs/usr/bin $fs/usr/sbin |
Hans-G?nter@22586 | 37 |
Hans-G?nter@22586 | 38 cp -a $install/* $fs/ |
Hans-G?nter@22586 | 39 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/ |
pascal@13665 | 40 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \ |
Hans-G?nter@22586 | 41 $fs/etc/libccid_Info.plist |
pascal@13666 | 42 ln -s /etc/libccid_Info.plist \ |
pascal@13666 | 43 $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist |
Hans-G?nter@22586 | 44 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd \ |
Hans-G?nter@22586 | 45 $fs/usr/bin |
Hans-G?nter@22586 | 46 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch \ |
Hans-G?nter@22586 | 47 $fs/usr/sbin |
pascal@13660 | 48 } |
pascal@13665 | 49 |
pascal@13665 | 50 post_install() |
pascal@13665 | 51 { |
pascal@13665 | 52 # addgroup pcscd if needed |
Hans-G?nter@22586 | 53 if ! grep -q pcscd "$1/etc/group" |
Hans-G?nter@22586 | 54 then |
pascal@20319 | 55 echo |
pascal@13665 | 56 echo -n "Adding group pcscd..." |
pascal@18730 | 57 chroot "$1/" addgroup pcscd |
pascal@13665 | 58 status |
pascal@13665 | 59 fi |
pascal@13665 | 60 } |