wok-next annotate shadow/receipt @ rev 20905
Update packages from ISO and LFS backages (all but toolchain)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 07 00:30:45 2018 +0300 (2018-08-07) |
parents | 10df65db91ad |
children | 306a4f258013 |
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@19571 | 9 WEB_SITE="http://pkg-shadow.alioth.debian.org/" |
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@19571 | 15 BUILD_DEPENDS="acl-dev attr-dev gettext" |
al@19571 | 16 |
al@20436 | 17 compile_rules() { |
al@20436 | 18 # Disable the installation of the `groups` program and its man pages, as |
al@20436 | 19 # Coreutils provides a better version. |
al@20436 | 20 sed -i 's/groups$(EXEEXT) //' src/Makefile.in |
al@20436 | 21 find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; |
al@20436 | 22 find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; |
al@20436 | 23 find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \; |
al@20436 | 24 |
al@19745 | 25 sed -i -e 's|#ENCRYPT_METHOD DES|ENCRYPT_METHOD SHA512|' \ |
al@19745 | 26 -e 's|/var/spool/mail|/var/mail|' etc/login.defs |
al@19571 | 27 sed -i 's|bash|sh|' etc/useradd |
al@19571 | 28 |
al@19571 | 29 ./configure \ |
al@19571 | 30 --with-group-name-max-length=32 && |
al@20604 | 31 fix libtool && |
al@20534 | 32 make && |
al@20534 | 33 make install || return 1 |
al@19571 | 34 |
al@19571 | 35 mv $install/usr/bin/passwd $install/bin |
al@19571 | 36 } |
al@19571 | 37 |
al@20436 | 38 genpkg_rules() { |
al@19745 | 39 copy @std |
al@20436 | 40 DEPENDS="acl attr" |
al@20436 | 41 TAGS="LFS" |
al@19571 | 42 } |