wok annotate ccid/receipt @ rev 21207
Up pure-ftpd (1.0.48)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 08 19:08:56 2019 +0200 (2019-04-08) |
parents | 4409599d86e8 |
children | f9690e227edd |
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@13665 | 23 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
pascal@13666 | 24 --enable-twinserial \ |
pascal@13660 | 25 $CONFIGURE_ARGS && |
Hans-G?nter@20769 | 26 make && |
Hans-G?nter@20769 | 27 make DESTDIR=$DESTDIR install && |
pascal@13665 | 28 make DESTDIR=$DESTDIR -C src install_ccidtwin |
pascal@13660 | 29 } |
pascal@13660 | 30 |
pascal@13660 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13660 | 32 genpkg_rules() |
pascal@13660 | 33 { |
pascal@13667 | 34 mkdir -p $fs/etc/udev/rules.d/ $fs/usr/bin $fs/usr/sbin |
Hans-G?nter@20769 | 35 mkdir -p $fs/etc/reader.conf.d |
Hans-G?nter@20774 | 36 cp -a $install/* $fs/ |
Hans-G?nter@20774 | 37 mv $fs/libccidtwin $fs/etc/reader.conf.d |
pascal@13660 | 38 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/ |
pascal@13665 | 39 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \ |
pascal@13665 | 40 $fs/etc/libccid_Info.plist |
pascal@13666 | 41 ln -s /etc/libccid_Info.plist \ |
pascal@13666 | 42 $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist |
pascal@13667 | 43 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd $fs/usr/bin |
pascal@13667 | 44 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch $fs/usr/sbin |
pascal@13660 | 45 } |
pascal@13665 | 46 |
pascal@13665 | 47 post_install() |
pascal@13665 | 48 { |
pascal@13665 | 49 # addgroup pcscd if needed |
pascal@18730 | 50 if ! grep -q pcscd "$1/etc/group"; then |
pascal@20319 | 51 echo |
pascal@13665 | 52 echo -n "Adding group pcscd..." |
pascal@18730 | 53 chroot "$1/" addgroup pcscd |
pascal@13665 | 54 status |
pascal@13665 | 55 fi |
pascal@13665 | 56 } |