Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / net / sipgrep / 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:=sipgrep
11 PKG_VERSION:=20160914-devel
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/sipcapture/sipgrep
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=df8a95b066569be92aa38cad01086ea595b36863
21 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
22 PKG_MIRROR_HASH:=a9131ae443bdce760e3dadd83dcf115d51a894381fc18461cbe62522618418fa
23
24 PKG_FIXUP:=autoreconf
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/sipgrep
29 SECTION:=net
30 CATEGORY:=Network
31 DEPENDS:=+libpcap +libpcre +libncursesw
32 TITLE:=Display and Troubleshoot SIP signaling in CLI
33 URL:=https://github.com/sipcapture/sipgrep
34 endef
35
36 define Package/sipgrep/description
37 SipGrep is a utility for displaying and troubleshooting SIP signaling.
38 endef
39
40 CONFIGURE_ARGS += \
41 --enable-ncurses
42
43 define Package/sipgrep/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sipgrep $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,sipgrep))