Created
May 26, 2011 13:14
-
-
Save wheresalice/993113 to your computer and use it in GitHub Desktop.
Ldap Account Manager 3.4.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: ldap-account-manager.spec 7981 2009-11-03 03:05:34Z dag $ | |
# Authority: dag | |
# Tag: test | |
Summary: LDAP Account Manager | |
Name: ldap-account-manager | |
Version: 3.4.0 | |
Release: 2%{?dist} | |
License: GPL | |
Group: Applications/Internet | |
URL: http://lam.sourceforge.net/ | |
Packager: Dag Wieers <dag@wieers.com> | |
Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ | |
Source: http://downloads.sourceforge.net/project/lam/LAM/3.4.0/ldap-account-manager-%{version}.tar.gz | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | |
BuildArch: noarch | |
Requires: php, openldap >= 2.0, perl | |
%description | |
LDAP Account Manager (LAM) is a webfrontend for managing accounts stored | |
in an openLDAP server. | |
%prep | |
%setup | |
### FIXME: Add a default sqlitemanager.conf for Apache. (Please fix upstream) | |
%{__cat} <<EOF >lam.httpd | |
### You need to include conf.d/php.conf to make it work. | |
Alias /lam/ %{_localstatedir}/www/lam/ | |
<Directory %{_localstatedir}/www/lam/> | |
DirectoryIndex index.php | |
order deny,allow | |
deny from all | |
allow from 127.0.0.1 | |
</Directory> | |
<FilesMatch "\.inc$"> | |
order deny,allow | |
deny from all | |
</FilesMatch> | |
EOF | |
%build | |
%install | |
%{__rm} -rf %{buildroot} | |
%{__install} -Dp -m0644 lam.httpd %{buildroot}%{_sysconfdir}/httpd/conf.d/lam.conf | |
%{__rm} -f lam.httpd | |
%{__install} -d -m0755 %{buildroot}%{_localstatedir}/www/lam/ | |
%{__cp} -apvx config/ %{buildroot}%{_localstatedir}/www/lam/ | |
%{__cp} -apvx lib/ %{buildroot}%{_localstatedir}/www/lam/ | |
%{__cp} -apvx sess/ %{buildroot}%{_localstatedir}/www/lam/ | |
%{__cp} -apvx tmp/ %{buildroot}%{_localstatedir}/www/lam/ | |
find %{buildroot} -name "*.pl" -exec chmod a+x {} \; | |
%clean | |
%{__rm} -rf %{buildroot} | |
%files | |
%defattr(-, root, root, 0755) | |
%doc COPYING HISTORY README copyright docs/* | |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/lam.conf | |
%dir %{_localstatedir}/www/lam/ | |
%{_localstatedir}/www/lam/lib/ | |
%defattr(-, apache, apache, 0755) | |
%config(noreplace) %{_localstatedir}/www/lam/config/ | |
%{_localstatedir}/www/lam/sess/ | |
%{_localstatedir}/www/lam/tmp/ | |
%changelog | |
* Thu May 26 2011 Alice Kaerast <alice@kaerast.info - 3.4.0-1 | |
- Rebuild for current version | |
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 0.4.6-1.2 - 7981/dag | |
- Rebuild for Fedora Core 5. | |
* Tue Jun 29 2004 Dag Wieers <dag@wieers.com> - 0.4.6-1 | |
- Initial package. (using DAR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lamversion=`awk '/Version/ {print $2;}' ldap-account-manager.spec` | |
wget -c `awk '/Source/ {print $2;}' ldap-account-manager.spec | sed s/%{version}/$lamversion/g` | |
cp ldap-account-manager-$lamversion.tar.gz ~/rpmbuild/SOURCES/ | |
rpmbuild -ba ldap-account-manager.spec | |
lamrelease=`awk '/Release/ {print $2;}' ldap-account-manager.spec | cut -c 1` | |
cp ~/rpmbuild/RPMS/*/ldap-account-manager-$lamversion-$lamrelease.*.rpm . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment