wok-next annotate coreutils/receipt @ rev 15434
Up: eet (1.7.9)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 05 20:57:30 2013 +0100 (2013-11-05) |
parents | 42dddfa83e87 |
children | 9e01bc6321ea |
rev | line source |
---|---|
pankso@15 | 1 # SliTaz package receipt. |
pankso@15 | 2 |
pankso@15 | 3 PACKAGE="coreutils" |
slaxemulator@10149 | 4 VERSION="8.12" |
pankso@211 | 5 CATEGORY="system-tools" |
pankso@15 | 6 SHORT_DESC="Utilities for using and setting the basic system." |
pankso@15 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
slaxemulator@7244 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@15 | 10 WEB_SITE="http://www.gnu.org/software/coreutils/" |
slaxemulator@7245 | 11 WGET_URL="ftp://ftp.gnu.org/gnu/$PACKAGE/$TARBALL" |
pascal@14074 | 12 |
rcx@3574 | 13 DEPENDS="glibc-base gmp libcap" |
slaxemulator@6519 | 14 BUILD_DEPENDS="slitaz-toolchain libcap-dev gmp-dev m4 autoconf automake" |
pankso@15 | 15 |
pankso@15 | 16 # Rules to configure and make the package. |
pankso@15 | 17 compile_rules() |
pankso@15 | 18 { |
pankso@15 | 19 cd $src |
pankso@4080 | 20 |
rcx@3574 | 21 # NOTE: There does not seem to be a problem with sigcontext.h in Linux 2.6.29.3 |
rcx@3574 | 22 |
pankso@3435 | 23 # Hack to fix ls: expected specifier-qualifier-list before '__u64' |
slaxemulator@7775 | 24 # Hack to change uname: so can see the cpu type your running on with uname |
pascal@3659 | 25 while read patch_file; do |
pascal@3659 | 26 if [ -f done.$patch_file ]; then |
pascal@3659 | 27 echo "Skipping $patch_file" |
pascal@3659 | 28 continue |
pascal@3659 | 29 fi |
pascal@3659 | 30 echo "Apply $patch_file" |
slaxemulator@9693 | 31 patch -p1 < $stuff/$patch_file || return 1 |
pascal@3659 | 32 touch done.$patch_file |
pascal@3659 | 33 done <<EOT |
pascal@3659 | 34 ls.u |
slaxemulator@7775 | 35 uname.u |
pascal@3659 | 36 EOT |
pankso@4080 | 37 |
gokhlayeh@8615 | 38 sed -i 's/1.10a/1.10.2/' configure.ac || return 1 |
gokhlayeh@8615 | 39 sed -i 's/dist-xz/dist-lzma/' configure.ac || return 1 |
pankso@4080 | 40 |
slaxemulator@10149 | 41 ./configure $CONFIGURE_ARGS && |
slaxemulator@10149 | 42 make && make install |
pankso@4080 | 43 |
pankso@3435 | 44 # Restore original sigcontext.h |
rcx@3574 | 45 # mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h |
pankso@15 | 46 } |
pankso@15 | 47 |
pankso@15 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@15 | 49 # |
pankso@15 | 50 # This is a special package for installed system or developer. We only take |
pankso@15 | 51 # a fiew things, Busybox provide all the basic utilitie, but not for compiling. |
pankso@15 | 52 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules. |
pankso@15 | 53 # |
pankso@15 | 54 genpkg_rules() |
pankso@15 | 55 { |
pascal@14074 | 56 mkdir -p $fs/usr/bin $fs/bin |
pankso@15 | 57 # Utils... |
pascal@14074 | 58 cp -a $install/usr/bin/base64 $fs/usr/bin |
pascal@14074 | 59 cp -a $install/usr/bin/csplit $fs/usr/bin |
pascal@14074 | 60 cp -a $install/usr/bin/factor $fs/usr/bin |
pascal@14074 | 61 cp -a $install/usr/bin/fmt $fs/usr/bin |
pascal@14074 | 62 cp -a $install/usr/bin/join $fs/usr/bin |
pascal@14074 | 63 cp -a $install/usr/bin/od $fs/usr/bin |
pascal@14074 | 64 cp -a $install/usr/bin/paste $fs/usr/bin |
pascal@14074 | 65 cp -a $install/usr/bin/ptx $fs/usr/bin |
pascal@14074 | 66 cp -a $install/usr/bin/shred $fs/usr/bin |
pascal@14074 | 67 cp -a $install/usr/bin/shuf $fs/usr/bin |
pascal@14074 | 68 cp -a $install/usr/bin/split $fs/usr/bin |
pascal@14074 | 69 cp -a $install/usr/bin/users $fs/usr/bin |
pascal@14074 | 70 cp -a $install/usr/bin/groups $fs/usr/bin |
domcox@14131 | 71 cp -a $install/usr/bin/cp $fs/usr/bin |
pankso@15 | 72 } |
pankso@15 | 73 |
pankso@15 | 74 # Pre and post install commands for Tazpkg. |
domcox@14131 | 75 # We must remove all Busybox symlink but cp before installing. |
pankso@15 | 76 # |
pankso@15 | 77 pre_install() |
pankso@15 | 78 { |
pankso@15 | 79 local root |
pankso@15 | 80 root=$1 |
pankso@15 | 81 echo "Processing pre-install commands..." |
domcox@14187 | 82 # we keed busybox cp for installing the pkg |
domcox@14131 | 83 echo -n "Removing Busybox replaced utils... " |
domcox@14131 | 84 rm -f $root/usr/bin/od $root/usr/bin/split |
domcox@14131 | 85 status |
domcox@14131 | 86 } |
domcox@14131 | 87 |
domcox@14131 | 88 post_install() |
domcox@14131 | 89 { |
domcox@14131 | 90 echo -n "Installing cp..." |
domcox@14131 | 91 rm $root/bin/cp && |
domcox@14131 | 92 mv $root/usr/bin/cp $root/bin |
pankso@15 | 93 status |
pankso@15 | 94 } |
pankso@3435 | 95 |
pankso@3435 | 96 post_remove() |
pankso@3435 | 97 { |
pascal@14074 | 98 ln -s ../../bin/busybox $1/usr/bin/od |
pascal@14074 | 99 ln -s ../../bin/busybox $1/usr/bin/split |
domcox@14187 | 100 rm -f $1/bin/cp |
pascal@14074 | 101 ln -s busybox $1/bin/cp |
pankso@3435 | 102 } |
slaxemulator@6857 | 103 |
slaxemulator@6857 | 104 clean_wok() |
slaxemulator@6857 | 105 { |
slaxemulator@6857 | 106 rm -rf $WOK/$PACKAGE-*/taz |
slaxemulator@6857 | 107 rm -rf $WOK/$PACKAGE-*/process.log |
slaxemulator@6857 | 108 } |