wok-current annotate goaccess/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | d8c511e24c20 |
children |
rev | line source |
---|---|
pascal@15721 | 1 # SliTaz package receipt. |
pascal@15721 | 2 |
pascal@15721 | 3 PACKAGE="goaccess" |
Hans-G?nter@24613 | 4 VERSION="1.5.5" |
pascal@15721 | 5 CATEGORY="network" |
pascal@15721 | 6 SHORT_DESC="Visual web log analyzer." |
pascal@15721 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15721 | 8 LICENSE="GPL2" |
Hans-G?nter@20982 | 9 WEB_SITE="https://goaccess.io" |
Hans-G?nter@20982 | 10 |
Hans-G?nter@20982 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@20983 | 12 WGET_URL="https://tar.goaccess.io/$TARBALL" |
Hans-G?nter@20982 | 13 |
Hans-G?nter@24613 | 14 DEPENDS="geoip ncurses" |
Hans-G?nter@24613 | 15 BUILD_DEPENDS="geoip-dev glib-dev ncurses-dev pkg-config" |
pascal@15721 | 16 |
pascal@24491 | 17 # What is the latest version available today? |
pascal@24491 | 18 current_version() |
pascal@24491 | 19 { |
pascal@24491 | 20 wget -O - https://goaccess.io/download 2>/dev/null | \ |
pascal@24491 | 21 sed '/goaccess-[0-9]/!d;s|.*goaccess-||;s|.tar.*||;q' |
pascal@24491 | 22 } |
pascal@24491 | 23 |
pascal@15721 | 24 # Rules to configure and make the package. |
pascal@15721 | 25 compile_rules() |
pascal@15721 | 26 { |
Hans-G?nter@24613 | 27 ./configure \ |
Hans-G?nter@24613 | 28 --prefix=/usr \ |
Hans-G?nter@24613 | 29 --enable-geoip=legacy \ |
Hans-G?nter@20982 | 30 --enable-utf8 && |
Hans-G?nter@20982 | 31 |
Hans-G?nter@24613 | 32 # 1.5.5 not needed |
pascal@15721 | 33 # hack for curses.h path |
Hans-G?nter@24613 | 34 # mkdir /usr/include/ncursesw && ln -s /usr/include/curses.h /usr/include/ncursesw/curses.h |
Hans-G?nter@20982 | 35 |
Hans-G?nter@24613 | 36 make && |
Hans-G?nter@24613 | 37 make install DESTDIR=$DESTDIR |
Hans-G?nter@20982 | 38 |
pascal@15721 | 39 # and remove hack |
Hans-G?nter@24613 | 40 # rm -rf /usr/include/ncursesw |
pascal@15721 | 41 } |
pascal@15721 | 42 |
pascal@15721 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 44 genpkg_rules() |
pascal@15721 | 45 { |
Hans-G?nter@24613 | 46 cook_copy_folders bin |
pascal@15721 | 47 } |