From a23f5c3b61d8cbda24163d71181e96335dd576e4 Mon Sep 17 00:00:00 2001 From: diizzyy Date: Fri, 23 Sep 2016 14:14:42 +0200 Subject: [PATCH] sngrep: new package Add sngrep to repo Signed-off-by: Daniel Engberg --- net/sngrep/Makefile | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 net/sngrep/Makefile diff --git a/net/sngrep/Makefile b/net/sngrep/Makefile new file mode 100644 index 000000000..c79479f2d --- /dev/null +++ b/net/sngrep/Makefile @@ -0,0 +1,49 @@ +# +# Copyright (C) 2016 Daniel Engberg +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=sngrep +PKG_VERSION:=20160923-devel +PKG_RELEASE:=1 +PKG_MAINTAINER:=Daniel Engberg +PKG_LICENSE:=GPL-3.0 +PKG_LICENSE_FILES:=COPYING + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL=https://github.com/irontec/sngrep +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=1e0ee528d0f400d42ce482518c805a86f9b61cef +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz + +PKG_FIXUP:=autoreconf + +include $(INCLUDE_DIR)/package.mk + +define Package/sngrep + SECTION:=net + CATEGORY:=Network + DEPENDS:=+libpcap +libpthread +libpcre +libncursesw + TITLE:=Display SIP calls message flows + URL:=https://github.com/irontec/sngrep +endef + +define Package/sngrep/description + sngrep is a tool for displaying SIP calls message flows from terminal. + It supports live capture to display realtime SIP packets and can also be used as PCAP viewer. +endef + +CONFIGURE_ARGS += \ + --with-pcre \ + --enable-unicode \ + +define Package/sngrep/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sngrep $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,sngrep))