Makefile (1373B)
1 # 2 # Copyright (C) 2016 Daniel Engberg <daniel.engberg.lists@pyret.net> 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=sngrep 11 PKG_VERSION=1.4.2 12 PKG_RELEASE:=1 13 PKG_MAINTAINER:=Daniel Engberg <daniel.engberg.lists@pyret.net> 14 PKG_LICENSE:=GPL-3.0 15 PKG_LICENSE_FILES:=COPYING 16 17 PKG_SOURCE_PROTO:=git 18 PKG_SOURCE_URL=https://github.com/irontec/sngrep 19 PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION) 20 PKG_SOURCE_VERSION:=da791185cabeea5a6fcc7372157340b2d1369df7 21 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 22 PKG_MIRROR_MD5SUM:=2cc640e065f33cae4a3a8e14bdc740e49269cd850eee2ffa9eb821427caaa371 23 24 PKG_FIXUP:=autoreconf 25 26 include $(INCLUDE_DIR)/package.mk 27 28 define Package/sngrep 29 SECTION:=net 30 CATEGORY:=Network 31 DEPENDS:=+libpcap +libpthread +libpcre +libncursesw 32 TITLE:=Display SIP calls message flows 33 URL:=https://github.com/irontec/sngrep 34 endef 35 36 define Package/sngrep/description 37 sngrep is a tool for displaying SIP calls message flows from terminal. 38 It supports live capture to display realtime SIP packets and can also be used as PCAP viewer. 39 endef 40 41 CONFIGURE_ARGS += \ 42 --with-pcre \ 43 --enable-unicode \ 44 45 define Package/sngrep/install 46 $(INSTALL_DIR) $(1)/usr/sbin 47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sngrep $(1)/usr/sbin/ 48 endef 49 50 $(eval $(call BuildPackage,sngrep))