[package] ruby: fix path to libiconv
[openwrt/svn-archive/archive.git] / ipv6 / thc-ipv6 / Makefile
1 #
2 # Copyright (C) 2009-2010 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 include $(INCLUDE_DIR)/package.mk
19
20 define Package/thc-ipv6/Default
21 SECTION:=ipv6
22 CATEGORY:=IPv6
23 DEPENDS:=+libpcap
24 URL:=http://freeworld.thc.org/
25 endef
26
27 define Build/Compile
28 $(MAKE) -C $(PKG_BUILD_DIR) \
29 CC="$(TARGET_CC)" \
30 OPT="$(TARGET_CFLAGS) -L$(STAGING_DIR)/usr/lib -I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" all
31 endef
32
33
34 define BuildTool
35
36 PKG_CONFIG_DEPENDS+=CONFIG_PACKAGE_$(1)
37
38 define Package/$(1)
39 $$(call Package/thc-ipv6/Default)
40 TITLE:=$(2)
41 SUBMENU:=IPv6 attack and analyzing toolset (thc-ipv6)
42 endef
43
44 define Package/$(1)/description
45 $(3)
46 endef
47
48 define Package/$(1)/install
49 $(INSTALL_DIR) $$(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(1) $$(1)/usr/sbin/$(1)
51 endef
52
53 $$(eval $$(call BuildPackage,$(1)))
54
55 endef
56
57
58 #$(eval $(call BuildTool,NAME,TITLE,DESCRIPTION))
59 $(eval $(call BuildTool,parasite6,ARP spoofer for IPv6,Provides false answers to Neighbor Solitication requests))
60 $(eval $(call BuildTool,dos-new-ip6,DAD spoofer,Prevents new IPv6 interfaces to come up by spoofing DAD))
61 $(eval $(call BuildTool,detect-new-ip6,Host detector,Detects new IPv6 addresses joining the network))
62 $(eval $(call BuildTool,fake_router6,Router spoofer,Send Router Advertisements and try to become the default router))
63 $(eval $(call BuildTool,fake_advertise6,RA spoofer,Advertise arbitary IPv6 addresses))
64 $(eval $(call BuildTool,fake_mld6,Multicast membership spoofer,Advertise local host in arbitary multicast groups))
65 $(eval $(call BuildTool,fake_mipv6,MIPv6 update spoofer,Spoof MIPv6 updates to redirect packets directed at the home-address))
66 $(eval $(call BuildTool,redir6,Route injector,Inject IPv6 routes to redirect traffic to other routers))
67 $(eval $(call BuildTool,smurf6,Local smurfer,Smurf the target or all-nodes multicast group with ICMPv6 echo replies))
68 $(eval $(call BuildTool,alive6,Host presence scanner,Find active IPv6 hosts in the network segment))
69 $(eval $(call BuildTool,toobig6,MTU injector,Inject MTU values in a IPv6 host))
70 $(eval $(call BuildTool,rsmurf6,Remote smurfer,Smurf the local network of a target host by exploiting Linux implementation errors))