auto-import changelog data from net-snmp-5.1-8.src.rpm
Thu Jan 29 2004 Phil Knirsch <pknirsch@redhat.com> 5.1-8 - Quite a bit of specfile cleanup from Marius FERARU. Thu Jan 22 2004 Thomas Woerner <twoerner@redhat.com> 5.1-7 - enabled pie (snmpd, snmptrapd) - postponed for ia64 - added --with-pic to configure call Thu Jan 15 2004 Phil Knirsch <pknirsch@redhat.com> 5.1-6 - Fixed 64bit build problems when 32bit popt lib is installed. Tue Jan 13 2004 Phil Knirsch <pknirsch@redhat.com> 5.1-5 - rebuilt Sun Jan 11 2004 Florian La Roche <Florian.LaRoche@redhat.de> 5.1-4 - rebuild for new rpm
This commit is contained in:
parent
275d65c37e
commit
e68ddac2af
@ -3,7 +3,7 @@
|
||||
Summary: A collection of SNMP protocol tools and libraries.
|
||||
Name: net-snmp
|
||||
Version: 5.1
|
||||
Release: 2.1
|
||||
Release: 8
|
||||
License: BSDish
|
||||
Group: System Environment/Daemons
|
||||
Source0: ftp://net-snmp.sourceforge.net/net-snmp-%{version}.tar.gz
|
||||
@ -25,6 +25,7 @@ Patch10: net-snmp-5.1-getopt.patch
|
||||
Patch11: net-snmp-5.1-xs-label-iid.patch
|
||||
Patch12: net-snmp-5.1-async-getnext.patch
|
||||
Patch13: net-snmp-5.1-hr_storage-mbuf-v2.patch
|
||||
Patch14: net-snmp-5.1-pie.patch
|
||||
Prereq: /sbin/chkconfig
|
||||
Obsoletes: ucd-snmp
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
@ -35,11 +36,10 @@ BuildPrereq: lm_sensors-devel
|
||||
%if %{tcp_wrappers}
|
||||
BuildPrereq: tcp_wrappers
|
||||
%endif
|
||||
BuildPrereq: perl, coreutils, grep, sed, findutils
|
||||
|
||||
#%define __libtoolize /bin/true
|
||||
|
||||
%{expand: %%define _includedir %{_includedir}/%{name}}
|
||||
|
||||
%description
|
||||
SNMP (Simple Network Management Protocol) is a protocol used for
|
||||
network management. The NET-SNMP project includes various SNMP tools:
|
||||
@ -52,6 +52,9 @@ documentation, etc.
|
||||
You will probably also want to install the net-snmp-utils package,
|
||||
which contains NET-SNMP utilities.
|
||||
|
||||
Building option:
|
||||
--without tcp_wrappers : disable tcp_wrappers support
|
||||
|
||||
%package utils
|
||||
Group: Applications/System
|
||||
Summary: Network management utilities using SNMP, from the NET-SNMP project.
|
||||
@ -111,11 +114,17 @@ Install the net-snmp-perl package, if you want to use mib2c or SNMP with perl.
|
||||
%patch11 -p1 -b .xs-label-iid
|
||||
%patch12 -p1 -b .async-getnext
|
||||
%patch13 -p1 -b .hr_storage-mbuf-v2
|
||||
%ifnarch ia64
|
||||
%patch14 -p1 -b .pie
|
||||
%endif
|
||||
|
||||
# Do this patch with a perl hack...
|
||||
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
|
||||
|
||||
%build
|
||||
%ifarch ia64 x86_64 s390x ppc64
|
||||
export LDFLAGS="-L%{_libdir}"
|
||||
%endif
|
||||
%configure \
|
||||
--enable-static --enable-shared \
|
||||
--with-cflags="$RPM_OPT_FLAGS" \
|
||||
@ -124,11 +133,12 @@ perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
|
||||
--with-persistent-directory="/var/net-snmp" \
|
||||
--with-mib-modules="host agentx smux" \
|
||||
%if %{tcp_wrappers}
|
||||
--with-libwrap=/usr/lib \
|
||||
--with-libwrap=%{_libdir} \
|
||||
%endif
|
||||
--sysconfdir=%{_sysconfdir} \
|
||||
--enable-ipv6 \
|
||||
--enable-ucd-snmp-compatibility \
|
||||
--with-pic \
|
||||
--with-sys-contact="root@localhost" <<EOF
|
||||
|
||||
|
||||
@ -149,9 +159,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/snmp
|
||||
install -m 644 %SOURCE1 ${RPM_BUILD_ROOT}%{_sysconfdir}/snmp/snmpd.conf
|
||||
|
||||
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d
|
||||
install -m 755 %SOURCE2 ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d/snmpd
|
||||
install -m 755 %SOURCE3 ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d/snmptrapd
|
||||
install -d ${RPM_BUILD_ROOT}%{_initrddir}
|
||||
install -m 755 %SOURCE2 ${RPM_BUILD_ROOT}%{_initrddir}/snmpd
|
||||
install -m 755 %SOURCE3 ${RPM_BUILD_ROOT}%{_initrddir}/snmptrapd
|
||||
|
||||
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
||||
install -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/snmpd
|
||||
@ -221,14 +231,13 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%doc local/passtest local/README.mib2c local/ipf-mod.pl
|
||||
%dir %{_sysconfdir}/snmp
|
||||
%config(noreplace,missingok) %{_sysconfdir}/snmp/snmpd.conf
|
||||
%config(noreplace) %{_sysconfdir}/rc.d/init.d/snmpd
|
||||
%config(noreplace) %{_sysconfdir}/rc.d/init.d/snmptrapd
|
||||
%config(noreplace) %{_initrddir}/snmpd
|
||||
%config(noreplace) %{_initrddir}/snmptrapd
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/snmpd
|
||||
%{_datadir}/snmp
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_bindir}/ucd5820stat
|
||||
%{_sbindir}/snmpd
|
||||
%{_sbindir}/snmptrapd
|
||||
%{_sbindir}/*
|
||||
%attr(0644,root,root) %{_mandir}/man[58]/*
|
||||
|
||||
%files utils
|
||||
@ -237,44 +246,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%{_bindir}/fixproc
|
||||
%{_bindir}/ipf-mod.pl
|
||||
%{_bindir}/encode_keychange
|
||||
%{_bindir}/snmpbulkget
|
||||
%{_bindir}/snmpbulkwalk
|
||||
%{_bindir}/snmpconf
|
||||
%{_bindir}/snmpdelta
|
||||
%{_bindir}/snmpdf
|
||||
%{_bindir}/snmpget
|
||||
%{_bindir}/snmpgetnext
|
||||
%{_bindir}/snmpinform
|
||||
%{_bindir}/snmpnetstat
|
||||
%{_bindir}/snmpset
|
||||
%{_bindir}/snmpstatus
|
||||
%{_bindir}/snmptable
|
||||
%{_bindir}/snmptest
|
||||
%{_bindir}/snmptranslate
|
||||
%{_bindir}/snmptrap
|
||||
%{_bindir}/snmpusm
|
||||
%{_bindir}/snmpwalk
|
||||
%{_bindir}/snmpvacm
|
||||
%{_bindir}/snmp*
|
||||
%{_bindir}/traptoemail
|
||||
%attr(0644,root,root) %{_mandir}/man1/mib2c.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpbulkwalk.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpbulkget.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpcmd.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpdelta.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpdf.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpget.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpgetnext.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpinform.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpnetstat.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpset.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpstatus.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmptable.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmptest.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmptranslate.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmptrap.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpusm.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpwalk.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmpvacm.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/snmp*.1*
|
||||
|
||||
%files devel
|
||||
%defattr(0644,root,root,0755)
|
||||
@ -282,18 +256,31 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%{_libdir}/*.a
|
||||
%{_libdir}/*.la
|
||||
%{_includedir}
|
||||
/usr/include/ucd-snmp
|
||||
%attr(0644,root,root) %{_mandir}/man3/*.3.*
|
||||
%attr(0755,root,root) %{_bindir}/net-snmp-config
|
||||
|
||||
%files perl -f perl.lst
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/mib2c
|
||||
%attr(0644,root,root) %{_mandir}/man1/mib2c.1*
|
||||
%attr(0644,root,root) %{_mandir}/man3/*.3pm.*
|
||||
|
||||
%changelog
|
||||
* Thu Dec 11 2003 Phil Knirsch <pknirsch@redhat.com> 5.1-2.1
|
||||
- Built Fedora Core 1 update.
|
||||
* Thu Jan 29 2004 Phil Knirsch <pknirsch@redhat.com> 5.1-8
|
||||
- Quite a bit of specfile cleanup from Marius FERARU.
|
||||
|
||||
* Thu Jan 22 2004 Thomas Woerner <twoerner@redhat.com> 5.1-7
|
||||
- enabled pie (snmpd, snmptrapd) - postponed for ia64
|
||||
- added --with-pic to configure call
|
||||
|
||||
* Thu Jan 15 2004 Phil Knirsch <pknirsch@redhat.com> 5.1-6
|
||||
- Fixed 64bit build problems when 32bit popt lib is installed.
|
||||
|
||||
* Tue Jan 13 2004 Phil Knirsch <pknirsch@redhat.com> 5.1-5
|
||||
- rebuilt
|
||||
|
||||
* Sun Jan 11 2004 Florian La Roche <Florian.LaRoche@redhat.de> 5.1-4
|
||||
- rebuild for new rpm
|
||||
|
||||
* Wed Dec 10 2003 Phil Knirsch <pknirsch@redhat.com> 5.1-3
|
||||
- Removed snmpcheck again, needs perl(Tk) which we don't ship (#111194).
|
||||
|
Loading…
Reference in New Issue
Block a user