]> git.pld-linux.org Git - packages/apache1-mod_antihak.git/commitdiff
- pl translation, changed Source URL to ftp
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 17 Jan 2002 12:22:31 +0000 (12:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- eliminated perl from preun script, added Prereq: grep

Changed files:
    apache1-mod_antihak.spec -> 1.4

apache1-mod_antihak.spec

index 2de36bae7de5dfebbe358f1d6da229ddd2960c3c..705ebda920852a7900ff6ea54a5de2c21f574528 100644 (file)
@@ -1,4 +1,5 @@
 Summary:       Antihak module for Apache
+Summary(pl):   Modu³ antihak dla Apache
 Name:          apache-mod_antihak
 Version:       0.3.1beta
 Release:       2
@@ -6,7 +7,7 @@ License:        GPL
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
-Source0:       http://prdownloads.sourceforge.net/apantihak/mod_antihak-0.3.1-beta.tar.gz
+Source0:       ftp://ftp.sourceforge.net/pub/sourceforge/apantihak/mod_antihak-0.3.1-beta.tar.gz
 Patch0:                mod_antihak-iptables.patch
 Patch1:                mod_antihak-am.patch
 BuildRequires: automake
@@ -17,6 +18,7 @@ BuildRequires:        mysql-devel
 Requires:      apache(EAPI) >= 1.3.1
 Requires:      iptables
 Requires:      sudo
+Prereq:                grep
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define         _libexecdir     %{_libdir}/apache
@@ -27,6 +29,11 @@ mod_antihak is an Apache Module designed to eliminate the CodeRed and
 Nimda worm's network bandwidth consumption. We're working to make it
 as easy as writing a line of text to add more worms! :)
 
+%description -l pl
+mod_antihak to modu³ Apache s³u¿±cy do eliminowania zapychania sieci
+przez robaki CodeRed i Nimda. Ponadto trwaj± prace nad umo¿liwieniem
+³atwego dodawania obs³ugi kolejnych robaków.
+
 %prep
 %setup -q -n mod_antihak-0.3.1-beta
 cd src
@@ -44,7 +51,7 @@ automake -a -c
 
 %configure \
        CC=%{__cc} \
-       CFLAGS="${CFLAGS:-%optflags} -I/usr/include/mysql" \
+       CFLAGS="%{rpmcflags} -I/usr/include/mysql" \
        APACHE_APXS=/usr/sbin/apxs \
        --with-mysql
 
@@ -76,7 +83,9 @@ fi
 if [ "$1" = "0" ]; then
        if [ `fgrep "http ALL= NOPASSWD: /sbin/iptables" /etc/sudoers | wc -l` != 0 ]
        then
-               perl -pi -e "s|http ALL= NOPASSWD: /sbin/iptables\n||" /etc/sudoers
+               grep -v '^http ALL= NOPASSWD: /sbin/iptables$' /etc/sudoers \
+                       > /etc/sudoers.rpmnew-antihak
+               mv -f /etc/sudoers.rpmnew-antihak /etc/sudoers
        fi
 
        %{_sbindir}/apxs -e -A -n antihak %{_libexecdir}/mod_antihak.so 1>&2
This page took 0.112548 seconds and 4 git commands to generate.