tar: moved to github
[packages.git] / net / sslstrip / Makefile
1 #
2 # Copyright (C) 2006-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:=sslstrip
11 PKG_VERSION:=0.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.thoughtcrime.org/software/sslstrip
16 PKG_MD5SUM:=944020144e4f5528888b3dfbb107dd78
17
18 include $(INCLUDE_DIR)/package.mk
19 $(call include_mk, python-package.mk)
20
21 define Package/sslstrip
22   SECTION:=net
23   CATEGORY:=Network
24   TITLE:=sslstrip
25   URL:=http://www.thoughtcrime.org/software/sslstrip/index.html
26   DEPENDS:=+python +twisted +twisted-web +pyopenssl
27 endef
28
29 define Package/sslstrip/description
30   sslstrip will transparently hijack HTTP traffic on a network,
31   watch for HTTPS links and redirects, then map those links
32   into either look-alike HTTP links or homograph-similar HTTPS
33   links. It also supports modes for supplying a favicon which
34   looks like a lock icon, selective logging, and session denial.
35 endef
36
37 define Build/Compile
38         $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
39 endef
40
41 define Package/sslstrip/install
42         $(INSTALL_DIR) $(1)/usr/bin
43         $(CP) \
44             $(PKG_INSTALL_DIR)/usr/bin/sslstrip \
45             $(1)/usr/bin
46         $(INSTALL_DIR) $(1)/usr/share/sslstrip
47         $(CP) \
48             $(PKG_INSTALL_DIR)/usr/share/sslstrip/* \
49             $(1)/usr/share/sslstrip
50         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
51         $(CP) \
52             $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
53             $(1)$(PYTHON_PKG_DIR)
54 endef
55
56 $(eval $(call BuildPackage,sslstrip))