Summary: Antihak module for Apache
+Summary(pl): Modu³ antihak dla Apache
Name: apache-mod_antihak
Version: 0.3.1beta
Release: 2
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
Requires: apache(EAPI) >= 1.3.1
Requires: iptables
Requires: sudo
+Prereq: grep
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _libexecdir %{_libdir}/apache
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
%configure \
CC=%{__cc} \
- CFLAGS="${CFLAGS:-%optflags} -I/usr/include/mysql" \
+ CFLAGS="%{rpmcflags} -I/usr/include/mysql" \
APACHE_APXS=/usr/sbin/apxs \
--with-mysql
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