#-----------------------------------------------------------------------------
# netsnmp.ext - SNMP agent for fli4l
#
# Creation:     2006-09-22  gk (Gero Kuhlmann)
# Last Update:  2006-10-06  gk (Gero Kuhlmann)
#
#-----------------------------------------------------------------------------
if (opt_netsnmp)
then
	provides netsnmp version 3.0.1
	depends on fli4l version 3.0.[0-9]
	depends on lmsensors version 3.0.1

	if (!opt_lmsensors)
	then
		error "Need lmsensors package for NETSNMP"
	fi

	stat ("$config_dir/etc/snmp/snmpd.conf", snmp_file)
	if (snmp_file_res == "OK")
	then
		add_to_opt "etc/snmp/snmpd.conf" "mode=644"
	fi

	stat ("$config_dir/etc/snmp/snmptrapd.conf", snmptrap_file)
	if (snmptrap_file_res == "OK")
	then
		add_to_opt "etc/snmp/snmptrapd.conf" "mode=644"
	fi
fi
