2012-06-21 13:33:06 +00:00
|
|
|
Summary: Signing utility for UEFI binaries
|
|
|
|
Name: pesign
|
2013-05-21 17:42:50 +00:00
|
|
|
Version: 0.106
|
2013-08-04 02:23:08 +00:00
|
|
|
Release: 2%{?dist}
|
2012-06-21 13:33:06 +00:00
|
|
|
Group: Development/System
|
|
|
|
License: GPLv2
|
|
|
|
URL: https://github.com/vathpela/pesign
|
2012-10-22 14:32:14 +00:00
|
|
|
BuildRequires: git gnu-efi nspr nss nss-util popt-devel
|
2012-10-19 15:26:15 +00:00
|
|
|
BuildRequires: coolkey opensc nss-tools
|
2012-10-22 14:32:14 +00:00
|
|
|
BuildRequires: nspr-devel >= 4.9.2-1
|
|
|
|
BuildRequires: nss-devel >= 3.13.6-1
|
2012-10-19 15:26:15 +00:00
|
|
|
Requires: nspr nss nss-util popt rpm coolkey opensc
|
2012-10-13 00:11:57 +00:00
|
|
|
Requires(pre): shadow-utils
|
2012-06-27 13:12:37 +00:00
|
|
|
ExclusiveArch: i686 x86_64 ia64
|
2012-06-22 20:18:39 +00:00
|
|
|
|
2012-06-21 13:33:06 +00:00
|
|
|
# there is no tarball at github, of course. To get this version do:
|
|
|
|
# git clone https://github.com/vathpela/pesign.git
|
|
|
|
# git checkout %%{version}
|
2012-08-08 13:39:35 +00:00
|
|
|
Source0: pesign-%{version}.tar.bz2
|
|
|
|
Source1: rh-test-certs.tar.bz2
|
2012-06-21 13:33:06 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the pesign utility for signing UEFI binaries as
|
|
|
|
well as other associated tools.
|
|
|
|
|
|
|
|
%prep
|
2012-08-08 13:39:35 +00:00
|
|
|
%setup -q -a 1
|
2012-06-21 13:33:06 +00:00
|
|
|
git init
|
|
|
|
git config user.email "pesign-owner@fedoraproject.org"
|
|
|
|
git config user.name "Fedora Ninjas"
|
|
|
|
git add .
|
|
|
|
git commit -a -q -m "%{version} baseline."
|
|
|
|
git am %{patches} </dev/null
|
|
|
|
|
|
|
|
%build
|
2012-06-22 15:39:18 +00:00
|
|
|
make PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
2012-06-21 13:33:06 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
2012-10-18 16:59:28 +00:00
|
|
|
make PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} \
|
2013-02-06 14:37:05 +00:00
|
|
|
install
|
|
|
|
%if 0%{?rhel} >= 7 || 0%{?fedora} >= 17
|
|
|
|
make PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} \
|
|
|
|
install_systemd
|
|
|
|
%endif
|
2012-06-21 13:33:06 +00:00
|
|
|
|
|
|
|
# there's some stuff that's not really meant to be shipped yet
|
2012-10-13 00:24:33 +00:00
|
|
|
rm -rf %{buildroot}/boot %{buildroot}/usr/include
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libdpe*
|
2012-08-08 13:39:35 +00:00
|
|
|
mv rh-test-certs/etc/pki/pesign/* %{buildroot}/etc/pki/pesign/
|
2012-06-21 13:33:06 +00:00
|
|
|
|
2012-10-19 23:56:45 +00:00
|
|
|
#modutil -force -dbdir %{buildroot}/etc/pki/pesign -add coolkey \
|
|
|
|
# -libfile %{_libdir}/pkcs11/libcoolkeypk11.so
|
2013-05-20 20:26:54 +00:00
|
|
|
modutil -force -dbdir %{buildroot}/etc/pki/pesign -add opensc \
|
|
|
|
-libfile %{_libdir}/pkcs11/opensc-pkcs11.so
|
2012-10-19 15:26:15 +00:00
|
|
|
|
2012-06-21 13:33:06 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2012-10-13 00:11:57 +00:00
|
|
|
%pre
|
|
|
|
getent group pesign >/dev/null || groupadd -r pesign
|
|
|
|
getent passwd pesign >/dev/null || \
|
|
|
|
useradd -r -g pesign -d /var/run/pesign -s /sbin/nologin \
|
|
|
|
-c "Group for the pesign signing daemon" pesign
|
|
|
|
exit 0
|
|
|
|
|
2013-02-06 14:37:05 +00:00
|
|
|
%if 0%{?rhel} >= 7 || 0%{?fedora} >= 17
|
2012-10-13 00:11:57 +00:00
|
|
|
%post
|
|
|
|
%systemd_post pesign.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun pesign.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart pesign.service
|
2013-02-06 14:37:05 +00:00
|
|
|
%endif
|
2012-10-13 00:11:57 +00:00
|
|
|
|
2012-06-21 13:33:06 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README TODO COPYING
|
|
|
|
%{_bindir}/pesign
|
2012-10-13 00:11:57 +00:00
|
|
|
%{_bindir}/pesign-client
|
2013-02-04 19:26:55 +00:00
|
|
|
%{_bindir}/efikeygen
|
2012-06-21 13:33:06 +00:00
|
|
|
%{_sysconfdir}/popt.d/pesign.popt
|
2012-08-13 19:42:07 +00:00
|
|
|
%{_sysconfdir}/rpm/macros.pesign
|
2012-06-22 20:18:39 +00:00
|
|
|
%{_mandir}/man*/*
|
2012-10-17 13:59:14 +00:00
|
|
|
%dir %attr(0775,pesign,pesign) /etc/pki/pesign
|
|
|
|
%attr(0664,pesign,pesign) /etc/pki/pesign/*
|
2012-10-13 00:11:57 +00:00
|
|
|
%dir %attr(0770, pesign, pesign) %{_localstatedir}/run/%{name}
|
|
|
|
%ghost %attr(0660, -, -) %{_localstatedir}/run/%{name}/socket
|
|
|
|
%ghost %attr(0660, -, -) %{_localstatedir}/run/%{name}/pesign.pid
|
2013-02-06 14:37:05 +00:00
|
|
|
%if 0%{?rhel} >= 7 || 0%{?fedora} >= 17
|
|
|
|
%{_prefix}/lib/tmpfiles.d/pesign.conf
|
|
|
|
%{_unitdir}/pesign.service
|
|
|
|
%endif
|
2012-06-21 13:33:06 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-08-04 02:23:08 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.106-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-05-21 17:42:50 +00:00
|
|
|
* Tue May 21 2013 Peter Jones <pjones@redhat.com> - 0.106-1
|
|
|
|
- Update to 0.106
|
|
|
|
- Hopefully fix the segfault dgilmore was seeing.
|
|
|
|
|
2013-05-20 20:27:28 +00:00
|
|
|
* Mon May 20 2013 Peter Jones <pjones@redhat.com> - 0.105-1
|
|
|
|
- Various bug fixes.
|
|
|
|
|
2013-05-16 14:42:43 +00:00
|
|
|
* Wed May 15 2013 Peter Jones <pjones@redhat.com> - 0.104-1
|
|
|
|
- Make sure alignment is correct on signature list entries
|
|
|
|
Resolves: rhbz#963361
|
|
|
|
- Make sure section alignment is correct if we have to extend the file
|
|
|
|
|
2013-02-06 14:37:05 +00:00
|
|
|
* Wed Feb 06 2013 Peter Jones <pjones@redhat.com> - 0.103-2
|
|
|
|
- Conditionalize systemd bits so they don't show up in RHEL 6 builds
|
|
|
|
|
2013-02-05 20:26:33 +00:00
|
|
|
* Tue Feb 05 2013 Peter Jones <pjones@redhat.com> - 0.103-1
|
|
|
|
- One more compiler problem. Let's expect a few more, shall we?
|
|
|
|
|
2013-02-05 15:45:23 +00:00
|
|
|
* Tue Feb 05 2013 Peter Jones <pjones@redhat.com> - 0.102-1
|
|
|
|
- Don't use --std=gnu11 because we have to work on RHEL 6 builders.
|
|
|
|
|
2013-02-04 19:05:57 +00:00
|
|
|
* Mon Feb 04 2013 Peter Jones <pjones@redhat.com> - 0.101-1
|
|
|
|
- Update to 0.101 to fix more "pesign -E" issues.
|
|
|
|
|
2012-11-30 22:09:31 +00:00
|
|
|
* Fri Nov 30 2012 Peter Jones <pjones@redhat.com> - 0.100-1
|
|
|
|
- Fix insertion of signatures from a file.
|
|
|
|
|
2012-11-27 00:38:34 +00:00
|
|
|
* Mon Nov 26 2012 Matthew Garrett <mjg59@srcf.ucam.org> - 0.99-9
|
|
|
|
- Add a patch needed for new shim builds
|
|
|
|
|
2012-10-19 23:19:24 +00:00
|
|
|
* Fri Oct 19 2012 Peter Jones <pjones@redhat.com> - 0.99-8
|
|
|
|
- Get the Fedora signing token name right.
|
|
|
|
|
2012-10-19 15:26:15 +00:00
|
|
|
* Fri Oct 19 2012 Peter Jones <pjones@redhat.com>
|
|
|
|
- Add coolkey and opensc modules to pki database during %%install.
|
|
|
|
|
2012-10-19 14:24:10 +00:00
|
|
|
* Fri Oct 19 2012 Peter Jones <pjones@redhat.com> - 0.99-7
|
|
|
|
- setfacl u:kojibuilder:rw /var/run/pesign/socket
|
|
|
|
- Fix command line checking in client
|
|
|
|
- Add client stdin pin reading.
|
|
|
|
|
2012-10-18 19:18:31 +00:00
|
|
|
* Thu Oct 18 2012 Peter Jones <pjones@redhat.com> - 0.99-6
|
|
|
|
- Automatically select daemon as signer when using rpm macros.
|
|
|
|
|
2012-10-18 17:12:46 +00:00
|
|
|
* Thu Oct 18 2012 Peter Jones <pjones@redhat.com> - 0.99-5
|
|
|
|
- Make it work on the -el6 branch as well.
|
|
|
|
|
2012-10-18 15:38:53 +00:00
|
|
|
* Wed Oct 17 2012 Peter Jones <pjones@redhat.com> - 0.99-4
|
|
|
|
- Fix some more bugs found by valgrind and coverity.
|
|
|
|
- Don't build utils/ ; we're not using them and they're not ready anyway.
|
|
|
|
|
2012-10-17 14:37:36 +00:00
|
|
|
* Wed Oct 17 2012 Peter Jones <pjones@redhat.com> - 0.99-3
|
|
|
|
- Fix daemon startup bug from 0.99-2
|
|
|
|
|
2012-10-17 13:59:14 +00:00
|
|
|
* Wed Oct 17 2012 Peter Jones <pjones@redhat.com> - 0.99-2
|
|
|
|
- Fix various bugs from 0.99-1
|
|
|
|
- Don't make the database unreadable just yet.
|
|
|
|
|
2012-10-15 22:08:59 +00:00
|
|
|
* Mon Oct 15 2012 Peter Jones <pjones@redhat.com> - 0.99-1
|
|
|
|
- Update to 0.99
|
|
|
|
- Add documentation for client/server mode.
|
|
|
|
- Add --pinfd and --pinfile to server mode.
|
|
|
|
|
2012-10-13 00:11:57 +00:00
|
|
|
* Fri Oct 12 2012 Peter Jones <pjones@redhat.com> - 0.98-1
|
|
|
|
- Update to 0.98
|
|
|
|
- Add client/server mode.
|
|
|
|
|
2012-10-01 15:28:56 +00:00
|
|
|
* Mon Oct 01 2012 Peter Jones <pjones@redhat.com> - 0.10-5
|
|
|
|
- Fix missing section address fixup.
|
|
|
|
|
2012-08-15 15:42:25 +00:00
|
|
|
* Wed Aug 15 2012 Peter Jones <pjones@redhat.com> - 0.10-4
|
|
|
|
- Make macros.pesign even better (and make it work right for i686 packages)
|
|
|
|
|
2012-08-14 19:46:35 +00:00
|
|
|
* Tue Aug 14 2012 Peter Jones <pjones@redhat.com> - 0.10-3
|
|
|
|
- Only sign things on x86_64; all else ignore gracefully.
|
|
|
|
|
2012-08-14 18:31:05 +00:00
|
|
|
* Tue Aug 14 2012 Peter Jones <pjones@redhat.com> - 0.10-2
|
|
|
|
- Make macros.pesign more reliable
|
|
|
|
|
2012-08-13 19:42:07 +00:00
|
|
|
* Mon Aug 13 2012 Peter Jones <pjones@redhat.com> - 0.10-1
|
|
|
|
- Update to 0.10
|
|
|
|
- Include rpm macros to support easy custom signing of signed packages.
|
|
|
|
|
2012-08-10 20:42:18 +00:00
|
|
|
* Fri Aug 10 2012 Peter Jones <pjones@redhat.com> - 0.9-1
|
|
|
|
- Update to 0.9
|
|
|
|
- Bug fix from Gary Ching-Pang Lin
|
|
|
|
- Support NSS Token selection for use with smart cards.
|
|
|
|
|
2012-08-08 15:25:42 +00:00
|
|
|
* Wed Aug 08 2012 Peter Jones <pjones@redhat.com> - 0.8-1
|
|
|
|
- Update to 0.8
|
|
|
|
- Don't open the db read-write
|
|
|
|
- Fix permissions on keystore (everybody can sign with test keys)
|
|
|
|
|
2012-08-08 13:39:35 +00:00
|
|
|
* Wed Aug 08 2012 Peter Jones <pjones@redhat.com> - 0.7-2
|
|
|
|
- Include test keys.
|
|
|
|
|
2012-07-30 19:45:20 +00:00
|
|
|
* Mon Jul 30 2012 Peter Jones <pjones@redhat.com> - 0.7-1
|
|
|
|
- Update to 0.7
|
|
|
|
- Better fix for MS compatibility.
|
|
|
|
|
2012-07-30 19:04:01 +00:00
|
|
|
* Mon Jul 30 2012 Peter Jones <pjones@redhat.com> - 0.6-1
|
|
|
|
- Update to 0.6
|
|
|
|
- Bug-for-bug compatibility with signtool.exe .
|
|
|
|
|
2012-07-20 23:04:24 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-11 19:06:04 +00:00
|
|
|
* Wed Jul 11 2012 Peter Jones <pjones@redhat.com> - 0.5-1
|
|
|
|
- Rebase to 0.5
|
|
|
|
- Do more rigorous bounds checking when hashing a new binary.
|
|
|
|
|
2012-07-10 20:04:33 +00:00
|
|
|
* Tue Jul 10 2012 Peter Jones <pjones@redhat.com> - 0.3-2
|
|
|
|
- Rebase to 0.4
|
|
|
|
|
2012-06-22 20:18:39 +00:00
|
|
|
* Fri Jun 22 2012 Peter Jones <pjones@redhat.com> - 0.3-2
|
|
|
|
- Move man page to a more reasonable place.
|
|
|
|
|
2012-06-22 15:39:18 +00:00
|
|
|
* Fri Jun 22 2012 Peter Jones <pjones@redhat.com> - 0.3-1
|
|
|
|
- Update to upstream's 0.3 .
|
|
|
|
|
2012-06-21 15:04:53 +00:00
|
|
|
* Thu Jun 21 2012 Peter Jones <pjones@redhat.com> - 0.2-4
|
|
|
|
- Do not build with smp flags.
|
|
|
|
|
2012-06-21 14:55:08 +00:00
|
|
|
* Thu Jun 21 2012 Peter Jones <pjones@redhat.com> - 0.2-3
|
|
|
|
- Make it build on i686, though it's unclear it'll ever be necessary.
|
|
|
|
|
2012-06-21 13:46:54 +00:00
|
|
|
* Thu Jun 21 2012 Peter Jones <pjones@redhat.com> - 0.2-2
|
|
|
|
- Fix compile problem with f18's compiler.
|
|
|
|
|
2012-06-21 13:33:06 +00:00
|
|
|
* Thu Jun 21 2012 Peter Jones <pjones@redhat.com> - 0.2-1
|
|
|
|
- Fix some rpmlint complaints nirik pointed out
|
|
|
|
- Add popt-devel build dep
|
|
|
|
|
|
|
|
* Fri Jun 15 2012 Peter Jones <pjones@redhat.com> - 0.1-1
|
|
|
|
- First version of SRPM.
|