d5debedcb2
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26092 3c298f89-4303-0410-b956-a3cf2f4a3e73
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
#
|
|
# 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.1.4
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@SF/psipdump
|
|
PKG_MD5SUM:=95ed26caf66237a654cae2cacdaa3386
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/pcapsipdump
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Telephony
|
|
DEPENDS:=+libpcap +uclibcxx
|
|
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
|
|
|
|
define Build/Compile
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
|
LIBS="-lpcap -luClibc++"
|
|
endef
|
|
|
|
define Package/pcapsipdump/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,pcapsipdump))
|