34 lines
1.0 KiB
Python
34 lines
1.0 KiB
Python
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",
|
|
)
|