Merge pull request #253 from neheb/patch-1
[feed/telephony.git] / net / sipgrep / Makefile
1 #
2 # Copyright (C) 2016 - 2018 Daniel Engberg <daniel.engberg.lists@pyret.net>
3 # Copyright (C) 2018 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sipgrep
12 PKG_VERSION:=2.2.1-20160621
13 PKG_RELEASE:=1
14 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
15 PKG_LICENSE:=GPL-3.0
16 PKG_LICENSE_FILES:=COPYING
17
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_URL:=https://github.com/sipcapture/sipgrep.git
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_SOURCE_VERSION:=df8a95b066569be92aa38cad01086ea595b36863
22 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
23 PKG_MIRROR_HASH:=9b40ecd7822c84740fcf0032ab5c54195df545162c623699232b78da6ae225d2
24
25 PKG_FIXUP:=autoreconf
26
27 PKG_INSTALL:=1
28
29 include $(INCLUDE_DIR)/package.mk
30
31 define Package/sipgrep
32 SECTION:=utils
33 CATEGORY:=Utilities
34 SUBMENU:=Telephony
35 DEPENDS:=+libpcap +libpcre
36 TITLE:=Command line tool to sniff, capture, display SIP messages
37 URL:=https://github.com/sipcapture/sipgrep
38 endef
39
40 define Package/sipgrep/description
41 Powerful pcap-aware command line tool to sniff, capture, display and
42 troubleshoot SIP signaling over IP networks, allowing the user to
43 specify extended regular expressions matching against SIP headers.
44 endef
45
46 CONFIGURE_ARGS += \
47 --enable-ipv6
48
49 define Package/sipgrep/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sipgrep $(1)/usr/bin
52 endef
53
54 $(eval $(call BuildPackage,sipgrep))