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, + ]; +}