wok annotate ccid/receipt @ rev 25591
enet: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 22 11:01:59 2023 +0000 (14 months ago) |
parents | 45f846c0c126 |
children |
rev | line source |
---|---|
pascal@13660 | 1 # SliTaz package receipt. |
pascal@13660 | 2 |
pascal@13660 | 3 PACKAGE="ccid" |
Hans-G?nter@24399 | 4 VERSION="1.5.0" |
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 |
Hans-G?nter@24399 | 14 DEPENDS="gcc83-lib-base libusb pcsc-lite" |
Hans-G?nter@24399 | 15 BUILD_DEPENDS="gcc83 libusb-dev pcsc-lite-dev" |
pascal@13660 | 16 |
pascal@24402 | 17 # What is the latest version available today? |
pascal@24402 | 18 current_version() |
pascal@24402 | 19 { |
pascal@24402 | 20 wget -O - ${WEB_SITE}files 2>/dev/null | \ |
pascal@24402 | 21 sed '/ccid-/!d;s|.*ccid-||;s|.tar.*||' | sort -Vr | sed q |
pascal@24402 | 22 } |
pascal@24402 | 23 |
pascal@13660 | 24 # Rules to configure and make the package. |
pascal@13660 | 25 compile_rules() |
pascal@13660 | 26 { |
Hans-G?nter@22586 | 27 ./configure \ |
Hans-G?nter@24399 | 28 CC=gcc-83 \ |
Hans-G?nter@24399 | 29 CXX=g++-83 \ |
Hans-G?nter@24399 | 30 LDFLAGS="$LDFLAGS -lrt" \ |
Hans-G?nter@22586 | 31 --prefix=/usr \ |
Hans-G?nter@22586 | 32 --sysconfdir=/etc \ |
Hans-G?nter@22586 | 33 --enable-serialconfdir=/etc/reader.conf.d \ |
Hans-G?nter@22586 | 34 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
Hans-G?nter@22586 | 35 --enable-twinserial \ |
pascal@13660 | 36 $CONFIGURE_ARGS && |
Hans-G?nter@20769 | 37 make && |
Hans-G?nter@24399 | 38 make install DESTDIR=$DESTDIR && |
Hans-G?nter@24399 | 39 make install_ccidtwin DESTDIR=$DESTDIR -C src |
pascal@13660 | 40 } |
pascal@13660 | 41 |
pascal@13660 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13660 | 43 genpkg_rules() |
pascal@13660 | 44 { |
Hans-G?nter@22586 | 45 mkdir -p $fs/etc/udev/rules.d |
Hans-G?nter@24399 | 46 mkdir -p $fs/usr/bin |
Hans-G?nter@24399 | 47 mkdir -p $fs/usr/sbin |
Hans-G?nter@22586 | 48 |
Hans-G?nter@22586 | 49 cp -a $install/* $fs/ |
Hans-G?nter@22586 | 50 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/ |
pascal@13665 | 51 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \ |
Hans-G?nter@22586 | 52 $fs/etc/libccid_Info.plist |
pascal@13666 | 53 ln -s /etc/libccid_Info.plist \ |
pascal@13666 | 54 $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist |
Hans-G?nter@22586 | 55 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd \ |
Hans-G?nter@22586 | 56 $fs/usr/bin |
Hans-G?nter@22586 | 57 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch \ |
Hans-G?nter@22586 | 58 $fs/usr/sbin |
pascal@13660 | 59 } |
pascal@13665 | 60 |
pascal@13665 | 61 post_install() |
pascal@13665 | 62 { |
pascal@13665 | 63 # addgroup pcscd if needed |
Hans-G?nter@22586 | 64 if ! grep -q pcscd "$1/etc/group" |
Hans-G?nter@22586 | 65 then |
pascal@20319 | 66 echo |
pascal@13665 | 67 echo -n "Adding group pcscd..." |
pascal@18730 | 68 chroot "$1/" addgroup pcscd |
pascal@13665 | 69 status |
pascal@13665 | 70 fi |
pascal@13665 | 71 } |