| # |
| # 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" |
| } |