PKGNAME=shadow
PKGDES="Utilities for managing accounts and shadow password files"
PKGSEC=admin
# bash is required for postinst
PKGDEP="acl bash linux-pam attr"
PKGDEP__RETRO="acl bash linux-pam"
BUILDDEP="itstool docbook-xsl"

ABTYPE=autotools
AUTOTOOLS_AFTER=(
    '--enable-largefile'
    '--enable-shadowgrp'
    '--enable-man'
    '--enable-account-tools-setuid'
    '--enable-subordinate-ids'
    '--enable-nls'
    '--disable-rpath'
    '--without-audit'
    '--with-libpam'
    '--with-btrfs'
    '--without-selinux'
    '--with-acl'
    '--with-attr'
    '--without-skey'
    '--without-tcb'
    '--with-sha-crypt'
    '--without-bcrypt'
    '--without-yescrypt'
    '--with-nscd'
    '--with-sssd'
    '--with-group-name-max-length=32'
    '--with-su'
    '--without-libbsd'
    '--with-fcaps=no'
)
AUTOTOOLS_AFTER__RETRO=(
    "${AUTOTOOLS_AFTER[@]}"
    '--with-nscd'
    '--with-sssd'
)

PKGESS=1

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
