summaryrefslogtreecommitdiffstats
path: root/systemtap.spec.in
diff options
context:
space:
mode:
authordsmith <dsmith>2007-08-15 17:01:19 +0000
committerdsmith <dsmith>2007-08-15 17:01:19 +0000
commitefc4bf9a15e66bccbda4d48a837437b9e7be9052 (patch)
tree134356a87ae04182f8a499709e4074402d5775f0 /systemtap.spec.in
parent6b96de1e54f6cae4b7d0e9196a665ba44995314c (diff)
downloadsystemtap-steved-efc4bf9a15e66bccbda4d48a837437b9e7be9052.tar.gz
systemtap-steved-efc4bf9a15e66bccbda4d48a837437b9e7be9052.tar.xz
systemtap-steved-efc4bf9a15e66bccbda4d48a837437b9e7be9052.zip
2007-08-15 David Smith <dsmith@redhat.com>
* systemtap.spec.in: Updated %pre to latest Fedora group creation guidelines. * stap.1.in: Changed '/usr' to '@prefix@' so the values will be updated correctly. * stapfunc.5.in: Ditto.
Diffstat (limited to 'systemtap.spec.in')
-rw-r--r--systemtap.spec.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/systemtap.spec.in b/systemtap.spec.in
index ead918ec..2f927a30 100644
--- a/systemtap.spec.in
+++ b/systemtap.spec.in
@@ -60,6 +60,7 @@ Requires: glib2 >= 2.0.0
Requires: gcc make
# Suggest: kernel-debuginfo
Requires: systemtap-runtime = %{version}-%{release}
+Requires(pre): shadow-utils
%if %{bundled_elfutils}
Source1: elfutils-%{elfutils_version}.tar.gz
@@ -147,10 +148,9 @@ make check %{?elfutils_mflags} || :
rm -rf ${RPM_BUILD_ROOT}
%pre
-if [ $1 -eq 1 ]; then
- groupadd -r stapdev >/dev/null 2>&1 || :
- groupadd -r stapusr >/dev/null 2>&1 || :
-fi
+getent group stapdev >/dev/null || groupadd -r stapdev
+getent group stapusr >/dev/null || groupadd -r stapusr
+exit 0
%files
%defattr(-,root,root)