Merge pull request #249 from micmac1/import-sipgrep-and-sngrep

Import sipgrep and sngrep
This commit is contained in:
micmac1 2018-01-21 19:00:27 +01:00 committed by GitHub
commit 38f156bcf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 118 additions and 0 deletions

54
net/sipgrep/Makefile Normal file
View file

@ -0,0 +1,54 @@
#
# Copyright (C) 2016 - 2018 Daniel Engberg <daniel.engberg.lists@pyret.net>
# Copyright (C) 2018 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:=sipgrep
PKG_VERSION:=2.2.1-20160621
PKG_RELEASE:=1
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILES:=COPYING
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/sipcapture/sipgrep
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=df8a95b066569be92aa38cad01086ea595b36863
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_MIRROR_HASH:=9b40ecd7822c84740fcf0032ab5c54195df545162c623699232b78da6ae225d2
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/sipgrep
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Telephony
DEPENDS:=+libpcap +libpcre
TITLE:=Command line tool to sniff, capture, display SIP messages
URL:=https://github.com/sipcapture/sipgrep
endef
define Package/sipgrep/description
Powerful pcap-aware command line tool to sniff, capture, display and
troubleshoot SIP signaling over IP networks, allowing the user to
specify extended regular expressions matching against SIP headers.
endef
CONFIGURE_ARGS += \
--enable-ipv6
define Package/sipgrep/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sipgrep $(1)/usr/bin
endef
$(eval $(call BuildPackage,sipgrep))

64
net/sngrep/Makefile Normal file
View file

@ -0,0 +1,64 @@
#
# Copyright (C) 2016 - 2018 Daniel Engberg <daniel.engberg.lists@pyret.net>
# Copyright (C) 2018 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:=sngrep
PKG_VERSION=1.4.5
PKG_RELEASE:=1
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
PKG_LICENSE:=GPL-3.0+
PKG_LICENSE_FILES:=COPYING
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/irontec/$(PKG_NAME)/releases/download/v$(PKG_VERSION)
PKG_HASH:=16f1566f4507ba560c7461cc7ff1c1653beb14b8baf7846269bbb4880564e57f
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/sngrep
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Telephony
DEPENDS:=+libncursesw +libopenssl +libpcap +libpcre
TITLE:=Ncurses SIP messages flow viewer
URL:=https://github.com/irontec/sngrep
endef
define Package/sngrep/description
sngrep displays SIP messages grouped by Call-Id into flow diagrams. It
can be used as an offline pcap viewer or for online capture using
libpcap functions.
It supports SIP UDP and TCP transports (when each message is delivered
in one packet).
endef
define Package/sngrep/conffiles
/etc/sngreprc
endef
CONFIGURE_ARGS += \
--enable-eep \
--enable-ipv6 \
--enable-unicode \
--with-openssl \
--with-pcre
define Package/sngrep/install
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sngreprc $(1)/etc
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sngrep $(1)/usr/bin
endef
$(eval $(call BuildPackage,sngrep))