# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI="4"
+EAPI=6
inherit autotools eutils systemd vcs-snapshot user
KEYWORDS="amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ~s390 ~sh ~sparc x86"
IUSE="dbus +seccomp static-libs"
-DEPEND="dev-libs/openssl
- dev-libs/libevent
+DEPEND="dev-libs/openssl:0=
+ dev-libs/libevent:=
dbus? ( sys-apps/dbus )"
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${P}-tlsdated-service.patch
+)
+
src_prepare() {
# Use the system cert store rather than a custom one specific
# to the tlsdate package. #534394
sed -i \
-e 's:/tlsdate/ca-roots/tlsdate-ca-roots.conf:/ssl/certs/ca-certificates.crt:' \
Makefile.am || die
- epatch "${FILESDIR}"/${P}-tlsdated-service.patch
+
+ default
eautoreconf
}