Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 630006 Details for
Bug 850183
Introduce new systemd-rpm macros in libcgroup spec file
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch replaces scriptlets with new systemd macros
new-systemd-macros.patch (text/plain), 2.30 KB, created by
Václav Pavlín
on 2012-10-19 12:29:49 UTC
(
hide
)
Description:
Patch replaces scriptlets with new systemd macros
Filename:
MIME Type:
Creator:
Václav Pavlín
Created:
2012-10-19 12:29:49 UTC
Size:
2.30 KB
patch
obsolete
>diff --git a/libcgroup.spec b/libcgroup.spec >index 7559fc8..624fe34 100644 >--- a/libcgroup.spec >+++ b/libcgroup.spec >@@ -5,7 +5,7 @@ Name: libcgroup > Summary: Library to control and monitor control groups > Group: Development/Libraries > Version: 0.38 >-Release: 2%{?dist} >+Release: 3%{?dist} > License: LGPLv2+ > URL: http://libcg.sourceforge.net/ > Source0: http://downloads.sourceforge.net/libcg/%{name}-%{version}.tar.bz2 >@@ -18,13 +18,12 @@ BuildRequires: pam-devel > BuildRequires: byacc > BuildRequires: flex > BuildRequires: coreutils >-BuildRequires: systemd-units > Requires(pre): shadow-utils > Requires(post): chkconfig, /sbin/service > Requires(preun): /sbin/chkconfig >-Requires(post): systemd-units >-Requires(preun): systemd-units >-Requires(postun): systemd-units >+Requires(post): systemd >+Requires(preun): systemd >+Requires(postun): systemd > > %description > Control groups infrastructure. The library helps manipulate, control, >@@ -102,27 +101,13 @@ rm -rf $RPM_BUILD_ROOT > getent group cgred >/dev/null || groupadd -r cgred > > %post tools >-if [ $1 -eq 1 ] ; then >- # Initial installation >- /bin/systemctl daemon-reload >/dev/null 2>&1 || : >-fi >+%systemd_post cgconfig.service cgred.service > > %preun tools >-if [ $1 -eq 0 ] ; then >- # Package removal, not upgrade >- /bin/systemctl --no-reload disable cgconfig.service > /dev/null 2>&1 || : >- /bin/systemctl stop cgconfig.service > /dev/null 2>&1 || : >- /bin/systemctl --no-reload disable cgred.service > /dev/null 2>&1 || : >- /bin/systemctl stop cgred.service > /dev/null 2>&1 || : >-fi >+%systemd_preun cgconfig.service cgred.service > > %postun tools >-/bin/systemctl daemon-reload >/dev/null 2>&1 || : >-if [ $1 -ge 1 ] ; then >- # Package upgrade, not uninstall >- /bin/systemctl try-restart cgconfig.service >/dev/null 2>&1 || : >- /bin/systemctl try-restart cgred.service >/dev/null 2>&1 || : >-fi >+%systemd_postun_with_restart cgconfig.service cgred.service > > %triggerun -- libcgroup < 0.38 > # Save the current service runlevel info >@@ -181,6 +166,9 @@ fi > %doc COPYING INSTALL > > %changelog >+* Fri Oct 19 2012 Václav PavlÃn <vpavlin@redhat.com> - 0.38-3 >+- Scriptlets replaced with new systemd macros (#850183) >+ > * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-2 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 850183
: 630006