Update package version to 4.17.4

This commit is contained in:
2025-05-12 16:44:12 +03:00
parent 79e85ccd04
commit edda1acba2
4 changed files with 33 additions and 25 deletions
+16 -15
View File
@@ -15,22 +15,18 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
# Disable installation of groups binary as coreutils provides a better alternative
sed -i 's/groups$(EXEEXT) //' src/Makefile.in
# Disable installation of man pages found in man-pages package
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
mkdir -p "$BPM_OUTPUT"/usr/bin
touch "$BPM_OUTPUT"/usr/bin/passwd
./configure --sysconfdir=/etc \
--disable-static \
--enable-logind=no \
--with-{b,yes}crypt \
--without-libbsd \
--with-libbsd \
--with-group-name-max-length=32
make
}
@@ -39,12 +35,17 @@ build() {
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" exec_prefix=/usr pamdir= install
# Install man pages
make -C man DESTDIR="$BPM_OUTPUT" install-man
mkdir -p "$BPM_OUTPUT"/etc/pam.d
for file in ../pam.d/*; do
cp "$file" "$BPM_OUTPUT"/etc/pam.d
done
# Install pam configuration files
install -d "$BPM_OUTPUT"/etc/pam.d
install -Dm644 "$BPM_WORKDIR"/pam.d/* -t "$BPM_OUTPUT"/etc/pam.d/
# Install login.defs configuration file
cp ../login.defs "$BPM_OUTPUT"/etc/login.defs
mkdir -p "$BPM_OUTPUT"/usr/share/licenses/shadow
cp COPYING "$BPM_OUTPUT"/usr/share/licenses/shadow/COPYING
# Install package license
install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/shadow/COPYING
}