wok-stable annotate coreutils/receipt @ rev 3607
encfs: Fix EXTRAVERSION in receipt (must not be hardcoded)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jun 28 23:18:10 2009 +0200 (2009-06-28) |
parents | f0f3070ff8fb |
children | 764e28919242 |
rev | line source |
---|---|
pankso@15 | 1 # SliTaz package receipt. |
pankso@15 | 2 |
pankso@15 | 3 PACKAGE="coreutils" |
erjo@3133 | 4 VERSION="7.4" |
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" |
pankso@15 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@15 | 9 WEB_SITE="http://www.gnu.org/software/coreutils/" |
pankso@15 | 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
rcx@3574 | 11 DEPENDS="glibc-base gmp libcap" |
rcx@3574 | 12 BUILD_DEPENDS="slitaz-toolchain libcap-dev gmp-dev" |
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@3435 | 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' |
pankso@3435 | 22 # We are not patching the original file, just fake to compile |
pankso@3435 | 23 # coreutils. |
rcx@3574 | 24 # rm -f /usr/include/asm/sigcontext.h.bak |
rcx@3574 | 25 # mv /usr/include/asm/sigcontext.h /usr/include/asm/sigcontext.h.bak || exit 1 |
rcx@3574 | 26 # cp ../stuff/sigcontext.h /usr/include/asm |
pankso@3435 | 27 |
pankso@3435 | 28 sed -i 's/1.10a/1.10.2/' configure.ac || exit 1 |
pankso@3435 | 29 sed -i 's/dist-xz/dist-lzma/' configure.ac || exit 1 |
pankso@3435 | 30 |
pankso@3435 | 31 ./configure \ |
pankso@3435 | 32 --prefix=/usr \ |
pankso@3435 | 33 --infodir=/usr/share/info \ |
pankso@3435 | 34 --mandir=/usr/share/man \ |
pankso@3435 | 35 $CONFIGURE_ARGS && |
pankso@3435 | 36 make && |
rcx@3574 | 37 make DESTDIR=$PWD/_pkg install |
pankso@3435 | 38 |
pankso@3435 | 39 # Restore original sigcontext.h |
rcx@3574 | 40 # mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h |
pankso@15 | 41 } |
pankso@15 | 42 |
pankso@15 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@15 | 44 # |
pankso@15 | 45 # This is a special package for installed system or developer. We only take |
pankso@15 | 46 # a fiew things, Busybox provide all the basic utilitie, but not for compiling. |
pankso@15 | 47 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules. |
pankso@15 | 48 # |
pankso@15 | 49 genpkg_rules() |
pankso@15 | 50 { |
pankso@3435 | 51 mkdir -p $fs/usr/bin |
pankso@15 | 52 # Utils... |
pankso@15 | 53 cp -a $_pkg/usr/bin/base64 $fs/usr/bin |
pankso@15 | 54 cp -a $_pkg/usr/bin/csplit $fs/usr/bin |
pankso@15 | 55 cp -a $_pkg/usr/bin/factor $fs/usr/bin |
pankso@15 | 56 cp -a $_pkg/usr/bin/fmt $fs/usr/bin |
pankso@15 | 57 cp -a $_pkg/usr/bin/join $fs/usr/bin |
pankso@15 | 58 cp -a $_pkg/usr/bin/od $fs/usr/bin |
pankso@15 | 59 cp -a $_pkg/usr/bin/paste $fs/usr/bin |
pankso@15 | 60 cp -a $_pkg/usr/bin/ptx $fs/usr/bin |
pankso@15 | 61 cp -a $_pkg/usr/bin/shred $fs/usr/bin |
pankso@15 | 62 cp -a $_pkg/usr/bin/shuf $fs/usr/bin |
pankso@15 | 63 cp -a $_pkg/usr/bin/split $fs/usr/bin |
pankso@15 | 64 cp -a $_pkg/usr/bin/users $fs/usr/bin |
erjo@174 | 65 cp -a $_pkg/usr/bin/groups $fs/usr/bin |
pankso@15 | 66 } |
pankso@15 | 67 |
pankso@15 | 68 # Pre and post install commands for Tazpkg. |
pankso@15 | 69 # We must remove all Busybox symlink before installing. |
pankso@15 | 70 # |
pankso@15 | 71 pre_install() |
pankso@15 | 72 { |
pankso@15 | 73 local root |
pankso@15 | 74 root=$1 |
pankso@15 | 75 echo "Processing pre-install commands..." |
pankso@3435 | 76 echo -n "Removing all Busybox replaced utils... " |
pankso@15 | 77 rm -f $root/usr/bin/od $root/usr/bin/split |
pankso@15 | 78 status |
pankso@15 | 79 } |
pankso@3435 | 80 |
pankso@3435 | 81 post_remove() |
pankso@3435 | 82 { |
pankso@3435 | 83 ln -s /bin/busybox /usr/bin/od |
pankso@3435 | 84 ln -s /bin/busybox /usr/bin/split |
pankso@3435 | 85 } |