diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-20 05:57:13 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-20 05:57:26 +0900 |
| commit | 656059278d96c86987c261ae842592617ee17962 (patch) | |
| tree | 469c3e195589e7f4005477bfe391707472ef4c29 /internal/rosa/util-linux.go | |
| parent | 1a9974ffdc63e9deb24e4c83f4b4ce566311360f (diff) | |
internal/rosa/package: migrate remaining trivial packages
The rest are migrated individually.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/util-linux.go')
| -rw-r--r-- | internal/rosa/util-linux.go | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/internal/rosa/util-linux.go b/internal/rosa/util-linux.go deleted file mode 100644 index 80ec9f7e..00000000 --- a/internal/rosa/util-linux.go +++ /dev/null @@ -1,60 +0,0 @@ -package rosa - -import ( - "strings" - - "hakurei.app/internal/pkg" -) - -func (t Toolchain) newUtilLinux() (pkg.Artifact, string) { - const ( - version = "2.42" - checksum = "Uy8Nxg9DsW5YwDoeaZeZTyQJ2YmnaaL_fSsQXsLUiFFUd7wnZeD_3SEaVO7ClJlk" - ) - return t.NewPackage("util-linux", version, newTar( - "https://www.kernel.org/pub/linux/utils/util-linux/"+ - "v"+strings.Join(strings.SplitN(version, ".", 3)[:2], ".")+ - "/util-linux-"+version+".tar.gz", - checksum, - pkg.TarGzip, - ), &PackageAttr{ - ScriptEarly: ` -ln -s ../system/bin/bash /bin/ -`, - }, &MakeHelper{ - Configure: []KV{ - {"disable-use-tty-group"}, - {"disable-makeinstall-setuid"}, - {"disable-makeinstall-chown"}, - {"enable-fs-paths-default", "" + - "/system/sbin:" + - "/system/sbin/fs.d:" + - "/system/sbin/fs"}, - - {"disable-su"}, - {"disable-liblastlog2"}, - {"disable-pam-lastlog2"}, - }, - - // check script claims: - // For development purpose only. - // Don't execute on production system! - SkipCheck: true, - }, - Bash, - - KernelHeaders, - ), version -} -func init() { - native.mustRegister(Toolchain.newUtilLinux, &Metadata{ - Name: "util-linux", - Description: "a random collection of Linux utilities", - Website: "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git", - - ID: 8179, - - // release candidates confuse Anitya - latest: (*Versions).getStable, - }) -} |
