wok-next view pam/receipt @ rev 20588
e4rat: fix packing
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 15:12:31 2018 +0300 (2018-04-14) |
parents | a429b73c2d89 |
children | 10df65db91ad |
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 make &&
24 make install || return 1
26 install -Dm644 $stuff/other $install/etc/pam.d/other
28 chmod -v 4755 $install/sbin/unix_chkpwd
30 for file in pam pam_misc pamc; do
31 mv -v $install/usr/lib/lib$file.so.* $install/lib
32 ln -sfv ../../lib/$(readlink $install/usr/lib/lib$file.so) \
33 $install/usr/lib/lib$file.so
34 done
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 pam) copy @std; DEPENDS="libdb libtirpc";;
40 *-dev) copy @dev; DEPENDS="pam db-dev libtirpc-dev";;
41 esac
42 }
44 # If busybox-pam is installed, trigger its removal right now. Once pam shared
45 # library will be removed, it will be too late. Don't worry about this, while
46 # removing busybox-pam will replace itself by a non-pam busybox.
47 pre_remove_pam() {
48 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then
49 tazpkg remove busybox-pam --auto
50 fi
51 }