From: radek Date: Sun, 29 Aug 2004 17:56:43 +0000 (+0000) Subject: - renamed to apache1-* X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache1-mod_antihak.git;a=commitdiff_plain;h=8fda0174231aac8f58d303d3a98590d5014914fd - renamed to apache1-* Changed files: mod_antihak-am.patch -> 1.2 mod_antihak-iptables.patch -> 1.2 --- diff --git a/mod_antihak-am.patch b/mod_antihak-am.patch deleted file mode 100644 index 62474d0..0000000 --- a/mod_antihak-am.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- mod_antihak/Makefile.am~ Tue Oct 9 11:44:04 2001 -+++ mod_antihak/Makefile.am Wed Jan 9 00:57:56 2002 -@@ -1,7 +1,7 @@ - bin_PROGRAMS = mod_antihak.so - mod_antihak_so_SOURCES = mod_antihak.c - --mod_antihak.so: mod_antihak.c -+mod_antihak.so$(EXEEXT): mod_antihak.c - @APACHE_APXS@ -c -I@APACHE_DIR@/include \ - @MYSQL_INC@ -I@EXTRA_INCLUDE@ \ - -o mod_antihak.so @MYSQL_LDADD@ @LIBS@ @MYSQL_LIB@ ${mod_antihak_so_SOURCES} diff --git a/mod_antihak-iptables.patch b/mod_antihak-iptables.patch deleted file mode 100644 index 4f73af6..0000000 --- a/mod_antihak-iptables.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- mod_antihak/mod_antihak.c.orig Tue Nov 20 03:59:29 2001 -+++ mod_antihak/mod_antihak.c Tue Nov 20 03:59:46 2001 -@@ -50,7 +50,7 @@ - #include - #endif - --#define IPCHAINS_PATH "/sbin/ipchains" -+#define IPCHAINS_PATH "/sbin/iptables" - #define SUDO_PATH "/usr/bin/sudo" - - typedef struct hackentry -@@ -179,9 +179,8 @@ - int antihak_block_ip( request_rec *r ) - { - char *argv; -- const char *str_fmt = "%s %s -A input -s %s -d %s 80 -p tcp -j REJECT"; -+ const char *str_fmt = "%s %s -A INPUT -s %s -p tcp --dport 80 -j REJECT"; - register int fmt_len = ( strlen( r->connection->remote_ip ) + -- strlen( r->connection->local_ip ) + - strlen( SUDO_PATH ) + - strlen( IPCHAINS_PATH ) + - strlen( str_fmt ) - 7 ); -@@ -198,7 +197,7 @@ - return 0; - } - -- sprintf( argv, str_fmt, SUDO_PATH, IPCHAINS_PATH, r->connection->remote_ip, r->connection->local_ip ); -+ sprintf( argv, str_fmt, SUDO_PATH, IPCHAINS_PATH, r->connection->remote_ip ); - - // - // XXXX: Find a replacement for this. execve is not good enough.