wok-next rev 5042

Up: lvm2; split libdevmapper from lvm2 now
author Rohit Joshi <jozee@slitaz.org>
date Thu Mar 04 10:43:49 2010 +0000 (2010-03-04)
parents 99d5f29bc4b6
children 92bad8adb911
files libdevmapper-dev/receipt libdevmapper/receipt lvm2/receipt
line diff
     1.1 --- a/libdevmapper-dev/receipt	Wed Mar 03 18:08:06 2010 +0000
     1.2 +++ b/libdevmapper-dev/receipt	Thu Mar 04 10:43:49 2010 +0000
     1.3 @@ -1,16 +1,18 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="libdevmapper-dev"
     1.7 -VERSION="1.02.27"
     1.8 +VERSION="1.02.44"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Linux device mapper library development files."
    1.11  MAINTAINER="b1+slitaz@nagel.org"
    1.12 -WANTED="libdevmapper"
    1.13 +WANTED="lvm2"
    1.14 +WANTED_VERSION="2.02.61"
    1.15  WEB_SITE="http://sourceware.org/dm/"
    1.16  
    1.17  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.18  genpkg_rules()
    1.19  {
    1.20  	mkdir -p $fs/usr
    1.21 +	_pkg="$WOK/$WANTED/LVM2-$WANTED_VERSION/_pkg"
    1.22  	cp -a $_pkg/usr/include $fs/usr
    1.23  }
     2.1 --- a/libdevmapper/receipt	Wed Mar 03 18:08:06 2010 +0000
     2.2 +++ b/libdevmapper/receipt	Thu Mar 04 10:43:49 2010 +0000
     2.3 @@ -1,35 +1,22 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="libdevmapper"
     2.7 -VERSION="1.02.27"
     2.8 +VERSION="1.02.44"
     2.9  CATEGORY="system-tools"
    2.10  SHORT_DESC="Linux device mapper library."
    2.11  MAINTAINER="b1+slitaz@nagel.org"
    2.12  TARBALL="device-mapper.$VERSION.tgz"
    2.13  WEB_SITE="http://sourceware.org/dm/"
    2.14 -WGET_URL="ftp://sources.redhat.com/pub/dm/$TARBALL"
    2.15 -
    2.16 -# Rules to configure and make the package.
    2.17 -compile_rules()
    2.18 -{
    2.19 -	cd $WOK/$PACKAGE
    2.20 -	mv device-mapper.$VERSION $PACKAGE-$VERSION
    2.21 -	cd $src/lib
    2.22 -	sed 's/(INSTALL) -D/(INSTALL)/' < Makefile.in > tmp
    2.23 -	mv tmp Makefile.in
    2.24 -	cd $src
    2.25 -	./configure --prefix=/usr $CONFIGURE_ARGS
    2.26 -	make
    2.27 -	mkdir -p $src/_pkg/usr/lib
    2.28 -	mkdir -p $src/_pkg/usr/include
    2.29 -	cd $src/lib
    2.30 -	make DESTDIR=$src/_pkg install
    2.31 -}
    2.32 +WANTED="lvm2"
    2.33 +WANTED_VERSION="2.02.61"
    2.34  
    2.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.36  genpkg_rules()
    2.37  {
    2.38 -	mkdir -p $fs/usr/lib
    2.39 -	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.40 -	strip -s $fs/usr/lib/*
    2.41 +	mkdir -p $fs/usr/lib $fs/usr/sbin $fs/etc 
    2.42 +	_pkg="$WOK/$WANTED/LVM2-$WANTED_VERSION/_pkg"
    2.43 +	cp -a $_pkg/usr/lib/libdevmapper*.so* $fs/usr/lib
    2.44 +	cp -a $_pkg/usr/sbin/dmsetup $fs/usr/sbin
    2.45 +	cp -a $_pkg/etc/udev $fs/etc	
    2.46 +	
    2.47  }
     3.1 --- a/lvm2/receipt	Wed Mar 03 18:08:06 2010 +0000
     3.2 +++ b/lvm2/receipt	Thu Mar 04 10:43:49 2010 +0000
     3.3 @@ -2,11 +2,11 @@
     3.4  
     3.5  PACKAGE="lvm2"
     3.6  SOURCE="LVM2"
     3.7 -VERSION="2.02.51"
     3.8 +VERSION="2.02.61"
     3.9  CATEGORY="system-tools"
    3.10  SHORT_DESC="Linux Logical Volume Manager."
    3.11  MAINTAINER="guillaume.michon@laposte.net"
    3.12 -DEPENDS="readline linux-md libdevmapper ncurses"
    3.13 +DEPENDS="readline linux-md libdevmapper"
    3.14  BUILD_DEPENDS="readline-dev"
    3.15  TARBALL="$SOURCE.$VERSION.tgz"
    3.16  WEB_SITE="http://sourceware.org/lvm2/"
    3.17 @@ -24,18 +24,24 @@
    3.18  		--mandir=/usr/share/man \
    3.19  		--enable-cmdlib \
    3.20  		--enable-dmeventd \
    3.21 +		--with-udevdir=/etc/udev/rules.d \
    3.22  		$CONFIGURE_ARGS &&
    3.23  	make && make DESTDIR=$PWD/_pkg install
    3.24 +	cd $src/udev
    3.25 +	make DESTDIR=$src/_pkg install
    3.26  }
    3.27  
    3.28  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.29  genpkg_rules()
    3.30  {
    3.31 -	mkdir -p $fs/usr/lib
    3.32 -	cp -a $_pkg/etc $fs
    3.33 +	mkdir -p $fs/usr/lib $fs/etc
    3.34 +	cp -a $_pkg/etc/udev $fs/etc
    3.35  	cp -a $_pkg/usr/sbin $fs/usr
    3.36  	cp -a $_pkg/usr/lib/* $fs/usr/lib
    3.37 -	rm $fs/usr/lib/libdevmapper.so*
    3.38 +	# split libdevmapper
    3.39 +	rm -f $fs/usr/lib/libdevmapper*.so*
    3.40 +	rm -f $fs/usr/sbin/dmsetup
    3.41 +
    3.42  }
    3.43  
    3.44