wok-current annotate logfence/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 7d335fa9b5f7 |
children | 72f2704d3ae0 |
rev | line source |
---|---|
pascal@18190 | 1 # SliTaz package receipt. |
pascal@18190 | 2 |
pascal@18190 | 3 PACKAGE="logfence" |
pascal@18190 | 4 VERSION="0.1" |
pascal@18190 | 5 CATEGORY="misc" |
pascal@18190 | 6 SHORT_DESC="An overlay that prevents log tampering." |
pascal@18190 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18190 | 8 LICENSE="MIT" |
pascal@18190 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@18190 | 10 WEB_SITE="https://github.com/dimkr/logfence" |
pascal@18190 | 11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" |
pascal@18190 | 12 |
pascal@18190 | 13 DEPENDS="fuse" |
pascal@18190 | 14 BUILD_DEPENDS="fuse-dev" |
pascal@18190 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@18190 | 22 # Rules to configure and make the package. |
pascal@18190 | 23 compile_rules() |
pascal@18190 | 24 { |
pascal@18190 | 25 make && |
pascal@18190 | 26 make DESTDIR=$DESTDIR install |
pascal@18190 | 27 } |
pascal@18190 | 28 |
pascal@18190 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18190 | 30 genpkg_rules() |
pascal@18190 | 31 { |
pascal@18190 | 32 cp -a $install/sbin $fs |
pascal@18190 | 33 } |