wok diff busybox-pam/receipt @ rev 12192

Add msmtp (use external SMTP server and avois postfix/sendmail, may be used ny Pizza)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 26 01:28:28 2012 +0200 (2012-03-26)
parents 31974934cb2a
children 2a66c0430085
line diff
     1.1 --- a/busybox-pam/receipt	Fri May 06 21:20:20 2011 +0000
     1.2 +++ b/busybox-pam/receipt	Mon Mar 26 01:28:28 2012 +0200
     1.3 @@ -14,17 +14,24 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -    mkdir -p $fs/bin
     1.8 -    cp -a $src/busybox-pam $fs/bin/busybox
     1.9 -    cp -a $stuff/* $fs
    1.10 +	mkdir -p $fs/bin
    1.11 +	cp -a $src/busybox-pam $fs/bin/busybox
    1.12 +	cp -a $stuff/* $fs
    1.13  }
    1.14  
    1.15  pre_remove()
    1.16  {
    1.17 -    tazpkg get-install  ${PACKAGE%-pam}
    1.18 +	# We install non-pam busybox to replace busybox-pam.
    1.19 +	tazpkg get-install ${PACKAGE%-pam} --forced
    1.20 +
    1.21 +	# We remove /bin/busybox from the file.list of busybox-pam.
    1.22 +	# This way, the non-pam busybox we just installed will not be
    1.23 +	# removed.
    1.24 +	sed '/\/bin\/busybox/d' \
    1.25 +		-i /var/lib/tazpkg/installed/busybox-pam/files.list
    1.26  }
    1.27  
    1.28  post_install()
    1.29  {
    1.30 -    chmod 4755 $1/bin/busybox
    1.31 +	chmod 4755 $1/bin/busybox
    1.32  }