]> git.pld-linux.org Git - packages/apache-mod_auth_mysql.git/commitdiff
- module name changed back to auth_mysql, added patch to change module name in
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 22 Oct 2001 12:28:37 +0000 (12:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  source (apxs requires filename and module name to be consistent)
- release 3

Changed files:
    apache-mod_auth_mysql.spec -> 1.6

apache-mod_auth_mysql.spec

index 1619a24fff8ffc1834bf691c0cafda510e1c24aa..6c73b4bcabba784613ece2ad3737538f6d5c0472 100644 (file)
@@ -3,12 +3,13 @@ Summary:      This is the MySQL authentication module for Apache
 Summary(pl):   Modu³ autentykacji MySQL dla Apache
 Name:          apache-mod_%{mod_name}
 Version:       0.3
-Release:       2
+Release:       3
 License:       GPL
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
 Source0:       ftp://ftp.kcilink.com/pub/mod_%{mod_name}.c.gz
+Patch0:                %{name}-name.patch
 BuildRequires: mysql-devel
 BuildRequires: /usr/sbin/apxs
 BuildRequires: apache(EAPI)-devel
@@ -29,8 +30,8 @@ klient
 
 %prep 
 %setup -q -T -c
-cp %{SOURCE0} .
-gzip -d mod_%{mod_name}.c.gz
+gzip -dc %{SOURCE0} > mod_%{mod_name}.c
+%patch -p1
 
 %build
 /usr/sbin/apxs -c mod_%{mod_name}.c -o mod_%{mod_name}.so -lmysqlclient
@@ -41,23 +42,23 @@ install -d $RPM_BUILD_ROOT%{_pkglibdir}
 
 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
-/usr/sbin/apxs -e -a -n mysql_auth_module %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+/usr/sbin/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
 %preun
 if [ "$1" = "0" ]; then
-       /usr/sbin/apxs -e -A -n mysql_auth_module %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+       /usr/sbin/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
 fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pkglibdir}/*
This page took 0.118535 seconds and 4 git commands to generate.