SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "acl"

# SliTaz package receipt.

PACKAGE="acl"
VERSION="2.3.1"
CATEGORY="system-tools"
SHORT_DESC="Commands for Manipulating POSIX Access Control Lists."
MAINTAINER="rcx@zoominternet.net"
LICENSE="GPL2.1&version=current">LGPL2.1 GPL2"
WEB_SITE="http://savannah.nongnu.org/projects/acl/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"

DEPENDS="attr"
BUILD_DEPENDS="attr-dev bash libtool"

HOST_ARCH="i486 arm"

# Handle cross compilation.
case "$ARCH" in
    arm) BUILD_DEPENDS="attr-dev" ;;
esac

current_version()
{
    wget -O - http://download.savannah.nongnu.org/releases/acl/ 2>/dev/null | \
    sed '/href="acl/!d;s|.*acl-\([0-9\.]*\)\..*|\1|' | sed '$!d'
}

# Rules to configure and make the package.
compile_rules()
{
    # Need bash as /bin/sh to compile
    mv /bin/sh /bin/sh.bak
    ln -s /bin/bash /bin/sh

    {
        INSTALL_USER=root        \
        INSTALL_GROUP=root        \
        ./configure            \
            --prefix=/usr        \
            --libdir=/lib        \
            --libexecdir=/usr/lib    \
            $CONFIGURE_ARGS &&
        make &&
        DIST_ROOT=$DESTDIR make install
    } || {
        mv -f /bin/sh.bak /bin/sh
        return 1
    }

    mv -f /bin/sh.bak /bin/sh
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/lib
    mkdir -p $fs/usr/lib

    cp -a $install/lib/*.so*    $fs/lib
    ln -s /lib/libacl.so        $fs/usr/lib/libacl.so
    cp -a $install/usr/bin        $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)