From efc4bf9a15e66bccbda4d48a837437b9e7be9052 Mon Sep 17 00:00:00 2001 From: dsmith Date: Wed, 15 Aug 2007 17:01:19 +0000 Subject: 2007-08-15 David Smith * 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. --- systemtap.spec.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'systemtap.spec.in') 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) -- cgit