# SliTaz package receipt. PACKAGE="libcap" VERSION="2.63" CATEGORY="system-tools" SHORT_DESC="Support for getting and setting POSIX.1e capabilities." MAINTAINER="pankso@slitaz.org" LICENSE="BSD" WEB_SITE="https://sites.google.com/site/fullycapable/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$TARBALL" DEPENDS="attr gcc-lib-base" BUILD_DEPENDS="attr-dev gcc gperf bash pam-dev" HOST_ARCH="i486 arm" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Handle cross compilation. case "$ARCH" in i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;; arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;; esac # Rules to configure and make the package. compile_rules() { make \ CC=gcc \ DYNAMIC=yes \ lib=lib \ prefix=usr \ $ARCH_ARGS && make install \ RAISE_SETCAP=no \ DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/lib cp -a $install/lib/*.so* $fs/lib chmod +x $fs/lib/* cook_copy_folders sbin }