Skip to content
This repository was archived by the owner on Aug 3, 2022. It is now read-only.

Commit 1699331

Browse files
author
Grant Kinney
committed
Adds piwik geoip2 plugin
1 parent 2aa8762 commit 1699331

File tree

3 files changed

+59
-4
lines changed

3 files changed

+59
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ dist
4545
.rvmrc
4646
.vagrant
4747
vendor
48+
plugins/

composer.json

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "project",
44
"repositories": [
55
{
6-
"type":"package",
6+
"type": "package",
77
"package": {
88
"name": "piwik/plugin-SecurityInfo",
99
"version": "3.0.4",
@@ -20,6 +20,33 @@
2020
"installer-name": "SecurityInfo"
2121
}
2222
}
23+
},
24+
{
25+
"type": "package",
26+
"package": {
27+
"name": "diabl0/piwik-geoip2",
28+
"version": "0.1.5",
29+
"description": "Plugin for Piwik adding support for MaxMind GeoIP2 database.",
30+
"license": "GPL-3.0+",
31+
"authors": [
32+
{
33+
"name": "Krzysztof Szatanik",
34+
"homepage": "https://github.com/diabl0/piwik-geoip2"
35+
}
36+
],
37+
"require": {
38+
"geoip2/geoip2": "^2.4"
39+
},
40+
"source": {
41+
"url": "https://github.com/diabl0/piwik-geoip2.git",
42+
"type": "git",
43+
"reference": "v0.1.5"
44+
},
45+
"type": "piwik-plugin",
46+
"extra": {
47+
"installer-name": "GeoIP2"
48+
}
49+
}
2350
}
2451
],
2552
"require": {
@@ -30,7 +57,8 @@
3057
"ext-xml": "*",
3158
"ext-mbstring": "*",
3259
"piwik/plugin-SecurityInfo": "^3.0",
33-
"geoip2/geoip2": "^2.6"
60+
"geoip2/geoip2": "^2.6",
61+
"diabl0/piwik-geoip2": "^0.1.5"
3462
},
3563
"license": "GPL-3.0",
3664
"authors": [
@@ -41,6 +69,6 @@
4169
],
4270
"minimum-stability": "stable",
4371
"scripts": {
44-
"post-install-cmd": "mv plugins/* vendor/piwik/piwik/plugins/ && cp index.php vendor/piwik/piwik/ && cp config.ini.php vendor/piwik/piwik/config/"
72+
"post-install-cmd": "cp -Rf plugins/ vendor/piwik/piwik/plugins/ && cp index.php vendor/piwik/piwik/ && cp config.ini.php vendor/piwik/piwik/config/"
4573
}
4674
}

composer.lock

Lines changed: 27 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)