122 lines
3.8 KiB
RPMSpec
122 lines
3.8 KiB
RPMSpec
Name: phpldapadmin
|
|
Release: 1mamba
|
|
Version: 1.2.3
|
|
Summary: Web-based LDAP browser to manage LDAP server
|
|
Group: Applications/Web
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://phpldapadmin.sourceforge.net/
|
|
Source0: http://downloads.sourceforge.net/project/phpldapadmin/phpldapadmin-php5/%{version}/phpldapadmin-%{version}.tgz
|
|
Source1: phpLDAPadmin-config.php
|
|
Patch: %{name}-0.9.6c-can_2005_2654.patch
|
|
License: GPL
|
|
Requires(pre): expect >= 8.4.9
|
|
Requires: apache >= 2.0.52
|
|
Requires: apache-mod_php >= 4.3.10
|
|
Requires: php-ldap >= 4.3.8
|
|
AutoReq: no
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Web-based LDAP browser to manage LDAP server.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
#%patch -p1
|
|
|
|
%build
|
|
# fix some perimissions
|
|
#chmod 644 export*.php
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -d %{buildroot}/var/www/html/phpldapadmin
|
|
|
|
cp -R * %{buildroot}/var/www/html/phpldapadmin
|
|
cp %{SOURCE1} %{buildroot}/var/www/html/phpldapadmin/config.php
|
|
|
|
rm %{buildroot}/var/www/html/phpldapadmin/{INSTALL,LICENSE}
|
|
|
|
install -d %{buildroot}%{_datadir}/applications
|
|
cat > %{buildroot}%{_datadir}/applications/phpldapadmin.desktop << EOF
|
|
[Desktop Entry]
|
|
Name=LDAP Administration Tool
|
|
Name[it]=Strumento di gestione LDAP
|
|
Comment=PHP LDAP Administration Tool
|
|
Comment[it]=Strumento di amministrazione LDAP
|
|
Exec=konqueror http://localhost/phpldapadmin
|
|
Type=Application
|
|
Terminal=0
|
|
Icon=personal
|
|
Categories=Application;Utility;Database;
|
|
EOF
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post
|
|
if [ $1 -eq 1 ]; then
|
|
. %{_initrddir}/ldap-functions
|
|
. %{_sysconfdir}/sysconfig/defaults
|
|
set_ldap_environment
|
|
blowpwd=`/usr/bin/mkpasswd -l 40 -s 0`
|
|
sed -i "s|blowfish_secret = ''|blowfish_secret = '$blowpwd'|;
|
|
s|dc=myhost,dc=example,dc=com|$LDAPHOSTDN|;
|
|
s|dc=example,dc=com|$LDAPBASEDN|" \
|
|
/var/www/html/phpldapadmin/config.php
|
|
fi
|
|
exit 0
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_datadir}/applications/phpldapadmin.desktop
|
|
%dir /var/www/html/phpldapadmin
|
|
/var/www/html/phpldapadmin/*
|
|
%config(noreplace) /var/www/html/phpldapadmin/config.php
|
|
%doc INSTALL LICENSE
|
|
|
|
%changelog
|
|
* Tue Dec 25 2012 Automatic Build System <autodist@mambasoft.it> 1.2.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Aug 02 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.2-1mamba
|
|
- update to 1.2.2
|
|
|
|
* Sun Jul 03 2011 Automatic Build System <autodist@mambasoft.it> 1.2.1.1-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed May 12 2010 Automatic Build System <autodist@mambasoft.it> 1.2.0.5-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sun Aug 23 2009 Automatic Build System <autodist@mambasoft.it> 1.2.0.2-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Mon Aug 17 2009 Automatic Build System <autodist@mambasoft.it> 1.2.0.1-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Jul 24 2009 Automatic Build System <autodist@mambasoft.it> 1.2.0-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Tue Jun 09 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0.7-1mamba
|
|
- update to 1.1.0.7
|
|
|
|
* Thu Sep 01 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.9.6c-2qilnx
|
|
- security fix QSA-2005-100 (CAN-2005-2654)
|
|
|
|
* Sun Jun 12 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.6c-1qilnx
|
|
- update to version 0.9.6c by autospec
|
|
|
|
* Tue Apr 19 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.6-1qilnx
|
|
- update to version 0.9.6 by autospec
|
|
|
|
* Wed Feb 16 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.5-1qilnx
|
|
- update to version 0.9.5 by autospec
|
|
|
|
* Wed Sep 29 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4b-2qilnx
|
|
- fix missing config.php
|
|
|
|
* Tue Sep 28 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4b-1qilnx
|
|
- package created by autospec
|