Merge pull request #4825 from nxhack/node-hid_fix_depends
[feed/packages.git] / net / sngrep / Makefile
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.4-rc2
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:=cf5e1da49d00bc7ab1afe9d63daa240db2b9b19c
21 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
22 PKG_MIRROR_HASH:=a6cee2caa108a618134fe87d7c04862e93aa2fdf9647d81dfe4abe91a6c9c19f
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))