wok-6.x annotate ccid/receipt @ rev 21709
ccid: update genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 08 10:39:23 2019 +0200 (2019-06-08) |
parents | 3a1a00c50d15 |
children | 40ec0f5146e3 |
rev | line source |
---|---|
pascal@13660 | 1 # SliTaz package receipt. |
pascal@13660 | 2 |
pascal@13660 | 3 PACKAGE="ccid" |
Hans-G?nter@20769 | 4 VERSION="1.4.30" |
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@20671 | 9 WEB_SITE="https://ccid.apdu.fr/" |
Hans-G?nter@20769 | 10 |
pascal@13660 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@20769 | 12 WGET_URL="$WEB_SITE/files/$TARBALL" |
pascal@13660 | 13 |
pascal@13660 | 14 DEPENDS="libusb pcsc-lite" |
pascal@13660 | 15 BUILD_DEPENDS="wget pcsc-lite-dev libusb-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@20769 | 20 ./configure \ |
Hans-G?nter@20769 | 21 --prefix=/usr \ |
pascal@13662 | 22 --sysconfdir=/etc \ |
pascal@21709 | 23 --enable-serialconfdir=/etc/reader.conf.d \ |
pascal@13665 | 24 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
pascal@13666 | 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 { |
pascal@13667 | 35 mkdir -p $fs/etc/udev/rules.d/ $fs/usr/bin $fs/usr/sbin |
Hans-G?nter@20774 | 36 cp -a $install/* $fs/ |
pascal@13660 | 37 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/ |
pascal@13665 | 38 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \ |
pascal@13665 | 39 $fs/etc/libccid_Info.plist |
pascal@13666 | 40 ln -s /etc/libccid_Info.plist \ |
pascal@13666 | 41 $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist |
pascal@13667 | 42 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd $fs/usr/bin |
pascal@13667 | 43 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch $fs/usr/sbin |
pascal@13660 | 44 } |
pascal@13665 | 45 |
pascal@13665 | 46 post_install() |
pascal@13665 | 47 { |
pascal@13665 | 48 # addgroup pcscd if needed |
pascal@18730 | 49 if ! grep -q pcscd "$1/etc/group"; then |
pascal@20319 | 50 echo |
pascal@13665 | 51 echo -n "Adding group pcscd..." |
pascal@18730 | 52 chroot "$1/" addgroup pcscd |
pascal@13665 | 53 status |
pascal@13665 | 54 fi |
pascal@13665 | 55 } |