diff options
author | Martyn Welch <martyn.welch@ge.com> | 2010-03-21 23:35:00 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2010-03-30 14:20:03 +0200 |
commit | 3352b508e2f2c1fea4cf45245f3650f48f26f8ac (patch) | |
tree | 6934355264de82564906511ded92d20597edb142 | |
parent | c5014e1b9f9a321793b2b173270e75770f7b7fce (diff) |
traceroute: added 2.0.12 version
Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
-rw-r--r-- | recipes/traceroute/traceroute_2.0.12.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes/traceroute/traceroute_2.0.12.bb b/recipes/traceroute/traceroute_2.0.12.bb new file mode 100644 index 0000000000..04678a62c4 --- /dev/null +++ b/recipes/traceroute/traceroute_2.0.12.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "GNU traceroute" +HOMEPAGE = "http://traceroute.sourceforge.net" +SECTION = "network" +LICENSE = "GPLv2" +PR = "r1" + +SRC_URI = "${SOURCEFORGE_MIRROR}/traceroute/traceroute-${PV}.tar.gz;name=traceroute" + +SRC_URI[traceroute.md5sum] = "2262a9d30ae85f12b759a38ef827f8f7" +SRC_URI[traceroute.sha256sum] = "d9609699982ac500cf361a34bd0685a1e5d71d001b6087e4eb68236048ff078f" + +do_compile() { + rm -rf ${S}/patches + export LDFLAGS="${TARGET_LDFLAGS} -L${S}/libsupp" + oe_runmake "env=yes" +} + +do_install() { + install -d ${D}${bindir} + install -m 755 ${S}/traceroute/traceroute ${D}${bindir} + mv ${D}${bindir}/traceroute ${D}${bindir}/traceroute.${PN} +} + +pkg_postinst() { + update-alternatives --install ${bindir}/traceroute traceroute ${bindir}/traceroute.${PN} 100 + update-alternatives --install ${bindir}/traceroute6 traceroute6 ${bindir}/traceroute.${PN} 100 +} + +pkg_postrm() { + update-alternatives --remove traceroute ${bindir}/traceroute.${PN} + update-alternatives --remove traceroute6 ${bindir}/traceroute.${PN} +} |