[util-linux] 2.24.2-2: use systemd scriptlets
kzak
kzak at fedoraproject.org
Wed May 7 10:29:19 UTC 2014
commit d9d58da0e7085d35e81b2107a9ec3e672eba0fb5
Author: Karel Zak <kzak at redhat.com>
Date: Wed May 7 12:29:27 2014 +0200
2.24.2-2: use systemd scriptlets
util-linux.spec | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/util-linux.spec b/util-linux.spec
index 9c32fa3..c381d78 100644
--- a/util-linux.spec
+++ b/util-linux.spec
@@ -2,7 +2,7 @@
Summary: A collection of basic system utilities
Name: util-linux
Version: 2.24.2
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain
Group: System Environment/Base
URL: http://en.wikipedia.org/wiki/Util-linux
@@ -398,6 +398,7 @@ useradd -r -g uuidd -d /var/lib/libuuid -s /sbin/nologin \
-c "UUID generator helper daemon" uuidd
exit 0
+# Please, keep uuidd running after installation!
%post -n uuidd
if [ $1 -eq 1 ]; then
# Package install,
@@ -411,10 +412,10 @@ else
fi
%preun -n uuidd
-if [ "$1" = 0 ]; then
- /bin/systemctl stop uuidd.service > /dev/null 2>&1 || :
- /bin/systemctl disable uuidd.service > /dev/null 2>&1 || :
-fi
+%systemd_preun uuidd.service
+
+%postun
+%systemd_postun_with_restart uuidd.service
%files -f %{name}.files
@@ -807,6 +808,9 @@ fi
%{_libdir}/python*/site-packages/libmount/*
%changelog
+* Wed May 7 2014 Karel Zak <kzak at redhat.com> 2.24.2-2
+- use systemd macroized scriptlets (#850355)
+
* Thu Apr 24 2014 Karel Zak <kzak at redhat.com> 2.24.2-1
- upgrade to stable release 2.24.2
ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.24/v2.24.2-ReleaseNotes
More information about the scm-commits
mailing list