9896e0a5a5b58788803be564a8e3ccc3549669ed
[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:=157
15 PKG_SOURCE_DATE=2020-03-03
16 PKG_RELEASE:=1
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:=+libstdcpp +USE_GLIBC:libbsd +libpcap
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 (plus RTP traffic, if
34 available) to disk in a fashion similar to "tcpdump -w" (format is
35 exactly the same), but one file per SIP session (even if there are
36 thousands of concurrent SIP sessions).
37 endef
38
39 MAKE_FLAGS+=LIBS="-lpcap"
40
41 define Package/pcapsipdump/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/
44 endef
45
46 $(eval $(call BuildPackage,pcapsipdump))