Add PKG_LICENSE variable to the most of the packages.
[feed/telephony.git] / net / pcapsipdump / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
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:=pcapsipdump
11 PKG_VERSION:=0.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/pcapsipdump
16 PKG_MD5SUM:=2c04c54c3478f7cb94978d54538006d2
17
18 PKG_LICENSE:=GPL-2.0
19 PKG_LICENSE_FILES:=LICENSE
20
21 include $(INCLUDE_DIR)/uclibc++.mk
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/pcapsipdump
25   SECTION:=net
26   CATEGORY:=Network
27   SUBMENU:=Telephony
28   DEPENDS:=+libpcap $(CXX_DEPENDS)
29   TITLE:=SIP sessions dumping tool
30   URL:=http://sourceforge.net/projects/pcapsipdump/
31 endef
32
33 define Package/pcapsipdump/description
34  pcapsipdump is a tool for dumping SIP sessions (+RTP traffic, if available) to disk in a
35  fashion similar to "tcpdump -w" (format is exactly the same), but one file per sip session
36  (even if there is thousands of concurrect SIP sessions).
37 endef
38
39 TARGET_CC=$(TARGET_CXX)
40
41 define Build/Compile
42         $(TARGET_CONFIGURE_OPTS) \
43                 $(MAKE) -C $(PKG_BUILD_DIR) \
44                 CPPFLAGS="$(TARGET_CXXFLAGS) -fno-rtti"  \
45                 LIBS="-lpcap"
46 endef
47
48 define Package/pcapsipdump/install
49         $(INSTALL_DIR) $(1)/usr/bin
50         $(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,pcapsipdump))