| # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| CROS_WORKON_COMMIT="4fc06e2ba9ad77efcea3e2a41b75ae1be0c7dc0d" |
| CROS_WORKON_TREE="52360d2847b3ab0abc08bc304000738a8523f05b" |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_SUBTREE="biod/study" |
| PYTHON_COMPAT=( python2_7 ) |
| |
| inherit cros-workon python-r1 |
| |
| DESCRIPTION="Chromium OS Fingerprint user study software" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/biod/study" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="*" |
| |
| DEPEND="" |
| RDEPEND=" |
| ${PYTHON_DEPS} |
| chromeos-base/ec-utils |
| dev-python/cherrypy[${PYTHON_USEDEP}] |
| dev-python/ws4py[${PYTHON_USEDEP}] |
| " |
| |
| src_unpack() { |
| cros-workon_src_unpack |
| S+="/biod/study" |
| } |
| |
| src_install() { |
| # install the study local server |
| exeinto /opt/google/fingerprint_study |
| newexe study_serve.py study_serve |
| |
| # Content to serve |
| insinto /opt/google/fingerprint_study/html |
| doins html/index.html |
| doins html/bootstrap-3.3.7.min.css |
| doins html/fingerprint.svg |
| |
| insinto /etc/init |
| doins fingerprint_study.conf |
| } |