diff --git a/devel/pcsc-lite/Makefile b/devel/pcsc-lite/Makefile index 380eebfcf678..bf014b8f821f 100644 --- a/devel/pcsc-lite/Makefile +++ b/devel/pcsc-lite/Makefile @@ -1,47 +1,47 @@ PORTNAME= pcsc-lite -PORTVERSION= 1.9.5 +PORTVERSION= 1.9.9 PORTEPOCH= 2 CATEGORIES= devel security MASTER_SITES= https://pcsclite.apdu.fr/files/ MAINTAINER= delphij@FreeBSD.org COMMENT= Middleware library to access a smart card using SCard API (PC/SC) WWW= https://pcsclite.apdu.fr/ LICENSE= BSD3CLAUSE GPLv3+ LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/COPYING USES= libtool pathfix perl5 pkgconfig python shebangfix tar:bzip2 USE_LDCONFIG= yes USE_PERL5= build USE_RC_SUBR= pcscd PYTHON_NO_DEPENDS= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-libsystemd \ --enable-usbdropdir=${PREFIX}/lib/pcsc/drivers/ \ --enable-ipcdir=/var/run INSTALL_TARGET= install-strip SHEBANG_FILES= src/spy/pcsc-spy SUB_FILES= pkg-message OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_GROUP= FEATURES OPTIONS_GROUP_FEATURES= FILTER FEATURES_DESC= Default features knobs FILTER_DESC= Control (Ignore or Extend) reader names reported by PCSC FILTER_CONFIGURE_ENABLE= filter post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/pcsc/drivers @${MKDIR} ${STAGEDIR}${PREFIX}/lib/pcsc/services post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/doc/example/Makefile.am ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/doc/example/Makefile.in ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/doc/example/pcsc_demo.c ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/devel/pcsc-lite/distinfo b/devel/pcsc-lite/distinfo index bc5588114bb4..7e10abcb4055 100644 --- a/devel/pcsc-lite/distinfo +++ b/devel/pcsc-lite/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1652415928 -SHA256 (pcsc-lite-1.9.5.tar.bz2) = 9ee3f9b333537562177893559ad4f7b8d5c23ebe828eef53056c02db14049d08 -SIZE (pcsc-lite-1.9.5.tar.bz2) = 775736 +TIMESTAMP = 1670727707 +SHA256 (pcsc-lite-1.9.9.tar.bz2) = cbcc3b34c61f53291cecc0d831423c94d437b188eb2b97b7febc08de1c914e8a +SIZE (pcsc-lite-1.9.9.tar.bz2) = 789914 diff --git a/devel/pcsc-lite/files/patch-src_spy_install__spy.sh b/devel/pcsc-lite/files/patch-src_spy_install__spy.sh new file mode 100644 index 000000000000..acfc10ad71a0 --- /dev/null +++ b/devel/pcsc-lite/files/patch-src_spy_install__spy.sh @@ -0,0 +1,20 @@ +--- src/spy/install_spy.sh.orig 2020-08-05 11:01:32 UTC ++++ src/spy/install_spy.sh +@@ -5,7 +5,7 @@ set -e + + # ldconfig --print-cache will return something like + # libpcsclite.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpcsclite.so.1 +-DIR=$(ldconfig --print-cache | grep libpcsclite.so.1) ++DIR=$(ldconfig -r | grep libpcsclite.so.1) + + # get the right part only: /usr/lib/x86_64-linux-gnu/libpcsclite.so.1 + DIR=$(echo $DIR | cut -d'=' -f2 | cut -d' ' -f2) +@@ -14,7 +14,7 @@ DIR=$(dirname $DIR) + DIR=$(dirname $DIR) + + # find the spying library +-SPY=$(ldconfig --print-cache | grep libpcscspy.so) ++SPY=$(ldconfig -r | grep libpcscspy.so) + SPY=$(echo $SPY | cut -d'=' -f2 | cut -d' ' -f2) + + echo "Using directory:" $DIR diff --git a/devel/pcsc-lite/files/patch-src_spy_uninstall__spy.sh b/devel/pcsc-lite/files/patch-src_spy_uninstall__spy.sh new file mode 100644 index 000000000000..bfdb94466e46 --- /dev/null +++ b/devel/pcsc-lite/files/patch-src_spy_uninstall__spy.sh @@ -0,0 +1,11 @@ +--- src/spy/uninstall_spy.sh.orig 2020-08-05 11:01:32 UTC ++++ src/spy/uninstall_spy.sh +@@ -5,7 +5,7 @@ set -e + + # ldconfig --print-cache will return something like + # libpcsclite.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpcsclite.so.1 +-DIR=$(ldconfig --print-cache | grep libpcsclite.so.1) ++DIR=$(ldconfig -r | grep libpcsclite.so.1) + + # get the right part only: /usr/lib/x86_64-linux-gnu/libpcsclite.so.1 + DIR=$(echo $DIR | cut -d'=' -f2 | cut -d' ' -f2) diff --git a/devel/pcsc-lite/pkg-plist b/devel/pcsc-lite/pkg-plist index 42dd13ba58c8..1f83a96db952 100644 --- a/devel/pcsc-lite/pkg-plist +++ b/devel/pcsc-lite/pkg-plist @@ -1,24 +1,26 @@ bin/pcsc-spy include/PCSC/debuglog.h include/PCSC/ifdhandler.h include/PCSC/pcsclite.h include/PCSC/reader.h include/PCSC/winscard.h include/PCSC/wintypes.h lib/libpcsclite.so lib/libpcsclite.so.1 lib/libpcsclite.so.1.0.0 lib/libpcscspy.so lib/libpcscspy.so.0 lib/libpcscspy.so.0.0.0 libdata/pkgconfig/libpcsclite.pc sbin/pcscd %%PORTDOCS%%%%DOCSDIR%%/README.polkit +%%PORTDOCS%%%%DOCSDIR%%/install_spy.sh +%%PORTDOCS%%%%DOCSDIR%%/uninstall_spy.sh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile.am %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile.in %%PORTEXAMPLES%%%%EXAMPLESDIR%%/pcsc_demo.c man/man1/pcsc-spy.1.gz man/man5/reader.conf.5.gz man/man8/pcscd.8.gz @dir lib/pcsc/services @dir lib/pcsc/drivers