]> git.pld-linux.org Git - packages/aspseek.git/commitdiff
- umask in scripts, other fixes/cosmetics where needed
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Dec 2002 01:44:29 +0000 (01:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aspseek.spec -> 1.12

aspseek.spec

index 8fcc31a36018bc9043cef4a17191c22e0724719f..94f01a3b647a02670457fb3c3ed2c7701e7d44d8 100644 (file)
@@ -92,10 +92,10 @@ b
 Summary:       Apache module: ASPSeek search engine
 Summary(pl):   Modu³ Apache: Silnik wyszukiwania ASPSeek
 Group:         Networking/Daemons
-Requires(pre): aspseek
-Requires(pre): fileutils
-Requires(pre): grep
+PreReq:                aspseek
 Requires(post,preun):  %{apxs}
+Requires(post,preun):  grep
+Requires(preun):       fileutils
 Requires:      apache(EAPI)
 
 %description -n apache-mod_aspseek
@@ -175,21 +175,22 @@ echo "Remember to run %{_sbindir}/aspseek-mysql-postinstall."
 %post -n apache-mod_aspseek
 %{apxs} -e -a -n aspseek %{_pkglibdir}/mod_aspseek.so 1>&2
 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_aspseek.conf" /etc/httpd/httpd.conf; then
-        echo "Include /etc/httpd/mod_aspseek.conf" >> /etc/httpd/httpd.conf
+       echo "Include /etc/httpd/mod_aspseek.conf" >> /etc/httpd/httpd.conf
 fi
 if [ -f /var/lock/subsys/httpd ]; then
-        /etc/rc.d/init.d/httpd restart 1>&2
+       /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
 %preun -n apache-mod_aspseek
 if [ "$1" = "0" ]; then
-        %{apxs} -e -A -n aspseek %{_pkglibdir}/mod_aspseek.so 1>&2
-        grep -v "^Include.*mod_aspseek.conf" /etc/httpd/httpd.conf > \
-                /etc/httpd/httpd.conf.tmp
-        mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
-        if [ -f /var/lock/subsys/httpd ]; then
-                /etc/rc.d/init.d/httpd restart 1>&2
-        fi
+       %{apxs} -e -A -n aspseek %{_pkglibdir}/mod_aspseek.so 1>&2
+       umask 027
+       grep -v "^Include.*mod_aspseek.conf" /etc/httpd/httpd.conf > \
+               /etc/httpd/httpd.conf.tmp
+       mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
 fi
 
 %files
This page took 0.080394 seconds and 4 git commands to generate.