wok-6.x annotate pam/receipt @ rev 25563

New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.37
author Stanislas Leduc <shann@slitaz.org>
date Fri May 05 18:12:18 2023 +0200 (18 months ago)
parents 1805f71c5d9f
children
rev   line source
pascal@1948 1 # SliTaz package receipt.
pascal@1948 2
pascal@1948 3 PACKAGE="pam"
pascal@18106 4 VERSION="1.2.0"
pascal@1948 5 CATEGORY="system-tools"
pascal@1948 6 SHORT_DESC="Pluggable Authentication Modules."
pascal@1948 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15375 8 LICENSE="BSD GPL2"
pascal@1948 9 SOURCE="Linux-PAM"
pascal@1948 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@20672 11 WEB_SITE="http://www.linux-pam.org/"
pascal@25188 12 WGET_URL="https://web.archive.org/web/20160711113353if_/http://linux-pam.org/library/$TARBALL"
pankso@16203 13 HOST_ARCH="i486 arm"
pankso@9743 14
rcx@3646 15 DEPENDS="glibc-base libdb"
pankso@16203 16 BUILD_DEPENDS="flex db-dev libdb"
pascal@1948 17
pascal@24453 18 # What is the latest version available today?
pascal@24453 19 current_version()
pascal@24453 20 {
pascal@24453 21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24453 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 23 }
pascal@24453 24
pascal@1948 25 # Rules to configure and make the package.
pascal@1948 26 compile_rules()
pascal@1948 27 {
pascal@20563 28 sed -i 's|(uname -m)|(echo i686)|;s|`uname -m`|`echo i686`|' \
pascal@20563 29 configure build-aux/config.guess
pankso@16203 30 ./configure --sysconfdir=/etc \
pankso@16203 31 $CONFIGURE_ARGS &&
pankso@9743 32 make && make install
pascal@1948 33 }
pascal@1948 34
pascal@1948 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1948 36 genpkg_rules()
pascal@1948 37 {
pascal@1948 38 mkdir -p $fs/lib
pascal@15375 39 cp -a $install/etc $fs
pascal@15375 40 cp -a $install/sbin $fs
pascal@15375 41 cp -a $install/lib/*so* $fs/lib
pascal@15375 42 cp -a $install/lib/security $fs/lib
pascal@1948 43 rm -f $fs/lib/security/*.la
pankso@9743 44 cp -a $stuff/* $fs
pascal@1948 45 }
gokhlayeh@11446 46
gokhlayeh@11446 47 pre_remove()
gokhlayeh@11446 48 {
gokhlayeh@11446 49 # If busybox-pam is installed, trigger its removal right now. Once pam shared
gokhlayeh@11446 50 # library will be removed, it will be too late. Don't worry about this, while
gokhlayeh@11446 51 # removing busybox-pam will replace itself by a non-pam busybox.
gokhlayeh@11446 52 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then
gokhlayeh@11446 53 tazpkg remove busybox-pam --auto
gokhlayeh@11446 54 fi
gokhlayeh@11446 55 }