From 4dcebc9c72ede16dd83f00e73f23eeff13f7ff1d Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Fri, 22 May 2015 14:04:28 +0000 Subject: WIP Add `arping` to tools Busybox's arping is not good enough for the OpenStack networking service. Add it to tools so that everyone can benefit of a better arping command. Also add its libnet dependency. --- strata/tools.morph | 13 +++++++++++++ strata/tools/arping.morph | 3 +++ strata/tools/libnet.morph | 15 +++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 strata/tools/arping.morph create mode 100644 strata/tools/libnet.morph diff --git a/strata/tools.morph b/strata/tools.morph index 8c8d782e..3774ff7c 100644 --- a/strata/tools.morph +++ b/strata/tools.morph @@ -95,3 +95,16 @@ chunks: repo: upstream:findutils ref: ee6b25541336f9d74624ca814538ddc8c67f0732 unpetrify-ref: baserock/v4.5.14 +- name: libnet + morph: strata/tools/libnet.morph + repo: https://github.com/sam-github/libnet + ref: 05df365769597e1d64d02af931d6127762ff2658 + unpetrify-ref: libnet-1.2 +- name: arping + morph: strata/tools/arping.morph + repo: https://github.com/ThomasHabets/arping.git + ref: a416764b03f4d5960b61372e27d84606899bfe2c + unpetrify-ref: arping-2.15 + build-depends: + - libpcap + - libnet diff --git a/strata/tools/arping.morph b/strata/tools/arping.morph new file mode 100644 index 00000000..d9f5bd30 --- /dev/null +++ b/strata/tools/arping.morph @@ -0,0 +1,3 @@ +name: arping +kind: chunk +build-system: autotools diff --git a/strata/tools/libnet.morph b/strata/tools/libnet.morph new file mode 100644 index 00000000..c4f2b213 --- /dev/null +++ b/strata/tools/libnet.morph @@ -0,0 +1,15 @@ +name: libnet +kind: chunk +build-system: manual +pre-configure-commands: +# Avoid building the docs as they require doxygen +- sed -i 's@doc @@' libnet/Makefile.am +- sed -i 's@doc/.*Makefile@@' libnet/configure.ac + +- cd libnet && ./autogen.sh +configure-commands: +- cd libnet && ./configure --prefix="$PREFIX" --disable-samples --enable-shared=yes --with-pic +build-commands: +- cd libnet && make +install-commands: +- cd libnet && make DESTDIR="$DESTDIR" install -- cgit v1.2.1