noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / net / udpxy / Makefile
1 #
2 # Copyright (C) 2006-2016 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_SOURCE_VERSION:=53e4672a7522311c40e9f6110ff256041c52c8b4
12 PKG_VERSION:=2016-09-18-$(PKG_SOURCE_VERSION)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/pcherenkov/udpxy.git
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
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 MAKE_PATH:=chipmunk
29
30 define Package/udpxy
31 SECTION:=net
32 CATEGORY:=Network
33 TITLE:=Convert UDP IPTV streams into HTTP streams
34 URL:=https://github.com/pcherenkov/udpxy
35 endef
36
37 define Package/udpxy/description
38 udproxy makes it possible to convert UDP IPTV streams into HTTP
39 streams which can be viewed even over WLANs. HTTP streams do
40 not generate huge amounts of multicast traffic, so a sd stream
41 only takes about 300k. Interesting for peoply who have IPTV at
42 home and do not want to rent multiple decoders from their
43 provider but just use their own streaming client (for example
44 popcornhour/mediatomb/vlc).
45 endef
46
47 define Package/udpxy/conffiles
48 /etc/config/udpxy
49 endef
50
51 MAKE_FLAGS += \
52 INSTALLROOT="$(PKG_INSTALL_DIR)/usr" \
53 ALL_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)"
54
55 define Package/udpxy/install
56 $(INSTALL_DIR) $(1)/etc/init.d $(1)/etc/config
57 $(INSTALL_CONF) ./files/udpxy.conf $(1)/etc/config/udpxy
58 $(INSTALL_BIN) ./files/udpxy.init $(1)/etc/init.d/udpxy
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udpxy $(1)/usr/bin/
61 ln -sf udpxy $(1)/usr/bin/udpxrec
62 endef
63
64 $(eval $(call BuildPackage,udpxy))