[oe] hping2 recipe failed to build fixed for gumstix overo

J. L. vwyodapink at gmail.com
Thu Jul 15 22:12:06 UTC 2010


Not sure if this is the correct way but I was able to sort out a
recipe that was failing to build for my gumstix overo. It was hping2
the fixed recipe is as follows. It seems to build now though have not
tested it works properly yet. Though this is not the most current
version of the program. Would be nice if someone knowledgable could
fix the recipe to pull and from the svn source so it would build the
most current version when the recipe runs.  thanks


DESCRIPTION = "hping is a command-line oriented TCP/IP packet \
assembler/analyzer. The interface is inspired to the ping(8) \
unix command, but hping isn't only able to send ICMP echo requests. \
It supports TCP, UDP, ICMP and RAW-IP protocols, has a traceroute \
mode, the ability to send files between a covered channel, and many \
other features."
HOMEPAGE = "http://www.hping.org/"
SECTION = "console/network"
LICENSE = "GPL"
PR = "r1"

SRC_URI = "http://www.hping.org/hping2.0.0-rc3.tar.gz \
           file://hping2_debian.patch \
           file://hping2_configure.patch"
S = "${WORKDIR}/hping2-rc3"

inherit siteinfo


TARGET_CC_ARCH += "${LDFLAGS}"

#
# We've patched configure to accept byte order and ostype as env
# variables Pass those values in to stop it trying to figure it out
# by itself.
# NOTE: The configure script is not an autoconf script.
#
do_configure() {
        # Additional flag based on target endiness (see siteinfo.bbclass)
        BYTEORDER="${@base_conditional('SITEINFO_ENDIANESS', 'le',
'__LITTLE_ENDIAN_BITFIELD', '__BIG_ENDIAN_BITFIELD', d)}"
        oenote Determined byteorder as: $BYTEORDER
        BYTEORDER="${BYTEORDER}" CONFIGOSTYPE="LINUX" ./configure
}

#
# Instead of patching the install we do things manually here
#
do_install() {
        install -m 0755 -d ${D}${sbindir} ${D}/${mandir} ${D}${docdir}/hping2
        install -m 0755 hping2 ${D}/${sbindir}
        install -m 0644 docs/hping2.8 ${D}/${mandir}
        install -m 0644 docs/HPING2-HOWTO.txt docs/HPING2-IS-OPEN \
                docs/MORE-FUN-WITH-IPID docs/SPOOFED_SCAN.txt \
                docs/AS-BACKDOOR docs/APD.txt ${D}${docdir}/hping2
}

SRC_URI[md5sum] = "029bf240f2e0545b664b2f8b9118d9e8"
SRC_URI[sha256sum] =
"f59292de39b9a4010414bd120a494226399767148efa37278bd53d9613167964"




More information about the Openembedded-devel mailing list