From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D7EC3158094 for ; Sat, 1 Oct 2022 03:58:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3DB39E0A60; Sat, 1 Oct 2022 03:58:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 252A2E0A60 for ; Sat, 1 Oct 2022 03:58:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 33D56340FEA for ; Sat, 1 Oct 2022 03:58:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AF83C5E8 for ; Sat, 1 Oct 2022 03:58:46 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1664596719.13d54de2c21631944b46429c9aa3131cd8ad85ec.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/ifd-gempc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/ifd-gempc/Manifest sys-apps/ifd-gempc/ifd-gempc-1.0.8.ebuild X-VCS-Directories: sys-apps/ifd-gempc/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 13d54de2c21631944b46429c9aa3131cd8ad85ec X-VCS-Branch: master Date: Sat, 1 Oct 2022 03:58:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d9cae42b-1683-4f4b-ab0a-06147a575e53 X-Archives-Hash: 03db84213cb3d7fb7e1b281a0adf3245 commit: 13d54de2c21631944b46429c9aa3131cd8ad85ec Author: Sam James gentoo org> AuthorDate: Sat Oct 1 03:58:06 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sat Oct 1 03:58:39 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13d54de2 sys-apps/ifd-gempc: add 1.0.8 Signed-off-by: Sam James gentoo.org> sys-apps/ifd-gempc/Manifest | 1 + sys-apps/ifd-gempc/ifd-gempc-1.0.8.ebuild | 59 +++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/sys-apps/ifd-gempc/Manifest b/sys-apps/ifd-gempc/Manifest index b2fd1b53cd55..50aed48b4f56 100644 --- a/sys-apps/ifd-gempc/Manifest +++ b/sys-apps/ifd-gempc/Manifest @@ -1 +1,2 @@ DIST ifd-gempc-1.0.7.tar.gz 76712 BLAKE2B 5ae734ff97865a66d993fc67a2ee5537875773b8275a2125c8853ddf0006cea61f20cd38571be44126cb2cfeb16a6778d6917fd056616e24997a3aed85226e76 SHA512 dde143bd2ca46cca91f979ddbb300f0b5fea37ecfa0c67058d887fcd56edf58adecce85dd05c7af25329fdfcfdf5bf7a52d4dc24061231a234180aad3df44a93 +DIST ifd-gempc-1.0.8.tar.gz 75298 BLAKE2B 6a371a554751819bbd971dc9273fee0bfce4ef8d6fa0a8c261c6944f4689d032102630b3f103c557156de64bb3cf8f5035bdf6a141dcd1e8dd271c60a249de53 SHA512 e3410877120482c80695af832d27ea2fa6697106c3264c57c32fb46b556573a381a699b8a11307c4597e5cfb97f7bbdfc5662acd87a129d44e8adc979d507f4a diff --git a/sys-apps/ifd-gempc/ifd-gempc-1.0.8.ebuild b/sys-apps/ifd-gempc/ifd-gempc-1.0.8.ebuild new file mode 100644 index 000000000000..a9870055183d --- /dev/null +++ b/sys-apps/ifd-gempc/ifd-gempc-1.0.8.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="GemCore based PC/SC reader drivers for pcsc-lite" +HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/ifd-GemPC" +SRC_URI="http://ludovic.rousseau.free.fr/softwares/ifd-GemPC/${P}.tar.gz" + +LICENSE="GPL-2 BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND=" + >=sys-apps/pcsc-lite-1.2.9_beta7 + virtual/libusb:0 +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +DOCS=( README README.410 README.430 ) + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake CC="$(tc-getCC)" DESTDIR="${D}" install + einstalldocs + + local pcscdir="$($(tc-getPKG_CONFIG) --variable=usbdropdir libpcsclite)" + local conf="/etc/reader.conf.d/${PN}.conf" + + insinto "$(dirname "${conf}")" + newins "${FILESDIR}/reader.conf" "$(basename "${conf}")" + sed -e "s:%PCSC_DRIVERS_DIR%:${pcscdir}:g" -e "s:%libGemPC410%:libGemPC410.so.${PV}:g" -i "${D}${conf}" +} + +pkg_postinst() { + elog "NOTICE:" + elog "1. If you are using GemPC410, modify ${conf}" + elog "2. Run update-reader.conf, yes this is a command..." + elog "3. Restart pcscd" +} + +pkg_postrm() { + # + # Without this, pcscd will not start next time. + # + local conf="/etc/reader.conf.d/${PN}.conf" + if ! [[ -f "${conf}" && -f "$(grep LIBPATH "${conf}" | sed 's/LIBPATH *//' | sed 's/ *$//g' | head -n 1)" ]]; then + [[ -f "${conf}" ]] && rm "${conf}" + update-reader.conf + elog "NOTICE:" + elog "You need to restart pcscd" + fi +}