add support of lm_sensors v3 Resolves: #351991

This commit is contained in:
Jan Šafránek 2007-11-14 14:30:41 +00:00
parent ac80096944
commit e4531699f5
2 changed files with 1334 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
Summary: A collection of SNMP protocol tools and libraries
Name: net-snmp
Version: %{major_ver}
Release: 5%{?dist}
Release: 6%{?dist}
Epoch: 1
License: BSD and CMU
@ -37,6 +37,7 @@ Patch12: net-snmp-5.4.1-hostname.patch
Patch13: net-snmp-5.4.1-shared-ip.patch
Patch14: net-snmp-5.4-exec-crash.patch
Patch15: net-snmp-5.1.2-snmpconf-selinux.patch
Patch16: net-snmp-5.4.1-sensors3.patch
Requires(pre): /sbin/chkconfig
Requires(post): /sbin/chkconfig
@ -163,6 +164,7 @@ and applications.
%patch13 -p1 -b .shared-ip
%patch14 -p1 -b .exec
%patch15 -p1 -b .selinux
%patch16 -p0 -b .sensors
# Do this patch with a perl hack...
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
@ -178,13 +180,13 @@ MIBS="host agentx smux \
ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable \
ip-mib/ipAddressPrefixTable/ipAddressPrefixTable"
%ifnarch s390 s390x
MIBS="$MIBS ucd-snmp/lmSensors"
MIBS="$MIBS ucd-snmp/lmsensorsMib"
%endif
%configure \
--enable-static --enable-shared \
--with-cflags="$RPM_OPT_FLAGS" \
--with-ldflags="$LDFLAGS -lcrypto" \
--with-ldflags="$LDFLAGS -lcrypto -lsensors" \
--with-sys-location="Unknown" \
--with-logfile="/var/log/snmpd.log" \
--with-persistent-directory="/var/net-snmp" \
@ -375,6 +377,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_libdir}/lib*.so.*
%changelog
* Wed Nov 14 2007 Jan Safranek <jsafranek@redhat.com> 5.4.1-6
- add support of lm_sensors v3
* Thu Oct 25 2007 Jan Safranek <jsafranek@redhat.com> 5.4.1-5
- move mib2c-update from net-snmp-utils to net-snmp-perl, where
mib2c is located