This commit is contained in:
2026-06-02 21:38:47 +02:00
parent d3c949b8a2
commit f51dab51db
70 changed files with 1632 additions and 21 deletions
+33
View File
@@ -0,0 +1,33 @@
version = "4.16.0"
revision = 1
description = "Password and account management utilities (login, passwd, useradd)"
license = "BSD-3-Clause"
url = "https://github.com/shadow-maint/shadow"
source = tarball(
url=f"https://github.com/shadow-maint/shadow/releases/download/{version}/shadow-{version}.tar.xz",
sha256="b78e3921a95d53282a38e90628880624736bf6235e36eea50c50835f59a3530b",
)
host_deps = ["binutils", "gcc", "pkgconf"]
deps = [profile["libc"], "libxcrypt"]
configure, build, _ = autotools(
configure_args=[
"--without-libpam",
"--without-libbsd",
"--without-selinux",
"--without-acl",
"--without-attr",
],
)
def install(self):
autotools_install(self, [f"DESTDIR={self.dest_dir}"])
# `groups` is also shipped by coreutils; drop shadow's copy (and its man
# page) so the two packages don't conflict at install time.
self.run(
"sh",
"-c",
f"rm -f {self.dest_dir}/usr/bin/groups "
f"{self.dest_dir}/usr/share/man/man1/groups.1",
)