From 8b2dfcc94b2d589dddaffee6c690d7fde6bb9e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0afr=C3=A1nek?= Date: Mon, 25 Jun 2007 13:27:41 +0000 Subject: [PATCH] default snmptrapd.conf added Resolves: #243536 --- net-snmp-trapd.redhat.conf | 5 +++++ net-snmp.spec | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 net-snmp-trapd.redhat.conf diff --git a/net-snmp-trapd.redhat.conf b/net-snmp-trapd.redhat.conf new file mode 100644 index 0000000..b286205 --- /dev/null +++ b/net-snmp-trapd.redhat.conf @@ -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 diff --git a/net-snmp.spec b/net-snmp.spec index b7c852d..d097b06 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -21,6 +21,7 @@ Source4: net-snmpd.logrotate Source5: ucd5820stat Source6: net-snmp-config.h Source7: net-snmp-config +Source8: net-snmp-trapd.redhat.conf Patch1: ucd-snmp-4.2.4.pre3-mnttab.patch #Patch2: net-snmp-5.0.6-libtool.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) BuildRequires: openssl-devel, bzip2-devel, beecrypt-devel, elfutils-devel BuildRequires: libselinux-devel, elfutils-libelf-devel -BuildRequires: perl-devel +#BuildRequires: perl-devel %ifarch %{ix86} x86_64 BuildRequires: lm_sensors-devel %endif %if %{tcp_wrappers} -BuildRequires: tcp_wrappers-devel +#BuildRequires: tcp_wrappers-devel %endif BuildRequires: perl, coreutils, grep, sed, findutils @@ -239,6 +240,7 @@ rm ${RPM_BUILD_ROOT}%{_libdir}/*.la install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/snmp 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 -m 755 %SOURCE2 ${RPM_BUILD_ROOT}%{_initrddir}/snmpd @@ -325,6 +327,7 @@ rm -rf ${RPM_BUILD_ROOT} %{_initrddir}/snmptrapd %config(noreplace) %{_sysconfdir}/logrotate.d/snmpd %config(noreplace,missingok) %{_sysconfdir}/snmp/snmpd.conf +%config(noreplace,missingok) %{_sysconfdir}/snmp/snmptrapd.conf %{_datadir}/snmp %{_bindir}/ucd5820stat %{_sbindir}/* @@ -371,6 +374,7 @@ rm -rf ${RPM_BUILD_ROOT} - fix snmptrapd hostname logging (#238587) - fix udpEndpointProcess remote IP address (#236551) - fix -M option of net-snmp-utils (#244784) +- default snmptrapd.conf added (#243536) * Mon Mar 12 2007 Radek Vokál - 1:5.4-13 - fix overly verbose log message (#221911)