[packages] add sslsniff (thanks to David Cooper)
[openwrt/svn-archive/archive.git] / net / sslsniff / Makefile
1 #
2 # Copyright (C) 2009 David Cooper <dave@kupesoft.com>
3 # Copyright (C) 2009 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8 # $Id$
9
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=sslsniff
13 PKG_VERSION:=0.5
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17 PKG_SOURCE_URL:=http://www.thoughtcrime.org/software/sslsniff
18 PKG_MD5SUM:=24653e2c4f1ca94328520667eb756369
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/sslsniff
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=SSL man-in-the-middle attack
26 URL:=http://www.thoughtcrime.org/software/sslsniff/index.html
27 DEPENDS:=+libopenssl
28 endef
29
30 define Package/sslsniff/description
31 sslsniff is designed to MITM all SSL connections on a LAN,
32 and dynamically generates certs for the domains that are
33 being accessed on the fly. The new certificates are constructed
34 in a certificate chain that is signed by any certificate that
35 you provide.
36 endef
37
38 # Take this opportunity to remove the pre-packaged x86 binary
39 define Build/Prepare
40 $(call Build/Prepare/Default)
41 $(RM) $(PKG_BUILD_DIR)/sslsniff
42 endef
43
44 MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)"
45
46 define Package/sslsniff/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslsniff $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,sslsniff))
52