diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-11-14 15:33:16 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-11-14 15:33:16 +0200 |
commit | 6fd658a9994c9d1d1aa3447bddc8c1a15744e766 (patch) | |
tree | 150cfd517c52015f1081c23f2fb2092cbd4dbc4c /main/libmaxminddb/APKBUILD | |
parent | 3df7efd33ac16ad57c9d2c2e8cb7b29576edd6fa (diff) | |
download | aports-6fd658a9994c9d1d1aa3447bddc8c1a15744e766.tar.bz2 aports-6fd658a9994c9d1d1aa3447bddc8c1a15744e766.tar.xz |
main/libmaxminddb: new aport
Maxmind GeoIP2 database library
https://github.com/maxmind/$pkgname
Diffstat (limited to 'main/libmaxminddb/APKBUILD')
-rw-r--r-- | main/libmaxminddb/APKBUILD | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/main/libmaxminddb/APKBUILD b/main/libmaxminddb/APKBUILD new file mode 100644 index 0000000000..1126cec575 --- /dev/null +++ b/main/libmaxminddb/APKBUILD @@ -0,0 +1,72 @@ +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=libmaxminddb +pkgver=0.0.20131114 +_commitid=159b18652fb265025e1617266692f8e5a39cccf6 +pkgrel=0 +pkgdesc="Maxmind GeoIP2 database library" +url="https://github.com/maxmind/$pkgname" +arch="all" +license="LGPL" +depends="curl" +makedepends="automake autoconf libtool" +install="" +options="" +subpackages="$pkgname-dev" +source="libmaxminddb-$pkgver.tar.gz::$url/archive/$_commitid.tar.gz + 0001-avoid-unneeded-memory-allocations.patch + 0002-make-MMDB_aget_value-s-path-argument-const-correct.patch + + libmaxminddb.cron + libmaxminddb.confd + " + +_builddir="$srcdir"/$pkgname-$_commitid + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + ./bootstrap +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-pic \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make install DESTDIR="$pkgdir" || return 1 + rm -rf "$pkgdir"/usr/lib/*.la || return 0 + + # install alpine specifics + mkdir -p "$pkgdir"/var/lib/libmaxminddb + install -m755 -D "$srcdir"/libmaxminddb.cron "$pkgdir"/etc/periodic/weekly/libmaxminddb + install -m755 -D "$srcdir"/libmaxminddb.confd "$pkgdir"/etc/conf.d/libmaxminddb +} + +md5sums="0d0005c520e5fa98b7bbf4a46acf41a3 libmaxminddb-0.0.20131114.tar.gz +4f1231828896d02da82bb14e0ca21db2 0001-avoid-unneeded-memory-allocations.patch +19cab6295f75fb72d50328be44f5ef5a 0002-make-MMDB_aget_value-s-path-argument-const-correct.patch +3866d16335eeaa8573cf625981979a56 libmaxminddb.cron +f86fba9d801d5f9c76166c11c224f474 libmaxminddb.confd" +sha256sums="8db56de9bf067461239bcb11974c3e148e2fc1217c82e57f7228a8b230f7cf77 libmaxminddb-0.0.20131114.tar.gz +9a6a95dd339189288f8af3e5e8f5ec9a18411df77f6d8bde8b6702b95f73dce2 0001-avoid-unneeded-memory-allocations.patch +278da1a942df301c1acb19b6851039e495b3f968b2603ab317a853f220c428d4 0002-make-MMDB_aget_value-s-path-argument-const-correct.patch +34f32f544f0537e37783de61f09e4b5b7b080aaa2e9514afe1eaea8425f547e9 libmaxminddb.cron +f8af67264b8711ab40f99d364e4987c14f4928932624993c72188f59203526be libmaxminddb.confd" +sha512sums="f606fb22c3887953e7fc7a798c4065b658c6895e58838e14b1bde66fd8d7907e27f6ee8545bd510d9745432f7176047e4d36be2ce20b035d20589d1106f6784a libmaxminddb-0.0.20131114.tar.gz +99eb21e9e0b43346ccf8eb72f40403dec36866cbff992c1aea771abcdbe9c820fdb24c64e45f4d8f6fb811e3330591e31851ec626f8e3d84cd8f34754d030519 0001-avoid-unneeded-memory-allocations.patch +655b79e806ca0801d5609aa9e582533fcb2719f3f0eef88e3924135888a1791cb551843261834a01ec8f3d6569d843a3e97970d8be239cd6983ba13cdda847b3 0002-make-MMDB_aget_value-s-path-argument-const-correct.patch +1feb1f2dd57991d729b6f9d29834f43d7405038cdbdfb0113a0e8f8f951a74c5e40651f9d241460f110acdd300196cf580b370e6cec56985cca797ba5610e622 libmaxminddb.cron +5f8dc6dad84cb1d188504a22470acf89542755c0bb3a78e4d3ae4e5bfa49fe64a7d2ee17441084db2710115463d39361df060a74b3a48fc4d8fc5e802afd2099 libmaxminddb.confd" |