| # Copyright 2020 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| CROS_WORKON_COMMIT="6f9011123f3656c45bb34148673aa110a22326b3" |
| CROS_WORKON_TREE=("791c6808b4f4f5f1c484108d66ff958d65f8f1e3" "6a93087f6ddb4402b72ae9b5f4f7da5535f33c7e" "a9708ef639f0f7929195d0f3921ebd1a12ad96bd" "0589da423746e4e20fe7e50f7a19e2ac46e715a8" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb") |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk dns-proxy metrics shill/dbus/client .gn" |
| |
| PLATFORM_SUBDIR="dns-proxy" |
| |
| inherit cros-workon platform user |
| |
| DESCRIPTION="A daemon that provides DNS proxying services." |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/dns-proxy/" |
| |
| LICENSE="BSD-Google" |
| SLOT="0/0" |
| KEYWORDS="*" |
| |
| COMMON_DEPEND=" |
| chromeos-base/metrics:= |
| chromeos-base/minijail:= |
| chromeos-base/patchpanel:= |
| chromeos-base/patchpanel-client:= |
| chromeos-base/shill-dbus-client:= |
| dev-libs/protobuf:= |
| dev-libs/dbus-glib:= |
| sys-apps/dbus:= |
| net-misc/curl:= |
| " |
| RDEPEND="${COMMON_DEPEND}" |
| DEPEND=" |
| ${COMMON_DEPEND} |
| chromeos-base/permission_broker-client:= |
| " |
| |
| pkg_preinst() { |
| enewuser "dns-proxy" |
| enewgroup "dns-proxy" |
| } |
| |
| src_install() { |
| dosbin "${OUT}"/dnsproxyd |
| |
| insinto /etc/init |
| doins init/dns-proxy.conf |
| |
| insinto /usr/share/policy |
| newins seccomp/dns-proxy-seccomp-"${ARCH}".policy dns-proxy-seccomp.policy |
| |
| platform_fuzzer_install "${S}"/OWNERS "${OUT}"/ares_client_fuzzer |
| platform_fuzzer_install "${S}"/OWNERS "${OUT}"/doh_curl_client_fuzzer |
| platform_fuzzer_install "${S}"/OWNERS "${OUT}"/resolver_fuzzer |
| } |
| |
| platform_pkg_test() { |
| platform_test "run" "${OUT}/dns-proxy_test" |
| } |