[packages/tini] install to /sbin
glen
glen at pld-linux.org
Mon Mar 21 20:24:37 CET 2016
commit 525e2c930d031eec24f5e216059f65c8df81e412
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Mar 21 21:24:32 2016 +0200
install to /sbin
tini.spec | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/tini.spec b/tini.spec
index b4dba4e..eba16be 100644
--- a/tini.spec
+++ b/tini.spec
@@ -6,7 +6,7 @@
Summary: A tiny but valid init process for containers
Name: tini
Version: 0.9.0
-Release: 1
+Release: 2
License: MIT
Group: Base
Source0: https://github.com/krallin/tini/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -16,6 +16,8 @@ BuildRequires: cmake
%{?with_static:BuildRequires: glibc-static}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _sbindir /sbin
+
%description
Tini is the simplest init you could think of.
@@ -79,15 +81,18 @@ rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sbindir}
+mv $RPM_BUILD_ROOT{%{_bindir}/*,%{_sbindir}}
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc LICENSE
-%attr(755,root,root) %{_bindir}/tini
+%attr(755,root,root) %{_sbindir}/tini
%files static
%defattr(644,root,root,755)
%doc LICENSE
-%attr(755,root,root) %{_bindir}/tini-static
+%attr(755,root,root) %{_sbindir}/tini-static
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tini.git/commitdiff/525e2c930d031eec24f5e216059f65c8df81e412
More information about the pld-cvs-commit
mailing list