forked from pool/systemtap
- Fix for Bug 710291 - systemtap: fails rpmlint check non-ghost-in-var-run
OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=33
This commit is contained in:
parent
cb083f3ca2
commit
1268408de2
2
stap-server.conf
Normal file
2
stap-server.conf
Normal file
@ -0,0 +1,2 @@
|
||||
# Systemtap-server needs some files in /var/run
|
||||
d /var/run/stap-server 0755 root root -
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 19 08:38:29 UTC 2011 - tonyj@novell.com
|
||||
|
||||
- Fix for Bug 710291 - systemtap: fails rpmlint check non-ghost-in-var-run
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 2 15:11:31 UTC 2011 - idoenmez@novell.com
|
||||
|
||||
|
@ -36,6 +36,8 @@ Url: http://sourceware.org/systemtap/
|
||||
%define package_version %{version}
|
||||
%endif
|
||||
Source: ftp://sources.redhat.com/pub/systemtap/snapshots/systemtap-%{package_version}.tar.bz2
|
||||
Source2: README-BEFORE-ADDING-PATCHES
|
||||
Source3: stap-server.conf
|
||||
# need -docdir patch even though docs are packaged by systemtap-docs.spec
|
||||
# so that they are installed into directories matching below rm -rf's
|
||||
Patch1: systemtap-docdir-fix.diff
|
||||
@ -122,9 +124,11 @@ rm -rf $RPM_BUILD_ROOT%{_mandir}/man3
|
||||
mkdir -p $RPM_BUILD_ROOT%{_docdir}/systemtap/
|
||||
cp COPYING $RPM_BUILD_ROOT%{_docdir}/systemtap/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/systemtap
|
||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/systemtap
|
||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log
|
||||
touch $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server.log
|
||||
# config file for stap-server (/var/run now on tmpfs)
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
|
||||
install -m 644 %SOURCE3 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
|
||||
|
||||
%clean
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
@ -139,7 +143,6 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%{_datadir}/%{name}/tapset
|
||||
#packaged by systemtap-initscript in upstream
|
||||
%dir %{_localstatedir}/cache/systemtap
|
||||
%dir %{_localstatedir}/run/systemtap
|
||||
|
||||
%files runtime
|
||||
%defattr(-,root,root)
|
||||
@ -167,6 +170,8 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
|
||||
%files server
|
||||
%defattr(-,root,root)
|
||||
%dir /usr/lib/tmpfiles.d
|
||||
/usr/lib/tmpfiles.d/stap-server.conf
|
||||
%{_bindir}/stap-authorize-server-cert
|
||||
%{_bindir}/stap-server
|
||||
%{_libexecdir}/%{name}/stap-serverd
|
||||
@ -180,6 +185,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%{_mandir}/man8/stap-server.8*
|
||||
%{_mandir}/man8/stap-authorize-server-cert.8*
|
||||
%ghost %{_localstatedir}/log/stap-server.log
|
||||
%ghost %dir %{_localstatedir}/run/stap-server
|
||||
|
||||
%files sdt-devel
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user