]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/netsnmpd
suricata: Update to 4.1.3
[ipfire-2.x.git] / lfs / netsnmpd
index 1e59457bdaf9f82ad9e1459ce1783c2d74ef7fe6..06233f3e9cd323cc541cdb9af3a1b8f24891c7a9 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2015  IPFire Team  <info@ipfire.org>                          #
+# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -32,7 +32,8 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = netsnmpd
-PAK_VER    = 4
+PAK_VER    = 7
+
 DEPS       = ""
 
 ###############################################################################
@@ -76,6 +77,8 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/net-snmp-5.7.3-openssl.patch
+       $(UPDATE_AUTOMAKE)
        cd $(DIR_APP) && ./configure \
                --prefix=/usr \
                --with-default-snmp-version="2" \
@@ -83,15 +86,22 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                --with-sys-location="localhost" \
                --with-logfile="/var/log/snmpd.log" \
                --with-persistent-directory="/var/net-snmp" \
+               --with-mib-modules="host agentx smux \
+               ucd-snmp/diskio tcp-mib udp-mib mibII/mta_sendmail \
+               ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable \
+               ip-mib/ipAddressPrefixTable/ipAddressPrefixTable \
+               ip-mib/ipDefaultRouterTable/ipDefaultRouterTable \
+               ip-mib/ipv6ScopeZoneIndexTable ip-mib/ipIfStatsTable \
+               sctp-mib rmon-mib etherlike-mib ucd-snmp/lmsensorsMib"
                --libdir=/usr/lib \
                --sysconfdir="/etc"
        cd $(DIR_APP) && make 
        cd $(DIR_APP) && make install
-       install -v -m644 $(DIR_SRC)/config/netsnmpd/snmpd.conf /etc/snmpd.conf
+       install -v -m 644 $(DIR_SRC)/config/netsnmpd/snmpd.conf /etc/snmpd.conf
        install -v -m 644 $(DIR_SRC)/config/backup/includes/netsnmpd \
                /var/ipfire/backup/addons/includes/netsnmpd
 
-       #install initscripts
+       # install initscripts
        $(call INSTALL_INITSCRIPT,netsnmpd)
 
        ln -sf ../init.d/netsnmpd /etc/rc.d/rc3.d/S65netsnmpd