wok annotate pcsc-lite/receipt @ rev 21669
updated pcsc-lite and pcsc-lite-dev (1.8.6 -> 1.8.25)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 01 14:56:31 2019 +0100 (2019-06-01) |
parents | 8dd8bab3f0ca |
children | 97585ed37bf0 |
rev | line source |
---|---|
pascal@13312 | 1 # SliTaz package receipt. |
pascal@13312 | 2 |
pascal@13312 | 3 PACKAGE="pcsc-lite" |
Hans-G?nter@21669 | 4 VERSION="1.8.25" |
pascal@13312 | 5 CATEGORY="base-system" |
pascal@13312 | 6 SHORT_DESC="SCard interface for communicating to smart cards and readers." |
pascal@13312 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15375 | 8 LICENSE="BSD" |
pascal@20672 | 9 WEB_SITE="https://pcsclite.apdu.fr/" |
Hans-G?nter@21669 | 10 |
pascal@13312 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@13312 | 12 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL" |
Hans-G?nter@21669 | 13 WGET_URL="${WEB_SITE}files/$TARBALL" |
pascal@13312 | 14 |
pascal@13669 | 15 SUGGESTED="ccid" |
pascal@13669 | 16 DEPENDS="udev" |
pascal@13312 | 17 BUILD_DEPENDS="wget udev-dev perl libtool" |
pascal@13312 | 18 |
pascal@13312 | 19 # Rules to configure and make the package. |
pascal@13312 | 20 compile_rules() |
pascal@13312 | 21 { |
Hans-G?nter@21669 | 22 ./configure \ |
Hans-G?nter@21669 | 23 --prefix=/usr \ |
Hans-G?nter@21669 | 24 --disable-libsystemd \ |
Hans-G?nter@21669 | 25 --enable-libudev \ |
Hans-G?nter@21669 | 26 --enable-ipcdir=/run/pcscd \ |
Hans-G?nter@21669 | 27 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
pascal@13312 | 28 $CONFIGURE_ARGS && |
Hans-G?nter@21669 | 29 make && |
Hans-G?nter@21669 | 30 make DESTDIR=$DESTDIR install |
pascal@13312 | 31 } |
pascal@13312 | 32 |
pascal@13312 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13312 | 34 genpkg_rules() |
pascal@13312 | 35 { |
Hans-G?nter@21669 | 36 mkdir -p $fs/usr/lib/pcsc/drivers |
Hans-G?nter@21669 | 37 mkdir -p $fs/etc |
Hans-G?nter@21669 | 38 |
Hans-G?nter@21669 | 39 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21669 | 40 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21669 | 41 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21669 | 42 cp -a $stuff/init.d $fs/etc |
pascal@13312 | 43 } |
pankso@13657 | 44 |
pankso@13657 | 45 # Daemon options in: daemons.conf |
pankso@13657 | 46 post_install() |
pankso@13657 | 47 { |
pascal@18730 | 48 if ! grep -q 'PCSCD_OPTIONS' "$1/etc/daemons.conf"; then |
pascal@18730 | 49 echo '# PC/SC smart card daemon options.' >> "$1/etc/daemons.conf" |
pascal@18730 | 50 echo 'PCSCD_OPTIONS=""' >> "$1/etc/daemons.conf" |
pascal@18730 | 51 echo '' >> "$1/etc/daemons.conf" |
pankso@13657 | 52 fi |
pankso@13657 | 53 } |