wok-next view pam/receipt @ rev 20445
gcc: fix symlink /lib/cpp; glibc: undo '--enable-obsolete-rpc' due to errors; libtirpc: up 1.0.2; pam and busybox: use libtirpc.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Feb 27 14:06:41 2018 +0200 (2018-02-27) |
parents | 0e7893ac206d |
children | 757d032c55c7 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pam"
4 VERSION="1.3.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Pluggable Authentication Modules for Linux"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD GPL2"
9 WEB_SITE="http://www.linux-pam.org/"
10 HOST_ARCH="i486 arm x86_64"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://www.linux-pam.org/library/Linux-PAM-$VERSION.tar.bz2"
15 BUILD_DEPENDS="db-dev libtirpc-dev gettext"
16 SPLIT="pam-dev"
18 compile_rules() {
19 ./configure \
20 --sysconfdir=/etc \
21 --libdir=/usr/lib \
22 --disable-regenerate-docu \
23 --enable-securedir=/lib/security \
24 --docdir=/usr/share/doc/Linux-PAM-$VERSION \
25 $CONFIGURE_ARGS &&
26 make && make install || return 1
28 mkdir -p $install/etc/pam.d
29 cp $stuff/other $install/etc/pam.d
31 chmod -v 4755 $install/sbin/unix_chkpwd
33 for file in pam pam_misc pamc; do
34 mv -v $install/usr/lib/lib$file.so.* $install/lib
35 ln -sfv ../../lib/$(readlink $install/usr/lib/lib$file.so) \
36 $install/usr/lib/lib$file.so
37 done
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 pam) copy @std; DEPENDS="libdb libtirpc";;
43 *-dev) copy @dev; DEPENDS="pam db-dev libtirpc-dev";;
44 esac
45 }
47 # If busybox-pam is installed, trigger its removal right now. Once pam shared
48 # library will be removed, it will be too late. Don't worry about this, while
49 # removing busybox-pam will replace itself by a non-pam busybox.
50 pre_remove_pam() {
51 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then
52 tazpkg remove busybox-pam --auto
53 fi
54 }