| # Copyright 2014 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="4" |
| |
| CROS_WORKON_COMMIT="7d6c96221b3af0e06ce68549c3f7250ba9a6cc2c" |
| CROS_WORKON_TREE="7ace542f9d28c37217f69c8f2835ff64841778d6" |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_USE_VCSID=1 |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| |
| PLATFORM_SUBDIR="crash-reporter" |
| |
| inherit cros-workon platform udev |
| |
| DESCRIPTION="Crash reporting service that uploads crash reports with debug |
| information" |
| HOMEPAGE="http://dev.chromium.org/chromium-os/platform" |
| SRC_URI="" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| IUSE="cros_embedded -cros_host test" |
| REQUIRE_USE="!cros_host" |
| |
| RDEPEND=" |
| chromeos-base/chromeos-ca-certificates |
| chromeos-base/google-breakpad |
| chromeos-base/libchromeos |
| chromeos-base/metrics |
| dev-libs/libpcre |
| net-misc/curl |
| " |
| DEPEND=" |
| ${RDEPEND} |
| chromeos-base/system_api |
| dev-cpp/gtest |
| test? ( |
| dev-cpp/gmock |
| ) |
| sys-devel/flex |
| " |
| |
| src_install() { |
| into / |
| dosbin "${OUT}"/crash_reporter |
| dosbin crash_sender |
| |
| into /usr |
| dobin "${OUT}"/list_proxies |
| dobin "${OUT}"/warn_collector |
| dosbin kernel_log_collector.sh |
| |
| insinto /etc/init |
| doins init/crash-reporter.conf init/crash-sender.conf |
| use cros_embedded || doins init/warn-collector.conf |
| |
| insinto /etc |
| doins crash_reporter_logs.conf |
| |
| udev_dorules 99-crash-reporter.rules |
| } |
| |
| platform_pkg_test() { |
| # TODO: QEMU mishandles readlink(/proc/self/exe) symlink, so filter out |
| # tests that rely on that. Once we update to a newer version though, we |
| # can drop this filter. |
| # https://lists.nongnu.org/archive/html/qemu-devel/2014-08/msg01210.html |
| local qemu_gtest_filter="-UserCollectorTest.GetExecutableBaseNameFromPid" |
| |
| platform_test "run" "${OUT}/crash_reporter_test" "" "" "${qemu_gtest_filter}" |
| } |