# SliTaz package receipt. PACKAGE="keyutils" VERSION="1.6.3" CATEGORY="security" TAGS="cryptography" SHORT_DESC="Control the key management system built into the Linux kernel." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2 LGPL2.1" WEB_SITE="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/$PACKAGE.git/snapshot/$TARBALL" BUILD_DEPENDS="file" CONFIG_FILES="/etc/request-key.conf /etc/request-key.d" 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 } # Rules to configure and make the package. compile_rules() { sed -i 's|/etc/rpm /usr/lib/rpm|/dev/null|' \ Makefile make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share mkdir -p $fs/lib cp -a $install/usr/share/keyutils $fs/usr/share cp -a $install/etc $fs cp -a $install/bin $fs cp -a $install/sbin $fs cp -a $install/lib/*.so* $fs/lib }