wok view coreutils/receipt @ rev 10445
ario: fix bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 25 03:14:19 2011 +0200 (2011-05-25) |
parents | 6afc9676e679 |
children | 7fc3e2e4fb0a |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="8.12"
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.xz"
9 WEB_SITE="http://www.gnu.org/software/coreutils/"
10 WGET_URL="ftp://ftp.gnu.org/gnu/$PACKAGE/$TARBALL"
11 DEPENDS="glibc-base gmp libcap"
12 BUILD_DEPENDS="slitaz-toolchain libcap-dev gmp-dev m4 autoconf automake"
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 # Hack to change uname: so can see the cpu type your running on with uname
23 while read patch_file; do
24 if [ -f done.$patch_file ]; then
25 echo "Skipping $patch_file"
26 continue
27 fi
28 echo "Apply $patch_file"
29 patch -p1 < $stuff/$patch_file || return 1
30 touch done.$patch_file
31 done <<EOT
32 ls.u
33 uname.u
34 EOT
36 sed -i 's/1.10a/1.10.2/' configure.ac || return 1
37 sed -i 's/dist-xz/dist-lzma/' configure.ac || return 1
39 ./configure $CONFIGURE_ARGS &&
40 make && make install
42 # Restore original sigcontext.h
43 # mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 #
48 # This is a special package for installed system or developer. We only take
49 # a fiew things, Busybox provide all the basic utilitie, but not for compiling.
50 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
51 #
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/bin
55 # Utils...
56 cp -a $_pkg/usr/bin/base64 $fs/usr/bin
57 cp -a $_pkg/usr/bin/csplit $fs/usr/bin
58 cp -a $_pkg/usr/bin/factor $fs/usr/bin
59 cp -a $_pkg/usr/bin/fmt $fs/usr/bin
60 cp -a $_pkg/usr/bin/join $fs/usr/bin
61 cp -a $_pkg/usr/bin/od $fs/usr/bin
62 cp -a $_pkg/usr/bin/paste $fs/usr/bin
63 cp -a $_pkg/usr/bin/ptx $fs/usr/bin
64 cp -a $_pkg/usr/bin/shred $fs/usr/bin
65 cp -a $_pkg/usr/bin/shuf $fs/usr/bin
66 cp -a $_pkg/usr/bin/split $fs/usr/bin
67 cp -a $_pkg/usr/bin/users $fs/usr/bin
68 cp -a $_pkg/usr/bin/groups $fs/usr/bin
69 }
71 # Pre and post install commands for Tazpkg.
72 # We must remove all Busybox symlink before installing.
73 #
74 pre_install()
75 {
76 local root
77 root=$1
78 echo "Processing pre-install commands..."
79 echo -n "Removing all Busybox replaced utils... "
80 rm -f $root/usr/bin/od $root/usr/bin/split
81 status
82 }
84 post_remove()
85 {
86 ln -s /bin/busybox $1/usr/bin/od
87 ln -s /bin/busybox $1/usr/bin/split
88 }
90 clean_wok()
91 {
92 rm -rf $WOK/$PACKAGE-*/taz
93 rm -rf $WOK/$PACKAGE-*/process.log
94 }