Add ssldump
[openwrt/svn-archive/archive.git] / utils / ssldump / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ssldump
12 PKG_VERSION:=0.9b3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.rtfm.com/ssldump/
16 PKG_MD5SUM:=
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/ssldump
21 SECTION:=utils
22 CATEGORY:=Utilities
23 DEPENDS:=+libopenssl +libpcap
24 TITLE:=a SSLv3/TLS network protocol analyzer
25 URL:=http://www.rtfm.com/ssldump/
26 endef
27
28 define Package/ssldump/description
29 ssldump is an SSLv3/TLS network protocol analyzer. It identifies TCP connections on the chosen network interface
30 and attempts to interpret them as SSLv3/TLS traffic. When it identifies SSLv3/TLS traffic, it decodes the records
31 and displays them in a textual form to stdout. If provided with the appropriate keying material, it will also decrypt
32 the connections and display the application data traffic.
33 endef
34
35 CONFIGURE_ARGS += \
36 --enable-static \
37 --enable-shared \
38 --with-openssl-inc="$(STAGING_DIR)/usr/include" \
39 --with-openssl-lib="$(STAGING_DIR)/usr/lib" \
40 --with-pcap-inc="$(STAGING_DIR)/usr/include" \
41 --with-pcap-lib="$(STAGING_DIR)/usr/lib" \
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all
47 endef
48
49
50 define Package/ssldump/install
51 $(INSTALL_DIR) $(1)/usr/sbin/
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssldump $(1)/usr/sbin/
53 endef
54
55 $(eval $(call BuildPackage,ssldump))