sngrep: add configuration menu
Makes ipv6, pcre and eep optional. Defaults unchanged. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
8aa5832961
commit
c02a6fa325
1 changed files with 24 additions and 4 deletions
|
@ -26,13 +26,15 @@ PKG_FIXUP:=autoreconf
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
PKG_CONFIG_DEPENDS:=CONFIG_IPV6 CONFIG_SNGREP_ENABLE_EEP CONFIG_SNGREP_WITH_PCRE
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/sngrep
|
define Package/sngrep
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
SUBMENU:=Telephony
|
SUBMENU:=Telephony
|
||||||
DEPENDS:=+libncursesw +libopenssl +libpcap +libpcre
|
DEPENDS:=+libncursesw +libopenssl +libpcap +SNGREP_WITH_PCRE:libpcre
|
||||||
TITLE:=Ncurses SIP messages flow viewer
|
TITLE:=Ncurses SIP messages flow viewer
|
||||||
URL:=https://github.com/irontec/sngrep
|
URL:=https://github.com/irontec/sngrep
|
||||||
endef
|
endef
|
||||||
|
@ -48,12 +50,30 @@ define Package/sngrep/conffiles
|
||||||
/etc/sngreprc
|
/etc/sngreprc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/sngrep/config
|
||||||
|
menu "sngrep configuration"
|
||||||
|
depends on PACKAGE_sngrep
|
||||||
|
|
||||||
|
config SNGREP_ENABLE_EEP
|
||||||
|
bool "EEP/HEP support"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enable EEP/HEP support
|
||||||
|
|
||||||
|
config SNGREP_WITH_PCRE
|
||||||
|
bool "PCRE support"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enable Perl compatible regular expressions
|
||||||
|
endmenu
|
||||||
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-eep \
|
--$(if $(CONFIG_SNGREP_ENABLE_EEP),en,dis)able-eep \
|
||||||
--enable-ipv6 \
|
--$(if $(CONFIG_IPV6),en,dis)able-ipv6 \
|
||||||
--enable-unicode \
|
--enable-unicode \
|
||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-pcre
|
--with$(if $(CONFIG_SNGREP_WITH_PCRE),,out)-pcre
|
||||||
|
|
||||||
define Package/sngrep/install
|
define Package/sngrep/install
|
||||||
$(INSTALL_DIR) $(1)/etc
|
$(INSTALL_DIR) $(1)/etc
|
||||||
|
|
Loading…
Reference in a new issue