2018-09-21 11:22:57 +02:00
|
|
|
#
|
|
|
|
# spec file for package sedutil
|
|
|
|
#
|
2018-09-28 10:05:08 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2018-09-28 10:05:08 +02:00
|
|
|
|
2018-09-21 11:22:57 +02:00
|
|
|
%define _dracutmodulesdir %{_libexecdir}/dracut/modules.d
|
|
|
|
Name: sedutil
|
|
|
|
Version: 1.15.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Tools to manage the activation and use of self encrypting drives
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: System/Management
|
|
|
|
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
|
2018-09-28 10:05:08 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: ncurses-devel
|
2018-09-21 11:22:57 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Patch: kernel_nvme_header.patch
|
2018-09-28 10:05:08 +02:00
|
|
|
ExclusiveArch: x86_64
|
2018-09-21 11:22:57 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Drive Trust Alliance software (sedutil) is an Open Source (GPLv3)
|
|
|
|
effort to make Self Encrypting Drive technology freely available to
|
|
|
|
everyone. It is a combination of the two known available Open Source
|
|
|
|
code bases today: msed and OpalTool.
|
|
|
|
|
|
|
|
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
|
|
|
|
%patch -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
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}/
|
|
|
|
|
|
|
|
%post
|
|
|
|
%postun
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.md Common/Copyright.txt Common/ReadMe.txt linux/PSIDRevert_LINUX.txt
|
|
|
|
%license Common/LICENSE.txt
|
|
|
|
%{_mandir}/man8/sedutil-cli.8*
|
|
|
|
%{_sbindir}/sedutil-cli
|
|
|
|
%{_sbindir}/linuxpba
|
|
|
|
%dir %{_libexecdir}/dracut
|
|
|
|
%dir %{_libexecdir}/dracut/modules.d
|
|
|
|
%dir %{_dracutmodulesdir}/00sedutil/
|
|
|
|
%{_dracutmodulesdir}/00sedutil/module-setup.sh
|
|
|
|
%{_dracutmodulesdir}/00sedutil/linuxpba.sh
|
|
|
|
%{_sbindir}/sedutil-pba.pl
|
|
|
|
|
|
|
|
%changelog
|