Sync from SUSE:SLFO:Main ledmon revision 851a260838bc0911d1d175136e7a19b8

This commit is contained in:
Adrian Schröter 2024-05-03 14:19:37 +02:00
commit 0ded5a36ce
5 changed files with 424 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

View File

@ -0,0 +1,21 @@
Index: ledmon-0.96/systemd/ledmon.service.in
===================================================================
--- ledmon-0.96.orig/systemd/ledmon.service.in
+++ ledmon-0.96/systemd/ledmon.service.in
@@ -5,6 +5,16 @@ Description=Enclosure LED Utilities
WantedBy=multi-user.target
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
Type=simple
User=root
ExecStart=@sbindir@/ledmon --foreground

BIN
ledmon-0.97.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

293
ledmon.changes Normal file
View File

@ -0,0 +1,293 @@
-------------------------------------------------------------------
Thu May 18 03:50:57 UTC 2023 - Nicholas Yang <nicholas.yang@suse.com>
- Update to version 0.97:
Enhancements
ledctl: add support to empty slots blinking
ledmon license change to LGPLv2
ledctl: Add SES get/set/list slot support
Update NPEM wait command
Remove exclusionary language
ledmon: Define ONESHOT_NORMAL for VMD
Bug fixes
ipmi: avoid error messages on non-dell platforms
vmdssd: define normal pattern
ledctl: clear unsupported params from config
block.c: get_block_device_from_sysfs_path modification
fix ibpi_value lists getter
amd_ipmi: Allow to _enable_smbus_control
ledmon.c: allocate memory for ignore
sysfs: add only vmd devices to slots_list
Rename --controller parameter
Slots list implementations and fixes
- Drop no longer needed patches:
* 0001-Ledctl-slots-management-94.patch
* 0002-add-Dell-15G-servers.patch
* 0003-ipmi-avoid-error-messages-on-non-dell-platforms-112.patch
-------------------------------------------------------------------
Wed Apr 26 11:27:18 UTC 2023 - Johannes Segitz <jsegitz@suse.com>
- Don't use ProtectKernelTunables, can break some use cases
(bsc#1210656)
-------------------------------------------------------------------
Tue Feb 28 02:07:16 UTC 2023 - Nicholas Yang <nicholas.yang@suse.com>
- add a patch to fix bsc#1208613
* 0003-ipmi-avoid-error-messages-on-non-dell-platforms-112.patch
-------------------------------------------------------------------
Mon Jul 18 15:09:00 UTC 2022 - Heming Zhao <heming.zhao@suse.com>
- Update to version 0.96: (PED-85)
* Manual updates, clarify --listed-only option
* Fix cache indexing of ATA port
* Fixes in regard to macros
* Fix memory leak in amd_ipmi.c
* Fix NULL pointer dereferences in sysfs.c
* Make messages appear in service log immediately
- add patches after 0.96:
+ 0001-Ledctl-slots-management-94.patch
+ 0002-add-Dell-15G-servers.patch
-------------------------------------------------------------------
Fri Oct 15 07:28:48 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
* harden_ledmon.service.patch
-------------------------------------------------------------------
Thu Jul 1 14:27:36 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 0.95
* Allow to run ledctl version without root
* Defaulting to SGPIO for AMD systems
* Don't rely on states priority while changing IBPI states
* Check the white/blacklist from ledmon.conf earlier in discovery
* Change installation directory to /usr/sbin
* Use package version from autotools, not version.h
* Fix memory leak in utils.c
* Some other bugfixes
-------------------------------------------------------------------
Mon May 18 07:59:53 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Update to version 0.94:
* Support for AMD IPMI enclosure management
* Support for NPEM
* Documentation updates
* Fix activity indicator state for SMP
* Fix for GCC 9 compilation
* Update ipbi pattern for drives with previous pattern unknown
- Drop no longer needed patches:
* Don-t-build-with-Werror.patch
* amd_sgpio-Correct-use-of-packed-structs.patch
* ledmon-paths-in-systemd-service-file-are-generated.patch
* smp-fix-the-activity-indicator-states.patch
- Install compat symlink
-------------------------------------------------------------------
Fri Dec 27 02:09:00 UTC 2019 - heming.zhao@suse.com
- backport upstream patches to v0.93
+ Don-t-build-with-Werror.patch
+ ledmon-paths-in-systemd-service-file-are-generated.patch
+ smp-fix-the-activity-indicator-states.patch
- rename patch file
- ledmon-amd_sgpio.patch
+ amd_sgpio-Correct-use-of-packed-structs.patch
-------------------------------------------------------------------
Tue Dec 17 08:46:55 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Fix download url
- Fix jira reference in changelog
- Add ledmon-amd_sgpio.patch to fix issues with building on TW
-------------------------------------------------------------------
Wed Dec 11 09:32:32 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Small packaging cleanups
-------------------------------------------------------------------
Wed Dec 11 03:05:00 UTC 2019 - heming.zhao@suse.com
- Update to version 0.93 per jsc#SLE-8004
* modified spec file according to changes in source code
- Enhancements
* Support for AMD SGPIO enclosure management
* Migration to GNU Autotools build system
* Added more strict compilation flags
- Bug fixes
* Fixed segfault when a value is missing from ibpi_str
* Use proper format string with syslog()
* Fixed issues reported by static analysis
* Removed unused SGPIO structures
* Added udev_device reference clean-up
* Hidden ipmi error messages on non-dell platforms
-------------------------------------------------------------------
Thu Oct 10 01:40:17 UTC 2019 - heming.zhao@suse.com
- Update to version 0.92 per https://jira.suse.de/browse/SLE-6784
- v0.92 changelog
Bug fixes
* Silence warning and error messages.
- v0.91 changelog
Enhancements
* Ledmon systemd service file.
* Shared configuration between ledmon and ledctl.
* Log-level support for ledctl.
* Build label support.
* 13G/14G Dell Servers support.
* Foreground option.
Bug fixes
* Udev action handling reimplementation.
* Unify ping process method.
* Recognize volumes under reshape.
* Distinguish inactive state for volume and container.
* Fix various gcc and clang warnings.
* Fix ledctl exit status.
* Logging method reimplementation.
* Makefile fixes.
* Change outdated functions and simplify string modifications.
* Ommited errors handling.
- Drop 0001-Recognize-RAID-volume-under-reshape-as-DEVICE_TYPE_V.patch
-------------------------------------------------------------------
Tue Oct 23 02:18:22 UTC 2018 - gqjiang@suse.com
- Add a patch to fix bsc#1112539
+ 0001-Recognize-RAID-volume-under-reshape-as-DEVICE_TYPE_V.patch
-------------------------------------------------------------------
Thu Mar 8 04:50:53 UTC 2018 - zlliu@suse.com
- Update to version 0.90:
* No upstream changelog available
* spec: deprecated ledctl.conf.5.gz and rename ledmon.conf.5.gz
* add compile parameter -std=c99
- Drop 0001-fix-compilation-warnings-on-newer-gcc.patch
- bsc#1081125 and fate#322625
-------------------------------------------------------------------
Wed Dec 20 07:54:36 UTC 2017 - coolo@suse.com
- disable parallel build, it fails more often than not
-------------------------------------------------------------------
Mon Nov 27 06:46:41 UTC 2017 - zlliu@suse.com
- Update to version 0.81:
* No upstream changelog available
* add: 0001-fix-compilation-warnings-on-newer-gcc.patch
* modify spec file on demand, add libudev dependency.
* Intel has moved ledmon from Souceforge to Github.
- Drop no longer needed Makefile-error-dependency.patch
- Drop 0001-Don-t-rely-on-searching-for-block-in-sysfs-path-for-.patch
- bsc#1067452 and fate#322625
-------------------------------------------------------------------
Fri May 12 08:33:13 UTC 2017 - zlliu@suse.com
- 0001-Don-t-rely-on-searching-for-block-in-sysfs-path-for-.patch
Fixed bsc#1038655.
upstream link of this patch:
https://sourceforge.net/p/ledmon/code/ci/868a01
-------------------------------------------------------------------
Wed Mar 15 09:06:04 UTC 2017 - zlliu@suse.com
- according to requirement by bsc#1029261 and fate#321489,
Frederic suggested that it would better to add changlog
here.
-------------------------------------------------------------------
Thu Dec 29 13:36:18 UTC 2016 - mpluskal@suse.com
- Update to version 0.80:
* No upstream changelog available
* refresh Makefile-error-dependency.patch
- Drop no longer needed 0001-Recognize_bool_values_in_sysfs.patch
-------------------------------------------------------------------
Thu Jul 14 03:39:05 UTC 2016 - zlliu@suse.com
- Fix bug bsc#986779, 0001-Recognize_bool_values_in_sysfs.patch.
The type of libahci parameter ahci_em_messages was changed from
int to bool in kernel v3.13, which caused AHCI HBAs to not be
detected properly.
-------------------------------------------------------------------
Tue Jun 7 15:54:17 UTC 2016 - normand@linux.vnet.ibm.com
- update Makefile-error-dependency.patch to avoid transient error
-------------------------------------------------------------------
Tue Jul 14 07:36:02 UTC 2015 - werner@suse.de
- Let it build
-------------------------------------------------------------------
Mon Apr 20 16:56:01 UTC 2015 - mpluskal@suse.com
- Use url for source
- Cleanupt spec file with spec-cleaner
-------------------------------------------------------------------
Mon Mar 2 10:49:00 UTC 2015 - dimstar@opensuse.org
- Do not BuildRequire libsgutils2-2: pulling in the library is
responsibility of the respective -devel packages.
-------------------------------------------------------------------
Wed Sep 3 01:48:48 CEST 2014 - ro@suse.de
- sanitize release line in specfile
-------------------------------------------------------------------
Thu Dec 5 10:45:57 UTC 2013 - lzhong@suse.com
- update to version 0.79
*remove not-send-command-if-status-not-changed.patch
*remove fix-gcc-error.patch
*add Makefile-error-dependency.patch
-------------------------------------------------------------------
Tue Mar 5 10:09:43 CST 2013 - lzhong@suse.com
- Add not-send-command-if-status-not-changed.patch(bnc#794489)
-------------------------------------------------------------------
Mon Feb 4 21:54:38 CST 2013 - lzhong@suse.com
- Update version from 0.75 to latest version 0.76(fate#313626) for sles-11-sp3
-------------------------------------------------------------------
Mon Jan 14 15:06:35 CST 2013 - lzhong@suse.com
- Update version from 0.74 to latest version 0.75(fate#313626) for sles-11-sp3
-------------------------------------------------------------------
Fri Nov 16 10:15:59 CST 2012 - lzhong@suse.com
- Initial check in (fate#313626) for sles-11-sp3
-------------------------------------------------------------------
Tue Jun 21 05:08:53 UTC 2011 - xwhu@novell.com
- Initial check in (fate#311809)

84
ledmon.spec Normal file
View File

@ -0,0 +1,84 @@
#
# spec file for package ledmon
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ledmon
Version: 0.97
Release: 0
Summary: Enclosure LED Utilities
License: GPL-2.0-only AND LGPL-2.1-or-later
Group: Hardware/Other
URL: https://github.com/intel/ledmon/
Source0: https://github.com/intel/ledmon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: harden_ledmon.service.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libsgutils-devel
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(libpci)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(systemd)
Provides: sgpio:/sbin/ledmon
Provides: sgpio:/{%{_bindir}}/ledctl
%{?systemd_requires}
%description
The ledctl application and ledmon daemon are part of Intel(R) LED
ControlUtilities. They help to enable LED management for software RAID
solutions.
%prep
%autosetup -p1
%build
%define _lto_cflags %{nil}
autoreconf -fiv
%configure \
--enable-systemd=yes
%make_build
%install
%make_install
ln -sv %{_sbindir}/service \
%{buildroot}%{_sbindir}/rc%{name}
rm %{buildroot}%{_datarootdir}/doc/ledmon/README.md
%pre
%service_add_pre %{name}.service
%post
%service_add_post %{name}.service
%preun
%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
%files
%license COPYING COPYING.LIB
%doc README.md
%{_sbindir}/ledmon
%{_sbindir}/ledctl
%{_sbindir}/rcledmon
%{_unitdir}/ledmon.service
%{_mandir}/man5/ledmon.conf.5%{?ext_man}
%{_mandir}/man8/ledctl.8%{?ext_man}
%{_mandir}/man8/ledmon.8%{?ext_man}
%changelog