c3192ef982ed436f8475cd1cb1467bd463b7baf2
[openwrt/openwrt.git] / package / network / ipv6 / thc-ipv6 / Makefile
1 #
2 # Copyright (C) 2009-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=thc-ipv6
11 PKG_VERSION:=0.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://freeworld.thc.org/releases/
16 PKG_MD5SUM:=01715cfa7f5d4a53fe8f142a10c38c78
17
18 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/thc-ipv6/Default
23 SECTION:=ipv6
24 CATEGORY:=IPv6
25 DEPENDS:=+libpcap
26 URL:=http://freeworld.thc.org/
27 endef
28
29 define Build/Compile
30 $(MAKE) -C $(PKG_BUILD_DIR) \
31 CC="$(TARGET_CC)" \
32 OPT="$(TARGET_CFLAGS) -L$(STAGING_DIR)/usr/lib -I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" all
33 endef
34
35
36 define BuildTool
37
38 PKG_CONFIG_DEPENDS+=CONFIG_PACKAGE_$(1)
39
40 define Package/$(1)
41 $$(call Package/thc-ipv6/Default)
42 TITLE:=$(2)
43 SUBMENU:=IPv6 attack and analyzing toolset (thc-ipv6)
44 endef
45
46 define Package/$(1)/description
47 $(3)
48 endef
49
50 define Package/$(1)/install
51 $(INSTALL_DIR) $$(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(1) $$(1)/usr/sbin/$(1)
53 endef
54
55 $$(eval $$(call BuildPackage,$(1)))
56
57 endef
58
59
60 #$(eval $(call BuildTool,NAME,TITLE,DESCRIPTION))
61 $(eval $(call BuildTool,parasite6,ARP spoofer for IPv6,Provides false answers to Neighbor Solitication requests))
62 $(eval $(call BuildTool,dos-new-ip6,DAD spoofer,Prevents new IPv6 interfaces to come up by spoofing DAD))
63 $(eval $(call BuildTool,detect-new-ip6,Host detector,Detects new IPv6 addresses joining the network))
64 $(eval $(call BuildTool,fake_router6,Router spoofer,Send Router Advertisements and try to become the default router))
65 $(eval $(call BuildTool,fake_advertise6,RA spoofer,Advertise arbitary IPv6 addresses))
66 $(eval $(call BuildTool,fake_mld6,Multicast membership spoofer,Advertise local host in arbitary multicast groups))
67 $(eval $(call BuildTool,fake_mipv6,MIPv6 update spoofer,Spoof MIPv6 updates to redirect packets directed at the home-address))
68 $(eval $(call BuildTool,redir6,Route injector,Inject IPv6 routes to redirect traffic to other routers))
69 $(eval $(call BuildTool,smurf6,Local smurfer,Smurf the target or all-nodes multicast group with ICMPv6 echo replies))
70 $(eval $(call BuildTool,alive6,Host presence scanner,Find active IPv6 hosts in the network segment))
71 $(eval $(call BuildTool,toobig6,MTU injector,Inject MTU values in a IPv6 host))
72 $(eval $(call BuildTool,rsmurf6,Remote smurfer,Smurf the local network of a target host by exploiting Linux implementation errors))