aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/fakeroot.go
blob: 173e3f5aa61ab6dead11862ee6d3ab048dff636a (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 rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newFakeroot() (pkg.Artifact, string) {
	const (
		version  = "1.37.2"
		checksum = "4ve-eDqVspzQ6VWDhPS0NjW3aSenBJcPAJq_BFT7OOFgUdrQzoTBxZWipDAGWxF8"
	)
	return t.NewPackage("fakeroot", version, pkg.NewHTTPGetTar(
		nil, "https://salsa.debian.org/clint/fakeroot/-/archive/upstream/"+
			version+"/fakeroot-upstream-"+version+".tar.bz2",
		mustDecode(checksum),
		pkg.TarBzip2,
	), &PackageAttr{
		Patches: [][2]string{
			{"remove-broken-docs", `diff --git a/doc/Makefile.am b/doc/Makefile.am
index f135ad9..85c784c 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,5 +1,4 @@
 AUTOMAKE_OPTIONS=foreign
-SUBDIRS = de es fr nl pt ro sv
 
 man_MANS = faked.1 fakeroot.1
 
`},
		},

		Env: []string{
			"CONFIG_SHELL=/bin/sh",
		},
	}, &MakeHelper{
		Generate: "./bootstrap",

		// makes assumptions about /etc/passwd
		SkipCheck: true,
	},
		M4,
		Perl,
		Autoconf,
		Automake,
		Libtool,
		PkgConfig,

		Attr,
		Libcap,
		KernelHeaders,
	), version
}
func init() {
	artifactsM[Fakeroot] = Metadata{
		f: Toolchain.newFakeroot,

		Name:        "fakeroot",
		Description: "tool for simulating superuser privileges",
		Website:     "https://salsa.debian.org/clint/fakeroot",
	}
}