forked from pool/pesign
Accepting request 932763 from Base:System
- Enable build on riscv64 - Change to systemd-sysusers OBS-URL: https://build.opensuse.org/request/show/932763 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pesign?expand=0&rev=40
This commit is contained in:
commit
eda39dd14b
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 11 10:54:08 UTC 2021 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
- Enable build on riscv64
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 9 15:01:59 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||||
|
|
||||||
|
- Change to systemd-sysusers
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 19 05:58:37 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
Tue Oct 19 05:58:37 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
14
pesign.spec
14
pesign.spec
@ -24,6 +24,7 @@ License: GPL-3.0-or-later
|
|||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
URL: https://github.com/rhinstaller/pesign
|
URL: https://github.com/rhinstaller/pesign
|
||||||
Source: https://github.com/rhinstaller/pesign/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
Source: https://github.com/rhinstaller/pesign/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
||||||
|
Source1: pesign.sysusers
|
||||||
# PATCH-FIX-SUSE pesign-suse-build.patch glin@suse.com -- Adjust Makefile for the build service
|
# PATCH-FIX-SUSE pesign-suse-build.patch glin@suse.com -- Adjust Makefile for the build service
|
||||||
Patch1: pesign-suse-build.patch
|
Patch1: pesign-suse-build.patch
|
||||||
# PATCH-FIX-UPSTREAM pesign-privkey_unneeded.diff glin@suse.com -- Don't check the private key when importing the raw signature
|
# PATCH-FIX-UPSTREAM pesign-privkey_unneeded.diff glin@suse.com -- Don't check the private key when importing the raw signature
|
||||||
@ -46,10 +47,11 @@ BuildRequires: libuuid-devel
|
|||||||
BuildRequires: mozilla-nss-devel
|
BuildRequires: mozilla-nss-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: popt-devel
|
BuildRequires: popt-devel
|
||||||
|
BuildRequires: sysuser-tools
|
||||||
BuildRequires: pkgconfig(systemd)
|
BuildRequires: pkgconfig(systemd)
|
||||||
Requires(pre): shadow
|
%sysusers_requires
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
ExclusiveArch: ia64 %ix86 x86_64 aarch64 %arm
|
ExclusiveArch: ia64 %ix86 x86_64 aarch64 %arm riscv64
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Signing tool for PE-COFF binaries. It is vaguely compliant
|
Signing tool for PE-COFF binaries. It is vaguely compliant
|
||||||
@ -68,6 +70,7 @@ with the PE and Authenticode specifications.
|
|||||||
%patch9 -p1
|
%patch9 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%sysusers_generate_pre %{SOURCE1} %{name} %{name}.conf
|
||||||
make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="${LDFLAGS} -pie"
|
make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="${LDFLAGS} -pie"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -86,9 +89,9 @@ ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|||||||
rm -rf %{buildroot}/boot %{buildroot}%{_prefix}/include
|
rm -rf %{buildroot}/boot %{buildroot}%{_prefix}/include
|
||||||
rm -rf %{buildroot}%{_libdir}/libdpe*
|
rm -rf %{buildroot}%{_libdir}/libdpe*
|
||||||
|
|
||||||
%pre
|
install -Dm0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf
|
||||||
getent group pesign >/dev/null || groupadd -r pesign
|
|
||||||
getent passwd pesign >/dev/null || useradd -r -g pesign -d %{_localstatedir}/lib/pesign -s /bin/false -c "PE-COFF signing daemon" pesign
|
%pre -f %{name}.pre
|
||||||
%service_add_pre pesign.service
|
%service_add_pre pesign.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
@ -120,6 +123,7 @@ systemd-tmpfiles --create %{_tmpfilesdir}/pesign.conf || :
|
|||||||
%{_mandir}/man?/*
|
%{_mandir}/man?/*
|
||||||
%{_localstatedir}/lib/pesign
|
%{_localstatedir}/lib/pesign
|
||||||
%{_unitdir}/pesign.service
|
%{_unitdir}/pesign.service
|
||||||
|
%{_sysusersdir}/pesign.conf
|
||||||
%{_tmpfilesdir}/pesign.conf
|
%{_tmpfilesdir}/pesign.conf
|
||||||
%dir %{_libexecdir}/pesign
|
%dir %{_libexecdir}/pesign
|
||||||
%{_libexecdir}/pesign/pesign-authorize
|
%{_libexecdir}/pesign/pesign-authorize
|
||||||
|
2
pesign.sysusers
Normal file
2
pesign.sysusers
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#Type Name ID GECOS Home directory Shell
|
||||||
|
u pesign - "PE-COFF signing daemon" /var/lib/pesign -
|
Loading…
x
Reference in New Issue
Block a user