wok-next annotate pam/receipt @ rev 19879

qemacs: does not need gcc3
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 04 18:36:44 2017 +0200 (2017-10-04)
parents 18c4d15a72df
children 0e7893ac206d
rev   line source
al@19789 1 # SliTaz package receipt v2.
pascal@1948 2
pascal@1948 3 PACKAGE="pam"
al@19601 4 VERSION="1.3.0"
pascal@1948 5 CATEGORY="system-tools"
al@19789 6 SHORT_DESC="Pluggable Authentication Modules for Linux"
pascal@1948 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15375 8 LICENSE="BSD GPL2"
al@19601 9 WEB_SITE="http://www.linux-pam.org/"
pankso@16203 10 HOST_ARCH="i486 arm"
pankso@9743 11
al@19601 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19601 13 WGET_URL="http://www.linux-pam.org/library/Linux-PAM-$VERSION.tar.bz2"
al@19601 14
al@19789 15 BUILD_DEPENDS="db-dev gettext"
al@19789 16 SPLIT="pam-dev"
pascal@1948 17
pascal@1948 18 # Rules to configure and make the package.
pascal@1948 19 compile_rules()
pascal@1948 20 {
al@19601 21 ./configure \
al@19601 22 --sysconfdir=/etc \
al@19789 23 --libdir=/usr/lib \
al@19789 24 --disable-regenerate-docu \
al@19789 25 --enable-securedir=/lib/security \
al@19789 26 --docdir=/usr/share/doc/Linux-PAM-$VERSION \
pankso@16203 27 $CONFIGURE_ARGS &&
al@19789 28 make && make install &&
al@19789 29
al@19789 30 mkdir -p $install/etc/pam.d &&
al@19789 31 cp $stuff/other $install/etc/pam.d &&
al@19789 32
al@19789 33 chmod -v 4755 $install/sbin/unix_chkpwd &&
al@19789 34
al@19789 35 for file in pam pam_misc pamc; do
al@19789 36 mv -v $install/usr/lib/lib$file.so.* $install/lib &&
al@19789 37 ln -sfv ../../lib/$(readlink $install/usr/lib/lib$file.so) \
al@19789 38 $install/usr/lib/lib$file.so
al@19789 39 done
pascal@1948 40 }
pascal@1948 41
pascal@1948 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1948 43 genpkg_rules()
pascal@1948 44 {
al@19789 45 case $PACKAGE in
al@19789 46 pam) copy @std; DEPENDS="libdb";;
al@19789 47 *-dev) copy @dev; DEPENDS="pam db-dev";;
al@19789 48 esac
pascal@1948 49 }
gokhlayeh@11446 50
al@19789 51 # If busybox-pam is installed, trigger its removal right now. Once pam shared
al@19789 52 # library will be removed, it will be too late. Don't worry about this, while
al@19789 53 # removing busybox-pam will replace itself by a non-pam busybox.
al@19789 54 pre_remove_pam() {
gokhlayeh@11446 55 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then
gokhlayeh@11446 56 tazpkg remove busybox-pam --auto
gokhlayeh@11446 57 fi
gokhlayeh@11446 58 }