| # Copyright 2017 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=5 |
| |
| CROS_WORKON_COMMIT=("f60265b9a6dca4daaebcc5fbed8c42f96359d86e" "03d4ec2948602297dbfad5a731d80a4790cfb0ae") |
| CROS_WORKON_TREE=("81f7fe23bf497aafef6d4128b33582b4422a9ff5" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb" "673e428875c96905e147af3167b0a5de1303f9b0") |
| CROS_WORKON_LOCALNAME=("platform2" "third_party/atrusctl") |
| CROS_WORKON_PROJECT=("chromiumos/platform2" "chromiumos/third_party/atrusctl") |
| CROS_WORKON_DESTDIR=("${S}/platform2" "${S}/platform2/atrusctl") |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_SUBTREE=("common-mk .gn" "") |
| |
| PLATFORM_SUBDIR="atrusctl" |
| |
| inherit cros-workon platform udev user |
| |
| DESCRIPTION="CrOS daemon for the Atrus speakerphone" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/third_party/atrusctl/" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| |
| DEPEND=" |
| chromeos-base/libbrillo |
| chromeos-base/libchrome |
| virtual/libusb:1 |
| virtual/libudev:0= |
| " |
| RDEPEND=" |
| ${DEPEND} |
| !sys-apps/atrusctl |
| " |
| |
| src_install() { |
| dosbin "${OUT}/atrusd" |
| |
| insinto /etc/rsyslog.d |
| newins conf/rsyslog-atrus.conf atrus.conf |
| |
| udev_newrules conf/udev-atrus.rules 99-atrus.rules |
| |
| insinto /etc/init |
| doins init/atrusd.conf |
| |
| insinto /etc/dbus-1/system.d |
| doins dbus_permissions/org.chromium.Atrusctl.conf |
| } |
| |
| pkg_preinst() { |
| enewuser atrus |
| enewgroup atrus |
| } |