packages: udpxy: update to new version and add init script
[openwrt/svn-archive/archive.git] / net / udpxy / Makefile
1 #
2 # Copyright (C) 2006-2011 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.21
12 PKG_TAG:=2
13 PKG_VERSION:=$(PKG_REV)-$(PKG_TAG)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME).$(PKG_REV)-$(patsubst %,%-prod,$(PKG_TAG)).tgz
17 PKG_SOURCE_URL:=@SF/udpxy
18 PKG_MD5SUM:=d969fc34604b3abcc8ef62510967f2b0
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/udpxy
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=convert UDP IPTV streams into http stream
28 URL:=http://sourceforge.net/projects/udpxy
29 endef
30
31 define Package/udpxy/description
32 udproxy makes it possible to convert UDP IPTV streams into http
33 streams which can be viewed even over wlans. http streams do
34 not generate huge amounts of multicast traffic, so a sd stream
35 only takes about 300k. interesting for peoply who have IPTV at
36 home and do not want to rent multiple decoders from their
37 provider but just use their own streaming client for example
38 popcornhour/mediatomb/vlc/etc.
39 endef
40
41 MAKE_FLAGS += \
42 INSTALLROOT="$(PKG_INSTALL_DIR)/usr"
43
44 define Package/udpxy/install
45 $(INSTALL_DIR) $(1)/etc/init.d
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
52 $(eval $(call BuildPackage,udpxy))