Name: phpMyAdmin
%define _ver pl1
Version: 2.5.7
-Release: 2.pl1
+Release: %{_ver}.1
+Epoch: 1
License: GPL v2
Group: Applications/Databases/Interfaces
Source0: http://dl.sourceforge.net/phpmyadmin/%{name}-%{version}-%{_ver}.tar.bz2
if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*phpMyAdmin.conf" /etc/httpd/httpd.conf; then
echo "Include /etc/httpd/phpMyAdmin.conf" >> /etc/httpd/httpd.conf
elif [ -d /etc/httpd/httpd.conf ]; then
- mv -f /etc/httpd/%{name}.conf /etc/httpd/httpd.conf/99_%{name}.conf
+ ln -sf /etc/httpd/%{name}.conf /etc/httpd/httpd.conf/99_%{name}.conf
fi
if [ -f /var/lock/subsys/httpd ]; then
/usr/sbin/apachectl restart 1>&2
rm -f /etc/httpd/httpd.conf/99_%{name}.conf
else
grep -v "^Include.*phpMyAdmin.conf" /etc/httpd/httpd.conf > \
- etc/httpd/httpd.conf.tmp
+ /etc/httpd/httpd.conf.tmp
mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
if [ -f /var/lock/subsys/httpd ]; then
/usr/sbin/apachectl restart 1>&2