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 613625 Details for
Bug 850119
Introduce new systemd-rpm macros in freeradius 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.92 KB, created by
Václav Pavlín
on 2012-09-17 10:31:56 UTC
(
hide
)
Description:
Patch replaces scriptlets with new systemd macros
Filename:
MIME Type:
Creator:
Václav Pavlín
Created:
2012-09-17 10:31:56 UTC
Size:
1.92 KB
patch
obsolete
>diff --git a/freeradius.spec b/freeradius.spec >index 1f18038..88fed9d 100644 >--- a/freeradius.spec >+++ b/freeradius.spec >@@ -1,7 +1,7 @@ > Summary: High-performance and highly configurable free RADIUS server > Name: freeradius > Version: 2.1.12 >-Release: 10%{?dist} >+Release: 11%{?dist} > License: GPLv2+ and LGPLv2+ > Group: System Environment/Daemons > URL: http://www.freeradius.org/ >@@ -265,9 +265,8 @@ getent passwd radiusd >/dev/null || /usr/sbin/useradd -r -g radiusd -u 95 -c "r > exit 0 > > %post >+%systemd_post radiusd.service > if [ $1 -eq 1 ]; then # install >- # Initial installation >- /bin/systemctl daemon-reload >/dev/null 2>&1 || : > if [ ! -e /etc/raddb/certs/server.pem ]; then > /sbin/runuser -g radiusd -c 'umask 007; /etc/raddb/certs/bootstrap' > /dev/null 2>&1 > fi >@@ -275,18 +274,11 @@ fi > exit 0 > > %preun >-if [ $1 -eq 0 ] ; then >- # Package removal, not upgrade >- /bin/systemctl --no-reload disable radiusd.service > /dev/null 2>&1 || : >- /bin/systemctl stop radiusd.service > /dev/null 2>&1 || : >-fi >+%systemd_preun radiusd.service > > %postun >-/bin/systemctl daemon-reload >/dev/null 2>&1 || : >-if [ $1 -ge 1 ] ; then >- # Package upgrade, not uninstall >- /bin/systemctl try-restart radiusd.service >/dev/null 2>&1 || : >-elif [ $1 -eq 0 ]; then # uninstall >+%systemd_postun_with_restart radiusd.service >+if [ $1 -eq 0 ]; then # uninstall > getent passwd radiusd >/dev/null && /usr/sbin/userdel radiusd > /dev/null 2>&1 > getent group radiusd >/dev/null && /usr/sbin/groupdel radiusd > /dev/null 2>&1 > fi >@@ -601,6 +593,9 @@ exit 0 > %{_libdir}/freeradius/rlm_sql_unixodbc-%{version}.so > > %changelog >+* Mon Sep 17 2012 Václav PavlÃn <vpavlin@redhat.com> - 2.1.12-11 >+- Scriptlets replaced with new systemd macros (#850119) >+ > * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.12-10 > - 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 850119
: 613625