wok-next view shadow/receipt @ rev 20843

cookutils: up (1078)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 21 12:59:35 2018 +0300 (2018-06-21)
parents 757d032c55c7
children e7a485521d6a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="shadow"
4 VERSION="4.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Programs for handling passwords in a secure way"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="http://pkg-shadow.alioth.debian.org/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/shadow.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://github.com/shadow-maint/shadow/releases/download/$VERSION/$TARBALL"
15 BUILD_DEPENDS="acl-dev attr-dev gettext"
17 compile_rules() {
18 # Disable the installation of the `groups` program and its man pages, as
19 # Coreutils provides a better version.
20 sed -i 's/groups$(EXEEXT) //' src/Makefile.in
21 find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
22 find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
23 find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;
25 sed -i -e 's|#ENCRYPT_METHOD DES|ENCRYPT_METHOD SHA512|' \
26 -e 's|/var/spool/mail|/var/mail|' etc/login.defs
27 sed -i 's|bash|sh|' etc/useradd
29 ./configure \
30 --with-group-name-max-length=32 &&
31 fix libtool &&
32 make &&
33 make install || return 1
35 mv $install/usr/bin/passwd $install/bin
36 }
38 genpkg_rules() {
39 copy @std
40 DEPENDS="acl attr"
41 TAGS="LFS"
42 }