2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/psipdump
16 PKG_MD5SUM
:=95ed26caf66237a654cae2cacdaa3386
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/pcapsipdump
23 DEPENDS
:=+libpcap
+uclibcxx
24 TITLE
:=SIP sessions dumping tool
25 URL
:=http
://psipdump.sourceforge.net
/
28 define Package
/pcapsipdump
/description
29 pcapsipdump is a tool for dumping SIP sessions
(+RTP traffic
, if available
) to disk in a
30 fashion similar to
"tcpdump -w" (format is exactly the same
), but one file per sip session
31 (even if there is thousands of concurrect SIP sessions
).
35 $(TARGET_CONFIGURE_OPTS
) \
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
38 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
39 LIBS
="-lpcap -luClibc++"
42 define Package
/pcapsipdump
/install
43 $(INSTALL_DIR
) $(1)/usr
/bin
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/pcapsipdump
$(1)/usr
/bin
/
47 $(eval
$(call BuildPackage
,pcapsipdump
))