- move ldconfig to libs subrpm
This commit is contained in:
parent
69137c933f
commit
88efedfe73
@ -3,7 +3,7 @@
|
|||||||
Summary: A collection of SNMP protocol tools and libraries.
|
Summary: A collection of SNMP protocol tools and libraries.
|
||||||
Name: net-snmp
|
Name: net-snmp
|
||||||
Version: 5.1.2
|
Version: 5.1.2
|
||||||
Release: 6
|
Release: 7
|
||||||
License: BSDish
|
License: BSDish
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://net-snmp.sourceforge.net/net-snmp-%{version}.tar.gz
|
Source0: ftp://net-snmp.sourceforge.net/net-snmp-%{version}.tar.gz
|
||||||
@ -234,7 +234,6 @@ find $RPM_BUILD_ROOT -name '*.so' | xargs chmod 0755
|
|||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
|
||||||
/sbin/chkconfig --add snmpd
|
/sbin/chkconfig --add snmpd
|
||||||
/sbin/chkconfig --add snmptrapd
|
/sbin/chkconfig --add snmptrapd
|
||||||
|
|
||||||
@ -249,12 +248,15 @@ if [ $1 = 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
|
||||||
if [ "$1" -ge "1" ]; then
|
if [ "$1" -ge "1" ]; then
|
||||||
service snmpd condrestart >/dev/null 2>&1 || :
|
service snmpd condrestart >/dev/null 2>&1 || :
|
||||||
service snmptrapd condrestart >/dev/null 2>&1 || :
|
service snmptrapd condrestart >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%post libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
|
||||||
@ -302,6 +304,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_libdir}/*.la
|
%{_libdir}/*.la
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 22 2004 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
|
- move ldconfig post/postun to libs subrpm
|
||||||
|
|
||||||
* Wed Sep 15 2004 Phil Knirsch <pknirsch@redhat.com> 5.1.2-6
|
* Wed Sep 15 2004 Phil Knirsch <pknirsch@redhat.com> 5.1.2-6
|
||||||
- Split out libs package for multilib compatibility
|
- Split out libs package for multilib compatibility
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user