|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
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:addenv("PATH", "sbin") |
|
|
|
|
end |
|
|
|
@ -8,7 +8,7 @@ function install(package) |
|
|
|
|
|
|
|
|
|
local cflags = {} |
|
|
|
|
local ldflags = {} |
|
|
|
|
for _, dep in ipairs(package:orderdeps()) do |
|
|
|
|
for _, dep in ipairs(package:librarydeps()) do |
|
|
|
|
local fetchinfo = dep:fetch() |
|
|
|
|
if fetchinfo then |
|
|
|
|
for _, includedir in ipairs(fetchinfo.includedirs or fetchinfo.sysincludedirs) do |
|
|
|
@ -30,6 +30,8 @@ function install(package) |
|
|
|
|
os.cd("tools/bpf/bpftool") |
|
|
|
|
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", "-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) |
|
|
|
|
os.vrunv("make", table.join("install", configs)) |
|
|
|
|
end |
|
|
|
|