aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/fs/netbsd.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/luarocks/fs/netbsd.lua b/src/luarocks/fs/netbsd.lua
new file mode 100644
index 00000000..b9610339
--- /dev/null
+++ b/src/luarocks/fs/netbsd.lua
@@ -0,0 +1,14 @@
1--- NetBSD implementation of filesystem and platform abstractions.
2local netbsd = {}
3
4local fs = require("luarocks.fs")
5
6function netbsd.init()
7 local uz=io.open("/usr/bin/unzip", "r")
8 if uz ~= nil then
9 io.close(uz)
10 fs.set_tool_available("unzip", true)
11 end
12end
13
14return netbsd