2 # Copyright (C) 2016 Daniel Engberg <daniel.engberg.lists@pyret.net>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_RELEASE
:=$(AUTORELEASE
)
15 PKG_MAINTAINER
:=Sebastian Kemper
<sebastian_ml@gmx.net
>
17 PKG_LICENSE_FILES
:=COPYING
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_SOURCE_URL
:=https
://github.com
/irontec
/sngrep
/releases
/download
/v
$(PKG_VERSION
)
21 PKG_HASH
:=cedbe521c9730deda004bff71e88c8c56ae66d3d147ddc6f5f965df2ca67a8df
29 PKG_CONFIG_DEPENDS
:=CONFIG_IPV6 CONFIG_SNGREP_ENABLE_EEP CONFIG_SNGREP_WITH_PCRE
31 include $(INCLUDE_DIR
)/package.mk
37 DEPENDS
:=+libncursesw
+libopenssl
+libpcap
+SNGREP_WITH_PCRE
:libpcre
38 TITLE
:=Ncurses SIP messages flow viewer
39 URL
:=https
://github.com
/irontec
/sngrep
42 define Package
/sngrep
/description
43 sngrep is a tool for displaying SIP calls message flows from terminal.
45 It supports live capture to display realtime SIP packets and can also be
49 define Package
/sngrep
/conffiles
53 define Package
/sngrep
/config
54 menu
"sngrep configuration"
55 depends on PACKAGE_sngrep
57 config SNGREP_ENABLE_EEP
58 bool
"EEP/HEP support"
61 Enable EEP
/HEP support
63 config SNGREP_WITH_PCRE
67 Enable Perl compatible regular expressions
72 --$(if
$(CONFIG_SNGREP_ENABLE_EEP
),en
,dis
)able-eep \
73 --$(if
$(CONFIG_IPV6
),en
,dis
)able-ipv6 \
76 --with
$(if
$(CONFIG_SNGREP_WITH_PCRE
),,out
)-pcre
78 define Package
/sngrep
/install
79 $(INSTALL_DIR
) $(1)/etc
80 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/sngreprc
$(1)/etc
81 $(INSTALL_DIR
) $(1)/usr
/bin
82 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/sngrep
$(1)/usr
/bin
85 $(eval
$(call BuildPackage
,sngrep
))