wok view coreutils/receipt @ rev 9064
boxbackup-server: remove man files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 04 13:25:43 2011 +0100 (2011-03-04) |
parents | d5009f5bff9c |
children | 6afc9676e679 |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="8.10"
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 \
40 --prefix=/usr \
41 --infodir=/usr/share/info \
42 --mandir=/usr/share/man \
43 $CONFIGURE_ARGS &&
44 make &&
45 make DESTDIR=$PWD/_pkg install
47 # Restore original sigcontext.h
48 # mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 #
53 # This is a special package for installed system or developer. We only take
54 # a fiew things, Busybox provide all the basic utilitie, but not for compiling.
55 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
56 #
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/bin
60 # Utils...
61 cp -a $_pkg/usr/bin/base64 $fs/usr/bin
62 cp -a $_pkg/usr/bin/csplit $fs/usr/bin
63 cp -a $_pkg/usr/bin/factor $fs/usr/bin
64 cp -a $_pkg/usr/bin/fmt $fs/usr/bin
65 cp -a $_pkg/usr/bin/join $fs/usr/bin
66 cp -a $_pkg/usr/bin/od $fs/usr/bin
67 cp -a $_pkg/usr/bin/paste $fs/usr/bin
68 cp -a $_pkg/usr/bin/ptx $fs/usr/bin
69 cp -a $_pkg/usr/bin/shred $fs/usr/bin
70 cp -a $_pkg/usr/bin/shuf $fs/usr/bin
71 cp -a $_pkg/usr/bin/split $fs/usr/bin
72 cp -a $_pkg/usr/bin/users $fs/usr/bin
73 cp -a $_pkg/usr/bin/groups $fs/usr/bin
74 }
76 # Pre and post install commands for Tazpkg.
77 # We must remove all Busybox symlink before installing.
78 #
79 pre_install()
80 {
81 local root
82 root=$1
83 echo "Processing pre-install commands..."
84 echo -n "Removing all Busybox replaced utils... "
85 rm -f $root/usr/bin/od $root/usr/bin/split
86 status
87 }
89 post_remove()
90 {
91 ln -s /bin/busybox /usr/bin/od
92 ln -s /bin/busybox /usr/bin/split
93 }
95 clean_wok()
96 {
97 rm -rf $WOK/$PACKAGE-*/taz
98 rm -rf $WOK/$PACKAGE-*/process.log
99 }