diff options
author | Mike Gilbert <floppym@gentoo.org> | 2021-06-20 12:19:41 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2021-06-20 13:18:47 -0400 |
commit | 92bbf05569214a014f2573891fe489183487467a (patch) | |
tree | 9891e5cd36c82c969ae4c6f902cd5ff79a71fc2e /sys-apps/hwids/hwids-99999999.ebuild | |
parent | sys-apps/systemd: remove code to save/restore enabled units (diff) | |
download | gentoo-92bbf05569214a014f2573891fe489183487467a.tar.gz gentoo-92bbf05569214a014f2573891fe489183487467a.tar.bz2 gentoo-92bbf05569214a014f2573891fe489183487467a.zip |
sys-apps/hwids: call systemd-hwdb when USE=systemd is enabled
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps/hwids/hwids-99999999.ebuild')
-rw-r--r-- | sys-apps/hwids/hwids-99999999.ebuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys-apps/hwids/hwids-99999999.ebuild b/sys-apps/hwids/hwids-99999999.ebuild index fdc4a456ddd5..2f0cac8f8f52 100644 --- a/sys-apps/hwids/hwids-99999999.ebuild +++ b/sys-apps/hwids/hwids-99999999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2012-2020 Gentoo Authors +# Copyright 2012-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -18,9 +18,11 @@ fi LICENSE="|| ( GPL-2 BSD ) public-domain" SLOT="0" -IUSE="+net +pci +udev +usb" +IUSE="+net +pci systemd +udev +usb" +REQUIRED_USE="systemd? ( udev )" RDEPEND=" + systemd? ( sys-apps/systemd[hwdb] ) udev? ( virtual/udev ) " @@ -83,7 +85,9 @@ src_install() { } pkg_postinst() { - if use udev; then + if use systemd; then + systemd-hwdb --root="${ROOT}" update + elif use udev; then udevadm hwdb --update --root="${ROOT}" fi } |