summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2013-04-17 09:10:06 +0000
committersbd <sbd@pkgsrc.org>2013-04-17 09:10:06 +0000
commitbbad8599acd894ae9e03b953e2ddb2db7e6da09d (patch)
tree41e3a5bc970f43fc2ecc927115dbb1ee2c5eb514 /databases
parenta2c6c15fd50a048df50d3f4b32ad208d7362c06f (diff)
downloadpkgsrc-bbad8599acd894ae9e03b953e2ddb2db7e6da09d.tar.gz
Not all linux systems will have netstat(8), but if they don't then they'll
have ss(8) which does the same thing. (With out netstat the build stalls in an endless for loop.) So add a hack that creates a tool named netstat from ss.
Diffstat (limited to 'databases')
-rw-r--r--databases/virtuoso/hacks.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/databases/virtuoso/hacks.mk b/databases/virtuoso/hacks.mk
new file mode 100644
index 00000000000..604eefd6052
--- /dev/null
+++ b/databases/virtuoso/hacks.mk
@@ -0,0 +1,18 @@
+# $NetBSD: hacks.mk,v 1.1 2013/04/17 09:10:06 sbd Exp $
+
+.if !defined(VIRTUOSO_HACKS_MK)
+VIRTUOSO_HACKS_MK= 1
+
+### [Wed Apr 17 19:21:24 NZST 2013 : sbd]
+### Not all linux systems will have netstat(8), but if they don't then
+### they'll have ss(8) which does the same thing.
+### (With out netstat the build stalls in an endless for loop.)
+###
+.if ${OPSYS} == "Linux"
+post-tools:
+ @if ! which netstat >/dev/null 2>/dev/null; then \
+ ${LN} -sf /sbin/ss ${TOOLS_DIR}/bin/netstat; \
+ fi
+.endif
+
+.endif # VIRTUOSO_HACKS_MK