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