2019-01-05 22:01:13 +03:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2018-10-20 22:33:41 +03:00
|
|
|
# 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"
|
|
|
|
|
|
|
|
KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
2019-01-05 22:01:13 +03:00
|
|
|
IUSE="bindist gost libressl migration-tool test"
|
2019-12-11 07:27:31 +03:00
|
|
|
RESTRICT="!test? ( test )"
|
2018-10-20 22:33:41 +03:00
|
|
|
SLOT="2"
|
|
|
|
LICENSE="BSD"
|
|
|
|
|
|
|
|
RDEPEND="migration-tool? ( dev-db/sqlite:3= )
|
2019-01-08 11:56:01 +03:00
|
|
|
!libressl? ( dev-libs/openssl:0=[bindist=] )
|
2018-10-20 22:33:41 +03:00
|
|
|
libressl? ( dev-libs/libressl:= )
|
|
|
|
!~dev-libs/softhsm-2.0.0:0"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
BDEPEND="virtual/pkgconfig
|
|
|
|
sys-devel/gcc:=[cxx]
|
|
|
|
test? ( dev-util/cppunit )"
|
|
|
|
|
|
|
|
DOCS=(
|
|
|
|
NEWS
|
|
|
|
README.md
|
|
|
|
)
|
|
|
|
|
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}/${P}-libressl.patch"
|
|
|
|
)
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
|
|
|
--disable-static \
|
|
|
|
--with-crypto-backend=openssl \
|
|
|
|
--disable-p11-kit \
|
|
|
|
--localstatedir="${EROOT}/var" \
|
|
|
|
$(use_enable !bindist ecc) \
|
2019-01-05 22:01:13 +03:00
|
|
|
$(use_enable gost) \
|
2018-10-20 22:33:41 +03:00
|
|
|
$(use_with migration-tool migrate)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
find "${D}" -name '*.la' -delete || die
|
|
|
|
|
|
|
|
keepdir "${EROOT}/var/lib/softhsm/tokens"
|
|
|
|
}
|