summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rys2023-02-06 15:16:36 +0100
committerMartin Rys2023-02-06 15:16:36 +0100
commit17122cbdd5c67a0b0bd3b8bcab7de10718546d54 (patch)
treebc0f664417adeb7ed9a047bdf3b628aad1cbbc84
parent5e491179c40b559803efc51c598f3387969624f3 (diff)
downloadaur-17122cbdd5c67a0b0bd3b8bcab7de10718546d54.tar.gz
Fix GeoLite2-City.mmdb path and package
-rw-r--r--PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7c99424ec15f..9e92991b41e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=matomo
pkgver=4.13.3
-pkgrel=1
+pkgrel=2
pkgdesc="A real-time web analytics platform"
arch=("any")
url="https://matomo.org/"
@@ -15,7 +15,7 @@ depends=("php" "php-gd")
replaces=("piwik")
optdepends=("mariadb: Database server"
"python: Log importer script"
- "geoip2-database: GeoIP database")
+ "geoipupdate: GeoIP database")
install="$pkgname.install"
source=("https://builds.matomo.org/${pkgname}-${pkgver}.tar.gz"
"https://builds.matomo.org/${pkgname}-${pkgver}.tar.gz.asc")
@@ -58,7 +58,9 @@ package() {
# as it is, chown the whole plugins directory in matomo.install, and wash our
# hands of it.
- # GeoLite2-City.mmdb is provided by geoip2-database, which is optdepends.
- # I figure a dead symlink should be safe if it’s missing.
- ln -s "../../../../../usr/share/GeoIP/GeoLite2-City.mmdb" "${pkgdir}/usr/share/webapps/matomo/misc"
+ # GeoLite2-City.mmdb is provided by geoipupdate, which is optdepends.
+ # See /etc/GeoIP.conf and make sure to enable geoipupdate's timer
+ # Keep in mind it takes a while before a newly generated license becomes active
+ # I figure a dead symlink should be safe if the DB is missing.
+ ln -s "../../../../../var/lib/GeoIP/GeoLite2-City.mmdb" "${pkgdir}/usr/share/webapps/matomo/misc"
}