Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:infrastructure
matomo-plugin-LoginLdap
matomo-plugin-LoginLdap.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File matomo-plugin-LoginLdap.spec of Package matomo-plugin-LoginLdap
# # spec file for package matomo-plugin-LoginLdap # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: matomo-plugin-LoginLdap %define real_name LoginLdap %define matomo_dir /srv/www/matomo %define matomo_plugindir %{matomo_dir}/plugins Version: 5.0.6 Release: 0 Summary: LDAP authentication and synchronization for Matomo License: GPL-3.0-or-later Group: Productivity/Networking/Web/Utilities Url: https://github.com/matomo-org/plugin-LoginLdap Source: plugin-%{real_name}-%{version}.tar.gz BuildRequires: matomo >= 4.0 BuildRequires: fdupes Requires: php-ldap Requires: matomo >= 5.0 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This plugin allows users in LDAP to log in to Matomo Analytics. LoginLdap authenticates with an LDAP server and uses LDAP information to personalize Matomo. %prep %setup -q -n plugin-%{real_name}-%{version} %build %install mkdir -p %{buildroot}%{matomo_plugindir}/%{real_name} cp -a * %{buildroot}%{matomo_plugindir}/%{real_name}/ find %{buildroot}%{matomo_plugindir}/%{real_name}/ -name .gitkeep -delete %fdupes %{buildroot}%{matomo_plugindir}/%{real_name} %post # First installation: enable the plugin directly if [ $1 -eq 1 ]; then if [ -e %{matomo_dir}/console ]; then su wwwrun -s /bin/sh -c "%{_bindir}/php %{matomo_dir}/console plugin:activate %{real_name}" || : fi fi %postun # De-installation: disable the plugin directly if [ $1 -eq 0 ]; then if [ -e %{matomo_dir}/console ]; then su wwwrun -s /bin/sh -c "%{_bindir}/php %{matomo_dir}/console plugin:deactivate %{real_name}" || : fi fi %files %defattr(-,root,root) %doc *.md %license LICENSE %dir %{matomo_plugindir}/%{real_name} %{matomo_plugindir}/%{real_name}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor