48 lines
2.0 KiB
Bash
48 lines
2.0 KiB
Bash
#!/bin/sh
|
|
name="shadow"
|
|
short_desc="programs for converting UNIX password files to the shadow password format"
|
|
desc="The shadow-utils package includes the necessary programs for converting
|
|
UNIX password files to the shadow password format, plus programs
|
|
for managing user and group accounts.
|
|
|
|
The pwconv command converts passwords to the shadow password format.
|
|
|
|
The pwunconv command unconverts shadow passwords
|
|
and generates a passwd file (a standard UNIX password file).
|
|
|
|
The pwck command checks the integrity of password and shadow files. The lastlog
|
|
command prints out the last login times for all users.
|
|
|
|
The useradd, userdel, and usermod commands are used for managing user accounts.
|
|
|
|
The groupadd, groupdel, and groupmod commands are used for managing group accounts."
|
|
category="security"
|
|
version="4.14.2"
|
|
maintainer="ffqq@danwin1210.de"
|
|
www="https://github.com/shadow-maint/shadow"
|
|
master_site="https://github.com/shadow-maint/shadow/releases/download/$version"
|
|
source_name="$name-$version.tar.gz"
|
|
license_logic="single" # accepted values: single, and, or
|
|
licenses=("BSD-3-CLAUSE")
|
|
|
|
build_dependencies=("lang/gcc" "devel/gmake" "security/libxcrypt" "security/pam")
|
|
run_dependencies=("system/glibc" "security/libxcrypt" "security/pam")
|
|
|
|
build_process() {
|
|
cd $name-$version || exit 1
|
|
sed -i 's/groups$(EXEEXT) //' src/Makefile.in
|
|
find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
|
|
find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
|
|
find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;
|
|
sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD YESCRYPT:' \
|
|
-e 's:/var/spool/mail:/var/mail:' \
|
|
-e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \
|
|
-i etc/login.defs
|
|
PKG_CONFIG_PATH=/usr/lib/pkgconfig ./configure --sysconfdir=/etc \
|
|
--disable-static \
|
|
--with-{b,yes}crypt \
|
|
--with-group-name-max-length=32 || exit 1
|
|
make -j$(nproc)
|
|
make exec_prefix=/usr DESTDIR="$TAMANDUA_STAGE_DIR" install
|
|
make -C man install-man
|
|
} |