diff options
author | 2021-08-02 04:00:14 +0100 | |
---|---|---|
committer | 2021-08-02 04:17:09 +0100 | |
commit | afcc82fb9728ae744ad890e54a4c1b60145d64fa (patch) | |
tree | e30aac330ba0e8336744d72b49ed7fd1e353e5aa /sys-apps/edac-utils/files | |
parent | sys-apps/edac-utils: update EAPI 5 -> 7 (diff) | |
download | gentoo-afcc82fb9728ae744ad890e54a4c1b60145d64fa.tar.gz gentoo-afcc82fb9728ae744ad890e54a4c1b60145d64fa.tar.bz2 gentoo-afcc82fb9728ae744ad890e54a4c1b60145d64fa.zip |
sys-apps/edac-utils: install init script/systemd unit, CC fix
1) The previous revision mentioned udev but the udev rule
was dropped upstream quite some time ago as it was found
to be unreliable.
We now install an init script and a systemd unit to load
the edac rules. The simple systemd unit was nabbed from Fedora.
2) We now call eautoreconf in order to refesh libtool and friends
to fix calling gcc directly.
Closes: https://bugs.gentoo.org/725540
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/edac-utils/files')
-rw-r--r-- | sys-apps/edac-utils/files/edac.init | 16 | ||||
-rw-r--r-- | sys-apps/edac-utils/files/edac.service | 11 |
2 files changed, 27 insertions, 0 deletions
diff --git a/sys-apps/edac-utils/files/edac.init b/sys-apps/edac-utils/files/edac.init new file mode 100644 index 000000000000..23318b37e10c --- /dev/null +++ b/sys-apps/edac-utils/files/edac.init @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +command=/usr/bin/edac-ctl + +start() { + ebegin "Registering edac-utils labels" + /usr/sbin/edac-ctl --register-labels + eend $? +} + +stop() { + ebegin "Unregistering edac-utils labels" + /usr/sbin/edac-ctl --unload + eend $? +} diff --git a/sys-apps/edac-utils/files/edac.service b/sys-apps/edac-utils/files/edac.service new file mode 100644 index 000000000000..b94a4b6b5443 --- /dev/null +++ b/sys-apps/edac-utils/files/edac.service @@ -0,0 +1,11 @@ +[Unit] +Description=Initialize EDAC Drivers For Machine Hardware + +[Service] +Type=oneshot +ExecStart=/usr/sbin/edac-ctl --register-labels +ExecStop=/usr/sbin/edac-ctl --unload +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target |