2018-09-21 11:22:57 +02:00
|
|
|
#
|
|
|
|
# spec file for package sedutil
|
|
|
|
#
|
2022-12-05 08:11:50 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-09-21 11:22:57 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-28 11:44:32 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-09-21 11:22:57 +02:00
|
|
|
#
|
|
|
|
|
2018-09-28 10:05:08 +02:00
|
|
|
|
2020-08-20 05:35:26 +02:00
|
|
|
%define _dracutmodulesdir %{_prefix}/lib/dracut/modules.d
|
2018-09-21 11:22:57 +02:00
|
|
|
Name: sedutil
|
2022-12-05 08:11:50 +01:00
|
|
|
Version: 1.20.0
|
2018-09-21 11:22:57 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Tools to manage the activation and use of self encrypting drives
|
2018-09-28 11:44:32 +02:00
|
|
|
License: GPL-3.0-or-later
|
2018-09-21 11:22:57 +02:00
|
|
|
Group: System/Management
|
2022-12-05 08:11:50 +01:00
|
|
|
URL: https://github.com/Drive-Trust-Alliance/sedutil/wiki
|
2018-09-28 10:05:08 +02:00
|
|
|
Source0: https://github.com/Drive-Trust-Alliance/%{name}/archive/%{version}.tar.gz
|
2018-09-21 11:22:57 +02:00
|
|
|
Source1: module-setup.sh
|
|
|
|
Source2: linuxpba.sh
|
|
|
|
Source3: sedutil-pba.pl
|
2022-12-05 08:11:50 +01:00
|
|
|
Patch0: kernel_nvme_header.patch
|
2018-09-28 10:05:08 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
ExclusiveArch: x86_64
|
2018-09-21 11:22:57 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
sedutil is a Self-Encrypting Drive (SED) management program and
|
|
|
|
Pre-Boot Authorization (PBA) image that will allow the activation and
|
|
|
|
use of self encrypting drives that comply with the Trusted Computing
|
|
|
|
Group Opal 2.0 SSC.
|
|
|
|
|
|
|
|
This package provides the sedutil-cli and linuxpba binaries, but not
|
|
|
|
the PBA image itself.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2022-12-05 08:11:50 +01:00
|
|
|
%patch0 -p1
|
2018-09-21 11:22:57 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
2022-12-05 08:11:50 +01:00
|
|
|
%make_build
|
2018-09-21 11:22:57 +02:00
|
|
|
|
|
|
|
%install
|
2022-12-05 08:11:50 +01:00
|
|
|
%make_install
|
2018-09-21 11:22:57 +02:00
|
|
|
|
2020-08-20 05:35:26 +02:00
|
|
|
install -m 0755 -d %{buildroot}%{_dracutmodulesdir}/00sedutil/
|
|
|
|
install -m 0755 %{SOURCE1} %{buildroot}%{_dracutmodulesdir}/00sedutil/
|
|
|
|
install -m 0755 %{SOURCE2} %{buildroot}%{_dracutmodulesdir}/00sedutil/
|
|
|
|
install -m 0755 %{SOURCE3} %{buildroot}%{_sbindir}/
|
2018-09-21 11:22:57 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md Common/Copyright.txt Common/ReadMe.txt linux/PSIDRevert_LINUX.txt
|
|
|
|
%license Common/LICENSE.txt
|
2022-12-05 08:11:50 +01:00
|
|
|
%{_mandir}/man8/sedutil-cli.8%{?ext_man}
|
2018-09-21 11:22:57 +02:00
|
|
|
%{_sbindir}/sedutil-cli
|
|
|
|
%{_sbindir}/linuxpba
|
2020-08-20 05:35:26 +02:00
|
|
|
%dir %{_prefix}/lib/dracut
|
|
|
|
%dir %{_dracutmodulesdir}
|
2018-09-21 11:22:57 +02:00
|
|
|
%dir %{_dracutmodulesdir}/00sedutil/
|
|
|
|
%{_dracutmodulesdir}/00sedutil/module-setup.sh
|
|
|
|
%{_dracutmodulesdir}/00sedutil/linuxpba.sh
|
|
|
|
%{_sbindir}/sedutil-pba.pl
|
|
|
|
|
|
|
|
%changelog
|