1 Summary: DaveDAP's A Very Easy Directory Administration Program
6 Group: Applications/Databases
7 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
8 # Source0-md5: f7756e7a8201725ed7dff72968078a8e
10 URL: http://davedap.sourceforge.net/
14 Requires(post,preun): grep
15 Requires(preun): fileutils
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define davedapdir %{_datadir}/%{name}
21 DaveDAP is a web-based LDAP admin tool written in PHP. You can browse
22 your LDAP tree, create, delete, edit, and copy objects, perform
23 searches, and view your server's schema. You can even copy objects
24 between two LDAP servers and recursively delete or copy entire trees.
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT{/etc/httpd,%{davedapdir}/{images,include}}
33 install *.php *.css *.txt $RPM_BUILD_ROOT%{davedapdir}/
34 install images/* $RPM_BUILD_ROOT%{davedapdir}/images/
36 install %SOURCE1 $RPM_BUILD_ROOT/etc/httpd/
37 install config.php.example $RPM_BUILD_ROOT/etc/davedap.conf
38 ln -s /etc/davedap.conf $RPM_BUILD_ROOT%{davedapdir}/config.php
41 rm -rf $RPM_BUILD_ROOT
44 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*davedap.conf" /etc/httpd/httpd.conf; then
45 echo "Include /etc/httpd/davedap.conf" >> /etc/httpd/httpd.conf
47 if [ -f /var/lock/subsys/httpd ]; then
48 /usr/sbin/apachectl restart 1>&2
52 if [ "$1" = "0" ]; then
54 grep -v "^Include.*davedap.conf" /etc/httpd/httpd.conf > \
55 /etc/httpd/httpd.conf.tmp
56 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
57 if [ -f /var/lock/subsys/httpd ]; then
58 /usr/sbin/apachectl restart 1>&2
63 %defattr(644,root,root,755)
64 # there's no README, INSTALL may contain usefull info
71 %config(noreplace) %verify(not mtime size md5) /etc/httpd/%{name}.conf
72 %config(noreplace) %verify(not mtime size md5) /etc/%{name}.conf