wok view coreutils/receipt @ rev 14628
Up: subversion to 1.7.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 01 20:48:23 2013 +0000 (2013-06-01) |
parents | f4b27ae2f99f |
children | 2b9f96603415 |
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"
12 DEPENDS="glibc-base gmp libcap"
13 BUILD_DEPENDS="slitaz-toolchain libcap-dev gmp-dev m4 autoconf automake"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
20 # NOTE: There does not seem to be a problem with sigcontext.h in Linux 2.6.29.3
22 # Hack to fix ls: expected specifier-qualifier-list before '__u64'
23 # Hack to change uname: so can see the cpu type your running on with uname
24 while read patch_file; do
25 if [ -f done.$patch_file ]; then
26 echo "Skipping $patch_file"
27 continue
28 fi
29 echo "Apply $patch_file"
30 patch -p1 < $stuff/$patch_file || return 1
31 touch done.$patch_file
32 done <<EOT
33 ls.u
34 uname.u
35 EOT
37 sed -i 's/1.10a/1.10.2/' configure.ac || return 1
38 sed -i 's/dist-xz/dist-lzma/' configure.ac || return 1
40 ./configure $CONFIGURE_ARGS &&
41 make && make install
43 # Restore original sigcontext.h
44 # mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 #
49 # This is a special package for installed system or developer. We only take
50 # a fiew things, Busybox provide all the basic utilitie, but not for compiling.
51 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
52 #
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/bin $fs/bin
56 # Utils...
57 cp -a $install/usr/bin/base64 $fs/usr/bin
58 cp -a $install/usr/bin/csplit $fs/usr/bin
59 cp -a $install/usr/bin/factor $fs/usr/bin
60 cp -a $install/usr/bin/fmt $fs/usr/bin
61 cp -a $install/usr/bin/join $fs/usr/bin
62 cp -a $install/usr/bin/od $fs/usr/bin
63 cp -a $install/usr/bin/paste $fs/usr/bin
64 cp -a $install/usr/bin/ptx $fs/usr/bin
65 cp -a $install/usr/bin/shred $fs/usr/bin
66 cp -a $install/usr/bin/shuf $fs/usr/bin
67 cp -a $install/usr/bin/split $fs/usr/bin
68 cp -a $install/usr/bin/users $fs/usr/bin
69 cp -a $install/usr/bin/groups $fs/usr/bin
70 cp -a $install/usr/bin/cp $fs/usr/bin
71 }
73 # Pre and post install commands for Tazpkg.
74 # We must remove all Busybox symlink but cp before installing.
75 #
76 pre_install()
77 {
78 local root
79 root=$1
80 echo "Processing pre-install commands..."
81 # we keed busybox cp for installing the pkg
82 echo -n "Removing Busybox replaced utils... "
83 rm -f $root/usr/bin/od $root/usr/bin/split
84 status
85 }
87 post_install()
88 {
89 echo -n "Installing cp..."
90 rm $root/bin/cp &&
91 mv $root/usr/bin/cp $root/bin
92 status
93 }
95 post_remove()
96 {
97 ln -s ../../bin/busybox $1/usr/bin/od
98 ln -s ../../bin/busybox $1/usr/bin/split
99 rm -f $1/bin/cp
100 ln -s busybox $1/bin/cp
101 }
103 clean_wok()
104 {
105 rm -rf $WOK/$PACKAGE-*/taz
106 rm -rf $WOK/$PACKAGE-*/process.log
107 }