aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/iproute2.az
blob: 4f0c00c9df3eae593391a9eae5c7e84a8aa7b7b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package iproute2 {
	description = "routing commands and utilities";
	website = "https://wiki.linuxfoundation.org/networking/iproute2";
	anitya = 1392;

	version# = "7.1.0";
	source = remoteTar {
		url = "https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/"+
			"snapshot/iproute2-"+version+".tar.gz";
		checksum = "yc6NdF6GtFUpKtKg6xwF_yxYGyj0eqFQW8RGsgBzKrOiVlE2bpVQlfeZf_ca5wJL";
		compress = gzip;
	};

	env = [
		"CC=cc",
		"PREFIX=/system",
		"SBINDIR=/system/sbin",
	];
	enterSource = true;
	writable = true;
	chmod = true;

	exec = make {
		chdir = false;
		// drop default autoconf options
		configureName = "./configure";
		configure = {
			"prefix": "/system";
			"color": "auto";
		};
		make = [ "CC=cc", "YACC=yacc" ];
		// wants root
		check = nil;
	};

	inputs = [
		pkg-config,
		m4,
		byacc,
		flex,

		libbpf,
		libmnl,
		db,
		libcap,
		kernel-headers,
	];

	runtime = [
		libbpf,
		libmnl,
		db,
		libcap,
	];
}