]> git.pld-linux.org Git - packages/phpMyAdmin.git/commitdiff
- fixed %post - make symlinks rather than move files
authortwittner <twittner@pld-linux.org>
Wed, 21 Jul 2004 14:05:35 +0000 (14:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  already matched by %files (noticed by qboosh).
- fixed release: 2.pl1 -> pl1.1 ; bumped Epoch (1)

Changed files:
    phpMyAdmin.spec -> 1.70

phpMyAdmin.spec

index afc58dd6a353d1f3eb674cb9cd285015fd7a9168..cfba44a3e07876e77bfe7d18f145af7efb0c369e 100644 (file)
@@ -3,7 +3,8 @@ Summary(pl):    phpMyAdmin - administracja bazami MySQL przez WWW
 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
@@ -86,7 +87,7 @@ rm -rf $RPM_BUILD_ROOT
 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
@@ -99,7 +100,7 @@ if [ "$1" = "0" ]; then
            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
This page took 0.263049 seconds and 4 git commands to generate.