e3d41061a6
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13977 3c298f89-4303-0410-b956-a3cf2f4a3e73
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
--- a/Makefile.am
|
|
+++ b/Makefile.am
|
|
@@ -3,7 +3,7 @@ man_MANS=peerguardnf.1
|
|
mybin_PROGRAMS = peerguardnf pgtext
|
|
peerguardnf_SOURCES=Main.cpp PeerGuard.cpp BlockList.cpp Blocker_Linux.cpp Blocker_BSD.cpp HttpServer.cpp HttpRequest.cpp sha1.cpp
|
|
pgtext_SOURCES=pgtext.cpp
|
|
-peerguardnf_LDADD=-lipq -lpthread
|
|
+peerguardnf_LDADD=-lnetfilter_queue_libipq -lnetfilter_queue -lnfnetlink -lpthread
|
|
pgtext_LDADD=-lncurses -lpthread
|
|
peerguardnf_LDFLAGS=$(all_includes) -I/usr/include/libipq
|
|
AM_CPPFLAGS=$(ALL_INCLUDES) -I/usr/include/libipq
|
|
--- a/Makefile.in
|
|
+++ b/Makefile.in
|
|
@@ -72,7 +72,7 @@ man_MANS = peerguardnf.1
|
|
mybin_PROGRAMS = peerguardnf pgtext
|
|
peerguardnf_SOURCES = Main.cpp PeerGuard.cpp BlockList.cpp Blocker_Linux.cpp Blocker_BSD.cpp HttpServer.cpp HttpRequest.cpp sha1.cpp
|
|
pgtext_SOURCES = pgtext.cpp
|
|
-peerguardnf_LDADD = -lipq -lpthread
|
|
+peerguardnf_LDADD = -lnetfilter_queue_libipq -lnetfilter_queue -lnfnetlink -lpthread
|
|
pgtext_LDADD = -lncurses -lpthread
|
|
peerguardnf_LDFLAGS = $(all_includes)
|
|
AM_CPPFLAGS = $(ALL_INCLUDES)
|
|
--- a/Blocker_Linux.cpp
|
|
+++ b/Blocker_Linux.cpp
|
|
@@ -22,6 +22,7 @@
|
|
|
|
#include "PeerGuard.h"
|
|
|
|
+#include <linux/types.h>
|
|
#include <linux/netfilter.h>
|
|
extern "C" {
|
|
#include <libipq.h>
|