wok rev 14766

915resolution: fix ownership; acl: '*.so' must be executable, more tips from BLFS.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 26 23:09:23 2013 +0300 (2013-06-26)
parents 92bb72113a36
children 263740877e70
files 915resolution/receipt acl-dev/receipt acl/receipt
line diff
     1.1 --- a/915resolution/receipt	Fri Jun 21 16:25:19 2013 +0200
     1.2 +++ b/915resolution/receipt	Wed Jun 26 23:09:23 2013 +0300
     1.3 @@ -5,12 +5,14 @@
     1.4  CATEGORY="system-tools"
     1.5  SHORT_DESC="Widescreen support; modify video BIOS of the 800 and 900 series Intel graphics chipsets"
     1.6  MAINTAINER="erjo@slitaz.org"
     1.7 -DEPENDS=""
     1.8 +LICENSE="PD"
     1.9  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.10  WEB_SITE="http://915resolution.mango-lang.org/"
    1.11 -WGET_URL="$WEB_SITE/$TARBALL"
    1.12 +WGET_URL="$WEB_SITE$TARBALL"
    1.13  TAGS="widescreen resolution"
    1.14  
    1.15 +DEPENDS=""
    1.16 +
    1.17  # Rules to configure and make the package.
    1.18  compile_rules()
    1.19  {
    1.20 @@ -20,14 +22,14 @@
    1.21  		patch -p0 < $stuff/$PACKAGE-$VERSION-$i.patch
    1.22  		touch done.$i
    1.23  	done
    1.24 -	make clean && make	
    1.25 +	make
    1.26  }
    1.27  
    1.28  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.29  genpkg_rules()
    1.30  {
    1.31 -	mkdir -p $fs/usr/bin
    1.32 -	cp -a $src/$PACKAGE $fs/usr/bin
    1.33 -	cp -a $src/dump_bios $fs/usr/bin
    1.34 +	mkdir -p $fs/usr/sbin
    1.35 +	install $src/$PACKAGE $fs/usr/sbin
    1.36 +	install $src/dump_bios $fs/usr/sbin
    1.37  }
    1.38  
     2.1 --- a/acl-dev/receipt	Fri Jun 21 16:25:19 2013 +0200
     2.2 +++ b/acl-dev/receipt	Wed Jun 26 23:09:23 2013 +0300
     2.3 @@ -5,15 +5,17 @@
     2.4  CATEGORY="development"
     2.5  SHORT_DESC="Development files for acl."
     2.6  MAINTAINER="rcx@zoominternet.net"
     2.7 +LICENSE="LGPL2.1 GPL2"
     2.8 +WEB_SITE="http://savannah.nongnu.org/projects/acl/"
     2.9 +
    2.10 +WANTED="acl"
    2.11  DEPENDS="acl attr-dev"
    2.12 -WEB_SITE="http://savannah.nongnu.org/projects/acl/"
    2.13 -WANTED="acl"
    2.14  
    2.15  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.16  genpkg_rules()
    2.17  {
    2.18 -	mkdir -p $fs/usr/lib $fs/usr/include $fs/lib
    2.19 -	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    2.20 -	cp -a $_pkg/lib/*.*a $fs/lib
    2.21 -	cp -a $_pkg/usr/include/* $fs/usr/include
    2.22 +	mkdir -p $fs/usr/lib $fs/lib
    2.23 +	cp -a $install/lib/*.*a $fs/lib
    2.24 +	cp -a $install/usr/include $fs/usr
    2.25 +	cp -a $install/usr/lib/*.*a $fs/usr/lib
    2.26  }
     3.1 --- a/acl/receipt	Fri Jun 21 16:25:19 2013 +0200
     3.2 +++ b/acl/receipt	Wed Jun 26 23:09:23 2013 +0300
     3.3 @@ -5,34 +5,47 @@
     3.4  CATEGORY="system-tools"
     3.5  SHORT_DESC="Commands for Manipulating POSIX Access Control Lists."
     3.6  MAINTAINER="rcx@zoominternet.net"
     3.7 -DEPENDS="glibc-base attr"
     3.8 -BUILD_DEPENDS="autoconf automake m4 libtool gettext attr-dev attr bash"
     3.9 -TARBALL="${PACKAGE}-${VERSION}.src.tar.gz"
    3.10 +LICENSE="LGPL2.1 GPL2"
    3.11  WEB_SITE="http://savannah.nongnu.org/projects/acl/"
    3.12 -WGET_URL="http://nongnu.askapache.com/$PACKAGE/$TARBALL"
    3.13 +TARBALL="$PACKAGE-$VERSION.src.tar.gz"
    3.14 +WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
    3.15 +
    3.16 +DEPENDS="attr glibc-base"
    3.17 +BUILD_DEPENDS="attr-dev bash libtool"
    3.18  
    3.19  # Rules to configure and make the package.
    3.20  compile_rules()
    3.21  {
    3.22 -	cd $src
    3.23 -
    3.24 -	# Need bash sh to compile
    3.25 +	# Need bash as /bin/sh to compile
    3.26  	mv /bin/sh /bin/sh.bak
    3.27  	ln -s /bin/bash /bin/sh
    3.28  
    3.29 -	# Configure is included in Makefile
    3.30 -	{ make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" &&
    3.31 -	make install install-lib install-dev DIST_ROOT=$DESTDIR
    3.32 -	} || { mv -f /bin/sh.bak /bin/sh; return 1; }
    3.33 +	{
    3.34 +		INSTALL_USER=root  \
    3.35 +		INSTALL_GROUP=root \
    3.36 +		./configure \
    3.37 +			--prefix=/usr \
    3.38 +			--libdir=/lib \
    3.39 +			--libexecdir=/usr/lib \
    3.40 +			$CONFIGURE_ARGS &&
    3.41 +		make &&
    3.42 +		DIST_ROOT=$DESTDIR \
    3.43 +		make install install-lib install-dev
    3.44 +	} || {
    3.45 +		mv -f /bin/sh.bak /bin/sh; return 1
    3.46 +	}
    3.47  
    3.48  	mv -f /bin/sh.bak /bin/sh
    3.49 +	# .so and .la files must be executable
    3.50 +	find $install -type f -name '*.[sl][oa]*' -exec chmod a+x \{\} \;
    3.51 +	sed -i "s|libdir='/lib'|libdir='/usr/lib'|" $install/usr/lib/libacl.la
    3.52  }
    3.53  
    3.54  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.55  genpkg_rules()
    3.56  {
    3.57  	mkdir -p $fs/lib $fs/usr/lib
    3.58 -	cp -a $_pkg/lib/*.so* $fs/lib
    3.59 -	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    3.60 -	cp -a $_pkg/usr/bin $fs/usr
    3.61 +	cp -a $install/lib/*.so* $fs/lib
    3.62 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    3.63 +	cp -a $install/usr/bin $fs/usr
    3.64  }