Ticket #4969: pcapsipdump-0.1.4.patch

File pcapsipdump-0.1.4.patch, 1.4 KB (added by Wlanman, 9 years ago)

Tested, cleaned up a bit.

  • pcapsipdump/Makefile

     
     1# 
     2# Copyright (C) 2009 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7 
     8include $(TOPDIR)/rules.mk 
     9 
     10PKG_NAME:=pcapsipdump 
     11PKG_VERSION:=0.1.4 
     12PKG_RELEASE:=1 
     13 
     14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     15PKG_SOURCE_URL:=@SF/psipdump 
     16PKG_MD5SUM:=95ed26caf66237a654cae2cacdaa3386 
     17 
     18include $(INCLUDE_DIR)/package.mk 
     19 
     20define Package/pcapsipdump 
     21  SECTION:=net 
     22  CATEGORY:=Network 
     23  DEPENDS:=+libpcap +libstdcpp 
     24  TITLE:=SIP sessions dumping tool 
     25  URL:=http://psipdump.sourceforge.net/ 
     26endef 
     27 
     28define 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). 
     32endef 
     33         
     34define Build/Compile 
     35        $(TARGET_CONFIGURE_OPTS) \ 
     36        $(MAKE) -C $(PKG_BUILD_DIR) CPPFLAGS="-I$(STAGING_DIR)/usr/include" LDFLAGS="-L$(STAGING_DIR)/usr/lib -lpcap -lstdc++" 
     37endef 
     38 
     39define Package/pcapsipdump/install 
     40        $(INSTALL_DIR) $(1)/usr/bin 
     41        $(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/ 
     42endef 
     43 
     44$(eval $(call BuildPackage,pcapsipdump))