wok-next view pam/receipt @ rev 20014

Up leptonica (1.74.4). abiword, emacs: up bdeps. marble: fix build.
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Oct 21 21:21:28 2017 +0200 (2017-10-21)
parents 18c4d15a72df
children 0e7893ac206d
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"
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --sysconfdir=/etc \
23 --libdir=/usr/lib \
24 --disable-regenerate-docu \
25 --enable-securedir=/lib/security \
26 --docdir=/usr/share/doc/Linux-PAM-$VERSION \
27 $CONFIGURE_ARGS &&
28 make && make install &&
30 mkdir -p $install/etc/pam.d &&
31 cp $stuff/other $install/etc/pam.d &&
33 chmod -v 4755 $install/sbin/unix_chkpwd &&
35 for file in pam pam_misc pamc; do
36 mv -v $install/usr/lib/lib$file.so.* $install/lib &&
37 ln -sfv ../../lib/$(readlink $install/usr/lib/lib$file.so) \
38 $install/usr/lib/lib$file.so
39 done
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 case $PACKAGE in
46 pam) copy @std; DEPENDS="libdb";;
47 *-dev) copy @dev; DEPENDS="pam db-dev";;
48 esac
49 }
51 # If busybox-pam is installed, trigger its removal right now. Once pam shared
52 # library will be removed, it will be too late. Don't worry about this, while
53 # removing busybox-pam will replace itself by a non-pam busybox.
54 pre_remove_pam() {
55 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then
56 tazpkg remove busybox-pam --auto
57 fi
58 }