wok-6.x annotate keyutils/receipt @ rev 24076
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 08 13:19:25 2021 +0000 (2021-07-08) |
parents | 50051b5bf172 |
children | 7d684b96da5f |
rev | line source |
---|---|
pascal@20636 | 1 # SliTaz package receipt. |
pascal@20636 | 2 |
pascal@20636 | 3 PACKAGE="keyutils" |
Hans-G?nter@22984 | 4 VERSION="1.6.1" |
pascal@20636 | 5 CATEGORY="security" |
Hans-G?nter@22984 | 6 TAGS="cryptography" |
Hans-G?nter@22984 | 7 SHORT_DESC="Control the key management system built into the Linux kernel." |
pascal@20636 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20636 | 9 LICENSE="GPL2 LGPL2.1" |
Hans-G?nter@22984 | 10 WEB_SITE="https://people.redhat.com/~dhowells/keyutils/" |
Hans-G?nter@22984 | 11 |
pascal@20636 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20636 | 13 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@20636 | 14 |
pascal@20640 | 15 BUILD_DEPENDS="file" |
pascal@20640 | 16 |
Hans-G?nter@22984 | 17 CONFIG_FILES="/etc/request-key.conf /etc/request-key.d" |
Hans-G?nter@22984 | 18 |
pascal@24076 | 19 current_version() |
pascal@24076 | 20 { |
pascal@24076 | 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24076 | 22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24076 | 23 } |
pascal@24076 | 24 |
pascal@20636 | 25 # Rules to configure and make the package. |
pascal@20636 | 26 compile_rules() |
pascal@20636 | 27 { |
Hans-G?nter@22984 | 28 sed -i 's|/etc/rpm /usr/lib/rpm|/dev/null|' \ |
Hans-G?nter@22984 | 29 Makefile |
Hans-G?nter@22984 | 30 |
pascal@20636 | 31 make && |
pascal@20636 | 32 make DESTDIR=$DESTDIR install |
pascal@20636 | 33 } |
pascal@20636 | 34 |
pascal@20636 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20636 | 36 genpkg_rules() |
pascal@20636 | 37 { |
Hans-G?nter@22984 | 38 mkdir -p $fs/usr/share |
Hans-G?nter@22984 | 39 mkdir -p $fs/lib |
Hans-G?nter@22984 | 40 |
Hans-G?nter@22984 | 41 cp -a $install/usr/share/keyutils $fs/usr/share |
Hans-G?nter@22984 | 42 cp -a $install/etc $fs |
Hans-G?nter@22984 | 43 cp -a $install/bin $fs |
Hans-G?nter@22984 | 44 cp -a $install/sbin $fs |
Hans-G?nter@22984 | 45 cp -a $install/lib/*.so* $fs/lib |
pascal@20636 | 46 } |