wok-current view geoip/receipt @ rev 25001
updated nnn (4.0 -> 4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 14:07:26 2022 +0100 (2022-05-16) |
parents | af8d823a3077 |
children | 1f9238437d3b |
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/app/c"
12 WGET_URL="https://www.maxmind.com/download/geoip/api/c/$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 }