Merge pull request #469 from micmac1/master-sipdump-up
[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
12 PKG_SOURCE_PROTO:=svn
13 PKG_SOURCE_URL:=https://svn.code.sf.net/p/pcapsipdump/code/trunk
14 PKG_SOURCE_VERSION:=151
15 PKG_SOURCE_DATE=2019-10-07
16 PKG_RELEASE:=1
17 PKG_MIRROR_HASH:=a029b29946f0492220fc9c60ef3e7f0a7a0c660f0047957eab6802ae6b9f9ed4
18
19 PKG_LICENSE:=GPL-2.0+
20 PKG_LICENSE_FILES:=LICENSE
21
22 include $(INCLUDE_DIR)/uclibc++.mk
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/pcapsipdump
26 SECTION:=net
27 CATEGORY:=Network
28 SUBMENU:=Telephony
29 DEPENDS:=+libpcap $(CXX_DEPENDS)
30 TITLE:=SIP sessions dumping tool
31 URL:=http://sourceforge.net/projects/pcapsipdump/
32 endef
33
34 define Package/pcapsipdump/description
35 pcapsipdump is a tool for dumping SIP sessions (+RTP traffic, if available) to disk in a
36 fashion similar to "tcpdump -w" (format is exactly the same), but one file per sip session
37 (even if there is thousands of concurrect SIP sessions).
38 endef
39
40 MAKE_FLAGS+=LIBS="-lpcap"
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))