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 663001 Details for
Bug 850298
Introduce new systemd-rpm macros in rpcbind 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
macro.patch (text/plain), 2.15 KB, created by
Lukáš Nykrýn
on 2012-12-13 14:30:15 UTC
(
hide
)
Description:
Patch replaces scriptlets with new systemd macros
Filename:
MIME Type:
Creator:
Lukáš Nykrýn
Created:
2012-12-13 14:30:15 UTC
Size:
2.15 KB
patch
obsolete
>diff --git a/rpcbind.spec b/rpcbind.spec >index e71a94a..f2f1425 100644 >--- a/rpcbind.spec >+++ b/rpcbind.spec >@@ -1,6 +1,6 @@ > Name: rpcbind > Version: 0.2.0 >-Release: 20%{?dist} >+Release: 21%{?dist} > Summary: Universal Addresses to RPC Program Number Mapper > Group: System Environment/Daemons > License: BSD >@@ -19,9 +19,9 @@ Conflicts: man-pages < 2.43-12 > BuildRequires: automake, autoconf, libtool, systemd-units > BuildRequires: libtirpc-devel, quota-devel, tcp_wrappers-devel > Requires(pre): coreutils shadow-utils >-Requires(post): chkconfig systemd-units systemd-sysv >-Requires(preun): systemd-units >-Requires(postun): systemd-units coreutils >+Requires(post): chkconfig systemd systemd-sysv >+Requires(preun): systemd >+Requires(postun): systemd coreutils > > Provides: portmap = %{version}-%{release} > Obsoletes: portmap <= 4.0-65.3 >@@ -92,27 +92,18 @@ if [ -z "$rpcid" -o "$rpcid" != "32" ]; then > -M -s /sbin/nologin -u 32 rpc > /dev/null 2>&1 > fi > %post >-if [ $1 -eq 1 ] ; then >- # Initial installation >- /bin/systemctl enable rpcbind.service >/dev/null 2>&1 || : >-fi >+%systemd_post rpcbind.service > > %preun >+%systemd_preun rpcbind.service > if [ $1 -eq 0 ]; then >- # Package removal, not upgrade >- /bin/systemctl --no-reload disable rpcbind.service >/dev/null 2>&1 || : >- /bin/systemctl stop rpcbind.service >/dev/null 2>&1 || : > /usr/sbin/userdel rpc 2>/dev/null || : > /usr/sbin/groupdel rpc 2>/dev/null || : > rm -rf /var/lib/rpcbind > fi > > %postun >-/bin/systemctl daemon-reload >/dev/null 2>&1 || : >-if [ $1 -ge 1 ]; then >- # Package upgrade, not uninstall >- /bin/systemctl try-restart rpcbind.service >/dev/null 2>&1 || : >-fi >+%systemd_postun_with_restart rpcbind.service > > %triggerun -- rpcbind < 0.2.0-15 > %{_bindir}/systemd-sysv-convert --save rpcbind >/dev/null 2>&1 ||: >@@ -133,6 +124,9 @@ fi > %dir %attr(700,rpc,rpc) /var/lib/rpcbind > > %changelog >+* Thu Dec 13 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 0.2.0-21 >+- Scriptlets replaced with new systemd macros (#850298) >+ > * Tue Oct 23 2012 Steve Dickson <steved@redhat.com> - 0.2.0-20 > - Update to the latest upstream release: rpcbind-0_2_1-rc4 (bz 869365) >
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 850298
: 663001