06e0089b4439134de83e940525a87b817b8ea78f
[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_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
13 PKG_LICENSE:=GPL-3.0
14 PKG_LICENSE_FILES:=COPYING
15
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_URL:=https://github.com/sipcapture/sipgrep.git
18 PKG_SOURCE_VERSION:=1cc00079cd80310f7e8b1a696e9a02b8a2b25e04
19 PKG_SOURCE_DATE=2019-06-27
20 PKG_RELEASE:=1
21 PKG_MIRROR_HASH:=3480f83a4af2a2972f3aa981343b067fa35ddc74f42c3e459630f31aba8f2d91
22
23 PKG_BUILD_PARALLEL:=1
24 PKG_FIXUP:=autoreconf
25
26 PKG_INSTALL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/sipgrep
31 SECTION:=utils
32 CATEGORY:=Utilities
33 SUBMENU:=Telephony
34 DEPENDS:=+libpcap +libpcre
35 TITLE:=Command line tool to sniff, capture, display SIP messages
36 URL:=https://github.com/sipcapture/sipgrep
37 endef
38
39 define Package/sipgrep/description
40 Powerful pcap-aware command line tool to sniff, capture, display and
41 troubleshoot SIP signaling over IP networks, allowing the user to
42 specify extended regular expressions matching against SIP headers.
43 endef
44
45 CONFIGURE_ARGS += \
46 --enable-ipv6
47
48 define Package/sipgrep/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sipgrep $(1)/usr/bin
51 endef
52
53 $(eval $(call BuildPackage,sipgrep))