summaryrefslogtreecommitdiffstats
path: root/systemtap.spec
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-02-02 16:00:01 -0500
committerDave Brolley <brolley@redhat.com>2009-02-02 16:00:01 -0500
commitd777f0978faec5ee006deb83a15dec707e920c01 (patch)
treed3014c81bf9bb89785fda9028292826065b100e8 /systemtap.spec
parentf9cf4e363d1372324bf83ca7fc0531319975cb18 (diff)
parent0d65057a8a8b418568a18eb394d3e57f5a8051a5 (diff)
downloadsystemtap-steved-d777f0978faec5ee006deb83a15dec707e920c01.tar.gz
systemtap-steved-d777f0978faec5ee006deb83a15dec707e920c01.tar.xz
systemtap-steved-d777f0978faec5ee006deb83a15dec707e920c01.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Conflicts: ChangeLog NEWS
Diffstat (limited to 'systemtap.spec')
-rw-r--r--systemtap.spec40
1 files changed, 40 insertions, 0 deletions
diff --git a/systemtap.spec b/systemtap.spec
index 2586b85a..be00fa98 100644
--- a/systemtap.spec
+++ b/systemtap.spec
@@ -116,6 +116,16 @@ Requires: systemtap
%description sdt-devel
Support tools to allow applications to use static probes.
+%package initscript
+Summary: Systemtap Initscript
+Group: Development/System
+License: GPLv2+
+URL: http://sourceware.org/systemtap/
+Requires: systemtap-runtime, initscripts
+
+%description initscript
+Initscript for Systemtap scripts.
+
%prep
%setup -q %{?setup_elfutils}
@@ -203,6 +213,15 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/*.pdf docs.installed/
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/tapsets docs.installed/
%endif
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d/
+install -m 755 initscript/systemtap $RPM_BUILD_ROOT%{_sysconfdir}/init.d/
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/conf.d
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/script.d
+install -m 644 initscript/config $RPM_BUILD_ROOT%{_sysconfdir}/systemtap
+mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/systemtap
+mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/systemtap
+
%clean
rm -rf ${RPM_BUILD_ROOT}
@@ -211,6 +230,15 @@ getent group stapdev >/dev/null || groupadd -r stapdev
getent group stapusr >/dev/null || groupadd -r stapusr
exit 0
+%post initscript
+chkconfig --add systemtap
+exit 0
+
+%preun initscript
+chkconfig --del systemtap
+exit 0
+
+
%files
%defattr(-,root,root)
@@ -276,6 +304,18 @@ exit 0
%{_bindir}/dtrace
%{_includedir}/sys/sdt.h
+%files initscript
+%defattr(-,root,root)
+%{_sysconfdir}/init.d/systemtap
+%dir %{_sysconfdir}/systemtap
+%dir %{_sysconfdir}/systemtap/conf.d
+%dir %{_sysconfdir}/systemtap/script.d
+%config(noreplace) %{_sysconfdir}/systemtap/config
+%dir %{_localstatedir}/cache/systemtap
+%dir %{_localstatedir}/run/systemtap
+%doc initscript/README.initscript
+
+
%changelog
* Thu Nov 13 2008 Frank Ch. Eigler <fche@redhat.com> - 0.8-1
- Upstream release.