Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dvosburg:smb-ldap
phpldapadmin
phpldapadmin.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File phpldapadmin.spec of Package phpldapadmin
# # spec file for package phpldapadmin # # Copyright (c) 2018 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/ # %define serverroot /srv/www/htdocs/ Name: phpldapadmin Version: 1.2.3 Release: 0 Summary: A web interface for LDAP server administration License: GPL-2.0 Group: Productivity/Networking/Web/Frontends Url: http://phpldapadmin.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz Source1: phpldapadmin.conf # PATCH-FIX-OPENSUSE password_hash.patch bnc#965097 Patch1: password_hash.patch # PATCH-FIX-UPSTREAM fix XSS in htdocs/entry_chooser.php Patch2: phpldapadmin-CVE-2017-11107.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildArch: noarch PreReq: apache2 Requires: mod_php_any Requires: php > 5.0 Requires: php-gettext Requires: php-ldap Requires: php-openssl Requires: php-pcre Requires: php-session Requires: php-xml %description phpLDAPadmin (also known as PLA) is a web-based LDAP client. It provides easy, anywhere-accessible, multi-language administration for your LDAP server. Its hierarchical tree-viewer and advanced search functionality make it intuitive to browse and administer your LDAP directory. Since it is a web application, this LDAP browser works on many platforms, making your LDAP server easily manageable from any location. phpLDAPadmin is the perfect LDAP browser for the LDAP professional and novice alike. Its user base consists mostly of LDAP administration professionals. %prep %setup -q %patch1 -p1 %patch2 -p1 find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; find . -type f -name '.cvsignore' -exec rm {} \; %build %install install -m 755 -d %{buildroot}%{serverroot}%{name} cp -dR index.php config hooks htdocs lib locale queries templates %{buildroot}%{serverroot}%{name} touch %{buildroot}%{serverroot}%{name}/config/config.php # generate file list find %{buildroot}%{serverroot}%{name} -mindepth 1 -maxdepth 1 -type d | sed -e "s@$RPM_BUILD_ROOT@@" > FILELIST find %{buildroot}%{serverroot}%{name} -maxdepth 1 -type f | grep -v 'config.inc.php' | sed -e "s@$RPM_BUILD_ROOT@@" >> FILELIST mkdir -p %{buildroot}%{_sysconfdir}/apache2/conf.d/ sed -e "s|__HTDOCSDIR__|%{serverroot}/%{name}/htdocs|g; \ s|__PHPLDAPADMINROOT__|%{serverroot}/%{name}|g;" %{SOURCE1} > %{buildroot}%{_sysconfdir}/apache2/conf.d/phpldapadmin.conf # fdupes %fdupes %{buildroot}%{serverroot}%{name} %pre if [ ${1:-0} -eq 1 ]; then if [ -x %{_sbindir}/a2enmod ]; then if %{_sbindir}/a2enmod -q php5 ; then %{_sbindir}/a2enmod php5 >/dev/null else %{_sbindir}/a2enmod php >/dev/null fi fi test -x %{_sbindir}/a2enflag && %{_sbindir}/a2enflag PHPLDAPADMIN >/dev/null fi %restart_on_update apache2 %postun if [ "$1" = "0" ]; then # deinstallation of the package - remove the apache flag test -x %{_sbindir}/a2disflag && %{_sbindir}/a2disflag PHPLDAPADMIN >/dev/null fi %restart_on_update apache2 %files -f FILELIST %defattr(-,root,root) %doc LICENSE VERSION %doc doc/* %dir %{serverroot}%{name} %dir %{_sysconfdir}/apache2 %dir %{_sysconfdir}/apache2/conf.d %config(noreplace) %{_sysconfdir}/apache2/conf.d/phpldapadmin.conf # we don't need to install config/config.php, but we have to keep it # in the filelist so that an update doesn't delete it %ghost %config(noreplace) %{serverroot}%{name}/config/config.php %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