wok-current rev 16403

X86_64: add liblzma
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 16 11:50:05 2014 +0000 (2014-04-16)
parents c4d492f49d85
children d6cce6fef10e
files liblzma-dev/receipt liblzma/receipt pxe-kexec/receipt
line diff
     1.1 --- a/liblzma-dev/receipt	Wed Apr 16 14:34:44 2014 +0300
     1.2 +++ b/liblzma-dev/receipt	Wed Apr 16 11:50:05 2014 +0000
     1.3 @@ -8,7 +8,7 @@
     1.4  LICENSE="PublicDomain LGPL2.1 GPL2 GPL3"
     1.5  WEB_SITE="http://tukaani.org/xz"
     1.6  WANTED="xz"
     1.7 -HOST_ARCH="i486 arm"
     1.8 +HOST_ARCH="i486 arm x86_64"
     1.9  
    1.10  DEPENDS="liblzma pkg-config"
    1.11  
     2.1 --- a/liblzma/receipt	Wed Apr 16 14:34:44 2014 +0300
     2.2 +++ b/liblzma/receipt	Wed Apr 16 11:50:05 2014 +0000
     2.3 @@ -8,7 +8,7 @@
     2.4  LICENSE="PublicDomain LGPL2.1 GPL2 GPL3"
     2.5  WEB_SITE="http://tukaani.org/xz"
     2.6  WANTED="xz"
     2.7 -HOST_ARCH="i486 arm"
     2.8 +HOST_ARCH="i486 arm x86_64"
     2.9  
    2.10  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.11  genpkg_rules()
     3.1 --- a/pxe-kexec/receipt	Wed Apr 16 14:34:44 2014 +0300
     3.2 +++ b/pxe-kexec/receipt	Wed Apr 16 11:50:05 2014 +0000
     3.3 @@ -29,3 +29,18 @@
     3.4  	mkdir -p $fs/usr
     3.5  	cp -a $install/usr/sbin $fs/usr
     3.6  }
     3.7 +
     3.8 +# Pre and post install commands for Tazpkg.
     3.9 +post_install()
    3.10 +{
    3.11 +	grep -q kexec $1/etc/init.d/rc.shutdown &&
    3.12 +	cat >> $1/etc/init.d/rc.shutdown <<EOT
    3.13 +# pxe-kexec want kexec in shutdown script.
    3.14 +kexec -e 2>&1 > /dev/null
    3.15 +EOT
    3.16 +}
    3.17 +
    3.18 +post_remove()
    3.19 +{
    3.20 +	sed -i '/kexec/d' $1/etc/init.d/rc.shutdown
    3.21 +}