wok view apachetop/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 f40d97a52c42
children
line source
1 # SliTaz package receipt.
3 PACKAGE="apachetop"
4 VERSION="0.23.2"
5 CATEGORY="network"
6 SHORT_DESC="Watches a logfile generated by Apache"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/tessus/apachetop"
11 WGET_URL="$WEB_SITE/archive/refs/tags/$VERSION.tar.gz"
13 DEPENDS="gamin pcre2 readline ncurses"
14 BUILD_DEPENDS="gamin-dev pcre2-dev readline-dev ncurses-dev automake libtool"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./autogen.sh
27 ./configure &&
28 make &&
29 make install
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr/
38 }