blob: 1c75aed5226098294d7f08c6c25097773640c324 [file] [log] [blame]
# 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="1d477d90d9b7b9308dbe57877b0f896a5034af1b"
CROS_WORKON_TREE="04ae3a02c7715e36e51a752d882ffea18dc74c76"
CROS_WORKON_PROJECT="chromiumos/third_party/logitech-updater"
inherit cros-debug cros-workon libchrome udev user
DESCRIPTION="Logitech firmware updater"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/third_party/logitech-updater"
LICENSE="BSD-Google"
KEYWORDS="*"
COMMON_DEPEND="chromeos-base/libbrillo:=
virtual/libusb:1=
chromeos-base/cfm-dfu-notification:=
"
RDEPEND="${COMMON_DEPEND}"
DEPEND="${COMMON_DEPEND}"
src_configure() {
# See crbug/1078297
cros-debug-add-NDEBUG
default
}
src_install() {
dosbin logitech-updater
udev_dorules conf/99-logitech-updater.rules
# Install seccomp policy.
insinto "/usr/share/policy"
newins "seccomp/logitech-updater-seccomp-${ARCH}.policy" logitech-updater-seccomp.policy
}
pkg_preinst() {
enewuser cfm-firmware-updaters
enewgroup cfm-firmware-updaters
}