You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
988 B
49 lines
988 B
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
DESCRIPTION="A software PKCS#11 implementation"
|
|
HOMEPAGE="https://www.opendnssec.org/"
|
|
SRC_URI="https://www.opendnssec.org/files/source/${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="2"
|
|
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc x86"
|
|
IUSE="gost migration-tool test"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
migration-tool? ( dev-db/sqlite:3= )
|
|
dev-libs/openssl:=
|
|
!~dev-libs/softhsm-2.0.0:0
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
sys-devel/gcc:=[cxx]
|
|
virtual/pkgconfig
|
|
test? ( dev-util/cppunit )
|
|
"
|
|
|
|
DOCS=( NEWS README.md )
|
|
|
|
src_configure() {
|
|
econf \
|
|
--disable-static \
|
|
--with-crypto-backend=openssl \
|
|
--disable-p11-kit \
|
|
--localstatedir="${EPREFIX}/var" \
|
|
--enable-ecc \
|
|
$(use_enable gost) \
|
|
$(use_with migration-tool migrate)
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
|
|
keepdir /var/lib/softhsm/tokens
|
|
}
|