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
:=fd80964d6560f2ff57b4f5bef2353d1a6f7c48d2f1a5f0a167c854bd2e801999
27 PKG_CONFIG_DEPENDS
:= \
29 CONFIG_SNGREP_ENABLE_EEP \
30 CONFIG_SNGREP_WITH_PCRE \
31 CONFIG_SNGREP_WITH_ZLIB
33 include $(INCLUDE_DIR
)/package.mk
43 +SNGREP_WITH_PCRE
:libpcre2 \
44 +SNGREP_WITH_ZLIB
:zlib
45 TITLE
:=Ncurses SIP messages flow viewer
46 URL
:=https
://github.com
/irontec
/sngrep
49 define Package
/sngrep
/description
50 sngrep is a tool for displaying SIP calls message flows from terminal.
52 It supports live capture to display realtime SIP packets and can also be
56 define Package
/sngrep
/conffiles
60 define Package
/sngrep
/config
61 menu
"sngrep configuration"
62 depends on PACKAGE_sngrep
64 config SNGREP_ENABLE_EEP
65 bool
"EEP/HEP support"
68 Enable EEP
/HEP support
70 config SNGREP_WITH_PCRE
74 Enable Perl compatible regular expressions
76 config SNGREP_WITH_ZLIB
80 Add support for opening gzip compressed input files
85 --$(if
$(CONFIG_SNGREP_ENABLE_EEP
),en
,dis
)able-eep \
86 --$(if
$(CONFIG_IPV6
),en
,dis
)able-ipv6 \
90 --with
$(if
$(CONFIG_SNGREP_WITH_PCRE
),,out
)-pcre2 \
91 --with
$(if
$(CONFIG_SNGREP_WITH_ZLIB
),,out
)-zlib
93 define Package
/sngrep
/install
94 $(INSTALL_DIR
) $(1)/etc
95 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/sngreprc
$(1)/etc
96 $(INSTALL_DIR
) $(1)/usr
/bin
97 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/sngrep
$(1)/usr
/bin
100 $(eval
$(call BuildPackage
,sngrep
))