You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.8 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=udpxy
  9. PKG_SOURCE_VERSION:=53e4672a7522311c40e9f6110ff256041c52c8b4
  10. PKG_VERSION:=2016-09-18-$(PKG_SOURCE_VERSION)
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/pcherenkov/udpxy.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. PKG_MIRROR_HASH:=bb6ca16706b011cc473d296ebc6d6e57fe5cfc2a0fc46e81399fba01d6484b3e
  17. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  18. PKG_LICENSE:=GPL-3.0
  19. PKG_LICENSE_FILES:=gpl.txt
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. MAKE_PATH:=chipmunk
  23. define Package/udpxy
  24. SECTION:=net
  25. CATEGORY:=Network
  26. TITLE:=Convert UDP IPTV streams into HTTP streams
  27. URL:=https://github.com/pcherenkov/udpxy
  28. endef
  29. define Package/udpxy/description
  30. udproxy makes it possible to convert UDP IPTV streams into HTTP
  31. streams which can be viewed even over WLANs. HTTP streams do
  32. not generate huge amounts of multicast traffic, so a sd stream
  33. only takes about 300k. Interesting for peoply who have IPTV at
  34. home and do not want to rent multiple decoders from their
  35. provider but just use their own streaming client (for example
  36. popcornhour/mediatomb/vlc).
  37. endef
  38. define Package/udpxy/conffiles
  39. /etc/config/udpxy
  40. endef
  41. MAKE_FLAGS += \
  42. INSTALLROOT="$(PKG_INSTALL_DIR)/usr" \
  43. ALL_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)"
  44. define Package/udpxy/install
  45. $(INSTALL_DIR) $(1)/etc/init.d $(1)/etc/config
  46. $(INSTALL_CONF) ./files/udpxy.conf $(1)/etc/config/udpxy
  47. $(INSTALL_BIN) ./files/udpxy.init $(1)/etc/init.d/udpxy
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udpxy $(1)/usr/bin/
  50. ln -sf udpxy $(1)/usr/bin/udpxrec
  51. endef
  52. $(eval $(call BuildPackage,udpxy))