mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-07 14:52:31 +02:00
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
|
pkgname=libmaxminddb
|
|
pkgver=1.7.1
|
|
pkgrel=2
|
|
pkgdesc="Maxmind GeoIP2 database library"
|
|
url="https://github.com/maxmind/libmaxminddb"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="curl"
|
|
checkdepends="perl"
|
|
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs"
|
|
source="https://github.com/maxmind/libmaxminddb/releases/download/$pkgver/libmaxminddb-$pkgver.tar.gz
|
|
libmaxminddb.cron
|
|
libmaxminddb.confd
|
|
"
|
|
|
|
# secfixes:
|
|
# 1.4.3-r0:
|
|
# - CVE-2020-28241
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--with-pic
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make install DESTDIR="$pkgdir"
|
|
|
|
# install alpine specifics
|
|
mkdir -p "$pkgdir"/var/lib/libmaxminddb
|
|
install -Dm755 "$srcdir"/libmaxminddb.cron "$pkgdir"/etc/periodic/weekly/libmaxminddb
|
|
|
|
# Not an openrc config file. See cron script.
|
|
install -Dm644 "$srcdir"/libmaxminddb.confd "$pkgdir"/etc/libmaxminddb.cron.conf
|
|
}
|
|
|
|
sha512sums="
|
|
5ad6e5f20dd0fd094d2e44b950256e3e705f6b7d1a5ffcc08f46d92917a540ac23796c670fdd7292b040fd78d2fe0dc10b16cc07ae941b00140e6301d8c2ac30 libmaxminddb-1.7.1.tar.gz
|
|
7eb66e563b156c176a2b23c73c60c55c52f20f94393a82cbdedd8f2ddb136a029bad8a4df0ca2c0f2bb923af170ae56cdd19dbb4e09c3affc23be6f79dd23f80 libmaxminddb.cron
|
|
03bdfd6d1d508ea5261a396ac9539f363dcb477b9cf11fd4c9b01001e03205fa667cde21295dc0cc3d38db50adebb9c57e147a22fc7945de7c72d75d10637128 libmaxminddb.confd
|
|
"
|