# Distributed under the terms of the GNU General Public License v2 EAPI=5 inherit eutils user DESCRIPTION="A tool for securing communications between a client and a DNS resolver" HOMEPAGE="http://dnscrypt.org/" SRC_URI="http://download.dnscrypt.org/${PN}/${P}.tar.gz" LICENSE="ISC" SLOT="0" KEYWORDS="*" IUSE="+plugins ldns" DEPEND="dev-libs/libsodium ldns? ( net-libs/ldns )" RDEPEND="${DEPEND}" DOCS=( AUTHORS ChangeLog COPYING NEWS README.markdown README-PLUGINS.markdown TECHNOTES THANKS ) pkg_setup() { enewgroup dnscrypt enewuser dnscrypt -1 -1 /var/empty dnscrypt } src_configure() { econf \ $(use_enable plugins) } src_install() { default newinitd "${FILESDIR}/${PN}.initd" ${PN} newconfd "${FILESDIR}/${PN}.confd" ${PN} }