2009-05-12 10:06:43 +00:00
|
|
|
#
|
2010-03-24 04:49:34 +00:00
|
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
2009-05-12 10:06:43 +00:00
|
|
|
#
|
|
|
|
# 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.1.4
|
2012-08-04 17:02:13 +00:00
|
|
|
PKG_RELEASE:=3
|
2009-05-12 10:06:43 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/psipdump
|
|
|
|
PKG_MD5SUM:=95ed26caf66237a654cae2cacdaa3386
|
|
|
|
|
2012-08-04 17:02:13 +00:00
|
|
|
include $(INCLUDE_DIR)/uclibc++.mk
|
2009-05-12 10:06:43 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/pcapsipdump
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 07:58:31 +00:00
|
|
|
SUBMENU:=Telephony
|
2012-08-04 17:02:13 +00:00
|
|
|
DEPENDS:=+libpcap $(CXX_DEPENDS)
|
2009-05-12 10:06:43 +00:00
|
|
|
TITLE:=SIP sessions dumping tool
|
2010-03-24 04:49:34 +00:00
|
|
|
URL:=http://sourceforge.net/projects/pcapsipdump/
|
2009-05-12 10:06:43 +00:00
|
|
|
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
|
2010-03-29 11:03:25 +00:00
|
|
|
|
2012-08-04 17:02:13 +00:00
|
|
|
TARGET_CC=$(TARGET_CXX)
|
|
|
|
|
2009-05-12 10:06:43 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2012-08-04 17:02:13 +00:00
|
|
|
CPPFLAGS="$(TARGET_CXXFLAGS) -fno-rtti" \
|
|
|
|
LIBS="-lpcap"
|
2009-05-12 10:06:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pcapsipdump/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,pcapsipdump))
|