summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-05-16 08:45:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-05-16 08:47:24 +0000
commit7c5a33c31d43d396513286f92637625d839c1ce8 (patch)
tree724f28e69bebff27940ba364bb87f1a9304cf296
parentAdding upstream version 4.0.4. (diff)
downloadmatomo-plugin-loginldap-progress-linux.zip
matomo-plugin-loginldap-progress-linux.tar.xz
Adding progress-linux version 4.0.4-0+dschinn1.progress-linux/4.0.4-0+dschinn1progress-linux
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control29
-rw-r--r--debian/copyright30
-rwxr-xr-xdebian/matomo-plugin-loginldap.postinst50
-rwxr-xr-xdebian/rules8
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/local-options1
8 files changed, 125 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4175c5c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+matomo-plugin-loginldap (4.0.4-0+dschinn1) dschinn-backports-extras; urgency=low
+
+ * Initial upload to dschinn-backports-extras.
+
+ -- David Kunz <david.kunz@progress-linux.org> Mon, 07 May 2018 09:34:23 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b4de394
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..2625dad
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: matomo-plugin-loginldap
+Section: web
+Priority: optional
+Maintainer: Progress Linux Maintainers <maintainers@lists.progress-linux.org>
+XSBC-Uploaders:
+ Daniel Baumann <daniel.baumann@progress-linux.org>,
+ David Kunz <david.kunz@progress-linux.org>,
+Bugs: mailto:maintainers@lists.progress-linux.org
+Build-Depends:
+ debhelper (>= 11),
+Standards-Version: 4.1.4
+Homepage: https://matomo.org
+Vcs-Browser: https://sources.progress-linux.org/distributions/dschinn-extras/packages/matomo-plugin-loginldap
+Vcs-Git: https://sources.progress-linux.org/distributions/dschinn-extras/packages/matomo-plugin-login-ldap
+
+Package: matomo-plugin-loginldap
+Architecture: all
+Pre-Depends:
+ crudini,
+Depends:
+ matomo,
+ php-ldap,
+ ${misc:Depends},
+Description: web analytics platform - plugin-LoginLdap
+ Matomo is a web analytics application that runs on a webserver. It tracks
+ online visits to one or more websites and displays reports on these visits for
+ analysis.
+ .
+ This package contains the LoginLdap plugin.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..364af3c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Matomo
+Upstream-Contact: Matomo Team <hello@matomo.org>
+Source: https://github.com/matomo-org/plugin-LoginLdap
+
+Files: *
+Copyright: 2014-2018 Matthieu Aubry <matt@matomo.org>
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2018 Daniel Baumann <daniel.baumann@progress-linux.org>
+ 2018 David Kunz <david.kunz@progress-linux.org>
+License: GPL-3+
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The full text of the GNU General Public License version 3
+ can be found in the file /usr/share/common-licenses/GPL-3.
diff --git a/debian/matomo-plugin-loginldap.postinst b/debian/matomo-plugin-loginldap.postinst
new file mode 100755
index 0000000..a993487
--- /dev/null
+++ b/debian/matomo-plugin-loginldap.postinst
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ configure)
+ if [ ! -e /var/lib/matomo/config/config.ini.php ]
+ then
+ echo "matomo not yet configured, skipping enabling of matomo-plugin."
+ exit 0
+ fi
+
+ for PLUGIN in LoginLdap
+ do
+ if dpkg-statoverride --list "/var/lib/matomo/plugins/${PLUGIN}" > /dev/null 2>&1
+ then
+ continue
+ fi
+
+ if [ -L "/var/lib/matomo/plugins/${PLUGIN}" ]
+ then
+ rm -f "/var/lib/matomo/plugins/${PLUGIN}"
+ fi
+
+ if [ ! -e "/var/lib/matomo/plugins/${PLUGIN}" ]
+ then
+ ln -s "/usr/lib/matomo/plugins/${PLUGIN}" "/var/lib/matomo/plugins/${PLUGIN}"
+ fi
+
+ echo "Enabling matomo ${PLUGIN} plugin..."
+ su -c "php /usr/share/matomo/console plugin:activate ${PLUGIN}" -s /bin/sh www-data
+ done
+
+ echo "Updating matamo database..."
+ su -c "php /usr/share/matomo/console core:update" -s /bin/sh www-data
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..be6ed84
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+ dh ${@}
+
+override_dh_auto_install:
+ mkdir -p debian/matomo-plugin-loginldap/usr/lib/matomo/plugins/LoginLdap
+ find . -mindepth 1 -maxdepth 1 -and -not -name debian -exec cp -a {} debian/matomo-plugin-loginldap/usr/lib/matomo/plugins/LoginLdap \;
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..2ee6f0f
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1 @@
+abort-on-upstream-changes