summaryrefslogtreecommitdiff
path: root/net/arping/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'net/arping/options.mk')
-rw-r--r--net/arping/options.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/net/arping/options.mk b/net/arping/options.mk
new file mode 100644
index 00000000000..5fa613688a4
--- /dev/null
+++ b/net/arping/options.mk
@@ -0,0 +1,32 @@
+# $NetBSD: options.mk,v 1.1 2005/02/01 18:24:34 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.arping
+PKG_SUPPORTED_OPTIONS= arping1 arping2
+
+.if !defined(PKG_OPTIONS.arping)
+PKG_DEFAULT_OPTIONS+= arping1
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Can't support both versions of arping
+###
+.if !empty(PKG_OPTIONS:Marping1) && !empty(PKG_OPTIONS:Marping2)
+PKG_FAIL_REASON+= "arping1 and arping2 cannot both be selected." \
+ "This is due to the conflicting versions of libnet."
+.endif
+
+###
+### Build arping1 which uses libnet 1.0.x branch as is more tested
+###
+.if !empty(PKG_OPTIONS:Marping1)
+. include "../../devel/libnet/buildlink3.mk"
+.endif
+
+###
+### Build arping2 which uses libnet 1.1.x branch as is less tested
+###
+.if !empty(PKG_OPTIONS:Marping2)
+. include "../../devel/libnet11/buildlink3.mk"
+.endif