wok-next annotate shadow/receipt @ rev 21529

updated buildroot (2014.08 -> 2020.05)
author Hans-G?nter Theisgen
date Sat Jun 20 16:34:10 2020 +0100 (2020-06-20)
parents d5aab818505e
children
rev   line source
al@19745 1 # SliTaz package receipt v2.
al@19571 2
al@19571 3 PACKAGE="shadow"
al@20905 4 VERSION="4.6"
al@19571 5 CATEGORY="system-tools"
al@19571 6 SHORT_DESC="Programs for handling passwords in a secure way"
al@19571 7 MAINTAINER="al.bobylev@gmail.com"
al@19571 8 LICENSE="BSD"
al@20929 9 WEB_SITE="https://github.com/shadow-maint/shadow"
al@20905 10 LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/shadow.html"
al@19571 11
al@19571 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19745 13 WGET_URL="https://github.com/shadow-maint/shadow/releases/download/$VERSION/$TARBALL"
al@19571 14
al@21020 15 BUILD_DEPENDS="acl-dev attr-dev gettext-dev"
al@19571 16
al@21064 17 DEPENDS_std="acl attr"
al@21064 18 TAGS_std="LFS"
al@21064 19
al@20436 20 compile_rules() {
al@20436 21 # Disable the installation of the `groups` program and its man pages, as
al@20436 22 # Coreutils provides a better version.
al@20436 23 sed -i 's/groups$(EXEEXT) //' src/Makefile.in
al@20436 24 find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
al@20436 25 find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
al@20436 26 find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;
al@20436 27
al@19745 28 sed -i -e 's|#ENCRYPT_METHOD DES|ENCRYPT_METHOD SHA512|' \
al@19745 29 -e 's|/var/spool/mail|/var/mail|' etc/login.defs
al@19571 30 sed -i 's|bash|sh|' etc/useradd
al@19571 31
al@19571 32 ./configure \
al@19571 33 --with-group-name-max-length=32 &&
al@20604 34 fix libtool &&
al@20534 35 make &&
al@20534 36 make install || return 1
al@19571 37
al@19571 38 mv $install/usr/bin/passwd $install/bin
al@19571 39 }