features
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* iproute2 — the ip/ss/tc network tools.
|
||||
*
|
||||
* Built minimal and deterministic: PKG_CONFIG_LIBDIR=/nonexistent makes
|
||||
* pkg-config find nothing (a dev host would otherwise leak libmnl, libelf,
|
||||
* libtirpc, libcap, krb5... into the store build), and --libbpf_force off
|
||||
* drops the libbpf dependency. iproute2's configure degrades gracefully,
|
||||
* so this is also exactly what a barebones system builds.
|
||||
*/
|
||||
package "iproute2" {
|
||||
const version = "7.1.0"
|
||||
const source = "https://cdn.kernel.org/pub/linux/utils/net/iproute2/iproute2-${version}.tar.gz"
|
||||
sha256 = "f036279976a39dfa1e2b6df001e981a10aed7ab5f50a3145cea1b1d22cf77f55"
|
||||
license = "GPL-2.0-or-later"
|
||||
|
||||
provides = ["ip", "ss", "tc"]
|
||||
|
||||
depends = [
|
||||
{ name = "make" },
|
||||
]
|
||||
|
||||
prepare {
|
||||
curl -L -o iproute2-${version}.tar.gz ${source}
|
||||
echo "f036279976a39dfa1e2b6df001e981a10aed7ab5f50a3145cea1b1d22cf77f55 iproute2-${version}.tar.gz" | sha256sum -c -
|
||||
tar xf iproute2-${version}.tar.gz --strip-components=1
|
||||
}
|
||||
|
||||
build {
|
||||
PKG_CONFIG_LIBDIR=/nonexistent ./configure --libbpf_force off
|
||||
make -j${jobs}
|
||||
}
|
||||
|
||||
install {
|
||||
make install DESTDIR=${destdir}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user