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.
79 lines
1.6 KiB
79 lines
1.6 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
9 years ago
|
|
||
9 years ago
|
inherit bash-completion-r1 eutils systemd user
|
||
9 years ago
|
|
||
|
DESCRIPTION="High-performance authoritative-only DNS server"
|
||
|
HOMEPAGE="http://www.knot-dns.cz/"
|
||
|
SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz"
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
9 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
9 years ago
|
IUSE="debug dnstap doc caps +fastparser idn systemd"
|
||
|
|
||
|
RDEPEND="
|
||
8 years ago
|
>=net-libs/gnutls-3.3:=
|
||
9 years ago
|
>=dev-libs/jansson-2.3
|
||
8 years ago
|
>=dev-db/lmdb-0.9.15
|
||
9 years ago
|
>=dev-libs/userspace-rcu-0.5.4
|
||
|
caps? ( >=sys-libs/libcap-ng-0.6.4 )
|
||
8 years ago
|
dnstap? (
|
||
|
dev-libs/fstrm
|
||
|
dev-libs/protobuf-c
|
||
|
)
|
||
9 years ago
|
idn? ( net-dns/libidn )
|
||
8 years ago
|
dev-libs/libedit
|
||
9 years ago
|
systemd? ( sys-apps/systemd )
|
||
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig
|
||
8 years ago
|
doc? ( dev-python/sphinx )
|
||
9 years ago
|
"
|
||
|
|
||
8 years ago
|
S="${WORKDIR}/${P/_/-}"
|
||
9 years ago
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--with-storage="${EPREFIX}/var/lib/${PN}" \
|
||
|
--with-rundir="${EPREFIX}/var/run/${PN}" \
|
||
|
--with-lmdb \
|
||
9 years ago
|
--with-bash-completions="$(get_bashcompdir)" \
|
||
9 years ago
|
$(use_enable fastparser) \
|
||
|
$(use_enable debug debug server,zones,ns,loader,dnssec) \
|
||
|
$(use_enable debug debuglevel details) \
|
||
|
$(use_enable dnstap) \
|
||
|
$(use_enable doc documentation) \
|
||
|
$(use_with idn libidn) \
|
||
8 years ago
|
--enable-systemd=$(usex systemd)
|
||
9 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
default
|
||
8 years ago
|
|
||
|
if use doc; then
|
||
|
emake -C doc html
|
||
|
HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
|
||
|
fi
|
||
9 years ago
|
}
|
||
|
|
||
|
src_test() {
|
||
8 years ago
|
emake check
|
||
9 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
8 years ago
|
default
|
||
9 years ago
|
|
||
8 years ago
|
keepdir /var/lib/${PN}
|
||
9 years ago
|
|
||
|
newinitd "${FILESDIR}/knot.init" knot
|
||
9 years ago
|
systemd_dounit "${FILESDIR}/knot.service"
|
||
9 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
enewgroup knot 53
|
||
|
enewuser knot 53 -1 /var/lib/knot knot
|
||
|
}
|