wok-next view pam/receipt @ rev 20621
Add: fluxcomp, ldns, libndp, libnsl, nghttp2; up: directfb, libevent, libnl, libsoup, links, neon, serf
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Apr 25 13:24:59 2018 +0300 (2018-04-25) |
parents | 757d032c55c7 |
children | d5aab818505e |
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://www.linux-pam.org/library/Linux-PAM-$VERSION.tar.bz2"
14 BUILD_DEPENDS="db-dev libtirpc-dev gettext"
15 SPLIT="pam-dev"
17 compile_rules() {
18 ./configure \
19 --libdir=/usr/lib \
20 --disable-regenerate-docu \
21 --enable-securedir=/lib/security \
22 $CONFIGURE_ARGS &&
23 fix libtool &&
24 make &&
25 make install || return 1
27 install -Dm644 $stuff/other $install/etc/pam.d/other
29 chmod -v 4755 $install/sbin/unix_chkpwd
31 for file in pam pam_misc pamc; do
32 mv -v $install/usr/lib/lib$file.so.* $install/lib
33 ln -sfv ../../lib/$(readlink $install/usr/lib/lib$file.so) \
34 $install/usr/lib/lib$file.so
35 done
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 pam) copy @std; DEPENDS="libdb libtirpc";;
41 *-dev) copy @dev; DEPENDS="pam db-dev libtirpc-dev";;
42 esac
43 }
45 # If busybox-pam is installed, trigger its removal right now. Once pam shared
46 # library will be removed, it will be too late. Don't worry about this, while
47 # removing busybox-pam will replace itself by a non-pam busybox.
48 pre_remove_pam() {
49 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then
50 tazpkg remove busybox-pam --auto
51 fi
52 }