blob: a3063a918ffe136763a78281e0895b09f4803688 [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="53d0f755c761af06e8a1190917c6fe8511f2fce0"
CROS_WORKON_TREE="fa104001c25158de318af0ca067eafe72fdaeb14"
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
}