wok-4.x diff coreutils/receipt @ rev 3570

Depends: bazaar
author Matthew Sheets <rcx@zoominternet.net>
date Thu Jun 25 11:02:39 2009 +0000 (2009-06-25)
parents 2a1d27b84c1a
children 27dbd5251d69
line diff
     1.1 --- a/coreutils/receipt	Wed May 20 16:13:00 2009 +0200
     1.2 +++ b/coreutils/receipt	Thu Jun 25 11:02:39 2009 +0000
     1.3 @@ -8,15 +8,35 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WEB_SITE="http://www.gnu.org/software/coreutils/"
     1.6  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
     1.7 +DEPENDS="libcap"
     1.8 +BUILD_DEPENDS="libcap-dev gmp-dev"
     1.9  
    1.10  # Rules to configure and make the package.
    1.11  compile_rules()
    1.12  {
    1.13  	cd $src
    1.14 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.15 -	--mandir=/usr/share/man $CONFIGURE_ARGS
    1.16 -	make
    1.17 -	make DESTDIR=$PWD/_pkg install
    1.18 +	
    1.19 +	# Hack to fix ls: expected specifier-qualifier-list before '__u64'
    1.20 +	# We are not patching the original file, just fake to compile
    1.21 +	# coreutils.
    1.22 +	rm -f /usr/include/asm/sigcontext.h.bak
    1.23 +	mv /usr/include/asm/sigcontext.h /usr/include/asm/sigcontext.h.bak || exit 1
    1.24 +	cp ../stuff/sigcontext.h /usr/include/asm
    1.25 +	
    1.26 +	sed -i 's/1.10a/1.10.2/' configure.ac || exit 1
    1.27 +	sed -i 's/dist-xz/dist-lzma/' configure.ac || exit 1
    1.28 +	
    1.29 +	./configure \
    1.30 +		--prefix=/usr \
    1.31 +		--infodir=/usr/share/info \
    1.32 +		--mandir=/usr/share/man \
    1.33 +		--enable-no-install-program=kill,uptime,ls \
    1.34 +		$CONFIGURE_ARGS &&
    1.35 +	make &&
    1.36 +	make DESTDIR=$PWD/_pkg install &&
    1.37 +	
    1.38 +	# Restore original sigcontext.h
    1.39 +	mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
    1.40  }
    1.41  
    1.42  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 @@ -27,7 +47,7 @@
    1.44  #
    1.45  genpkg_rules()
    1.46  {
    1.47 -	mkdir -p $fs/usr/bin $fs/usr/share/locale
    1.48 +	mkdir -p $fs/usr/bin
    1.49  	# Utils...
    1.50  	cp -a $_pkg/usr/bin/base64 $fs/usr/bin
    1.51  	cp -a $_pkg/usr/bin/csplit $fs/usr/bin
    1.52 @@ -42,9 +62,6 @@
    1.53  	cp -a $_pkg/usr/bin/split $fs/usr/bin
    1.54  	cp -a $_pkg/usr/bin/users $fs/usr/bin
    1.55  	cp -a $_pkg/usr/bin/groups $fs/usr/bin
    1.56 -	strip -s $fs/usr/bin/* 2>/dev/null
    1.57 -	# Locale
    1.58 -	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
    1.59  }
    1.60  
    1.61  # Pre and post install commands for Tazpkg.
    1.62 @@ -55,7 +72,13 @@
    1.63  	local root
    1.64  	root=$1
    1.65  	echo "Processing pre-install commands..."
    1.66 -	echo -n "Removing all Busybox reploaced utils... "
    1.67 +	echo -n "Removing all Busybox replaced utils... "
    1.68  	rm -f $root/usr/bin/od $root/usr/bin/split
    1.69  	status
    1.70  }
    1.71 +
    1.72 +post_remove()
    1.73 +{
    1.74 +	ln -s /bin/busybox /usr/bin/od
    1.75 +	ln -s /bin/busybox /usr/bin/split
    1.76 +}