-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5dbf924
commit 5be4d01
Showing
1 changed file
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
|
||
Name: sb-signtool | ||
Version: 1.0 | ||
Release: 1%{?dist} | ||
Group: System Environment/Kernel | ||
Release: 2%{?dist} | ||
Group: System/Kernel and hardware | ||
Summary: Script to sign kernel modules and systemd service to run during boot. | ||
|
||
URL: https://github.com/aneesh-neelam/UEFI-SecureBoot-SignTool | ||
|
@@ -24,21 +24,52 @@ Essentially, it is a wrapper around the sign-file binary in the kernel sources. | |
The systemd service can be enabled to automatically sign specific kernel modules with user's own once setup is complete. | ||
|
||
%prep | ||
%setup -q | ||
%autosetup | ||
|
||
%build | ||
|
||
%install | ||
mkdir -p %{buildroot}/%{_bindir} | ||
install -m 0755 %{name}-sign %{buildroot}/%{_bindir}/%{name}-sign | ||
mkdir -p %{buildroot}/%{_docdir}/sb-signtool | ||
mkdir -p %{buildroot}/usr/lib/systemd/system | ||
mkdir -p %{buildroot}/%{_sysconfdir}/sb-signtool/keyfiles | ||
|
||
install -m 644 usr/bin/sb-signtool-sign %{buildroot}/usr/bin/ | ||
install -m 644 etc/sb-signtool/modules.conf %{buildroot}/%{_sysconfdir}/sb-signtool/ | ||
install -m 644 etc/sb-signtool/mok.rc %{buildroot}/%{_sysconfdir}/sb-signtool/ | ||
install -m 644 usr/share/doc/sb-signtool/example_modules.conf %{buildroot}/usr/share/doc/sb-signtool/ | ||
install -m 644 usr/lib/systemd/system/sb-signtool.service %{buildroot}/usr/lib/systemd/system/ | ||
chmod a+x %{buildroot}/usr/bin/sb-signtool-sign | ||
touch %{buildroot}/%{_sysconfdir}/sb-signtool/keyfiles/sb.priv | ||
touch %{buildroot}/%{_sysconfdir}/sb-signtool/keyfiles/sb_pub.der | ||
|
||
%post | ||
%systemd_post sb-signtool.service | ||
|
||
%preun | ||
%systemd_preun sb-signtool.service | ||
|
||
%postun | ||
%systemd_postun_with_restart sb-signtool.service | ||
|
||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%license usr/share/doc/sb-signtool/LICENSE | ||
%doc usr/share/doc/sb-signtool/README.md | ||
%{_bindir}/%{name}-sign | ||
%{_docdir}/sb-signtool/ | ||
%config(noreplace) %{_sysconfdir}/sb-signtool/modules.conf | ||
%config(noreplace) %{_sysconfdir}/sb-signtool/mok.rc | ||
%config(noreplace) %{_sysconfdir}/sb-signtool/keyfiles/sb.priv | ||
%config(noreplace) %{_sysconfdir}/sb-signtool/keyfiles/sb_pub.der | ||
/usr/lib/systemd/system/sb-signtool.service | ||
|
||
|
||
%changelog | ||
|
||
* Sat Sep 30 2017 Unitedrpms Project <unitedrpms AT protonmail DOT com> 1.0-2 | ||
- Config changes | ||
- Upstream | ||
|
||
* Tue Jul 11 2017 Aneesh Neelam <[email protected]> | ||
- Initial version of the package |