diff --git a/systemtap.changes b/systemtap.changes index 48bbb7d..5561357 100644 --- a/systemtap.changes +++ b/systemtap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 23 14:30:33 CET 2011 - aj@suse.de + +- Create tmpfiles during new install. + ------------------------------------------------------------------- Wed Nov 2 10:54:26 CET 2011 - jslaby@suse.de diff --git a/systemtap.spec b/systemtap.spec index 4861c0b..066fa49 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -21,6 +21,7 @@ Name: systemtap BuildRequires: gcc-c++ glib2-devel libcap-devel libebl-devel pkg-config sqlite-devel BuildRequires: mozilla-nspr-devel mozilla-nss-devel mozilla-nss-tools +BuildRequires: systemd License: GPLv2+ Version: 1.6 Release: 8 @@ -53,6 +54,7 @@ License: GPLv2+ Group: Development/Tools/Debuggers Summary: Systemtap server Requires: %{name} = %{version}-%{release} +Requires(post): /bin/systemd-tmpfiles # dependancies for systemtap shell scripts Requires: coreutils avahi avahi-utils mozilla-nss-tools zip unzip @@ -100,6 +102,10 @@ install -m 644 %SOURCE3 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d %clean rm -rf ${RPM_BUILD_ROOT} +%post server +# Create tmpfiles +/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/stap-server.conf + %files %defattr(-,root,root) %{_bindir}/stap