blob: 4ff492fe312e0ad694c02b2e6e4a3ed9d9b4462b [file] [log] [blame] [edit]
#
# Copyright 2023 Google LLC
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
EAPI=7
inherit systemd
DESCRIPTION="Logs PCI devices to syslog."
HOMEPAGE=""
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
S="${WORKDIR}"
RDEPEND="
app-shells/bash
sys-apps/mawk
sys-apps/pciutils
"
src_install() {
exeinto /usr/sbin/
doexe "${FILESDIR}/log_pci_devices"
systemd_dounit "${FILESDIR}/log_pci_devices.service"
systemd_enable_service "multi-user.target" "log_pci_devices.service"
}