From 7b4db056961c37edf0a4f429fe3d782a4ac25f1a Mon Sep 17 00:00:00 2001 From: juhosg Date: Thu, 16 Feb 2012 11:58:33 +0000 Subject: [PATCH] packages: udpxy: update to new version and add init script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch updates version to 1.0.21-2. Signed-off-by: Nerijus Baliƫnas git-svn-id: svn://svn.openwrt.org/openwrt/packages@30583 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/udpxy/Makefile | 10 ++++++---- net/udpxy/files/udpxy.init | 27 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 net/udpxy/files/udpxy.init diff --git a/net/udpxy/Makefile b/net/udpxy/Makefile index ac9409410..71e1332ef 100644 --- a/net/udpxy/Makefile +++ b/net/udpxy/Makefile @@ -8,14 +8,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=udpxy -PKG_REV:=1.0 -PKG_TAG:=Chipmunk-20 +PKG_REV:=1.0.21 +PKG_TAG:=2 PKG_VERSION:=$(PKG_REV)-$(PKG_TAG) PKG_RELEASE:=1 -PKG_SOURCE:=$(PKG_NAME).$(PKG_REV)-$(patsubst Chipmunk-%,Chipmunk-BLD%,$(PKG_TAG)).tgz +PKG_SOURCE:=$(PKG_NAME).$(PKG_REV)-$(patsubst %,%-prod,$(PKG_TAG)).tgz PKG_SOURCE_URL:=@SF/udpxy -PKG_MD5SUM:=da0a587cfc81fb4a501b07ed84237469 +PKG_MD5SUM:=d969fc34604b3abcc8ef62510967f2b0 PKG_INSTALL:=1 @@ -42,6 +42,8 @@ MAKE_FLAGS += \ INSTALLROOT="$(PKG_INSTALL_DIR)/usr" define Package/udpxy/install + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/udpxy.init $(1)/etc/init.d/udpxy $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udpxy $(1)/usr/bin/ ln -sf udpxy $(1)/usr/bin/udpxrec diff --git a/net/udpxy/files/udpxy.init b/net/udpxy/files/udpxy.init new file mode 100644 index 000000000..41d7481ef --- /dev/null +++ b/net/udpxy/files/udpxy.init @@ -0,0 +1,27 @@ +#!/bin/sh /etc/rc.common + +# To open multicast traffic, add the following rule at the end of +# /etc/config/firewall file: +# +# config 'rule' +# option 'target' 'ACCEPT' +# option '_name' 'multicast' +# option 'src' 'wan' +# option 'proto' 'all' +# option 'dest_ip' '224.0.0.0/4' + +START=99 +STOP=10 + +SERVICE_DAEMONIZE=1 +SERVICE_WRITE_PID=1 + +OPTIONS="-T -S -p 4022" + +start() { + service_start /usr/bin/udpxy $OPTIONS +} + +stop() { + service_stop /usr/bin/udpxy +}