wok view keyutils/receipt @ rev 25690

mmv: inserted current_version()
author Hans-G?nter Theisgen
date Mon Apr 15 15:20:24 2024 +0100 (7 weeks ago)
parents a4f828dcc860
children
line source
1 # SliTaz package receipt.
3 PACKAGE="keyutils"
4 VERSION="1.6.3"
5 CATEGORY="security"
6 TAGS="cryptography"
7 SHORT_DESC="Control the key management system built into the Linux kernel."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2 LGPL2.1"
10 WEB_SITE="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/$PACKAGE.git/snapshot/$TARBALL"
15 BUILD_DEPENDS="file"
17 CONFIG_FILES="/etc/request-key.conf /etc/request-key.d"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|/etc/rpm /usr/lib/rpm|/dev/null|' \
30 Makefile
32 make &&
33 make install DESTDIR=$DESTDIR
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
40 mkdir -p $fs/lib
42 cp -a $install/usr/share/keyutils $fs/usr/share
43 cp -a $install/etc $fs
44 cp -a $install/bin $fs
45 cp -a $install/sbin $fs
46 cp -a $install/lib/*.so* $fs/lib
47 }