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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E7B6113835A for ; Sun, 11 Apr 2021 19:48:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 342DFE0833; Sun, 11 Apr 2021 19:48:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 94795E0833 for ; Sun, 11 Apr 2021 19:48:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C9D0F340B77 for ; Sun, 11 Apr 2021 19:48:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5224D648 for ; Sun, 11 Apr 2021 19:48:08 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1618169460.dd933faf9e40e8784e385b8d3dc08a91b4e3b3e0.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/opencryptoki/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/opencryptoki/opencryptoki-3.6.1.ebuild X-VCS-Directories: dev-libs/opencryptoki/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: dd933faf9e40e8784e385b8d3dc08a91b4e3b3e0 X-VCS-Branch: master Date: Sun, 11 Apr 2021 19:48:08 +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: bef8fe68-f03f-4164-8825-c595c12d61ce X-Archives-Hash: 2d908a445b0a0c02e7dd3a5e6177b515 commit: dd933faf9e40e8784e385b8d3dc08a91b4e3b3e0 Author: Conrad Kostecki gentoo org> AuthorDate: Sun Apr 11 19:31:00 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Apr 11 19:31:00 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd933faf dev-libs/opencryptoki: drop old version Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Conrad Kostecki gentoo.org> dev-libs/opencryptoki/opencryptoki-3.6.1.ebuild | 102 ------------------------ 1 file changed, 102 deletions(-) diff --git a/dev-libs/opencryptoki/opencryptoki-3.6.1.ebuild b/dev-libs/opencryptoki/opencryptoki-3.6.1.ebuild deleted file mode 100644 index 765c8841da1..00000000000 --- a/dev-libs/opencryptoki/opencryptoki-3.6.1.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools flag-o-matic user - -DESCRIPTION="PKCS#11 provider cryptographic hardware" -HOMEPAGE="https://sourceforge.net/projects/opencryptoki" -SRC_URI="mirror://sourceforge/opencryptoki/${PV}/${P}.tgz" - -# Upstream is looking into relicensing it into CPL-1.0 entirely; the CCA -# token sources are under CPL-1.0 already. -LICENSE="CPL-0.5" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~s390 ~x86" -IUSE="debug libressl +tpm" - -RDEPEND="tpm? ( app-crypt/trousers ) - !libressl? ( >=dev-libs/openssl-1.1.0:0= ) - libressl? ( >=dev-libs/libressl-2.7.0:0= )" -DEPEND="${RDEPEND}" - -DOCS=( - README AUTHORS FAQ TODO - doc/openCryptoki-HOWTO.pdf -) - -# tests right now basically don't exist; the only available thing would -# test against an installed copy and would kill a running pcscd, all -# things that we're not interested to. -RESTRICT=test - -S="${WORKDIR}/${PN}" - -pkg_setup() { - enewgroup pkcs11 -} - -src_prepare() { - default - mv configure.in configure.ac || die - eautoreconf -} - -src_configure() { - # package uses ${localstatedir}/lib as the default path, so if we - # leave it to econf, it'll create /var/lib/lib. - - # Since upstream by default seem to enable any possible token, even - # when they don't seem to be used, we limit ourselves to the - # software emulation token (swtok) and if the user enabled the tpm - # USE flag, tpmtok. The rest of the tokens seem to be hardware- or - # software-dependent even when they build fine without their - # requirements, but until somebody asks for those, I'd rather not - # enable them. - - # We don't use --enable-debug because that tinkers with the CFLAGS - # and we don't want that. Instead we append -DDEBUG which enables - # debug information. - use debug && append-flags -DDEBUG - - econf \ - --localstatedir=/var \ - --enable-fast-install \ - --disable-debug \ - --enable-daemon \ - --enable-library \ - --disable-icatok \ - --enable-swtok \ - $(use_enable tpm tpmtok) \ - --disable-ccatok -} - -src_install() { - default - - find "${ED}" -name '*.la' -delete || die - - # Install libopencryptoki in the standard directory for libraries. - mv "${ED}"/usr/$(get_libdir)/opencryptoki/libopencryptoki.so* "${ED}"/usr/$(get_libdir) || die - rm "${ED}"/usr/$(get_libdir)/pkcs11/libopencryptoki.so || die - dosym ../libopencryptoki.so /usr/$(get_libdir)/pkcs11/libopencryptoki.so - - # Remove compatibility symlinks as we _never_ required those and - # they seem unused even upstream. - find "${ED}" -name 'PKCS11_*' -delete || die - - # We replace their ld.so and init files (mostly designed for RedHat - # as far as I can tell) with our own replacements. - rm -rf "${ED}"/etc/ld.so.conf.d "${ED}"/etc/rc.d || die - - # make sure that we don't modify the init script if the USE flags - # are enabled for the needed services. - cp "${FILESDIR}"/pkcsslotd.init.2 "${T}"/pkcsslotd.init || die - use tpm || sed -i -e '/use tcsd/d' "${T}"/pkcsslotd.init - newinitd "${T}/pkcsslotd.init" pkcsslotd - - # We create /var dirs at runtime as needed, so don't bother installing - # our own. - rm -r "${ED}"/var/{lib,lock} || die -}