|
@@ -1,5 +1,5 @@
|
|
function load(package)
|
|
function load(package)
|
|
- package:add("deps", "libcap", "libelf", "zlib", {host = true})
|
|
|
|
|
|
+ package:add("deps", "libcap", "elfutils", "zlib", {host = true})
|
|
package:add("deps", "python 3.x", {kind = "binary"})
|
|
package:add("deps", "python 3.x", {kind = "binary"})
|
|
package:addenv("PATH", "sbin")
|
|
package:addenv("PATH", "sbin")
|
|
end
|
|
end
|
|
@@ -8,7 +8,7 @@ function install(package)
|
|
|
|
|
|
local cflags = {}
|
|
local cflags = {}
|
|
local ldflags = {}
|
|
local ldflags = {}
|
|
- for _, dep in ipairs(package:orderdeps()) do
|
|
|
|
|
|
+ for _, dep in ipairs(package:librarydeps()) do
|
|
local fetchinfo = dep:fetch()
|
|
local fetchinfo = dep:fetch()
|
|
if fetchinfo then
|
|
if fetchinfo then
|
|
for _, includedir in ipairs(fetchinfo.includedirs or fetchinfo.sysincludedirs) do
|
|
for _, includedir in ipairs(fetchinfo.includedirs or fetchinfo.sysincludedirs) do
|
|
@@ -30,6 +30,8 @@ function install(package)
|
|
os.cd("tools/bpf/bpftool")
|
|
os.cd("tools/bpf/bpftool")
|
|
io.replace("Makefile", "prefix ?= /usr/local", "prefix ?= " .. package:installdir(), {plain = true})
|
|
io.replace("Makefile", "prefix ?= /usr/local", "prefix ?= " .. package:installdir(), {plain = true})
|
|
io.replace("Makefile", "bash_compdir ?= /usr/share", "bash_compdir ?= " .. package:installdir("share"), {plain = true})
|
|
io.replace("Makefile", "bash_compdir ?= /usr/share", "bash_compdir ?= " .. package:installdir("share"), {plain = true})
|
|
|
|
+ io.replace("Makefile", "-lelf -lz", "-lelf -lzstd -lz", {plain = true})
|
|
|
|
+ io.replace("Makefile", "$(Q)$(LLVM_STRIP) -g $@", "echo skip", {plain = true})
|
|
import("package.tools.make").build(package, configs)
|
|
import("package.tools.make").build(package, configs)
|
|
os.vrunv("make", table.join("install", configs))
|
|
os.vrunv("make", table.join("install", configs))
|
|
end
|
|
end
|