2006-08-08 12:33:45 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 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:=sipp
|
2008-07-06 11:39:10 +00:00
|
|
|
PKG_VERSION:=3.1
|
2006-08-08 12:33:45 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2008-07-06 11:39:10 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).src.tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/sipp
|
2008-07-06 11:39:10 +00:00
|
|
|
PKG_MD5SUM:=452a6f88f2d314dbb2f44e318a60982b
|
2006-08-08 12:33:45 +00:00
|
|
|
|
2008-07-06 11:39:10 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).svn
|
2006-08-08 12:33:45 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/sipp
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-09-03 15:58:55 +00:00
|
|
|
DEPENDS:= +libncurses +libpthread +uclibcxx
|
2006-08-08 12:33:45 +00:00
|
|
|
TITLE:=test tool / traffic generator for the SIP protocol
|
2007-09-03 15:58:55 +00:00
|
|
|
URL:=http://sipp.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sipp/description
|
2008-07-06 11:39:10 +00:00
|
|
|
SIPp is a free Open Source test tool / traffic generator for the SIP
|
|
|
|
protocol. It includes a few basic SipStone user agent scenarios (UAC and
|
|
|
|
UAS) and establishes and releases multiple calls with the INVITE and BYE
|
2007-09-03 15:58:55 +00:00
|
|
|
methods.
|
2006-08-08 12:33:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-08-18 21:21:06 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CC_linux="$(TARGET_CC)" \
|
|
|
|
CPP_linux="$(TARGET_CC)" \
|
|
|
|
CCLINK_linux="$(TARGET_CC)" \
|
2006-08-08 12:33:45 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2007-09-03 15:58:55 +00:00
|
|
|
CPPFLAGS_linux="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
|
|
|
|
LFLAGS_linux="$(TARGET_LDFLAGS)" \
|
2008-08-06 00:56:31 +00:00
|
|
|
LIBS="-nodefaultlibs -lncurses -luClibc++ -ldl -lpthread -lm -lgcc" \
|
2006-08-08 12:33:45 +00:00
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sipp/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-09-03 15:58:55 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sipp $(1)/usr/sbin/
|
2006-08-08 12:33:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,sipp))
|