wok-next annotate pam/receipt @ rev 20641
Up cogl, cookutils (1053)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 01 16:03:13 2018 +0300 (2018-05-01) |
parents | 757d032c55c7 |
children | d5aab818505e |
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@9743 | 10 |
al@19601 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19601 | 12 WGET_URL="http://www.linux-pam.org/library/Linux-PAM-$VERSION.tar.bz2" |
al@19601 | 13 |
al@20445 | 14 BUILD_DEPENDS="db-dev libtirpc-dev gettext" |
al@19789 | 15 SPLIT="pam-dev" |
pascal@1948 | 16 |
al@20443 | 17 compile_rules() { |
al@19601 | 18 ./configure \ |
al@19789 | 19 --libdir=/usr/lib \ |
al@19789 | 20 --disable-regenerate-docu \ |
al@19789 | 21 --enable-securedir=/lib/security \ |
pankso@16203 | 22 $CONFIGURE_ARGS && |
al@20604 | 23 fix libtool && |
al@20534 | 24 make && |
al@20534 | 25 make install || return 1 |
al@19789 | 26 |
al@20534 | 27 install -Dm644 $stuff/other $install/etc/pam.d/other |
al@19789 | 28 |
al@20445 | 29 chmod -v 4755 $install/sbin/unix_chkpwd |
al@19789 | 30 |
al@19789 | 31 for file in pam pam_misc pamc; do |
al@20445 | 32 mv -v $install/usr/lib/lib$file.so.* $install/lib |
al@19789 | 33 ln -sfv ../../lib/$(readlink $install/usr/lib/lib$file.so) \ |
al@19789 | 34 $install/usr/lib/lib$file.so |
al@19789 | 35 done |
pascal@1948 | 36 } |
pascal@1948 | 37 |
al@20443 | 38 genpkg_rules() { |
al@19789 | 39 case $PACKAGE in |
al@20445 | 40 pam) copy @std; DEPENDS="libdb libtirpc";; |
al@20445 | 41 *-dev) copy @dev; DEPENDS="pam db-dev libtirpc-dev";; |
al@19789 | 42 esac |
pascal@1948 | 43 } |
gokhlayeh@11446 | 44 |
al@19789 | 45 # If busybox-pam is installed, trigger its removal right now. Once pam shared |
al@19789 | 46 # library will be removed, it will be too late. Don't worry about this, while |
al@19789 | 47 # removing busybox-pam will replace itself by a non-pam busybox. |
al@19789 | 48 pre_remove_pam() { |
gokhlayeh@11446 | 49 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then |
gokhlayeh@11446 | 50 tazpkg remove busybox-pam --auto |
gokhlayeh@11446 | 51 fi |
gokhlayeh@11446 | 52 } |