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
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
:=f39fded8dc9ef0b7a41319f223dd4afa348bb2418bea578ed281557726829728
25 PKG_MIRROR_HASH
:=94e150cabe3efc6f07d05e3ee348806a0a8fa9335d27dfddce477988b946ed8f
31 PKG_CONFIG_DEPENDS
:=CONFIG_IPV6 CONFIG_SNGREP_ENABLE_EEP CONFIG_SNGREP_WITH_PCRE
33 include $(INCLUDE_DIR
)/package.mk
39 DEPENDS
:=+libncursesw
+libopenssl
+libpcap
+SNGREP_WITH_PCRE
:libpcre
40 TITLE
:=Ncurses SIP messages flow viewer
41 URL
:=https
://github.com
/irontec
/sngrep
44 define Package
/sngrep
/description
45 sngrep is a tool for displaying SIP calls message flows from terminal.
47 It supports live capture to display realtime SIP packets and can also be
51 define Package
/sngrep
/conffiles
55 define Package
/sngrep
/config
56 menu
"sngrep configuration"
57 depends on PACKAGE_sngrep
59 config SNGREP_ENABLE_EEP
60 bool
"EEP/HEP support"
63 Enable EEP
/HEP support
65 config SNGREP_WITH_PCRE
69 Enable Perl compatible regular expressions
74 --$(if
$(CONFIG_SNGREP_ENABLE_EEP
),en
,dis
)able-eep \
75 --$(if
$(CONFIG_IPV6
),en
,dis
)able-ipv6 \
78 --with
$(if
$(CONFIG_SNGREP_WITH_PCRE
),,out
)-pcre
80 define Package
/sngrep
/install
81 $(INSTALL_DIR
) $(1)/etc
82 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/sngreprc
$(1)/etc
83 $(INSTALL_DIR
) $(1)/usr
/bin
84 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/sngrep
$(1)/usr
/bin
87 $(eval
$(call BuildPackage
,sngrep
))