Re: [OpenWrt-Devel] [PATCH] update to new version and add init script for udpxy package

2012-02-16 Thread Gabor Juhos
2012.02.14. 0:24 keltezéssel, Nerijus Baliūnas írta:
 On Wed, 30 Nov 2011 00:53:41 +0200 Nerijus Baliūnas 
 neri...@users.sourceforge.net wrote:
 
 This patch obsoletes http://patchwork.openwrt.org/patch/1600/ and
 updates udpxy to version 1.0-Chipmunk-build21.
 
 This patch updates version to 1.0.21-2.
 
 Signed-off-by: Nerijus Baliūnas neri...@users.sourceforge.net

Applied.

Thanks,
Gabor
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] update to new version and add init script for udpxy package

2011-11-29 Thread Nerijus Baliūnas
This patch obsoletes http://patchwork.openwrt.org/patch/1600/ and
updates udpxy to version 1.0-Chipmunk-build21.

Signed-off-by: Nerijus Baliūnas neri...@users.sourceforge.net

Index: packages/net/udpxy/Makefile
===
--- packages/net/udpxy/Makefile (revision 29357)
+++ packages/net/udpxy/Makefile (working copy)
@@ -9,13 +9,13 @@
 
 PKG_NAME:=udpxy
 PKG_REV:=1.0
-PKG_TAG:=Chipmunk-20
+PKG_TAG:=Chipmunk-21
 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 
Chipmunk-%,Chipmunk-build%,$(PKG_TAG)).tgz
 PKG_SOURCE_URL:=@SF/udpxy
-PKG_MD5SUM:=da0a587cfc81fb4a501b07ed84237469
+PKG_MD5SUM:=81f43d742e218aeb8c19fdfae5b7403c
 
 PKG_INSTALL:=1
 
@@ -42,6 +42,8 @@
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
Index: packages/net/udpxy/files/udpxy.init
===
--- packages/net/udpxy/files/udpxy.init (revision 0)
+++ packages/net/udpxy/files/udpxy.init (revision 0)
@@ -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
+}

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel