wok-current view pam/receipt @ rev 15742

Up: tazdev and tazwikiss (match slitaz-dev-tools Hg tag)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Jan 02 14:50:15 2014 +0100 (2014-01-02)
parents e7b91865d675
children d3446b644489
line source
1 # SliTaz package receipt.
3 PACKAGE="pam"
4 VERSION="1.1.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Pluggable Authentication Modules."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD GPL2"
9 SOURCE="Linux-PAM"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.us.kernel.org/pub/linux/libs/pam/"
12 # Download sources from a non-https mirror so that tazwok can
13 # cook the toolchain (pam is a build-depend of busybox).
14 # It's because at this moment tazwok doesn't have access to https
15 # compatible wget.
16 WGET_URL="http://gentoo.osuosl.org/distfiles/$TARBALL"
18 DEPENDS="glibc-base libdb"
19 BUILD_DEPENDS="flex db db-dev libdb"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 ./configure --sysconfdir=/etc $CONFIGURE_ARGS &&
26 make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/lib
33 cp -a $install/etc $fs
34 cp -a $install/sbin $fs
35 cp -a $install/lib/*so* $fs/lib
36 cp -a $install/lib/security $fs/lib
37 rm -f $fs/lib/security/*.la
38 cp -a $stuff/* $fs
39 }
41 pre_remove()
42 {
43 # If busybox-pam is installed, trigger its removal right now. Once pam shared
44 # library will be removed, it will be too late. Don't worry about this, while
45 # removing busybox-pam will replace itself by a non-pam busybox.
46 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then
47 tazpkg remove busybox-pam --auto
48 fi
49 }