First Commit
[librecmc/package-feed.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.1
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:=57baa4b16d0021cf0a70889c15aee708db378fed
21 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
22 PKG_MIRROR_MD5SUM:=5b2cb01d34fcc6d631f8f6efe01ec556fe1325aa300590bec5aa6a078486f9c3
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))