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