Merge pull request #66 from lynxis/upstream_nodogsplash
authorMoritz Warning <moritzwarning@web.de>
Mon, 26 Jan 2015 07:23:16 +0000 (08:23 +0100)
committerMoritz Warning <moritzwarning@web.de>
Mon, 26 Jan 2015 07:23:16 +0000 (08:23 +0100)
nodogsplash: migrate to uci based configuration

20 files changed:
alfred/Makefile
babel-pinger/Makefile [new file with mode: 0644]
batctl/Makefile
batman-adv/Makefile
bird/Makefile
mcproxy/Makefile
mcproxy/files/mcproxy.conf
mcproxy/files/mcproxy.config [new file with mode: 0644]
mcproxy/files/mcproxy.init
mcproxy/patches/0004-uclibc-add-defs.patch [new file with mode: 0644]
minimalist-pcproxy/Makefile
miniupnpd/Makefile
miniupnpd/files/miniupnpd.hotplug
miniupnpd/files/miniupnpd.init
miniupnpd/patches/101-pcp-third-party.patch [deleted file]
ohybridproxy/Makefile
olsrd/Makefile
olsrd/files/olsrd.init
quagga/Makefile
quagga/patches/110-vtysh-fix-build-against-readline-6.3.patch [new file with mode: 0644]

index 90ee411c7d180c92d18abebc559e283c6acaaa9b..dade2181d44c7c156dfc513071a3b8e66412d99f 100644 (file)
@@ -11,9 +11,9 @@ include $(TOPDIR)/rules.mk
 # The latest alfred git hash in PKG_REV can be obtained from http://git.open-mesh.org/alfred.git
 #
 PKG_NAME:=alfred
-PKG_VERSION:=2014.3.0
+PKG_VERSION:=2014.4.0
 PKG_RELEASE:=0
-PKG_MD5SUM:=b8ab5677ed73d817b02b0e4fae10357a
+PKG_MD5SUM:=053cb5d9e7ca9384598e82944343dea2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
diff --git a/babel-pinger/Makefile b/babel-pinger/Makefile
new file mode 100644 (file)
index 0000000..40e7b1a
--- /dev/null
@@ -0,0 +1,41 @@
+# Copyright (C) 2012-2014 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=babel-pinger
+PKG_VERSION:=0.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/files/
+PKG_MD5SUM:=40d4931986913f5f8d9b5b70abf6fda5
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/babel-pinger
+  SECTION:=net
+  CATEGORY:=Network
+  SUBMENU:=Routing and Redirection
+  TITLE:=Babel-pinger
+  URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/babel/
+  MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
+  DEPENDS:=+librt
+endef
+
+define Package/babel-pinger/description
+ Babel-pinger is a hack to export a default route into Babel for people
+ using DHCP to configure their routers rather than speaking to their
+ upstream provider with a proper routing protocol.
+endef
+
+MAKE_FLAGS+= \
+       CFLAGS="$(TARGET_CFLAGS)" \
+
+define Package/babel-pinger/install
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/babel-pinger $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,babel-pinger))
index 966bed337b343928c2a46ae6da81964ebe9f213b..48407e98208b7d579b3191f4b43eaa7399dbf92d 100644 (file)
@@ -9,9 +9,9 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=batctl
 
-PKG_VERSION:=2014.3.0
+PKG_VERSION:=2014.4.0
 PKG_RELEASE:=1
-PKG_MD5SUM:=7d2b8c129424c014d020c4b1a2add31b
+PKG_MD5SUM:=f3a14565699313258ee6ba3de783eb0a
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
index 40a36e8fbd364d496201fc75c4e90870d228453c..6909ba86e5580bc11c46d9dbd1b9e886edb15bae 100644 (file)
@@ -10,9 +10,9 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=batman-adv
 
-PKG_VERSION:=2014.3.0
+PKG_VERSION:=2014.4.0
 PKG_RELEASE:=1
-PKG_MD5SUM:=e9ee1d42ff4b0254699c779668054bed
+PKG_MD5SUM:=b1518e84ce530883d224c6ca4c673ce8
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
index 9dd5cf322280aea016dd11f81f0a07a51b2fc0a9..920ae81790d948e71ddabc3ea6a99bad0b2b9e16 100644 (file)
@@ -7,12 +7,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bird
-PKG_VERSION:=1.4.3
+PKG_VERSION:=1.4.5
 PKG_RELEASE:=1
 
 PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird
-PKG_MD5SUM:=eb7e00b9c1d102ddfcbc19d9cb168511
+PKG_MD5SUM:=a8e5e0a9129ce30fe6102c593bafb763
 PKG_BUILD_DEPENDS:=libncurses libreadline
 PKG_LICENSE:=GPL-2.0
 
index ef0b09e3e643f08685a997fcffcdfb6b66bbc130..cb3fb2080b8dae04db143f5b78d094d737a142d7 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2006-2011 OpenWrt.org
+# Copyright (C) 2014 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,8 +8,8 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mcproxy
-PKG_SOURCE_VERSION:=6638aa9aabd2ccdde8915b61a8e0fb995b1f91a3
-PKG_VERSION:=2014-05-31-$(PKG_SOURCE_VERSION)
+PKG_SOURCE_VERSION:=b7bd2d0809a0d1f177181c361b9a6c83e193b79a
+PKG_VERSION:=2014-12-31-$(PKG_SOURCE_VERSION)
 PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
@@ -40,11 +40,15 @@ endef
 
 define Package/mcproxy/conffiles
 /etc/mcproxy.conf
+/etc/config/mcproxy
 endef
 
 define Package/mcproxy/install
+       $(INSTALL_DIR) $(1)/etc
+       $(INSTALL_CONF) ./files/mcproxy.conf $(1)/etc/mcproxy.conf
+       $(INSTALL_DIR) $(1)/etc/config
+       $(INSTALL_CONF) ./files/mcproxy.config $(1)/etc/config/mcproxy
        $(INSTALL_DIR) $(1)/etc/init.d
-       $(INSTALL_CONF) ./files/mcproxy.conf $(1)/etc
        $(INSTALL_BIN) ./files/mcproxy.init $(1)/etc/init.d/mcproxy
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/mcproxy-bin $(1)/usr/sbin/mcproxy
index 60a655e545bdd08008de6b807803d166bdb4e9ba..936cdda1773a586293fb2935a15cf385701b250d 100644 (file)
@@ -2,13 +2,67 @@
 ##-- mcproxy configuration script --##
 ######################################
 
-# Erase or comment out the following line when configured
-disable;
-
 # Protocol: IGMPv1|IGMPv2|IGMPv3 (IPv4) - MLDv1|MLDv2 (IPv6)
 protocol IGMPv3;
 
+###########################################
+
 # Proxy Instance: upstream ==> downstream
-pinstance proxy1: eth1 ==> "eth0.1";
-#pinstance proxy2: "eth0.2" ==> "br-lan";
-#pinstance proxy3: eth0 ==> eth1 eth2;
+pinstance A: ap a1 ==> ap a2;
+pinstance B: bp b1 ==> bp b2;
+
+###########################################
+
+# Tables
+table allways {
+       (*|*)
+};
+
+table piA_peering_ifs {
+       ap(*|*)
+};
+
+table piA_upstreams {
+       a1(*|*)
+};
+
+table piB_peering_ifs {
+       bp(*|*)
+};
+
+table piB_upstreams {
+       b1(*|*)
+};
+
+###########################################
+
+# Instance Behaviour
+pinstance A upstream * in rulematching mutex 10; #or 25ms (u4)
+#pinstance A upstream * out rulematching all; #default
+
+pinstance A upstream ap out blacklist table allways; #(u1)
+#pinstance A upstream ap in whitelist table {(*|*)}; #default (u2, u3)
+
+pinstance A upstream a1 out blacklist table piA_peering_ifs; #(u3_1)
+#pinstance A upstream a1 in whitelist table {(*|*)}; #default
+
+pinstance A downstream ap in blacklist table allways; #(d1)
+pinstance A downstream ap out blacklist table piA_upstreams; #(d2, d2_1, d3, d4)
+
+#pinstance A downstream a2 in whitelist table {(*|*)}; #default
+#pinstance A downstream a2 out whitelist table {(*|*)}; #default
+
+pinstance B upstream * in rulematching mutex 10;  #or 25ms (u4)
+#pinstance B upstream * out rulematching all; #default
+
+pinstance B upstream bp out blacklist table allways; #(u1)
+#pinstance B upstream bp in whitelist table {(*|*)}; #default (u2, u3)
+
+pinstance B upstream b1 out blacklist table piB_peering_ifs; #(u3_1)
+#pinstance b upstream b1 in whitelist table {(*|*)}; #default
+
+pinstance B downstream bp in blacklist table allways; #(d1)
+pinstance B downstream bp out blacklist table piB_upstreams; #(d2, d2_1, d3, d4)
+
+#pinstance B downstream b2 in whitelist table {(*|*)}; #default
+#pinstance B downstream b2 out whitelist table {(*|*)}; #default
diff --git a/mcproxy/files/mcproxy.config b/mcproxy/files/mcproxy.config
new file mode 100644 (file)
index 0000000..10cc410
--- /dev/null
@@ -0,0 +1,231 @@
+# Use your own MCProxy config file
+config mcproxy 'mcproxy_file'
+       option disabled '1'
+       option respawn '1'
+       option file '/etc/mcproxy.conf'
+
+# Use OpenWrt UCI config
+config mcproxy 'mcproxy'
+       option disabled '1'
+       option respawn '1'
+       option protocol 'IGMPv3'
+
+###########################################
+
+# Simple configuration examples
+
+config instance
+       option disabled '1'
+       option name 'proxy1'
+       list upstream 'eth1'
+       list downstream 'eth0.2'
+
+config instance
+       option disabled '1'
+       option name 'proxy2'
+       list upstream 'eth0.2'
+       list downstream 'eth0.4'
+       list downstream 'br-lan'
+
+config instance
+       option disabled '1'
+       option name 'proxy3'
+       list upstream 'eth1.2'
+       list upstream 'eth1.4'
+       list downstream 'eth0.1'
+
+###########################################
+
+# Advanced configuration example
+
+config instance
+       option name 'A'
+       list upstream 'ap'
+       list upstream 'a1'
+       list downstream 'ap'
+       list downstream 'a2'
+
+config instance
+       option name 'B'
+       list upstream 'bp'
+       list upstream 'b1'
+       list downstream 'bp'
+       list downstream 'b2'
+
+config table
+       option name 'allways'
+       list entries '(*|*)'
+
+config table
+       option name 'piA_peering_ifs'
+       list entries 'ap(*|*)'
+
+config table
+       option name 'piA_upstreams'
+       list entries 'a1(*|*)'
+
+config table
+       option name 'piB_peering_ifs'
+       list entries 'bp(*|*)'
+
+config table
+       option name 'piB_upstreams'
+       list entries 'b1(*|*)'
+
+config behaviour
+       option instance 'A'
+       option section 'upstream'
+       option interface '*'
+       option direction 'in'
+       option rulematching 'mutex 10'
+
+config behaviour
+       option disabled '1'
+       option instance 'A'
+       option section 'upstream'
+       option interface '*'
+       option direction 'out'
+       option rulematching 'all'
+
+config behaviour
+       option instance 'A'
+       option section 'upstream'
+       option interface 'ap'
+       option direction 'out'
+       option table 'allways'
+
+config behaviour
+       option disabled '1'
+       option instance 'A'
+       option section 'upstream'
+       option interface 'ap'
+       option direction 'in'
+       option whitelist '1'
+       option table '{(*|*)}'
+
+config behaviour
+       option instance 'A'
+       option section 'upstream'
+       option interface 'a1'
+       option direction 'out'
+       option table 'piA_peering_ifs'
+
+config behaviour
+       option disabled '1'
+       option instance 'A'
+       option section 'upstream'
+       option interface 'a1'
+       option direction 'in'
+       option whitelist '1'
+       option table '{(*|*)}'
+
+config behaviour
+       option instance 'A'
+       option section 'downstream'
+       option interface 'ap'
+       option direction 'in'
+       option table 'allways'
+
+config behaviour
+       option instance 'A'
+       option section 'downstream'
+       option interface 'ap'
+       option direction 'out'
+       option table 'piA_upstreams'
+
+config behaviour
+       option disabled '1'
+       option instance 'A'
+       option section 'downstream'
+       option interface 'a2'
+       option direction 'in'
+       option whitelist '1'
+       option table '{(*|*)}'
+
+config behaviour
+       option disabled '1'
+       option instance 'A'
+       option section 'downstream'
+       option interface 'a2'
+       option direction 'out'
+       option whitelist '1'
+       option table '{(*|*)}'
+
+config behaviour
+       option instance 'B'
+       option section 'upstream'
+       option interface '*'
+       option direction 'in'
+       option rulematching 'mutex 10'
+
+config behaviour
+       option disabled '1'
+       option instance 'B'
+       option section 'upstream'
+       option interface '*'
+       option direction 'out'
+       option rulematching 'all'
+
+config behaviour
+       option instance 'B'
+       option section 'upstream'
+       option interface 'bp'
+       option direction 'out'
+       option table 'allways'
+
+config behaviour
+       option disabled '1'
+       option instance 'B'
+       option section 'upstream'
+       option interface 'bp'
+       option direction 'in'
+       option whitelist '1'
+       option table '{(*|*)}'
+
+config behaviour
+       option instance 'B'
+       option section 'upstream'
+       option interface 'b1'
+       option direction 'out'
+       option table 'piB_peering_ifs'
+
+config behaviour
+       option disabled '1'
+       option instance 'B'
+       option section 'upstream'
+       option interface 'b1'
+       option direction 'in'
+       option whitelist '1'
+       option table '{(*|*)}'
+
+config behaviour
+       option instance 'B'
+       option section 'downstream'
+       option interface 'bp'
+       option direction 'in'
+       option table 'allways'
+
+config behaviour
+       option instance 'B'
+       option section 'downstream'
+       option interface 'bp'
+       option direction 'out'
+       option table 'piB_upstreams'
+
+config behaviour
+       option disabled '1'
+       option instance 'B'
+       option section 'downstream'
+       option interface 'b2'
+       option direction 'in'
+       option whitelist '1'
+       option table '{(*|*)}'
+
+config behaviour
+       option disabled '1'
+       option instance 'B'
+       option section 'downstream'
+       option interface 'b2'
+       option direction 'out'
+       option whitelist '1'
+       option table '{(*|*)}'
index 7a3303030e5b36d72ca0c8aefda41618ba894c52..a7584e890ea848cd6c5dbb580e3e6047b23e365c 100644 (file)
 #!/bin/sh /etc/rc.common
+# Copyright (C) 2014 OpenWrt.org
 
 START=50
 USE_PROCD=1
 
-start_service() {
+# mcproxy_list_iface <var> <section> <option>
+mcproxy_list_iface() {
+       local val
+       local len
+       local _buffer
+       local c=1
+
+       config_get len "$2" "${3}_LENGTH"
+       [ -z "$len" ] && return 0
+       while [ $c -le "$len" ]; do
+               config_get val "$2" "${3}_ITEM$c"
+               append _buffer "\"${val}\""
+               c="$(($c + 1))"
+       done
+
+       export "${1}=${_buffer}";
+}
+
+mcproxy_handle_instances() {
+       local instance="$1"
+       local conf_file="$2"
+       local disabled
+       local pre=""
+       local name
+       local upstream
+       local downstream
+
+       config_get_bool disabled "$instance" 'disabled' '0'
+       config_get name "$instance" "name" "$instance"
+       mcproxy_list_iface upstream "$instance" "upstream"
+       mcproxy_list_iface downstream "$instance" "downstream"
+
+       if [ $disabled -eq 1 ]; then
+               pre="# "
+       fi
+
+       if [ ! -z $upstream ] && [ ! -z $downstream ]; then
+               echo -e "${pre}pinstance ${name}: ${upstream} ==> ${downstream};\n" >> $conf_file
+       fi
+}
+
+# mcproxy_list_table <var> <section> <option>
+mcproxy_list_table() {
+       local val
+       local len
+       local _buffer
+       local c=1
+
+       config_get len "$2" "${3}_LENGTH"
+       [ -z "$len" ] && return 0
+       while [ $c -le "$len" ]; do
+               config_get val "$2" "${3}_ITEM$c"
+               append _buffer "\t${val}\n"
+               c="$(($c + 1))"
+       done
+
+       export "${1}=${_buffer}";
+}
+
+mcproxy_handle_tables() {
+       local table="$1"
+       local conf_file="$2"
+       local table_name
+       local table_entries
+
+       config_get table_name "$table" "name" ""
+       mcproxy_list_table table_entries "$table" "entries"
+
+       if [ ! -z $name ] && [ ! -z $table ]; then
+               echo -e "table $table_name {\n" >> $conf_file
+               echo -e "$table_entries\n" >> $conf_file
+               echo -e "};\n" >> $conf_file
+       fi
+}
+
+mcproxy_handle_behaviour() {
+       local behaviour="$1"
+       local conf_file="$2"
+       local disabled
+       local pre=""
+       local instance
+       local section
+       local interface
+       local direction
+       local rulematching
+       local table
+
+       config_get_bool disabled "$behaviour" 'disabled' '0'
+       config_get instance "$behaviour" "instance"
+       config_get section "$behaviour" "section" "upstream"
+       config_get interface "$behaviour" "interface" "*"
+       config_get direction "$behaviour" "direction" "in"
+       config_get rulematching "$behaviour" "rulematching"
+       config_get table "$behaviour" "table"
+
+       if [ -z $instance ]; then
+               return 1
+       fi
+
+       local rule_table
+       if [ ! -z $rulematching ]; then
+               rule_table="rulematching $rulematching"
+       elif [ ! -z $table ]; then
+               local whitelist
+               local list
+
+               config_get_bool whitelist "$behaviour" 'whitelist' '0'
+               if [ $whitelist -eq 1 ]; then
+                       list="whitelist"
+               else
+                       list="blacklist"
+               fi
+
+               rule_table="$list table $table"
+       else
+               rule_table="rulematching all"
+       fi
+
+       if [ $disabled -eq 1 ]; then
+               pre="# "
+       fi
+
+       echo -e "${pre}pinstance $instance $section $interface $direction $rule_table;\n" >> $conf_file
+}
+
+start_instance() {
+       local cfg="$1"
+       local aux
+       local conf_file
+
+       config_get_bool aux "$cfg" 'disabled' '0'
+       [ "$aux" = 1 ] && return 1
+
+       config_get conf_file "$cfg" "file"
+       if [ ! -n "$conf_file" ]; then
+               conf_file="/var/etc/mcproxy_${cfg}.conf"
+
+               local protocol
+               config_get protocol "$cfg" "protocol" "IGMPv3"
+               echo -e "protocol ${protocol};\n" > $conf_file
+
+               config_foreach mcproxy_handle_instances instance $conf_file
+               config_foreach mcproxy_handle_tables table $conf_file
+               config_foreach mcproxy_handle_behaviour behaviour $conf_file
+       fi
+
        procd_open_instance
 
        procd_set_param command /usr/sbin/mcproxy
-       procd_append_param command -f /etc/mcproxy.conf
+       procd_append_param command -f $conf_file
+
+       config_get_bool aux "$cfg" 'respawn' '0'
+       [ "$aux" = 1 ] && procd_set_param respawn
 
-       procd_set_param respawn
        procd_close_instance
 }
+
+service_triggers() { 
+       procd_add_reload_trigger "mcproxy" 
+}
+
+start_service() {
+       config_load mcproxy
+       config_foreach start_instance mcproxy
+}
diff --git a/mcproxy/patches/0004-uclibc-add-defs.patch b/mcproxy/patches/0004-uclibc-add-defs.patch
new file mode 100644 (file)
index 0000000..022cb02
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/mcproxy/src/utils/mc_socket.cpp
++++ b/mcproxy/src/utils/mc_socket.cpp
+@@ -38,6 +38,8 @@
+ #include <unistd.h>
+ #ifdef __UCLIBC__
++#define IP_MULTICAST_ALL 49
++
+ #include "sourcefilter.cpp"
+ #endif /* __UCLIBC__ */
index 57c2651beeef739cc7afb1a5c835e0cbe6df1b3b..d0c2f06a41b5785f62d534c0833626e17b482cd5 100644 (file)
@@ -7,9 +7,9 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=minimalist-pcproxy
-PKG_SOURCE_VERSION:=9e41b6b698ff719960299711707785ffa0b250ab
-PKG_VERSION:=2014-09-02-$(PKG_SOURCE_VERSION)
-PKG_RELEASE:=2
+PKG_SOURCE_VERSION:=2d6d1b0b0a3b79a9b4a9b0a7606a84600a967bcb
+PKG_VERSION:=2015-01-12-$(PKG_SOURCE_VERSION)
+PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=git://github.com/fingon/minimalist-pcproxy.git
index 2f05ec8124866a436c64933d9f8e01ef97946557..b890c8bdc6b52e64b39754d139a464926dd6a575 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=miniupnpd
-PKG_VERSION:=1.9
+PKG_VERSION:=1.9.20141209
 PKG_RELEASE:=1
 
 PKG_SOURCE_URL:=http://miniupnp.free.fr/files
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_MD5SUM:=9151502f84f130b0ef1245ac938c33f9
+PKG_MD5SUM:=e9e53869bb725e931cae74b20d4a39be
 
 PKG_MAINTAINER:=Markus Stenberg <fingon@iki.fi>
 PKG_LICENSE:=BSD-3-Clause
index 8b643f1bfaf84bb902d1a2e6873c5d6c9829abd4..65bc5006d1d518d8c8575b158474a9d36dbd9ee6 100644 (file)
@@ -1,9 +1,6 @@
 #!/bin/sh
 
-if [ ! /etc/init.d/miniupnpd enabled ]
-then
-    exit 0
-fi
+/etc/init.d/miniupnpd enabled || exit 0
 
 . /lib/functions/service.sh
 
index 9ac6de2afac33f32e6645da39f1cc63ff431409c..79def5dc179e9687b20969931bba76f3214095e6 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh /etc/rc.common
-# Copyright (C) 2006-2011 OpenWrt.org
+# Copyright (C) 2006-2014 OpenWrt.org
 
 START=95
 STOP=15
diff --git a/miniupnpd/patches/101-pcp-third-party.patch b/miniupnpd/patches/101-pcp-third-party.patch
deleted file mode 100644 (file)
index b66621d..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-From 27d4d10a3ed3a4d87941247ed73bcb67c68b2bb9 Mon Sep 17 00:00:00 2001
-From: Thomas Bernard <miniupnp@free.fr>
-Date: Thu, 30 Oct 2014 20:37:35 +0100
-Subject: [PATCH] miniupnpd.c: fix PCP third party mode (in IPv4)
-
-fixes problem introduced in commit 16389fda3c5313bffc83fb6594f5bb5872e37e5e
----
- miniupnpd.c | 38 +++++++++++++++++++++++++++-----------
- 1 file changed, 27 insertions(+), 11 deletions(-)
-
-diff --git a/miniupnpd.c b/miniupnpd.c
-index 6468075..06bcae2 100644
---- a/miniupnpd.c
-+++ b/miniupnpd.c
-@@ -2133,30 +2133,46 @@ main(int argc, char * * argv)
-                                                              msg_buff, sizeof(msg_buff));
-                               if (len < 1)
-                                       continue;
-+#ifdef ENABLE_PCP
-+                              if (msg_buff[0]==0) {  /* version equals to 0 -> means NAT-PMP */
-+                                      /* Check if the packet is coming from a LAN to enforce RFC6886 :
-+                                       * The NAT gateway MUST NOT accept mapping requests destined to the NAT
-+                                       * gateway's external IP address or received on its external network
-+                                       * interface.  Only packets received on the internal interface(s) with a
-+                                       * destination address matching the internal address(es) of the NAT
-+                                       * gateway should be allowed. */
-+                                      /* TODO : move to ProcessIncomingNATPMPPacket() ? */
-+                                      lan_addr = get_lan_for_peer((struct sockaddr *)&senderaddr);
-+                                      if(lan_addr == NULL) {
-+                                              char sender_str[64];
-+                                              sockaddr_to_string((struct sockaddr *)&senderaddr, sender_str, sizeof(sender_str));
-+                                              syslog(LOG_WARNING, "NAT-PMP packet sender %s not from a LAN, ignoring",
-+                                                     sender_str);
-+                                              continue;
-+                                      }
-+                                      ProcessIncomingNATPMPPacket(snatpmp[i], msg_buff, len,
-+                                                                  &senderaddr);
-+                              } else { /* everything else can be PCP */
-+                                      ProcessIncomingPCPPacket(snatpmp[i], msg_buff, len,
-+                                                               (struct sockaddr *)&senderaddr, NULL);
-+                              }
-+
-+#else
-                               /* Check if the packet is coming from a LAN to enforce RFC6886 :
-                                * The NAT gateway MUST NOT accept mapping requests destined to the NAT
-                                * gateway's external IP address or received on its external network
-                                * interface.  Only packets received on the internal interface(s) with a
-                                * destination address matching the internal address(es) of the NAT
-                                * gateway should be allowed. */
-+                              /* TODO : move to ProcessIncomingNATPMPPacket() ? */
-                               lan_addr = get_lan_for_peer((struct sockaddr *)&senderaddr);
-                               if(lan_addr == NULL) {
-                                       char sender_str[64];
-                                       sockaddr_to_string((struct sockaddr *)&senderaddr, sender_str, sizeof(sender_str));
--                                      syslog(LOG_WARNING, "NAT-PMP/PCP packet sender %s not from a LAN, ignoring",
-+                                      syslog(LOG_WARNING, "NAT-PMP packet sender %s not from a LAN, ignoring",
-                                              sender_str);
-                                       continue;
-                               }
--#ifdef ENABLE_PCP
--                              if (msg_buff[0]==0) {  /* version equals to 0 -> means NAT-PMP */
--                                      ProcessIncomingNATPMPPacket(snatpmp[i], msg_buff, len,
--                                                                  &senderaddr);
--                              } else { /* everything else can be PCP */
--                                      ProcessIncomingPCPPacket(snatpmp[i], msg_buff, len,
--                                                               (struct sockaddr *)&senderaddr, NULL);
--                              }
--
--#else
-                               ProcessIncomingNATPMPPacket(snatpmp[i], msg_buff, len, &senderaddr);
- #endif
-                       }
--- 
-2.1.0
-
index e84176ad7577102883517ea9b605289f5fae40c5..1d968046a277a094a099c9408d480c307c0431d4 100644 (file)
@@ -7,8 +7,8 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ohybridproxy
-PKG_SOURCE_VERSION:=ab6559bd5df88967e08478ab486b307c1b7eb759
-PKG_VERSION:=2014-09-29-$(PKG_SOURCE_VERSION)
+PKG_SOURCE_VERSION:=f2ba152799c481471ddc0213b3f98b1c143d97a3
+PKG_VERSION:=2015-01-12-$(PKG_SOURCE_VERSION)
 PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
index 188d0b7fe85d9d713c7de0f745c88c523009e919..362e922cfbbe4c93ffd245a32cc581c59742896d 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=olsrd
-PKG_VERSION:=0.6.7.1
-PKG_RELEASE:=5
+PKG_VERSION:=0.6.8
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.olsr.org/releases/0.6
 
-PKG_MD5SUM:=d4411d4ed94b399a3778b8036dee1214
+PKG_MD5SUM:=feabdd611391dcb30af5795e834cc258
 PKG_BUILD_PARALLEL:=1
 PKG_LICENSE:=BSD-3-Clause
 
index 887a4a213e60ec39666490974a098215a105358e..5bee27a4394905a2e510755852a389f5c18c00e1 100644 (file)
@@ -38,7 +38,7 @@ validate_varname() {
 
 validate_olsrd_option() {
        local str="$1"
-       [ -z "$str" -o "$str" != "${str%%[!     0-9A-Za-z./|:_-]*}" ] && return 1
+       [ -z "$str" -o "$str" != "${str%%[!     0-9A-Za-z.%/|:_-]*}" ] && return 1
        return 0
 }
 
index 46a4235b3ab09c41f01f9a0519d63817f8bf7774..67eedd672fdd6a0ec62fa475f04325b6a7384757 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=quagga
 PKG_VERSION:=0.99.22.4
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MD5SUM:=03ef24a448be47beba80efa2152f8a28
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
diff --git a/quagga/patches/110-vtysh-fix-build-against-readline-6.3.patch b/quagga/patches/110-vtysh-fix-build-against-readline-6.3.patch
new file mode 100644 (file)
index 0000000..e8c499e
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/vtysh/vtysh.c
++++ b/vtysh/vtysh.c
+@@ -2211,9 +2211,9 @@
+ vtysh_readline_init (void)
+ {
+   /* readline related settings. */
+-  rl_bind_key ('?', (Function *) vtysh_rl_describe);
++  rl_bind_key ('?', (rl_command_func_t *) vtysh_rl_describe);
+   rl_completion_entry_function = vtysh_completion_entry_function;
+-  rl_attempted_completion_function = (CPPFunction *)new_completion;
++  rl_attempted_completion_function = (rl_completion_func_t *) new_completion;
+   /* do not append space after completion. It will be appended
+    * in new_completion() function explicitly. */
+   rl_completion_append_character = '\0';
+