wok-6.x view geoip/receipt @ rev 25503
f3: include extra programs
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 27 10:37:43 2023 +0100 (22 months ago) |
parents | 1f9238437d3b |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="geoip"
4 VERSION="1.4.8"
5 CATEGORY="network"
6 SHORT_DESC="Non-DNS IP-to-country resolver C library & utils."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2.1"
9 SOURCE="GeoIP"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://www.maxmind.com/"
12 WGET_URL="https://src.fedoraproject.org/lookaside/pkgs/GeoIP/$TARBALL/05b7300435336231b556df5ab36f326d/$TARBALL"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="zlib-dev automake autoconf libtool"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/maxmind/geoip-api-c/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 autoreconf -i
28 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 --sysconfdir=/etc/geoip \
33 $CONFIGURE_ARGS 2>&1 | \
34 sed 's|missing: No such|missing: no such|'
35 make && make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib $fs/usr/share
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/etc $fs
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 cp -a $install/usr/share/GeoIP $fs/usr/share
46 }