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 940737 Details for
Bug 1146030
split out snmp agent into a subpackage
[?]
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]
Initial spec patch to split snmp functionality to sub package
389-ds-base-snmp.patch (text/plain), 3.38 KB, created by
Peter Robinson
on 2014-09-24 10:30:30 UTC
(
hide
)
Description:
Initial spec patch to split snmp functionality to sub package
Filename:
MIME Type:
Creator:
Peter Robinson
Created:
2014-09-24 10:30:30 UTC
Size:
3.38 KB
patch
obsolete
>diff --git a/389-ds-base.spec b/389-ds-base.spec >index 4d92314..0e41c9a 100644 >--- a/389-ds-base.spec >+++ b/389-ds-base.spec >@@ -25,7 +25,7 @@ > Summary: 389 Directory Server (base) > Name: 389-ds-base > Version: 1.3.3.3 >-Release: %{?relprefix}2%{?prerel}%{?dist} >+Release: %{?relprefix}3%{?prerel}%{?dist} > License: GPLv2 with exceptions > URL: http://port389.org/ > Group: System Environment/Daemons >@@ -159,6 +159,14 @@ Requires: mozldap-devel > %description devel > Development Libraries and headers for the 389 Directory Server base package. > >+%package snmp >+Summary: SNMP Agent for 389 Directory Server >+Group: System Environment/Daemons >+Requires: %{name} = %{version}-%{release} >+ >+%description snmp >+SNMP Agent for the 389 Directory Server base package. >+ > %prep > %setup -q -n %{name}-%{version}%{?prerel} > cp %{SOURCE2} README.devel >@@ -206,13 +214,10 @@ sed -i -e 's|#{{PERL-EXEC}}|#!/usr/bin/perl|' $RPM_BUILD_ROOT%{_datadir}/%{pkgna > > %post > output=/dev/null >-%systemd_post %{pkgname}-snmp.service > # reload to pick up any changes to systemd files > /bin/systemctl daemon-reload >$output 2>&1 || : > # reload to pick up any shared lib changes > /sbin/ldconfig >-# restart the snmp subagent if needed >-/bin/systemctl try-restart %{pkgname}-snmp.service > $output 2>&1 || : > # find all instances > instances="" # instances that require a restart after upgrade > ninst=0 # number of instances found in total >@@ -253,8 +258,6 @@ exit 0 > > %preun > if [ $1 -eq 0 ]; then # Final removal >- # Package removal, not upgrade >- %systemd_preun %{pkgname}-snmp.service %{groupname} > # remove instance specific service files/links > rm -rf %{_sysconfdir}/systemd/system/%{groupname}.wants/* > /dev/null 2>&1 || : > fi >@@ -265,6 +268,15 @@ if [ $1 = 0 ]; then # Final removal > rm -rf /var/run/%{pkgname} > fi > >+%post snmp >+%systemd_post %{pkgname}-snmp.service >+ >+%preun snmp >+%systemd_preun %{pkgname}-snmp.service %{groupname} >+ >+%postun snmp >+%systemd_postun_with_restart %{pkgname}-snmp.service >+ > %files > %defattr(-,root,root,-) > %doc LICENSE EXCEPTION LICENSE.GPLv2 >@@ -275,7 +287,6 @@ fi > %dir %{_sysconfdir}/systemd/system/%{groupname}.wants > %config(noreplace)%{_sysconfdir}/%{pkgname}/config/slapd-collations.conf > %config(noreplace)%{_sysconfdir}/%{pkgname}/config/certmap.conf >-%config(noreplace)%{_sysconfdir}/%{pkgname}/config/ldap-agent.conf > %config(noreplace)%{_sysconfdir}/%{pkgname}/config/template-initconfig > %config(noreplace)%{_sysconfdir}/sysconfig/%{pkgname} > %config(noreplace)%{_sysconfdir}/sysconfig/%{pkgname}.systemd >@@ -292,6 +303,8 @@ fi > %ghost %dir %{_localstatedir}/lock/%{pkgname} > %{_mandir}/man1/* > %{_mandir}/man8/* >+%exclude %{_sbindir}/ldap-agent* >+%exclude %{_mandir}/man1/ldap-agent* > > %files devel > %defattr(-,root,root,-) >@@ -307,7 +320,16 @@ fi > %{_libdir}/%{pkgname}/libslapd.so.* > %{_libdir}/%{pkgname}/libns-dshttpd.so* > >+%files snmp >+%defattr(-,root,root,-) >+%config(noreplace)%{_sysconfdir}/%{pkgname}/config/ldap-agent.conf >+%{_sbindir}/ldap-agent* >+%{_mandir}/man1/ldap-agent* >+ > %changelog >+* Sun Sep 14 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.3.3.3-3 >+- Split out snmp agent into a sub package >+ > * Sun Sep 14 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.3.3.3-2 > - Use generic 64 bit detection (fixes aarch64/ppc64le) > - PPC/s390 has lm_sensors
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 1146030
: 940737