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.

64 lines
1.8 KiB

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