Directory structure restructuralized.
[feed/telephony.git] / net / pcapsipdump / Makefile
1 #
2 # Copyright (C) 2009-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:=pcapsipdump
11 PKG_VERSION:=0.1.4
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/psipdump
16 PKG_MD5SUM:=95ed26caf66237a654cae2cacdaa3386
17
18 include $(INCLUDE_DIR)/uclibc++.mk
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/pcapsipdump
22   SECTION:=net
23   CATEGORY:=Network
24   SUBMENU:=Telephony
25   DEPENDS:=+libpcap $(CXX_DEPENDS)
26   TITLE:=SIP sessions dumping tool
27   URL:=http://sourceforge.net/projects/pcapsipdump/
28 endef
29
30 define Package/pcapsipdump/description
31         pcapsipdump is a tool for dumping SIP sessions (+RTP traffic, if available) to disk in a
32         fashion similar to "tcpdump -w" (format is exactly the same), but one file per sip session
33         (even if there is thousands of concurrect SIP sessions).
34 endef
35
36 TARGET_CC=$(TARGET_CXX)
37
38 define Build/Compile
39         $(TARGET_CONFIGURE_OPTS) \
40                 $(MAKE) -C $(PKG_BUILD_DIR) \
41                 CPPFLAGS="$(TARGET_CXXFLAGS) -fno-rtti"  \
42                 LIBS="-lpcap"
43 endef
44
45 define Package/pcapsipdump/install
46         $(INSTALL_DIR) $(1)/usr/bin
47         $(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/
48 endef
49
50 $(eval $(call BuildPackage,pcapsipdump))