Receipt for: goaccess
source
PACKAGE="goaccess"
VERSION="1.9.3"
CATEGORY="network"
SHORT_DESC="Visual web log analyzer."
MAINTAINER="paul@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://goaccess.io"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://tar.goaccess.io/$TARBALL"
DEPENDS="geoip libatomic ncurses"
BUILD_DEPENDS="geoip-dev glib-dev libatomic ncurses-dev ncursesw-dev pkg-config"
current_version()
{
wget -O - https://goaccess.io/download 2>/dev/null | \
sed '/goaccess-[0-9]/!d;s|.*goaccess-||;s|.tar.*||;q'
}
compile_rules()
{
# i486 has no native 64-bit atomics (cmpxchg8b is i586+): gcc emits
# __sync_*_8 libcalls that live in libatomic. Must go through LIBS,
# not LDFLAGS: the latter lands before the objects on the link line
# and --as-needed discards the yet-unneeded library.
case "$ARCH" in
i?86) atomic="-latomic" ;;
esac
LIBS="$atomic" ./configure \
--prefix=/usr \
--enable-geoip=legacy \
--enable-utf8 &&
# 1.5.5 not needed
# hack for curses.h path
make &&
make install DESTDIR=$DESTDIR
# and remove hack
}
genpkg_rules()
{
cook_copy_folders bin
}