Merge pull request #274 from micmac1/rtpproxy-bump
[feed/telephony.git] / net / pcapsipdump / Makefile
1 #
2 # Copyright (C) 2009-2018 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.2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/pcapsipdump
16 PKG_HASH:=4d4dc2664963c08de40da47ca0dcd1eeae09edc42241bd6daa7ff8c59089dce9
17
18 PKG_LICENSE:=GPL-2.0+
19 PKG_LICENSE_FILES:=LICENSE
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/pcapsipdump
24 SECTION:=net
25 CATEGORY:=Network
26 SUBMENU:=Telephony
27 DEPENDS:=+libpcap +libstdcpp
28 TITLE:=SIP sessions dumping tool
29 URL:=http://sourceforge.net/projects/pcapsipdump/
30 endef
31
32 define Package/pcapsipdump/description
33 pcapsipdump is a tool for dumping SIP sessions (+RTP traffic, if available) to disk in a
34 fashion similar to "tcpdump -w" (format is exactly the same), but one file per sip session
35 (even if there is thousands of concurrect SIP sessions).
36 endef
37
38 MAKE_VARS += \
39 CC="$(TARGET_CXX)" \
40 CPPFLAGS="$(TARGET_CXXFLAGS) -fno-rtti $(TARGET_CPPFLAGS)"
41
42 define Package/pcapsipdump/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/
45 endef
46
47 $(eval $(call BuildPackage,pcapsipdump))