wok-next view pam/receipt @ rev 19734

Up cookutils(905) (v2)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 27 16:29:45 2017 +0300 (2017-05-27)
parents 60f944d082a0
children c1d8355335f2
line source
1 # SliTaz package receipt.
3 PACKAGE="pam"
4 VERSION="1.3.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Pluggable Authentication Modules."
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 DEPENDS="glibc-base libdb"
16 BUILD_DEPENDS="flex db-dev libdb"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --sysconfdir=/etc \
23 $CONFIGURE_ARGS &&
24 make && make install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/lib
31 cp -a $install/etc $fs
32 cp -a $install/sbin $fs
33 cp -a $install/lib/*so* $fs/lib
34 cp -a $install/lib/security $fs/lib
35 rm -f $fs/lib/security/*.la
36 cp -a $stuff/* $fs
37 }
39 pre_remove()
40 {
41 # If busybox-pam is installed, trigger its removal right now. Once pam shared
42 # library will be removed, it will be too late. Don't worry about this, while
43 # removing busybox-pam will replace itself by a non-pam busybox.
44 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then
45 tazpkg remove busybox-pam --auto
46 fi
47 }