/
Makefile
53 lines (42 loc) · 1.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Copyright (C) 2009-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=pcapsipdump
PKG_VERSION:=0.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/pcapsipdump
PKG_MD5SUM:=2c04c54c3478f7cb94978d54538006d2
PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/pcapsipdump
SECTION:=net
CATEGORY:=Network
SUBMENU:=Telephony
DEPENDS:=+libpcap $(CXX_DEPENDS)
TITLE:=SIP sessions dumping tool
URL:=http://sourceforge.net/projects/pcapsipdump/
endef
define Package/pcapsipdump/description
pcapsipdump is a tool for dumping SIP sessions (+RTP traffic, if available) to disk in a
fashion similar to "tcpdump -w" (format is exactly the same), but one file per sip session
(even if there is thousands of concurrect SIP sessions).
endef
TARGET_CC=$(TARGET_CXX)
define Build/Compile
$(TARGET_CONFIGURE_OPTS) \
$(MAKE) -C $(PKG_BUILD_DIR) \
CPPFLAGS="$(TARGET_CXXFLAGS) -fno-rtti" \
LIBS="-lpcap"
endef
define Package/pcapsipdump/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/
endef
$(eval $(call BuildPackage,pcapsipdump))