wok-next view pam/receipt @ rev 20443

The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 16:17:33 2018 +0200 (2018-02-24)
parents c1d8355335f2
children a429b73c2d89
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" # 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 &&
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";;
43 *-dev) copy @dev; DEPENDS="pam db-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 }