default snmptrapd.conf added Resolves: #243536

This commit is contained in:
Jan Šafránek 2007-06-25 13:27:41 +00:00
parent 7573a412ff
commit 8b2dfcc94b
2 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,5 @@
# Example configuration file for snmptrapd
#
# No traps are handled by default, you must edit this file!
#
# traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold

View File

@ -21,6 +21,7 @@ Source4: net-snmpd.logrotate
Source5: ucd5820stat Source5: ucd5820stat
Source6: net-snmp-config.h Source6: net-snmp-config.h
Source7: net-snmp-config Source7: net-snmp-config
Source8: net-snmp-trapd.redhat.conf
Patch1: ucd-snmp-4.2.4.pre3-mnttab.patch Patch1: ucd-snmp-4.2.4.pre3-mnttab.patch
#Patch2: net-snmp-5.0.6-libtool.patch #Patch2: net-snmp-5.0.6-libtool.patch
Patch2: net-snmp-5.0.8-ipv6-sock-close.patch Patch2: net-snmp-5.0.8-ipv6-sock-close.patch
@ -51,12 +52,12 @@ Requires(preun): /bin/rm
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssl-devel, bzip2-devel, beecrypt-devel, elfutils-devel BuildRequires: openssl-devel, bzip2-devel, beecrypt-devel, elfutils-devel
BuildRequires: libselinux-devel, elfutils-libelf-devel BuildRequires: libselinux-devel, elfutils-libelf-devel
BuildRequires: perl-devel #BuildRequires: perl-devel
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
BuildRequires: lm_sensors-devel BuildRequires: lm_sensors-devel
%endif %endif
%if %{tcp_wrappers} %if %{tcp_wrappers}
BuildRequires: tcp_wrappers-devel #BuildRequires: tcp_wrappers-devel
%endif %endif
BuildRequires: perl, coreutils, grep, sed, findutils BuildRequires: perl, coreutils, grep, sed, findutils
@ -239,6 +240,7 @@ rm ${RPM_BUILD_ROOT}%{_libdir}/*.la
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/snmp install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/snmp
install -m 644 %SOURCE1 ${RPM_BUILD_ROOT}%{_sysconfdir}/snmp/snmpd.conf install -m 644 %SOURCE1 ${RPM_BUILD_ROOT}%{_sysconfdir}/snmp/snmpd.conf
install -m 644 %SOURCE8 ${RPM_BUILD_ROOT}%{_sysconfdir}/snmp/snmptrapd.conf
install -d ${RPM_BUILD_ROOT}%{_initrddir} install -d ${RPM_BUILD_ROOT}%{_initrddir}
install -m 755 %SOURCE2 ${RPM_BUILD_ROOT}%{_initrddir}/snmpd install -m 755 %SOURCE2 ${RPM_BUILD_ROOT}%{_initrddir}/snmpd
@ -325,6 +327,7 @@ rm -rf ${RPM_BUILD_ROOT}
%{_initrddir}/snmptrapd %{_initrddir}/snmptrapd
%config(noreplace) %{_sysconfdir}/logrotate.d/snmpd %config(noreplace) %{_sysconfdir}/logrotate.d/snmpd
%config(noreplace,missingok) %{_sysconfdir}/snmp/snmpd.conf %config(noreplace,missingok) %{_sysconfdir}/snmp/snmpd.conf
%config(noreplace,missingok) %{_sysconfdir}/snmp/snmptrapd.conf
%{_datadir}/snmp %{_datadir}/snmp
%{_bindir}/ucd5820stat %{_bindir}/ucd5820stat
%{_sbindir}/* %{_sbindir}/*
@ -371,6 +374,7 @@ rm -rf ${RPM_BUILD_ROOT}
- fix snmptrapd hostname logging (#238587) - fix snmptrapd hostname logging (#238587)
- fix udpEndpointProcess remote IP address (#236551) - fix udpEndpointProcess remote IP address (#236551)
- fix -M option of net-snmp-utils (#244784) - fix -M option of net-snmp-utils (#244784)
- default snmptrapd.conf added (#243536)
* Mon Mar 12 2007 Radek Vokál <rvokal@redhat.com> - 1:5.4-13 * Mon Mar 12 2007 Radek Vokál <rvokal@redhat.com> - 1:5.4-13
- fix overly verbose log message (#221911) - fix overly verbose log message (#221911)