wok view coreutils/receipt @ rev 4800
tazpkg-web: Clean-up and small fixes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jan 17 21:59:56 2010 +0100 (2010-01-17) |
parents | 764e28919242 |
children | 5924ec6bb02f |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="7.6"
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 while read patch_file; do
23 if [ -f done.$patch_file ]; then
24 echo "Skipping $patch_file"
25 continue
26 fi
27 echo "Apply $patch_file"
28 patch -p1 < ../stuff/$patch_file || return 1
29 touch done.$patch_file
30 done <<EOT
31 ls.u
32 EOT
34 sed -i 's/1.10a/1.10.2/' configure.ac || exit 1
35 sed -i 's/dist-xz/dist-lzma/' configure.ac || exit 1
37 ./configure \
38 --prefix=/usr \
39 --infodir=/usr/share/info \
40 --mandir=/usr/share/man \
41 $CONFIGURE_ARGS &&
42 make &&
43 make DESTDIR=$PWD/_pkg install
45 # Restore original sigcontext.h
46 # mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 #
51 # This is a special package for installed system or developer. We only take
52 # a fiew things, Busybox provide all the basic utilitie, but not for compiling.
53 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
54 #
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/bin
58 # Utils...
59 cp -a $_pkg/usr/bin/base64 $fs/usr/bin
60 cp -a $_pkg/usr/bin/csplit $fs/usr/bin
61 cp -a $_pkg/usr/bin/factor $fs/usr/bin
62 cp -a $_pkg/usr/bin/fmt $fs/usr/bin
63 cp -a $_pkg/usr/bin/join $fs/usr/bin
64 cp -a $_pkg/usr/bin/od $fs/usr/bin
65 cp -a $_pkg/usr/bin/paste $fs/usr/bin
66 cp -a $_pkg/usr/bin/ptx $fs/usr/bin
67 cp -a $_pkg/usr/bin/shred $fs/usr/bin
68 cp -a $_pkg/usr/bin/shuf $fs/usr/bin
69 cp -a $_pkg/usr/bin/split $fs/usr/bin
70 cp -a $_pkg/usr/bin/users $fs/usr/bin
71 cp -a $_pkg/usr/bin/groups $fs/usr/bin
72 }
74 # Pre and post install commands for Tazpkg.
75 # We must remove all Busybox symlink before installing.
76 #
77 pre_install()
78 {
79 local root
80 root=$1
81 echo "Processing pre-install commands..."
82 echo -n "Removing all Busybox replaced utils... "
83 rm -f $root/usr/bin/od $root/usr/bin/split
84 status
85 }
87 post_remove()
88 {
89 ln -s /bin/busybox /usr/bin/od
90 ln -s /bin/busybox /usr/bin/split
91 }