This changes for package "miredo".Old version fully not working because
some needed files not presented in Makefile.
Added hook-script its needed for iproute2 tables.
Added miredo-privproc file to Makefile, without these file miredo daemon
not working
link to ticket: https://dev.openwrt.org/ticket/776

its patch (added to attach)

client-hook need put to feeds/packages/ipv6/miredo/files/

Signed-off-by: Alexander Khrykin <alexan...@mezon.ru>

Index: feeds/packages/ipv6/miredo/Makefile
===================================================================
--- feeds/packages/ipv6/miredo/Makefile (revision 22758)
+++ feeds/packages/ipv6/miredo/Makefile (working copy)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=miredo
-PKG_VERSION:=1.1.7
-PKG_RELEASE:=4
+PKG_VERSION:=1.2.3
+PKG_RELEASE:=5

 PKG_SOURCE_URL:=http://www.remlab.net/files/miredo/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_MD5SUM:=4fb5e7df6a6255528e4c5380401ad3ea
+PKG_MD5SUM:=6ba484ad5e331514a8a3452da2b144e7

 PKG_FIXUP:=libtool
 PKG_INSTALL:=1
@@ -76,11 +76,14 @@
 define Package/miredo-common/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lib{teredo,tun6}.so.*
$(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/lib/miredo
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/miredo/miredo-privproc
$(1)/usr/lib/miredo
 endef

 define Package/miredo-server/install
        $(INSTALL_DIR) $(1)/etc/miredo
        $(CP)
$(PKG_INSTALL_DIR)/usr/share/doc/miredo/examples/miredo-server.conf
$(1)/etc/miredo/miredo-server.conf
+       $(INSTALL_BIN) ./files/client-hook $(1)/etc/miredo/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/miredo-server.init
$(1)/etc/init.d/miredo-server
        $(INSTALL_DIR) $(1)/usr/sbin
@@ -90,6 +93,7 @@
 define Package/miredo-client/install
        $(INSTALL_DIR) $(1)/etc/miredo
        $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/miredo/examples/miredo.conf
$(1)/etc/miredo/miredo.conf
+       $(INSTALL_BIN) ./files/client-hook $(1)/etc/miredo/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/miredo.init $(1)/etc/init.d/miredo
        $(INSTALL_DIR) $(1)/usr/sbin
Index: feeds/packages/ipv6/miredo/Makefile
===================================================================
--- feeds/packages/ipv6/miredo/Makefile	(revision 22758)
+++ feeds/packages/ipv6/miredo/Makefile	(working copy)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=miredo
-PKG_VERSION:=1.1.7
-PKG_RELEASE:=4
+PKG_VERSION:=1.2.3
+PKG_RELEASE:=5
 
 PKG_SOURCE_URL:=http://www.remlab.net/files/miredo/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_MD5SUM:=4fb5e7df6a6255528e4c5380401ad3ea
+PKG_MD5SUM:=6ba484ad5e331514a8a3452da2b144e7
 
 PKG_FIXUP:=libtool
 PKG_INSTALL:=1
@@ -76,11 +76,14 @@
 define Package/miredo-common/install
 	$(INSTALL_DIR) $(1)/usr/lib
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lib{teredo,tun6}.so.* $(1)/usr/lib/
+	$(INSTALL_DIR) $(1)/usr/lib/miredo
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/miredo/miredo-privproc $(1)/usr/lib/miredo
 endef
 
 define Package/miredo-server/install
 	$(INSTALL_DIR) $(1)/etc/miredo
 	$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/miredo/examples/miredo-server.conf $(1)/etc/miredo/miredo-server.conf
+	$(INSTALL_BIN) ./files/client-hook $(1)/etc/miredo/
 	$(INSTALL_DIR) $(1)/etc/init.d
 	$(INSTALL_BIN) ./files/miredo-server.init $(1)/etc/init.d/miredo-server
 	$(INSTALL_DIR) $(1)/usr/sbin
@@ -90,6 +93,7 @@
 define Package/miredo-client/install	
 	$(INSTALL_DIR) $(1)/etc/miredo
 	$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/miredo/examples/miredo.conf $(1)/etc/miredo/miredo.conf
+	$(INSTALL_BIN) ./files/client-hook $(1)/etc/miredo/
 	$(INSTALL_DIR) $(1)/etc/init.d
 	$(INSTALL_BIN) ./files/miredo.init $(1)/etc/init.d/miredo
 	$(INSTALL_DIR) $(1)/usr/sbin

Attachment: client-hook
Description: Binary data

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

Reply via email to