aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-25 09:32:57 +0900
committerOphestra <cat@gensokyo.uk>2026-05-25 09:33:32 +0900
commit8c84883af69e5902e58953181081ef386f36b6ff (patch)
tree9f10e8be69a23a5c82826e313d1b6c1242807433 /internal/rosa
parent4e1359aa95486affb46706073bff466e2eac46e9 (diff)
internal/rosa/package: iproute2
Useful for debugging for now. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa')
-rw-r--r--internal/rosa/package/iproute2.az53
1 files changed, 53 insertions, 0 deletions
diff --git a/internal/rosa/package/iproute2.az b/internal/rosa/package/iproute2.az
new file mode 100644
index 00000000..a0ff8ab4
--- /dev/null
+++ b/internal/rosa/package/iproute2.az
@@ -0,0 +1,53 @@
+package iproute2 {
+ description = "routing commands and utilities";
+ website = "https://wiki.linuxfoundation.org/networking/iproute2";
+ anitya = 1392;
+
+ version# = "7.0.0";
+ source = remoteTar {
+ url = "https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/"+
+ "snapshot/iproute2-"+version+".tar.gz";
+ checksum = "6SNrMEKYMO-Nt4u_Ni-qOnBpzuokkf515ya-75l6APNbZwihXy8Utv1snbUpHx3T";
+ compress = gzip;
+ };
+
+ env = [
+ "CC=cc",
+ "PREFIX=/system",
+ "SBINDIR=/system/sbin",
+ ];
+ enterSource = true;
+ writable = true;
+ chmod = true;
+
+ exec = make {
+ inPlace = true;
+ // drop default autoconf options
+ configureName = "./configure";
+ configure = {
+ "prefix": "/system";
+ "color": "auto";
+ };
+ make = [ "CC=cc" ];
+ // wants root
+ skipCheck = true;
+ };
+
+ inputs = [
+ pkg-config,
+ m4,
+ bison,
+ flex,
+
+ elfutils,
+ libmnl,
+ libcap,
+ kernel-headers,
+ ];
+
+ runtime = [
+ elfutils,
+ libmnl,
+ libcap,
+ ];
+}