wok view coreutils/receipt @ rev 3574

Update: coreutils, for Linux 2.6.29.3
author Matthew Sheets <rcx@zoominternet.net>
date Thu Jun 25 12:25:00 2009 +0000 (2009-06-25)
parents f0f3070ff8fb
children 764e28919242
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="7.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities for using and setting the basic system."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnu.org/software/coreutils/"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
11 DEPENDS="glibc-base gmp libcap"
12 BUILD_DEPENDS="slitaz-toolchain libcap-dev gmp-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # NOTE: There does not seem to be a problem with sigcontext.h in Linux 2.6.29.3
21 # Hack to fix ls: expected specifier-qualifier-list before '__u64'
22 # We are not patching the original file, just fake to compile
23 # coreutils.
24 # rm -f /usr/include/asm/sigcontext.h.bak
25 # mv /usr/include/asm/sigcontext.h /usr/include/asm/sigcontext.h.bak || exit 1
26 # cp ../stuff/sigcontext.h /usr/include/asm
28 sed -i 's/1.10a/1.10.2/' configure.ac || exit 1
29 sed -i 's/dist-xz/dist-lzma/' configure.ac || exit 1
31 ./configure \
32 --prefix=/usr \
33 --infodir=/usr/share/info \
34 --mandir=/usr/share/man \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$PWD/_pkg install
39 # Restore original sigcontext.h
40 # mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 #
45 # This is a special package for installed system or developer. We only take
46 # a fiew things, Busybox provide all the basic utilitie, but not for compiling.
47 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
48 #
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/bin
52 # Utils...
53 cp -a $_pkg/usr/bin/base64 $fs/usr/bin
54 cp -a $_pkg/usr/bin/csplit $fs/usr/bin
55 cp -a $_pkg/usr/bin/factor $fs/usr/bin
56 cp -a $_pkg/usr/bin/fmt $fs/usr/bin
57 cp -a $_pkg/usr/bin/join $fs/usr/bin
58 cp -a $_pkg/usr/bin/od $fs/usr/bin
59 cp -a $_pkg/usr/bin/paste $fs/usr/bin
60 cp -a $_pkg/usr/bin/ptx $fs/usr/bin
61 cp -a $_pkg/usr/bin/shred $fs/usr/bin
62 cp -a $_pkg/usr/bin/shuf $fs/usr/bin
63 cp -a $_pkg/usr/bin/split $fs/usr/bin
64 cp -a $_pkg/usr/bin/users $fs/usr/bin
65 cp -a $_pkg/usr/bin/groups $fs/usr/bin
66 }
68 # Pre and post install commands for Tazpkg.
69 # We must remove all Busybox symlink before installing.
70 #
71 pre_install()
72 {
73 local root
74 root=$1
75 echo "Processing pre-install commands..."
76 echo -n "Removing all Busybox replaced utils... "
77 rm -f $root/usr/bin/od $root/usr/bin/split
78 status
79 }
81 post_remove()
82 {
83 ln -s /bin/busybox /usr/bin/od
84 ln -s /bin/busybox /usr/bin/split
85 }