diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-05 00:14:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-05 00:14:45 +0900 |
| commit | 8b0648dd5d081cfcebc3b9c3334a0e07d3ad5046 (patch) | |
| tree | 5646c5c486b6d5ab09ec1a6abdfb6ab838b45d8c | |
| parent | 4667fac76c5b29b4a0dba2cfb681fddeb2d26f89 (diff) | |
internal/rosa/netfilter: fetch libnftnl source via git
Eliminates the xz dependency.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/rosa/netfilter.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/rosa/netfilter.go b/internal/rosa/netfilter.go index f97d92ad..04785e94 100644 --- a/internal/rosa/netfilter.go +++ b/internal/rosa/netfilter.go @@ -53,24 +53,24 @@ func init() { func (t Toolchain) newLibnftnl() (pkg.Artifact, string) { const ( version = "1.3.1" - checksum = "A6EFNv2TbOcjcsXX2hQ-pKsF5FvlSh-BNEf9LrgnVH4nDjcv6NbtyHkTriz9kIEu" + checksum = "91ou66K-I17iX6DB6hiQkhhC_v4DFW5iDGzwjVRNbJNEmKqowLZBlh3FY-ZDO0r9" ) - return t.NewPackage("libnftnl", version, pkg.NewHTTPGet( - nil, "https://www.netfilter.org/projects/libnftnl/files/"+ - "libnftnl-"+version+".tar.xz", + return t.NewPackage("libnftnl", version, t.NewViaGit( + "https://git.netfilter.org/libnftnl", + "refs/tags/libnftnl-"+version, mustDecode(checksum), ), &PackageAttr{ - SourceKind: SourceKindTarXZ, - Env: []string{ "CFLAGS=-D_GNU_SOURCE", }, }, &MakeHelper{ + Generate: "./autogen.sh", Configure: []KV{ {"enable-static"}, }, }, - XZ, + Automake, + Libtool, PkgConfig, Libmnl, |
