summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaq2001-07-25 16:30:59 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commitbb4301dad382032aa470a956638d4b72e737a520 (patch)
tree804c03b5d3e8af3f74cec9049434f98367bb4320
parent6d9adbc8ce55fd91f082a530ff666fdcd43f90df (diff)
downloadpsacct-bb4301dad382032aa470a956638d4b72e737a520.zip
psacct-bb4301dad382032aa470a956638d4b72e737a520.tar.gz
- use macros in %{pre,post}{,un}
- need rebuilt rpm (with new macros.pld) to build these Changed files: psacct.spec -> 1.38
-rw-r--r--psacct.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/psacct.spec b/psacct.spec
index 74e79e7..5a55bc0 100644
--- a/psacct.spec
+++ b/psacct.spec
@@ -50,7 +50,7 @@ gzip -9nf ChangeLog NEWS
rm -rf $RPM_BUILD_ROOT
%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%fix_info_dir
/usr/sbin/accton &>/dev/null
echo "Type \"/usr/sbin/actton /var/account/pacct\" to run accounting."
touch /var/account/{pacct,usracct,savacct}
@@ -62,7 +62,7 @@ if [ "$1" = "0" ]; then
fi
%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%fix_info_dir
%files
%defattr(644,root,root,755)