wok-current annotate busybox-pam/receipt @ rev 23994
linld: no initrd fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 15 08:41:50 2020 +0000 (2020-12-15) |
parents | 7a039a870626 |
children | 73f36875e5a7 |
rev | line source |
---|---|
pascal@2195 | 1 # SliTaz package receipt. |
pascal@2195 | 2 |
pascal@2195 | 3 PACKAGE="busybox-pam" |
pascal@23897 | 4 VERSION="1.31.1" |
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@7277 | 9 DEPENDS="busybox pam" |
pascal@7274 | 10 WANTED="busybox" |
pascal@2195 | 11 WEB_SITE="http://www.busybox.net/" |
pascal@7278 | 12 CONFIG_FILES="/etc/pam.d" |
pascal@2195 | 13 PROVIDE="busybox:pam" |
pascal@2195 | 14 |
pascal@2195 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2195 | 16 genpkg_rules() |
pascal@2195 | 17 { |
gokhlayeh@11446 | 18 mkdir -p $fs/bin |
gokhlayeh@11446 | 19 cp -a $src/busybox-pam $fs/bin/busybox |
gokhlayeh@11446 | 20 cp -a $stuff/* $fs |
pascal@2195 | 21 } |
pascal@7632 | 22 |
pascal@7632 | 23 pre_remove() |
pascal@7632 | 24 { |
gokhlayeh@11446 | 25 # We install non-pam busybox to replace busybox-pam. |
gokhlayeh@11446 | 26 tazpkg get-install ${PACKAGE%-pam} --forced |
gokhlayeh@11446 | 27 |
gokhlayeh@11446 | 28 # We remove /bin/busybox from the file.list of busybox-pam. |
gokhlayeh@11446 | 29 # This way, the non-pam busybox we just installed will not be |
gokhlayeh@11446 | 30 # removed. |
gokhlayeh@11446 | 31 sed '/\/bin\/busybox/d' \ |
gokhlayeh@11446 | 32 -i /var/lib/tazpkg/installed/busybox-pam/files.list |
pascal@7632 | 33 } |
pascal@7755 | 34 |
pascal@7755 | 35 post_install() |
pascal@7755 | 36 { |
pascal@18730 | 37 chmod 4755 "$1/bin/busybox" |
pascal@7755 | 38 } |