summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strata/tools.morph13
-rw-r--r--strata/tools/arping.morph3
-rw-r--r--strata/tools/libnet.morph15
3 files changed, 31 insertions, 0 deletions
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