udpxy: add license.
[feed/packages.git] / net / udpxy / Makefile
1 #
2 # Copyright (C) 2006-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:=udpxy
11 PKG_REV:=1.0.23
12 PKG_TAG:=9
13 PKG_VERSION:=$(PKG_REV)-$(PKG_TAG)
14 PKG_RELEASE:=4
15
16 PKG_SOURCE:=$(PKG_NAME).$(PKG_REV)-$(patsubst %,%-prod,$(PKG_TAG)).tar.gz
17 PKG_SOURCE_URL:=http://www.udpxy.com/download/1_23
18 PKG_MD5SUM:=0c953f7dd80329c1a062997afb9b6744
19 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
20
21 PKG_LICENSE:=GPL-3.0
22 PKG_LICENSE_FILES:=gpl.txt
23
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/udpxy
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=Convert UDP IPTV streams into HTTP streams
32 URL:=http://www.udpxy.com/index-en.html
33 endef
34
35 define Package/udpxy/description
36 udproxy makes it possible to convert UDP IPTV streams into HTTP
37 streams which can be viewed even over WLANs. HTTP streams do
38 not generate huge amounts of multicast traffic, so a sd stream
39 only takes about 300k. Interesting for peoply who have IPTV at
40 home and do not want to rent multiple decoders from their
41 provider but just use their own streaming client (for example
42 popcornhour/mediatomb/vlc).
43 endef
44
45 define Package/udpxy/conffiles
46 /etc/config/udpxy
47 endef
48
49 MAKE_FLAGS += \
50 INSTALLROOT="$(PKG_INSTALL_DIR)/usr" \
51 ALL_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)"
52
53 define Package/udpxy/install
54 $(INSTALL_DIR) $(1)/etc/init.d $(1)/etc/config
55 $(INSTALL_CONF) ./files/udpxy.conf $(1)/etc/config/udpxy
56 $(INSTALL_BIN) ./files/udpxy.init $(1)/etc/init.d/udpxy
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udpxy $(1)/usr/bin/
59 ln -sf udpxy $(1)/usr/bin/udpxrec
60 endef
61
62 $(eval $(call BuildPackage,udpxy))