]> git.pld-linux.org Git - packages/apache1-mod_antihak.git/commitdiff
- renamed to apache1-*
authorradek <radek@pld-linux.org>
Sun, 29 Aug 2004 17:56:43 +0000 (17:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mod_antihak-am.patch -> 1.2
    mod_antihak-iptables.patch -> 1.2

mod_antihak-am.patch [deleted file]
mod_antihak-iptables.patch [deleted file]

diff --git a/mod_antihak-am.patch b/mod_antihak-am.patch
deleted file mode 100644 (file)
index 62474d0..0000000
+++ /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 (file)
index 4f73af6..0000000
+++ /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 <mysql.h>
- #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.
This page took 0.085619 seconds and 4 git commands to generate.