SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "geoip"

# SliTaz package receipt.

PACKAGE="geoip"
VERSION="1.4.8"
CATEGORY="network"
SHORT_DESC="Non-DNS IP-to-country resolver C library & utils."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="LGPL2.1"
SOURCE="GeoIP"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="https://www.maxmind.com/"
WGET_URL="https://src.fedoraproject.org/lookaside/pkgs/GeoIP/$TARBALL/05b7300435336231b556df5ab36f326d/$TARBALL"

DEPENDS="zlib"
BUILD_DEPENDS="zlib-dev automake autoconf libtool"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/maxmind/geoip-api-c/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    autoreconf -i
    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        --sysconfdir=/etc/geoip \
        $CONFIGURE_ARGS 2>&1 | \
        sed 's|missing: No such|missing: no such|'
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    cp -a $install/etc $fs
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/share/GeoIP $fs/usr/share
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)