Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=sngrep
  9. PKG_VERSION=1.4.2
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Daniel Engberg <daniel.engberg.lists@pyret.net>
  12. PKG_LICENSE:=GPL-3.0
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL=https://github.com/irontec/sngrep
  16. PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=da791185cabeea5a6fcc7372157340b2d1369df7
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  19. PKG_MIRROR_MD5SUM:=2cc640e065f33cae4a3a8e14bdc740e49269cd850eee2ffa9eb821427caaa371
  20. PKG_FIXUP:=autoreconf
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/sngrep
  23. SECTION:=net
  24. CATEGORY:=Network
  25. DEPENDS:=+libpcap +libpthread +libpcre +libncursesw
  26. TITLE:=Display SIP calls message flows
  27. URL:=https://github.com/irontec/sngrep
  28. endef
  29. define Package/sngrep/description
  30. sngrep is a tool for displaying SIP calls message flows from terminal.
  31. It supports live capture to display realtime SIP packets and can also be used as PCAP viewer.
  32. endef
  33. CONFIGURE_ARGS += \
  34. --with-pcre \
  35. --enable-unicode \
  36. define Package/sngrep/install
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sngrep $(1)/usr/sbin/
  39. endef
  40. $(eval $(call BuildPackage,sngrep))