summaryrefslogtreecommitdiff
path: root/strata/networking-utils
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-05-22 14:04:28 +0000
committerBaserock Gerrit <gerrit@baserock.org>2015-05-26 13:44:02 +0000
commitfdbea24797f7559ec8edc0c34f71a8dc5e0a94dc (patch)
tree1acd7c1450c1f868c91a6f76118419a932502c7d /strata/networking-utils
parent74fac2adda7467f1eb55dca293057cbe81b0a13b (diff)
downloaddefinitions-fdbea24797f7559ec8edc0c34f71a8dc5e0a94dc.tar.gz
Add `arping` to networking-utils
Because `arping` requires the libpcap library, move tcpdump and libpcap to networking-utils. Add also `arping`'s libnet dependency. Change-Id: Ie459e5295bc2770856e06cb005845ee3f172e68e
Diffstat (limited to 'strata/networking-utils')
-rw-r--r--strata/networking-utils/arping.morph3
-rw-r--r--strata/networking-utils/libnet.morph15
-rw-r--r--strata/networking-utils/libpcap.morph3
-rw-r--r--strata/networking-utils/tcpdump.morph3
4 files changed, 24 insertions, 0 deletions
diff --git a/strata/networking-utils/arping.morph b/strata/networking-utils/arping.morph
new file mode 100644
index 00000000..d9f5bd30
--- /dev/null
+++ b/strata/networking-utils/arping.morph
@@ -0,0 +1,3 @@
+name: arping
+kind: chunk
+build-system: autotools
diff --git a/strata/networking-utils/libnet.morph b/strata/networking-utils/libnet.morph
new file mode 100644
index 00000000..c4f2b213
--- /dev/null
+++ b/strata/networking-utils/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
diff --git a/strata/networking-utils/libpcap.morph b/strata/networking-utils/libpcap.morph
new file mode 100644
index 00000000..7c5ee932
--- /dev/null
+++ b/strata/networking-utils/libpcap.morph
@@ -0,0 +1,3 @@
+name: libpcap
+kind: chunk
+build-system: autotools
diff --git a/strata/networking-utils/tcpdump.morph b/strata/networking-utils/tcpdump.morph
new file mode 100644
index 00000000..7a974dab
--- /dev/null
+++ b/strata/networking-utils/tcpdump.morph
@@ -0,0 +1,3 @@
+name: tcpdump
+kind: chunk
+build-system: autotools