# HG changeset patch # User Aleksej Bobylev # Date 1372277363 -10800 # Node ID 164afa784523c6f8753e068f1a65e85ad0ef286c # Parent 92bb72113a3673eb22de1e340cf566dc035d35d4 915resolution: fix ownership; acl: '*.so' must be executable, more tips from BLFS. diff -r 92bb72113a36 -r 164afa784523 915resolution/receipt --- a/915resolution/receipt Fri Jun 21 16:25:19 2013 +0200 +++ b/915resolution/receipt Wed Jun 26 23:09:23 2013 +0300 @@ -5,12 +5,14 @@ CATEGORY="system-tools" SHORT_DESC="Widescreen support; modify video BIOS of the 800 and 900 series Intel graphics chipsets" MAINTAINER="erjo@slitaz.org" -DEPENDS="" +LICENSE="PD" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://915resolution.mango-lang.org/" -WGET_URL="$WEB_SITE/$TARBALL" +WGET_URL="$WEB_SITE$TARBALL" TAGS="widescreen resolution" +DEPENDS="" + # Rules to configure and make the package. compile_rules() { @@ -20,14 +22,14 @@ patch -p0 < $stuff/$PACKAGE-$VERSION-$i.patch touch done.$i done - make clean && make + make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/bin - cp -a $src/$PACKAGE $fs/usr/bin - cp -a $src/dump_bios $fs/usr/bin + mkdir -p $fs/usr/sbin + install $src/$PACKAGE $fs/usr/sbin + install $src/dump_bios $fs/usr/sbin } diff -r 92bb72113a36 -r 164afa784523 acl-dev/receipt --- a/acl-dev/receipt Fri Jun 21 16:25:19 2013 +0200 +++ b/acl-dev/receipt Wed Jun 26 23:09:23 2013 +0300 @@ -5,15 +5,17 @@ CATEGORY="development" SHORT_DESC="Development files for acl." MAINTAINER="rcx@zoominternet.net" +LICENSE="LGPL2.1 GPL2" +WEB_SITE="http://savannah.nongnu.org/projects/acl/" + +WANTED="acl" DEPENDS="acl attr-dev" -WEB_SITE="http://savannah.nongnu.org/projects/acl/" -WANTED="acl" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib $fs/usr/include $fs/lib - cp -a $_pkg/usr/lib/*.*a $fs/usr/lib - cp -a $_pkg/lib/*.*a $fs/lib - cp -a $_pkg/usr/include/* $fs/usr/include + mkdir -p $fs/usr/lib $fs/lib + cp -a $install/lib/*.*a $fs/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/*.*a $fs/usr/lib } diff -r 92bb72113a36 -r 164afa784523 acl/receipt --- a/acl/receipt Fri Jun 21 16:25:19 2013 +0200 +++ b/acl/receipt Wed Jun 26 23:09:23 2013 +0300 @@ -5,34 +5,47 @@ CATEGORY="system-tools" SHORT_DESC="Commands for Manipulating POSIX Access Control Lists." MAINTAINER="rcx@zoominternet.net" -DEPENDS="glibc-base attr" -BUILD_DEPENDS="autoconf automake m4 libtool gettext attr-dev attr bash" -TARBALL="${PACKAGE}-${VERSION}.src.tar.gz" +LICENSE="LGPL2.1 GPL2" WEB_SITE="http://savannah.nongnu.org/projects/acl/" -WGET_URL="http://nongnu.askapache.com/$PACKAGE/$TARBALL" +TARBALL="$PACKAGE-$VERSION.src.tar.gz" +WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL" + +DEPENDS="attr glibc-base" +BUILD_DEPENDS="attr-dev bash libtool" # Rules to configure and make the package. compile_rules() { - cd $src - - # Need bash sh to compile + # Need bash as /bin/sh to compile mv /bin/sh /bin/sh.bak ln -s /bin/bash /bin/sh - # Configure is included in Makefile - { make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" && - make install install-lib install-dev DIST_ROOT=$DESTDIR - } || { mv -f /bin/sh.bak /bin/sh; return 1; } + { + INSTALL_USER=root \ + INSTALL_GROUP=root \ + ./configure \ + --prefix=/usr \ + --libdir=/lib \ + --libexecdir=/usr/lib \ + $CONFIGURE_ARGS && + make && + DIST_ROOT=$DESTDIR \ + make install install-lib install-dev + } || { + mv -f /bin/sh.bak /bin/sh; return 1 + } mv -f /bin/sh.bak /bin/sh + # .so and .la files must be executable + find $install -type f -name '*.[sl][oa]*' -exec chmod a+x \{\} \; + sed -i "s|libdir='/lib'|libdir='/usr/lib'|" $install/usr/lib/libacl.la } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/lib $fs/usr/lib - cp -a $_pkg/lib/*.so* $fs/lib - cp -a $_pkg/usr/lib/*.so* $fs/usr/lib - cp -a $_pkg/usr/bin $fs/usr + cp -a $install/lib/*.so* $fs/lib + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/bin $fs/usr }