7b4fe90e9dc555e1e23924cb5970b096b680642b
[feed/telephony.git] / net / rtpproxy / Makefile
1 #
2 # Copyright (C) 2014 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:=rtpproxy
11 PKG_VERSION:=2.0.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=git://github.com/sippy/rtpproxy.git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=d5926892630139bcbe55d1f3fa36764c881648bc
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_CHECK_FORMAT_SECURITY:=0
22 PKG_INSTALL:=1
23
24 PKG_LICENSE:=BSD-2-Clause
25 PKG_LICENSE_FILES:=COPYING
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/rtpproxy
30 SECTION:=net
31 CATEGORY:=Network
32 SUBMENU:=Telephony
33 DEPENDS:=+libpthread +librt
34 TITLE:=RTP (Realtime Transport Protocol) proxy
35 URL:=http://www.rtpproxy.org/
36 endef
37
38 define Package/rtpproxy/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtpproxy $(1)/usr/bin/
41
42 $(INSTALL_DIR) $(1)/etc/init.d
43 $(INSTALL_BIN) ./files/rtpproxy.init $(1)/etc/init.d/rtpproxy
44
45 $(INSTALL_DIR) $(1)/etc/config
46 $(INSTALL_BIN) ./files/rtpproxy.config $(1)/etc/config/rtpproxy
47 endef
48
49 $(eval $(call BuildPackage,rtpproxy))