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 606860 Details for
Bug 850039
Introduce new systemd-rpm macros in autodir 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), 1.78 KB, created by
Václav Pavlín
on 2012-08-24 13:43:51 UTC
(
hide
)
Description:
Patch replaces scriptlets with new systemd macros
Filename:
MIME Type:
Creator:
Václav Pavlín
Created:
2012-08-24 13:43:51 UTC
Size:
1.78 KB
patch
obsolete
>diff --git a/autodir.spec b/autodir.spec >index 8209496..7e11018 100644 >--- a/autodir.spec >+++ b/autodir.spec >@@ -1,7 +1,7 @@ > Summary: Creates user directories on demand > Name: autodir > Version: 0.99.9 >-Release: 14%{?dist} >+Release: 15%{?dist} > License: GPLv2+ > Group: System Environment/Daemons > URL: http://www.intraperson.com/autodir/ >@@ -56,27 +56,16 @@ install -D -m 0644 %{SOURCE4} \ > %{buildroot}%{_sysconfdir}/sysconfig/* > > %post >-if [ $1 -eq 1 ] ; then >- # Initial installation >- /bin/systemctl daemon-reload >/dev/null 2>&1 || : >-fi >+%systemd_post autogroup.service >+%systemd_post autohome.service > > %preun >-if [ $1 -eq 0 ] ; then >- # Package removal, not upgrade >- /bin/systemctl --no-reload disable autogroup.service > /dev/null 2>&1 || : >- /bin/systemctl --no-reload disable autohome.service > /dev/null 2>&1 || : >- /bin/systemctl stop autogroup.service > /dev/null 2>&1 || : >- /bin/systemctl stop autohome.service > /dev/null 2>&1 || : >-fi >+%systemd_preun autogroup.service >+%systemd_preun autohome.service > > %postun >-/bin/systemctl daemon-reload >/dev/null 2>&1 || : >-if [ $1 -ge 1 ] ; then >- # Package upgrade, not uninstall >- /bin/systemctl try-restart autogroup.service >/dev/null 2>&1 || : >- /bin/systemctl try-restart autohome.service >/dev/null 2>&1 || : >-fi >+%systemd_postun_with_restart autogroup.service >+%systemd_postun_with_restart autohome.service > > %triggerun -- autodir < 0.99.9-12 > # Save the current service runlevel info >@@ -103,6 +92,9 @@ fi > %exclude %{_libdir}/autodir/*.la > > %changelog >+* Fri Aug 24 2012 Václav PavlÃn <vpavlin@redhat.com> - 0.99.9-15 >+- Scriptlets replaced with new systemd macros (#850039) >+ > * Fri Aug 17 2012 Tom Callaway <spot@fedoraproject.org> - 0.99.9-14 > - fix ftbfs (setpriority needs explicit headers in modern glibc) >
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 850039
: 606860