2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=airpwn-
$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=@SF
/airpwn
16 PKG_MD5SUM
:=15b6f1cd287b4bb20dd586bb6c83628d
18 PKG_BUILD_DEPENDS
:=libnet1 libopenssl libpcap libpcre
21 PKG_LIBTOOL_PATHS
:=. lorcon
23 include $(INCLUDE_DIR
)/package.mk
29 TITLE
:=Packet injection pwnage
30 DEPENDS
:=+libnet1
+libopenssl
+libpcap
+libpcre
+libpthread
31 URL
:=http
://airpwn.sourceforge.net
/Airpwn.html
34 define Package
/airpwn
/description
35 Airpwn is a framework for
802.11 (wireless
) packet injection.
36 Airpwn listens to incoming wireless packets
, and if the data
37 matches a pattern specified in the config files
, custom content
38 is injected
"spoofed" from the wireless access point. From the
39 perspective of the wireless client
, airpwn becomes the server.
45 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/lib/libnet-1.1.x/include -I$(STAGING_DIR)/usr/include -I$(PKG_BUILD_DIR)/lorcon" \
46 LDFLAGS
="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libnet-1.1.x/lib -L$(PKG_BUILD_DIR)/lorcon/.libs -lcrypto -lssl" \
47 LIBTOOL
="$(STAGING_DIR)/host/bin/libtool"
49 define Build
/Configure
50 ( cd
$(PKG_BUILD_DIR
); tar -xzf lorcon-current.tgz
; cd lorcon
; \
51 $(CONFIGURE_VARS
) .
/configure
$(CONFIGURE_ARGS
); \
52 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lorcon
$(CONFIGURE_VARS
); cd ..
; \
53 $(CONFIGURE_VARS
) .
/configure
$(CONFIGURE_ARGS
) )
57 $(MAKE
) -C
$(PKG_BUILD_DIR
) $(CONFIGURE_VARS
)
60 define Package
/airpwn
/install
61 $(INSTALL_DIR
) $(1)/etc
/airpwn
62 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/conf
/* $(1)/etc
/airpwn
/
63 $(INSTALL_DIR
) $(1)/usr
/bin
64 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/airpwn
$(1)/usr
/bin
/
65 $(INSTALL_DIR
) $(1)/usr
/lib
66 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lorcon
/.libs
/liborcon-1.0
.0.so
$(1)/usr
/lib
/
67 ( cd
$(1)/usr
/lib
; ln
-s liborcon-1.0
.0.so liborcon.so
)
70 $(eval
$(call BuildPackage
,airpwn
))