| # Copyright 2017 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| CROS_WORKON_COMMIT=("f4be3fbf604d2f69b13606e703741b2d0178cebd" "208deab991d44b8ee7e44178523274c703a192da") |
| CROS_WORKON_TREE=("f86b3dad942180ce041d9034a4f5f9cceb8afe6b" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb" "57316388d694574a7609aa55d46812e8fab1e30c") |
| 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" |
| KEYWORDS="*" |
| |
| DEPEND=" |
| 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 |
| } |