wok-next annotate busybox-pam/receipt @ rev 19822
Up gstreamer0, gst0-plugins-base.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jul 29 17:26:14 2017 +0300 (2017-07-29) |
parents | f7d9f142f79d |
children |
rev | line source |
---|---|
pascal@2195 | 1 # SliTaz package receipt. |
pascal@2195 | 2 |
pascal@2195 | 3 PACKAGE="busybox-pam" |
pascal@19623 | 4 VERSION="1.26.2" |
pascal@2195 | 5 CATEGORY="base-system" |
pascal@2195 | 6 SHORT_DESC="Busybox combines tiny versions of many common UNIX utilities." |
pascal@2195 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
pascal@2195 | 9 WEB_SITE="http://www.busybox.net/" |
pascal@7278 | 10 CONFIG_FILES="/etc/pam.d" |
pascal@2195 | 11 PROVIDE="busybox:pam" |
pascal@2195 | 12 |
al@19581 | 13 WANTED="busybox" |
al@19581 | 14 DEPENDS="busybox pam" |
al@19581 | 15 |
al@19581 | 16 |
pascal@2195 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2195 | 18 genpkg_rules() |
pascal@2195 | 19 { |
gokhlayeh@11446 | 20 mkdir -p $fs/bin |
gokhlayeh@11446 | 21 cp -a $src/busybox-pam $fs/bin/busybox |
gokhlayeh@11446 | 22 cp -a $stuff/* $fs |
pascal@2195 | 23 } |
pascal@7632 | 24 |
pascal@7632 | 25 pre_remove() |
pascal@7632 | 26 { |
gokhlayeh@11446 | 27 # We install non-pam busybox to replace busybox-pam. |
al@19581 | 28 tazpkg get-install busybox --forced |
gokhlayeh@11446 | 29 |
gokhlayeh@11446 | 30 # We remove /bin/busybox from the file.list of busybox-pam. |
gokhlayeh@11446 | 31 # This way, the non-pam busybox we just installed will not be |
gokhlayeh@11446 | 32 # removed. |
gokhlayeh@11446 | 33 sed '/\/bin\/busybox/d' \ |
gokhlayeh@11446 | 34 -i /var/lib/tazpkg/installed/busybox-pam/files.list |
pascal@7632 | 35 } |
pascal@7755 | 36 |
pascal@7755 | 37 post_install() |
pascal@7755 | 38 { |
pascal@18730 | 39 chmod 4755 "$1/bin/busybox" |
pascal@7755 | 40 } |