!17 更新版本至0.2
From: @anatas Reviewed-by: @snoweay,@snoweay Signed-off-by: @snoweay
This commit is contained in:
commit
2bfa184517
BIN
nvwa-v0.1.tar.gz
BIN
nvwa-v0.1.tar.gz
Binary file not shown.
BIN
nvwa-v0.2.tar.gz
Normal file
BIN
nvwa-v0.2.tar.gz
Normal file
Binary file not shown.
19
nvwa.spec
19
nvwa.spec
@ -1,6 +1,6 @@
|
|||||||
Name: nvwa
|
Name: nvwa
|
||||||
Version: 0.1
|
Version: 0.2
|
||||||
Release: 3
|
Release: 1
|
||||||
Summary: a tool used for openEuler kernel update
|
Summary: a tool used for openEuler kernel update
|
||||||
|
|
||||||
License: MulanPSL-2.0 and Apache-2.0 and MIT and MPL-2.0
|
License: MulanPSL-2.0 and Apache-2.0 and MIT and MPL-2.0
|
||||||
@ -27,7 +27,7 @@ cd src
|
|||||||
go build -mod=vendor -buildmode=pie
|
go build -mod=vendor -buildmode=pie
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
cd tools
|
cd tools/pin
|
||||||
gcc %{name}-pin.c -o %{name}-pin -fstack-protector-all -fPIE -pie -Wl,-z,noexecstack,-z,relo,-z,now
|
gcc %{name}-pin.c -o %{name}-pin -fstack-protector-all -fPIE -pie -Wl,-z,noexecstack,-z,relo,-z,now
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
@ -41,17 +41,21 @@ mkdir -p %{buildroot}/var/%{name}
|
|||||||
mkdir -p %{buildroot}/var/%{name}/running
|
mkdir -p %{buildroot}/var/%{name}/running
|
||||||
|
|
||||||
install -m 0750 %{_builddir}/%{name}-v%{version}/src/%{name} %{buildroot}/%{_bindir}/
|
install -m 0750 %{_builddir}/%{name}-v%{version}/src/%{name} %{buildroot}/%{_bindir}/
|
||||||
install -m 0750 %{_builddir}/%{name}-v%{version}/tools/%{name}-pin %{buildroot}/%{_bindir}/
|
install -m 0750 %{_builddir}/%{name}-v%{version}/tools/pin/%{name}-pin %{buildroot}/%{_bindir}/
|
||||||
install -m 0640 %{_builddir}/%{name}-v%{version}/config/%{name}-restore.yaml %{buildroot}/etc/%{name}/
|
install -m 0640 %{_builddir}/%{name}-v%{version}/src/config/%{name}-restore.yaml %{buildroot}/etc/%{name}/
|
||||||
install -m 0640 %{_builddir}/%{name}-v%{version}/config/%{name}-server.yaml %{buildroot}/etc/%{name}/
|
install -m 0640 %{_builddir}/%{name}-v%{version}/src/config/%{name}-server.yaml %{buildroot}/etc/%{name}/
|
||||||
|
|
||||||
install -m 0750 %{_builddir}/%{name}-v%{version}/misc/%{name}-pre.sh %{buildroot}/%{_bindir}/
|
install -m 0750 %{_builddir}/%{name}-v%{version}/misc/%{name}-pre.sh %{buildroot}/%{_bindir}/
|
||||||
install -m 0644 %{_builddir}/%{name}-v%{version}/misc/%{name}.service %{buildroot}/usr/lib/systemd/system
|
install -m 0644 %{_builddir}/%{name}-v%{version}/misc/%{name}.service %{buildroot}/usr/lib/systemd/system
|
||||||
install -m 0644 %{_builddir}/%{name}-v%{version}/misc/%{name}-pre.service %{buildroot}/usr/lib/systemd/system
|
install -m 0644 %{_builddir}/%{name}-v%{version}/misc/%{name}-pre.service %{buildroot}/usr/lib/systemd/system
|
||||||
|
|
||||||
|
install -d $RPM_BUILD_ROOT/usr/share/bash-completion/completions
|
||||||
|
install -p -m 0644 %{_builddir}/%{name}-v%{version}/completion/nvwa %{buildroot}/usr/share/bash-completion/completions/nvwa
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post %{name}.service
|
%systemd_post %{name}.service
|
||||||
%systemd_post %{name}-pre.service
|
%systemd_post %{name}-pre.service
|
||||||
|
source /usr/share/bash-completion/completions/nvwa
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun %{name}.service
|
%systemd_preun %{name}.service
|
||||||
@ -69,11 +73,14 @@ install -m 0644 %{_builddir}/%{name}-v%{version}/misc/%{name}-pre.service %{buil
|
|||||||
/etc/%{name}/%{name}-server.yaml
|
/etc/%{name}/%{name}-server.yaml
|
||||||
/usr/lib/systemd/system/%{name}.service
|
/usr/lib/systemd/system/%{name}.service
|
||||||
/usr/lib/systemd/system/%{name}-pre.service
|
/usr/lib/systemd/system/%{name}-pre.service
|
||||||
|
/usr/share/bash-completion/completions/nvwa
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_bindir}/%{name}-pin
|
%{_bindir}/%{name}-pin
|
||||||
%{_bindir}/%{name}-pre.sh
|
%{_bindir}/%{name}-pre.sh
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri 30 Jul 2021 anatasluo <luolongjun@huawei.com>
|
||||||
|
- Update to 0.2
|
||||||
* Fri 19 Mar 2021 snoweay <snoweay@163.com> - 0.1-3
|
* Fri 19 Mar 2021 snoweay <snoweay@163.com> - 0.1-3
|
||||||
- Add secure compile args
|
- Add secure compile args
|
||||||
* Thu 18 Mar 2021 anatasluo <luolongjun@huawei.com>
|
* Thu 18 Mar 2021 anatasluo <luolongjun@huawei.com>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user