aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/util-linux.az
blob: 7b18d7c32607c4250c6eeec7f239f2e2df36760f (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
56
57
58
59
package util-linux {
	description = "a random collection of Linux utilities";
	website = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git";
	anitya = 8179;
	// release candidates confuse Anitya
	latest = anityaFallback;

	version# = "2.42.2";
	source = remoteTar {
		url = "https://www.kernel.org/pub/linux/utils/util-linux/"+
			"v"+join {
				elems = slice {
					elems = split {
						s = version;
						sep = ".";
						n = 3;
					};
					end = 2;
				};
				sep = ".";
			}+"/util-linux-"+version+".tar.gz";
		checksum = "Z4IZapPCKQP37aeWMDhxcvuOCy-IR_aHZvfUEMZ0T7trwC1znZACKH_3ddqXwBCg";
		compress = gzip;
	};

	early = "\nln -s ../system/bin/bash /bin/\n";

	exec = make {
		configure = {
			"disable-use-tty-group";
			"disable-makeinstall-setuid";
			"disable-makeinstall-chown";

			"enable-fs-paths-default": join {
				elems = [
					"/system/sbin",
					"/system/sbin/fs.d",
					"/system/sbin/fs",
				];
				sep = ":";
			};

			"disable-su";
			"disable-liblastlog2";
			"disable-pam-lastlog2";
		};

		// check script claims:
		// For development purpose only.
		// Don't execute on production system!
		skipCheck = true;
	};

	inputs = [
		bash,

		kernel-headers,
	];
}