aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/net-snmp/net-snmp_5.4.2.1.bb
blob: 7e81151c6d1ea40e9511b7564ccf94922e5c1a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require net-snmp.inc
PR = "${INC_PR}.0"

SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
        file://configure-tail.patch;patch=1 \
        file://init \
        file://snmpd.conf \
        file://snmptrapd.conf"

EXTRA_OECONF = "--enable-shared --disable-manuals --with-defaults \
                --disable-embedded-perl --with-perl-modules=no"
EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"

do_configure_prepend() {
        gnu-configize -f
        # We better change sources and re-autoconf here, but
        # required autoconf is too new for us.
        sed -e '/echo.*\".*\\\\.*\"/s/echo/echo -e/g' \
            -e 's/tail -1/tail -n 1/g'                \
            -i configure

        #The tarball for v5.4.2.1 is missing config.sub
        cp ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
}

PARALLEL_MAKE = ""
CCACHE = ""