[packages] flashrom: update source url, use PKG_INSTALL & MAKE_FLAGS, refresh patches
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ssldump
11 PKG_VERSION:=0.9b3
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://www.rtfm.com/ssldump/
15 PKG_MD5SUM:=ac8c28fe87508d6bfb06344ec496b1dd
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/ssldump
20 SECTION:=utils
21 CATEGORY:=Utilities
22 DEPENDS:=+libopenssl +libpcap
23 TITLE:=a SSLv3/TLS network protocol analyzer
24 URL:=http://www.rtfm.com/ssldump/
25 endef
26
27 define Package/ssldump/description
28 ssldump is an SSLv3/TLS network protocol analyzer. It identifies TCP connections on the chosen network interface
29 and attempts to interpret them as SSLv3/TLS traffic. When it identifies SSLv3/TLS traffic, it decodes the records
30 and displays them in a textual form to stdout. If provided with the appropriate keying material, it will also decrypt
31 the connections and display the application data traffic.
32 endef
33
34 CONFIGURE_ARGS += \
35 --enable-static \
36 --enable-shared \
37 --with-openssl-inc="$(STAGING_DIR)/usr/include" \
38 --with-openssl-lib="$(STAGING_DIR)/usr/lib" \
39 --with-pcap-inc="$(STAGING_DIR)/usr/include" \
40 --with-pcap-lib="$(STAGING_DIR)/usr/lib" \
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all
46 endef
47
48
49 define Package/ssldump/install
50 $(INSTALL_DIR) $(1)/usr/sbin/
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssldump $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,ssldump))