wok-next diff btrfs-progs/receipt @ rev 19925

libftdi: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 14 23:27:36 2017 +0200 (2017-10-14)
parents c1d8355335f2
children d43bf7aae921
line diff
     1.1 --- a/btrfs-progs/receipt	Tue Jun 20 03:48:54 2017 +0300
     1.2 +++ b/btrfs-progs/receipt	Sat Oct 14 23:27:36 2017 +0200
     1.3 @@ -8,33 +8,46 @@
     1.4  LICENSE="GPL2"
     1.5  WEB_SITE="https://btrfs.wiki.kernel.org/index.php/Main_Page"
     1.6  
     1.7 -TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.8 -WGET_URL="https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git/snapshot/$TARBALL"
     1.9 +TARBALL="$PACKAGE-v$VERSION.tar.xz"
    1.10 +WGET_URL="https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/$TARBALL"
    1.11  
    1.12  BUILD_DEPENDS="util-linux-uuid-dev e2fsprogs e2fsprogs-dev zlib-dev acl-dev \
    1.13 -util-linux-blkid-dev lzo-dev autoconf automake"
    1.14 -SPLIT="btrfs-libs btrfs-mkfs btrfs-dev"
    1.15 +util-linux-blkid-dev lzo-dev" #autoconf automake"
    1.16 +SPLIT="btrfs-mkfs btrfs-progs btrfs-libs btrfs-dev"
    1.17  
    1.18  # Rules to configure and make the package.
    1.19  compile_rules()
    1.20  {
    1.21 -	./autogen.sh
    1.22 +	# http://www.linuxfromscratch.org/blfs/view/stable/postlfs/btrfs-progs.html
    1.23 +	sed -i '1,106 s/\.gz//g' Documentation/Makefile.in &&
    1.24 +
    1.25  	./configure \
    1.26  		--prefix=/usr \
    1.27 -		--sysconfdir=/etc \
    1.28 +		--bindir=/bin \
    1.29 +		--libdir=/lib \
    1.30  		--disable-documentation \
    1.31  		$CONFIGURE_ARGS &&
    1.32  	make &&
    1.33 -	make DESTDIR=$DESTDIR prefix=/usr -j1 install
    1.34 +	make install &&
    1.35 +
    1.36 +	mkdir -p $install/usr/lib/ &&
    1.37 +	ln -sfv ../../lib/$(readlink $install/lib/libbtrfs.so) \
    1.38 +		$install/usr/lib/libbtrfs.so &&
    1.39 +	rm -v $install/lib/libbtrfs.a $install/lib/libbtrfs.so
    1.40  }
    1.41  
    1.42  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.43  genpkg_rules()
    1.44  {
    1.45  	case $PACKAGE in
    1.46 +		btrfs-mkfs)
    1.47 +			copy mkfs.btrfs
    1.48 +			CAT="system-tools|creation tool"
    1.49 +			DEPENDS="lzo util-linux-blkid util-linux-uuid zlib"
    1.50 +			;;
    1.51  		btrfs-progs)
    1.52  			copy bin/
    1.53 -			rm $fs/usr/bin/mkfs.btrfs
    1.54 +			remove_already_packed
    1.55  			TAGS="filesystem fault-tolerance"
    1.56  			PROVIDE="btrfs-tools"
    1.57  			DEPENDS="e2fsprogs libcomerr lzo util-linux-blkid util-linux-uuid \
    1.58 @@ -45,11 +58,6 @@
    1.59  			CAT="system-tools|library"
    1.60  			DEPENDS="lzo util-linux-blkid util-linux-uuid zlib"
    1.61  			;;
    1.62 -		btrfs-mkfs)
    1.63 -			copy mkfs.btrfs
    1.64 -			CAT="system-tools|creation tool"
    1.65 -			DEPENDS="lzo util-linux-blkid util-linux-uuid zlib"
    1.66 -			;;
    1.67  		*-dev) copy @dev;;
    1.68  	esac
    1.69  }