2024-01-06 03:34:16 +01:00
|
|
|
%define serverdir %(apxs -q htdocsdir 2>/dev/null)
|
|
|
|
|
|
|
|
# To create a customized installation of bbPress:
|
|
|
|
# autospec -u magento -a5 \
|
|
|
|
# -d "installdir=%serverdir/../www.example.com, \
|
|
|
|
# sitename=example, \
|
|
|
|
# adminmail=webmaster@example.com"
|
|
|
|
|
|
|
|
%if "%{?installdir}" == ""
|
|
|
|
%define installdir %{serverdir}/lam
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{?sitename}" != ""
|
|
|
|
%if "%{?servername}" == ""
|
|
|
|
%define servername %(basename %installdir 2>/dev/null)
|
|
|
|
%endif
|
|
|
|
%define serverlogdir %(apxs -q logfiledir 2>/dev/null)
|
|
|
|
%else
|
|
|
|
%if "%{?aliasdir}" == ""
|
|
|
|
%define aliasdir /lam
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
#% define rcver_append .RC1
|
|
|
|
Name: ldap-account-manager
|
2024-01-06 03:34:16 +01:00
|
|
|
Version: 7.9
|
2024-01-06 03:34:16 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 03:34:16 +01:00
|
|
|
Summary: A webfrontend for managing accounts stored in an openLDAP server.
|
|
|
|
Group: Applications/Web
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 03:34:16 +01:00
|
|
|
URL: https://lam.sourceforge.io/
|
2024-01-06 03:34:16 +01:00
|
|
|
Source: https://sourceforge.net/projects/lam/files/LAM/%{version}/ldap-account-manager-%{version}.tar.bz2
|
|
|
|
Patch0: %{name}-7.7-installdirs.patch
|
2024-01-06 03:34:16 +01:00
|
|
|
Patch1: %{name}-3.3.0-sync_ldap_names_with_smbldaptools.patch
|
|
|
|
Patch2: %{name}-3.3.0-default_user_profile.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: apache
|
|
|
|
Requires: apache >= 2.0.48
|
|
|
|
Requires(post):apache-mod_php
|
|
|
|
Requires(post):openldap-server
|
|
|
|
Requires: php >= 4.3.6
|
|
|
|
Requires: php-ldap >= 4.3.6
|
|
|
|
#Requires: ldap-scripts
|
|
|
|
Provides: lam
|
2024-01-06 03:34:16 +01:00
|
|
|
Obsoletes: lam <= 3.9
|
2024-01-06 03:34:16 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
LDAP Account Manager (LAM) is a webfrontend for managing accounts stored in an openLDAP server.
|
|
|
|
|
|
|
|
Features:
|
|
|
|
- management of Unix user and group accounts (posixAccount/posixGroup)
|
|
|
|
- management of Samba 2.x/3 user and host accounts (sambaAccount/sambaSamAccount)
|
|
|
|
- profiles for account creation
|
|
|
|
- editor for organizational units (OU)
|
|
|
|
- account creation via file upload
|
|
|
|
- automatic creation/deletion of home directories
|
|
|
|
- setting quotas
|
|
|
|
- support for LDAP+SSL
|
|
|
|
- multi-language support (English, French, German, Hungarian, Japanese)
|
|
|
|
- multiple configuration files
|
|
|
|
- PDF output for user/group/host accounts
|
|
|
|
- additional text for user PDFs
|
|
|
|
- supports multiple password hashes
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n ldap-account-manager-%{version}%{?rcver_append}
|
|
|
|
%patch0 -p1
|
2024-01-06 03:34:16 +01:00
|
|
|
#%patch1 -p1
|
|
|
|
#%patch2 -p1
|
2024-01-06 03:34:16 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--sysconfdir=%{_sysconfdir}/lam \
|
|
|
|
--localstatedir=%{_localstatedir}/lam \
|
2024-01-06 03:34:16 +01:00
|
|
|
--docdir=%{_docdir}/lam \
|
2024-01-06 03:34:16 +01:00
|
|
|
--htmldir=%{_docdir}/html/lam \
|
|
|
|
--with-httpd-user=httpd \
|
|
|
|
--with-httpd-group=nobody \
|
|
|
|
--with-web-root=%{installdir}
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
2024-01-06 03:34:16 +01:00
|
|
|
|
2024-01-06 03:34:16 +01:00
|
|
|
#mkdir -p %{buildroot}/var/www/html/lam
|
|
|
|
#install -m 0644 index.html %{buildroot}/var/www/html/lam
|
|
|
|
#cp -R config lib sess tmp graphics locale style help templates %{buildroot}/var/www/html/lam
|
2024-01-06 03:34:16 +01:00
|
|
|
mv %{buildroot}%{_sysconfdir}/lam/config.cfg.sample %{buildroot}%{_sysconfdir}/lam/config.cfg
|
|
|
|
#mv %{buildroot}%{_sysconfdir}/lam/lam.conf_sample %{buildroot}%{_sysconfdir}/lam/lam.conf
|
|
|
|
|
|
|
|
install -d -m0755 %{buildroot}%{_docdir}
|
|
|
|
mv %{buildroot}%{_prefix}/docs %{buildroot}%{_docdir}/lam
|
2024-01-06 03:34:16 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 03:34:16 +01:00
|
|
|
#%post
|
|
|
|
#if [ $1 -eq 1 ]; then
|
|
|
|
## new install
|
|
|
|
# [ -e %{_sysconfdir}/openldap/slapd.conf ] && {
|
|
|
|
# eval suffix=`grep ^suffix %{_sysconfdir}/openldap/slapd.conf | awk '{ print $2 }'`
|
|
|
|
# eval rootdn=`grep ^rootdn %{_sysconfdir}/openldap/slapd.conf | awk '{ print $2 }'`
|
|
|
|
# }
|
|
|
|
# [ "$suffix" -a "$rootdn" ] && {
|
|
|
|
# sed -i "s|cn=Manager,dc=my-domain,dc=com|$rootdn|
|
|
|
|
# s|#treesuffix: dc=yourdomain,dc=org|treesuffix: $suffix|
|
|
|
|
# s|dc=my-domain,dc=com|$suffix|" \
|
|
|
|
# %{_sysconfdir}/lam/lam.conf
|
|
|
|
# }
|
|
|
|
## RANDOM_PASSWD=`%{_bindir}/mkpasswd -l 8 -s 0`
|
|
|
|
## sed -i "s|^passwd: lam|passwd: $RANDOM_PASSWD|" \
|
|
|
|
## %{_localstatedir}/www/html/lam/config/lam.conf
|
|
|
|
#fi
|
|
|
|
#:
|
2024-01-06 03:34:16 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_sysconfdir}/lam
|
2024-01-06 03:34:16 +01:00
|
|
|
%{_sysconfdir}/lam/addressbook.sample.conf
|
|
|
|
%{_sysconfdir}/lam/samba3.sample.conf
|
|
|
|
%{_sysconfdir}/lam/unix.sample.conf
|
|
|
|
%{_sysconfdir}/lam/windows_samba4.sample.conf
|
2024-01-06 03:34:16 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/lam/config.cfg
|
2024-01-06 03:34:16 +01:00
|
|
|
#%config(noreplace) %{_sysconfdir}/lam/lam.conf
|
2024-01-06 03:34:16 +01:00
|
|
|
%dir %{_sysconfdir}/lam/selfService
|
2024-01-06 03:34:16 +01:00
|
|
|
%{_sysconfdir}/lam/selfService/.placeholder
|
|
|
|
%dir %{_sysconfdir}/lam/templates
|
|
|
|
%dir %{_sysconfdir}/lam/templates/pdf
|
|
|
|
%{_sysconfdir}/lam/templates/pdf/*
|
|
|
|
%dir %{_sysconfdir}/lam/templates/profiles
|
|
|
|
%{_sysconfdir}/lam/templates/profiles/*
|
|
|
|
%config(noreplace) %{_sysconfdir}/lam/language
|
2024-01-06 03:34:16 +01:00
|
|
|
%{_sysconfdir}/lam/.htaccess
|
2024-01-06 03:34:16 +01:00
|
|
|
%dir %attr(0755,apache,nobody) %{installdir}
|
2024-01-06 03:34:16 +01:00
|
|
|
%{installdir}/config
|
2024-01-06 03:34:16 +01:00
|
|
|
%{installdir}/index.html
|
|
|
|
%{installdir}/pwa_worker.js
|
|
|
|
%dir %attr(0755,apache,nobody) %{installdir}/lib
|
2024-01-06 03:34:16 +01:00
|
|
|
%{installdir}/lib/.htaccess
|
|
|
|
%{installdir}/lib/*
|
2024-01-06 03:34:16 +01:00
|
|
|
%dir %attr(0755,apache,nobody) %{installdir}/graphics
|
2024-01-06 03:34:16 +01:00
|
|
|
%{installdir}/graphics/.htaccess
|
|
|
|
%{installdir}/graphics/*
|
2024-01-06 03:34:16 +01:00
|
|
|
%dir %attr(0755,apache,nobody) %{installdir}/help
|
2024-01-06 03:34:16 +01:00
|
|
|
%{installdir}/help/.htaccess
|
|
|
|
%{installdir}/help/*
|
2024-01-06 03:34:16 +01:00
|
|
|
%dir %attr(0755,apache,nobody) %{installdir}/locale
|
2024-01-06 03:34:16 +01:00
|
|
|
%{installdir}/locale/.htaccess
|
|
|
|
%{installdir}/locale/*/LC_MESSAGES/messages.*
|
|
|
|
%{installdir}/sess
|
2024-01-06 03:34:16 +01:00
|
|
|
%dir %attr(0755,apache,nobody) %{installdir}/style
|
2024-01-06 03:34:16 +01:00
|
|
|
%{installdir}/style/.htaccess
|
|
|
|
%{installdir}/style/*
|
2024-01-06 03:34:16 +01:00
|
|
|
%dir %attr(0755,apache,nobody) %{installdir}/templates
|
2024-01-06 03:34:16 +01:00
|
|
|
%{installdir}/templates/.htaccess
|
|
|
|
%{installdir}/templates/*
|
|
|
|
%{installdir}/tmp
|
|
|
|
%{installdir}/VERSION
|
|
|
|
%attr(0750,apache,nobody) %{_localstatedir}/lam/sess
|
|
|
|
%attr(0750,apache,nobody) %{_localstatedir}/lam/tmp
|
2024-01-06 03:34:16 +01:00
|
|
|
%dir %{_docdir}/lam
|
|
|
|
%{_docdir}/lam/*
|
2024-01-06 03:34:16 +01:00
|
|
|
%doc COPYING
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 03:34:16 +01:00
|
|
|
* Thu Mar 24 2022 Automatic Build System <autodist@mambasoft.it> 7.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:34:16 +01:00
|
|
|
* Fri Feb 04 2022 Automatic Build System <autodist@mambasoft.it> 7.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:34:16 +01:00
|
|
|
* Wed Dec 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 7.7-1mamba
|
|
|
|
- update to 7.7
|
|
|
|
|
2024-01-06 03:34:16 +01:00
|
|
|
* Wed Feb 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9-2mamba
|
|
|
|
- fix apxs path
|
|
|
|
|
|
|
|
* Fri Oct 12 2012 Automatic Build System <autodist@mambasoft.it> 3.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Aug 16 2012 Automatic Build System <autodist@mambasoft.it> 3.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jul 07 2012 Automatic Build System <autodist@mambasoft.it> 3.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Apr 11 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3.0-4mamba
|
|
|
|
- modify defaul user profile to comply with smaba and smbldap-tools configuration
|
|
|
|
- set /etc/lam/profiles permission to allow profile settings modification from web interface
|
|
|
|
|
|
|
|
* Tue Mar 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3.0-3mamba
|
|
|
|
- renamed from lam to ldap-account-manager
|
|
|
|
- install using provided configure/make
|
|
|
|
|
|
|
|
* Thu Mar 10 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3.0-2mamba
|
|
|
|
- added requirement for apache-mod_php
|
|
|
|
|
|
|
|
* Thu Feb 17 2011 Automatic Build System <autodist@mambasoft.it> 3.3.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Nov 08 2010 Automatic Build System <autodist@mambasoft.it> 3.2.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Aug 09 2010 Automatic Build System <autodist@mambasoft.it> 3.1.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu May 13 2010 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Jul 01 2009 Automatic Build System <autodist@mambasoft.it> 2.6.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Mar 15 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Dec 02 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-1mamba
|
|
|
|
- update to 2.4.0
|
|
|
|
|
|
|
|
* Thu Jan 17 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.0-1mamba
|
|
|
|
- update to 2.2.0
|
|
|
|
- removed uppercase patch (note: needs to be rechecked)
|
|
|
|
- build as noarch
|
|
|
|
|
|
|
|
* Wed Jul 14 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.6-3qilnx
|
|
|
|
- added a patch to make general_dn check case insensitive
|
|
|
|
|
|
|
|
* Tue Jul 13 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.6-2qilnx
|
|
|
|
- changed defaults for lam.conf
|
|
|
|
|
|
|
|
* Fri Jul 02 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.6-1qilnx
|
|
|
|
- new version build
|
|
|
|
|
|
|
|
* Tue May 25 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.5-2qilnx
|
|
|
|
- added KDE menu entry
|
|
|
|
- fixed lam.conf with QiLinux default limits for UID and GID
|
|
|
|
|
2024-01-06 03:34:16 +01:00
|
|
|
* Thu May 06 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.5-1qilnx
|
2024-01-06 03:34:16 +01:00
|
|
|
- first build
|