From 3a8b60a0cffd57d5be348f769b994d4a3545b2ca Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 29 Dec 2002 01:44:28 +0000 Subject: [PATCH] - umask in scripts, other fixes/cosmetics where needed Changed files: apache1-mod_mp3.spec -> 1.21 --- apache1-mod_mp3.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/apache1-mod_mp3.spec b/apache1-mod_mp3.spec index 1c45f00..d7f6d11 100644 --- a/apache1-mod_mp3.spec +++ b/apache1-mod_mp3.spec @@ -11,14 +11,14 @@ Group: Networking/Daemons Source0: http://software.tangent.org/download/%{arname}-%{version}.tar.gz Source1: %{arname}.conf URL: http://media.tangent.org/ -Requires: apache >= 1.3.12 -Prereq: grep -Prereq: apache(EAPI) >= 1.3.12 -Prereq: %{_sbindir}/apxs -Provides: %{arname} BuildRequires: %{apxs} BuildRequires: apache(EAPI)-devel >= 1.3.12 BuildRequires: expat-devel +PreReq: apache(EAPI) >= 1.3.12 +Requires(post,preun): %{apxs} +Requires(post,preun): grep +Requires(preun): fileutils +Provides: %{arname} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _pkglibdir %(%{apxs} -q LIBEXECDIR) @@ -43,6 +43,7 @@ pami %build ./configure + %{__make} APXS=%{apxs} %install @@ -68,8 +69,9 @@ fi %preun if [ "$1" = "0" ]; then %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2 + umask 027 grep -E -v "^Include.*%{arname}.conf" %{_sysconfdir}/httpd.conf > \ - %{_sysconfdir}/httpd.conf.tmp + %{_sysconfdir}/httpd.conf.tmp mv -f %{_sysconfdir}/httpd.conf.tmp %{_sysconfdir}/httpd.conf if [ -f /var/lock/subsys/httpd ]; then /etc/rc.d/init.d/httpd restart 1>&2 -- 2.43.0