summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-28 07:30:30 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-28 07:30:30 +0000
commitcda2bdcb95f6e7cd356ba090fff641fa4a7a9c2f (patch)
treeee9002eb5e1a66ed3ac026bade63053485e33297
parentd7eb287961c0a56774f65c9b75e858a0f147e301 (diff)
Added sipp, useful SIP protocol tester
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3283 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--openwrt/package/sipp/Config.in13
-rw-r--r--openwrt/package/sipp/Makefile45
-rw-r--r--openwrt/package/sipp/ipkg/sipp.control5
3 files changed, 63 insertions, 0 deletions
diff --git a/openwrt/package/sipp/Config.in b/openwrt/package/sipp/Config.in
new file mode 100644
index 0000000000..1792b1d2bd
--- /dev/null
+++ b/openwrt/package/sipp/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_SIPP
+ prompt "sipp.............................. test tool / traffic generator for the SIP protocol"
+ tristate
+ default m if CONFIG_DEVEL
+ select BR2_PACKAGE_UCLIBCXX
+ select BR2_PACKAGE_LIBPTHREAD
+ select BR2_PACKAGE_LIBNCURSES
+ help
+ 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 methods.
+
+ http://sipp.sourceforge.net
diff --git a/openwrt/package/sipp/Makefile b/openwrt/package/sipp/Makefile
new file mode 100644
index 0000000000..02bc2e2577
--- /dev/null
+++ b/openwrt/package/sipp/Makefile
@@ -0,0 +1,45 @@
+# $Id: Makefile 1146 2005-06-05 13:32:28Z florian $
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=sipp
+PKG_VERSION:=1.0
+PKG_RELEASE:=1
+PKG_MD5SUM:=8866e9af0d3bc29e91ebb6eab89a7f1f
+
+PKG_SOURCE_URL:=@SF/sipp
+PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,SIPP,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CC=$(TARGET_CC) \
+ CC_linux=$(TARGET_CC) \
+ CPP_linux=$(TARGET_CC) \
+ CCLINK_linux=$(TARGET_CC) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ CPPFLAGS_linux="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -nostdinc++" \
+ LFLAGS_linux="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
+ LIBS="-luClibc++ -lc -lm -lgcc -lpthread -ldl -lncurses" \
+ STAGING_DIR=$(STAGING_DIR) \
+ all
+ touch $@
+
+$(IPKG_SIPP):
+ mkdir -p $(IDIR_SIPP)/usr/sbin
+ $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_SIPP)/usr/sbin/
+ $(STRIP) $(IDIR_SIPP)/usr/sbin/*
+ $(IPKG_BUILD) $(IDIR_SIPP) $(PACKAGE_DIR)
+
+mostlyclean:
+ $(MAKE) -C $(PKG_BUILD_DIR) clean
+ rm -f $(PKG_BUILD_DIR)/.built
diff --git a/openwrt/package/sipp/ipkg/sipp.control b/openwrt/package/sipp/ipkg/sipp.control
new file mode 100644
index 0000000000..3e1b257906
--- /dev/null
+++ b/openwrt/package/sipp/ipkg/sipp.control
@@ -0,0 +1,5 @@
+Package: sipp
+Section: net
+Priority: optional
+Description: traffic generator for the SIP protocol
+Depends: uclibc++, libpthread, libncurses