Re: [OpenWrt-Devel] fwknop package update

2013-07-24 Thread Etienne Champetier
Hi

Le 24/07/2013 02:10, Jonathan Bennett a écrit :
 The following patch updates fwknop to the newest release, v 2.5. I`m not 
 familiar with the standard procedures for package updates after the official 
 release. If possible, it would be great to update the package in 12.09 as 
 well.

 Signed-off-by: Jonathan Bennett jbscienc...@gmail.com 
 mailto:jbscienc...@gmail.com


 diff --git a/net/fwknop/Makefile b/net/fwknop/Makefile
 index 24d7385..80575a8 100644
 --- a/net/fwknop/Makefile
 +++ b/net/fwknop/Makefile
 @@ -8,12 +8,12 @@
  include $(TOPDIR)/rules.mk http://rules.mk
  
  PKG_NAME:=fwknop
 -PKG_VERSION:=2.0
 +PKG_VERSION:=2.5
  PKG_RELEASE:=1
  
  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  PKG_SOURCE_URL:=http://www.cipherdyne.org/fwknop/download
 -PKG_MD5SUM:=96de4c5a4ae75a8618ef80269c6a70ad
 +PKG_MD5SUM:=b9f28aba92c959946e540a822a623964
  
  PKG_INSTALL:=1
  
 diff --git a/net/fwknop/patches/001-fix_config.patch 
 b/net/fwknop/patches/001-fix_config.patch
 index 5ae4a94..93a261f 100644
 --- a/net/fwknop/patches/001-fix_config.patch
 +++ b/net/fwknop/patches/001-fix_config.patch
 @@ -1,20 +1,20 @@
  a/server/fwknopd.conf
 -+++ b/server/fwknopd.conf
 -@@ -29,7 +29,12 @@
 - # Define the ethernet interface on which we will sniff packets.
 - # Default if not set is eth0.
 +--- a/server/fwknopd.conf.inst
  b/server/fwknopd.conf.inst
 +@@ -37,7 +37,12 @@
 + # Default if not set is eth0.  The '-i intf' command line option overrides
 + # the PCAP_INTF setting.
   #
  -#PCAP_INTF   eth0;
 -+
  +# The following line is changed specifically for Openwrt.
  +# Openwrt defaults to using eth1 as its wan port. If using PPPoE,
  +# Then this needs to be set to pppoe-wan.
It depends on router model (it can also be eth0.1, ...). At runtime you can
execute uci -P/var/state get network.wan.ifname to get the ifname
  +
  +PCAP_INTF   eth1;
 ++
   
   # By default fwknopd does not put the pcap interface into promiscuous mode.
   # Set this to 'Y' to enable promiscuous sniffing.
 -@@ -252,8 +257,13 @@
 +@@ -279,8 +284,13 @@
   # The IPT_FORWARD_ACCESS variable is only used if ENABLE_IPT_FORWARDING is
   # enabled.
   #

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


Re: [OpenWrt-Devel] [PATCH] [packages] AllJoyn: New package (updated)

2013-07-24 Thread John Crispin

Hi Steve,

i have a few questions.

what are your plans on maintaining this package ?
is qcom planning to release more packages like this ?
maybe it would be good if qcom simply opens its own feed and publishes 
it. not sure if qcom has something similar to the qca aurora site


John


On 23/07/13 23:00, Steve Kinneberg wrote:

from: AllJoyn Project (Qualcomm Innovation Center, Inc.)
maintain...@alljoyn.org

Add AllJoyn v. 3.3.2 as a new package to OpenWrt.

AllJoyn is a peer-to-peer networking technology.  Project details can be
found at http://www.alljoyn.org.

Signed-off-by: Steve Kinnebergste...@quicinc.com
---
This is an updated version of AllJoyn from my previous submission.  This
patch completely supersedes the previous patch as that has not been
applied yet.

Index: package/network/services/alljoyn/files/alljoyn.config
===
--- package/network/services/alljoyn/files/alljoyn.config   (revision 0)
+++ package/network/services/alljoyn/files/alljoyn.config   (working copy)
@@ -0,0 +1,27 @@
+
+config transport 'unix'
+   option enable '1'
+   option path 'alljoyn'
+   option abstract '1'
+
+config transport 'ip'
+   option enable '1'
+   option max_incomplete_conn '16'
+   option max_complete_conn '96'
+   option bus_port '9955'
+   option auth_timeout '2'
+   option advertise_daemon '1'
+   option all_networks '0'
+   list networks 'lan'
+
+config transport 'ice'
+   option enable '1'
+   option max_incomplete_conn '16'
+   option max_complete_conn '64'
+   option server 'https://rdvs.alljoyn.org'
+   option auth_timeout '4'
+   option all_networks '1'
+
+config transport 'bluetooth'
+   option enable '0'
+
Index: package/network/services/alljoyn/files/alljoyn.defaults
===
--- package/network/services/alljoyn/files/alljoyn.defaults (revision 0)
+++ package/network/services/alljoyn/files/alljoyn.defaults (working copy)
@@ -0,0 +1,9 @@
+#! /bin/sh
+uci batchEOF
+add ucitrack alljoyn
+set ucitrack.@alljoyn[-1].init=alljoyn
+add_list ucitrack.@network[-1].affects=alljoyn
+commit ucitrack
+EOF
+/etc/init.d/alljoyn enable
+exit 0
Index: package/network/services/alljoyn/files/alljoyn.init
===
--- package/network/services/alljoyn/files/alljoyn.init (revision 0)
+++ package/network/services/alljoyn/files/alljoyn.init (working copy)
@@ -0,0 +1,224 @@
+#!/bin/sh /etc/rc.common
+
+# Copyright (C) 2013 Qualcomm Innovation Center, Inc.
+#
+#Licensed under the Apache License, Version 2.0 (the License);
+#you may not use this file except in compliance with the License.
+#You may obtain a copy of the License at
+#
+#http://www.apache.org/licenses/LICENSE-2.0
+#
+#Unless required by applicable law or agreed to in writing, software
+#distributed under the License is distributed on an AS IS BASIS,
+#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#See the License for the specific language governing permissions and
+#limitations under the License.
+#
+
+START=65
+
+SERVICE_PID_FILE=/var/run/alljoyn.pid
+
+CONFIGFILE=/var/etc/alljoyn.conf
+
+
+check() {
+local flag
+
+config_get_bool flag $1 $2 0
+
+test $flag == 1
+return $?
+}
+
+
+process_network() {
+local network=$1
+local var=$2
+local ifname
+
+config_get ifname $network ifname
+if [ -n $ifname ]; then
+   append ${var} ${ifname} ,
+fi
+}
+
+process_networks() {
+local section=$1
+
+if check $section all_networks; then
+   export ${section}_networks=*
+else
+   config_list_foreach $section networks process_network 
${section}_networks
+
+   if [ $section == ip ]; then
+   # special case IP until multiple interfaces are properly supported 
for IP
+   local len
+   config_get len ip networks_LENGTH
+
+   if [ $len == 1 ]; then
+   local network
+   config_get network ip networks_ITEM1
+   config_get addr $network ipaddr
+   fi
+   fi
+fi
+}
+
+
+process_unix_transport() {
+if check unix enable; then
+   local path
+   local abstract
+
+
+   config_get path unix path alljoyn
+   config_get_bool abstract unix abstract 1
+
+   if [ -n $abstract ]; then
+   path=abstract=$path
+   else
+   path=path=$path
+   fi
+   export ${NO_EXPORT:+-n} listen_specs=${listen_specs}
+listenunix:${path}/listen
+
+   config_get unix_auth_timeout unix auth_timeout $unix_auth_timeout
+fi
+}
+
+
+process_ip_transport() {
+if check ip enable; then
+   local port
+   local addr=0.0.0.0
+
+   if check ip advertise_daemon; then
+   export ${NO_EXPORT:+-n} ip_advertise_daemon=tcp
+property 

[OpenWrt-Devel] [PATCH] libubox: Fix incorrect uloop timeout

2013-07-24 Thread Helmut Schaa
uloop timeouts are calculated based on a time value that was fetched
before any callbacks were executed. Hence, the next timeout is off by
the time the callback execution took which can lead to strange side
effects.

Fix this by calculating the next timeout based on a fresh time value.

Signed-off-by: Helmut Schaa helmut.sc...@googlemail.com
---
 uloop.c |1 +
 1 file changed, 1 insertion(+)

diff --git a/uloop.c b/uloop.c
index 54ebe8d..deb08a3 100644
--- a/uloop.c
+++ b/uloop.c
@@ -632,6 +632,7 @@ void uloop_run(void)
 
if (do_sigchld)
uloop_handle_processes();
+   uloop_gettime(tv);
uloop_run_events(uloop_get_next_timeout(tv));
}
 }
-- 
1.7.10.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] libubox: Fix incorrect uloop timeout

2013-07-24 Thread Felix Fietkau
On 2013-07-24 2:51 PM, Helmut Schaa wrote:
 uloop timeouts are calculated based on a time value that was fetched
 before any callbacks were executed. Hence, the next timeout is off by
 the time the callback execution took which can lead to strange side
 effects.
 
 Fix this by calculating the next timeout based on a fresh time value.
Applied and committed to OpenWrt in r37526.

Thanks,

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


Re: [OpenWrt-Devel] fwknop package update

2013-07-24 Thread Jonathan Bennett
On Jul 24, 2013 1:19 AM, Etienne Champetier etienne.champet...@free.fr
wrote:

 Hi

 Le 24/07/2013 02:10, Jonathan Bennett a écrit :

 The following patch updates fwknop to the newest release, v 2.5. I`m not
familiar with the standard procedures for package updates after the
official release. If possible, it would be great to update the package in
12.09 as well.

 Signed-off-by: Jonathan Bennett jbscienc...@gmail.com


 diff --git a/net/fwknop/Makefile b/net/fwknop/Makefile
 index 24d7385..80575a8 100644
 --- a/net/fwknop/Makefile
 +++ b/net/fwknop/Makefile
 @@ -8,12 +8,12 @@
  include $(TOPDIR)/rules.mk

  PKG_NAME:=fwknop
 -PKG_VERSION:=2.0
 +PKG_VERSION:=2.5
  PKG_RELEASE:=1

  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  PKG_SOURCE_URL:=http://www.cipherdyne.org/fwknop/download
 -PKG_MD5SUM:=96de4c5a4ae75a8618ef80269c6a70ad
 +PKG_MD5SUM:=b9f28aba92c959946e540a822a623964

  PKG_INSTALL:=1

 diff --git a/net/fwknop/patches/001-fix_config.patch
b/net/fwknop/patches/001-fix_config.patch
 index 5ae4a94..93a261f 100644
 --- a/net/fwknop/patches/001-fix_config.patch
 +++ b/net/fwknop/patches/001-fix_config.patch
 @@ -1,20 +1,20 @@
  a/server/fwknopd.conf
 -+++ b/server/fwknopd.conf
 -@@ -29,7 +29,12 @@
 - # Define the ethernet interface on which we will sniff packets.
 - # Default if not set is eth0.
 +--- a/server/fwknopd.conf.inst
  b/server/fwknopd.conf.inst
 +@@ -37,7 +37,12 @@
 + # Default if not set is eth0.  The '-i intf' command line option
overrides
 + # the PCAP_INTF setting.
   #
  -#PCAP_INTF   eth0;
 -+
  +# The following line is changed specifically for Openwrt.
  +# Openwrt defaults to using eth1 as its wan port. If using PPPoE,
  +# Then this needs to be set to pppoe-wan.

 It depends on router model (it can also be eth0.1, ...). At runtime you
can
 execute uci -P/var/state get network.wan.ifname to get the ifname

That is a good point, but as the config files always need to be edited by
the end user to include the password, etc, I'm not inclined to add a sed or
awk command to firstboot to tweak that config.

I hope to eventually write a uci config for fwknop, which would allow for a
luci module. This seems like the better way to deal with unusual setups.

  +
  +PCAP_INTF   eth1;
 ++

   # By default fwknopd does not put the pcap interface into promiscuous
mode.
   # Set this to 'Y' to enable promiscuous sniffing.
 -@@ -252,8 +257,13 @@
 +@@ -279,8 +284,13 @@
   # The IPT_FORWARD_ACCESS variable is only used if
ENABLE_IPT_FORWARDING is
   # enabled.
   #



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

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


[OpenWrt-Devel] [PATCH v5] authsae 80211s authentication daemon

2013-07-24 Thread Etienne Champetier
This patch adds authsae open80211s authentication daemon (http://open80211s.org)
It's a rework of Peter Naulls patch (http://patchwork.openwrt.org/patch/1350/)
I've excluded the sample conf file as it's useless when used with mac80211.sh 
(Emanuel Taube patch)
It now link against libnl-tiny instead of libnl
Authsae is 58 Ko (OPENSSL_WITH_EC option adds 35Ko to libopenssl)

Signed-off-by: Peter Naulls pe...@chocky.org
Signed-off-by: Etienne CHAMPETIER etienne.champet...@free.fr

diff --git a/package/network/services/authsae/Makefile 
b/package/network/services/authsae/Makefile
new file mode 100644
index 000..7520938
--- /dev/null
+++ b/package/network/services/authsae/Makefile
@@ -0,0 +1,42 @@
+
+# Copyright (C) 2007-2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=authsae
+PKG_VERSION:=2013-06-25
+PKG_RELEASE=$(PKG_SOURCE_VERSION)
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=git://github.com/cozybit/authsae.git
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=e2f67612101dc83f2c459d8ddc75c34bc83e1e83
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
+
+PKG_BUILD_PARALLEL:=1
+CMAKE_INSTALL:=1
+
+CMAKE_OPTIONS += -DSYSCONF_INSTALL_DIR=/etc
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/authsae
+  SECTION:=net
+  CATEGORY:=Network
+  TITLE:=80211s mesh security
+  DEPENDS=+libopenssl +libconfig +libnl-tiny +@OPENSSL_WITH_EC
+endef
+
+TARGET_CFLAGS += -D_GNU_SOURCE
+
+define Package/authsae/install
+   $(INSTALL_DIR) $(1)/usr/bin
+   $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
+endef
+
+$(eval $(call BuildPackage,authsae))
diff --git a/package/network/services/authsae/patches/001-libnl-tiny.patch 
b/package/network/services/authsae/patches/001-libnl-tiny.patch
new file mode 100644
index 000..87ccd43
--- /dev/null
+++ b/package/network/services/authsae/patches/001-libnl-tiny.patch
@@ -0,0 +1,68 @@
+--- a/linux/CMakeLists.txt
 b/linux/CMakeLists.txt
+@@ -8,33 +8,40 @@ ENDIF(NOT PKG_CONFIG_FOUND)
+ MESSAGE(STATUS )
+ MESSAGE(STATUS Configuring libnl ...)
+ 
+-PKG_SEARCH_MODULE(LIBNL libnl=2.0 libnl-2.0 libnl-2)
+-IF(LIBNL_FOUND)
+-  INCLUDE_DIRECTORIES(${LIBNL_INCLUDE_DIRS})
+-  LINK_DIRECTORIES(${LIBNL_LIB_DIRS})
+-  LIST(APPEND LIBNL_LIBRARIES
+-  nl-genl
+-  )
+-ELSE(LIBNL_FOUND)
+-  PKG_SEARCH_MODULE(LIBNL3 libnl-3 libnl-3.0 libnl-3.1)
+-  IF(LIBNL3_FOUND)
+-  INCLUDE_DIRECTORIES(${LIBNL3_INCLUDE_DIRS})
+-  LINK_DIRECTORIES(${LIBNL3_LIB_DIRS})
+-  SET(LIBNL_LIBRARIES ${LIBNL3_LIBRARIES})
++PKG_SEARCH_MODULE(LIBNL-TINY libnl-tiny)
++IF(LIBNL-TINY_FOUND)
++  INCLUDE_DIRECTORIES(${LIBNL-TINY_INCLUDE_DIRS})
++  LINK_DIRECTORIES(${LIBNL-TINY_LIBRARY_DIRS})
++  SET(LIBNL_LIBRARIES ${LIBNL-TINY_LIBRARIES})
++ELSE(LIBNL-TINY_FOUND)
++  PKG_SEARCH_MODULE(LIBNL libnl=2.0 libnl-2.0 libnl-2)
++  IF(LIBNL_FOUND)
++  INCLUDE_DIRECTORIES(${LIBNL_INCLUDE_DIRS})
++  LINK_DIRECTORIES(${LIBNL_LIB_DIRS})
++  LIST(APPEND LIBNL_LIBRARIES
++  nl-genl
++  )
++  ELSE(LIBNL_FOUND)
++  PKG_SEARCH_MODULE(LIBNL3 libnl-3 libnl-3.0 libnl-3.1)
++  IF(LIBNL3_FOUND)
++  INCLUDE_DIRECTORIES(${LIBNL3_INCLUDE_DIRS})
++  LINK_DIRECTORIES(${LIBNL3_LIB_DIRS})
++  SET(LIBNL_LIBRARIES ${LIBNL3_LIBRARIES})
+ 
+-#
+-  MESSAGE(STATUS )
+-  MESSAGE(STATUS Configuring libnl-genl ...)
++  #
++  MESSAGE(STATUS )
++  MESSAGE(STATUS Configuring libnl-genl ...)
+ 
+-  PKG_SEARCH_MODULE(LIBNL_GENL libnl-genl=2.0 libnl-genl-3 
libnl-genl-3.0 libnl-genl-3.1)
+-  IF(LIBNL_GENL_FOUND)
+-  INCLUDE_DIRECTORIES(${LIBNL_GENL_INCLUDE_DIRS})
+-  LINK_DIRECTORIES(${LIBNL_GENL_LIB_DIRS})
+-  ENDIF(LIBNL_GENL_FOUND)
+-  ELSE(LIBNL3_FOUND)
+-  MESSAGE(FATAL_ERROR Error: libnl and libnl-genl not found)
+-  ENDIF(LIBNL3_FOUND)
+-ENDIF(LIBNL_FOUND)
++  PKG_SEARCH_MODULE(LIBNL_GENL libnl-genl=2.0 
libnl-genl-3 libnl-genl-3.0 libnl-genl-3.1)
++  IF(LIBNL_GENL_FOUND)
++  INCLUDE_DIRECTORIES(${LIBNL_GENL_INCLUDE_DIRS})
++  LINK_DIRECTORIES(${LIBNL_GENL_LIB_DIRS})
++  ENDIF(LIBNL_GENL_FOUND)
++  ELSE(LIBNL3_FOUND)
++  MESSAGE(FATAL_ERROR Error: libnl and libnl-genl not 
found)
++  ENDIF(LIBNL3_FOUND)
++  ENDIF(LIBNL_FOUND)
++ENDIF(LIBNL-TINY_FOUND)

[OpenWrt-Devel] 802.11ac miniPCIe

2013-07-24 Thread jonsm...@gmail.com
Are there any other 802.11ac miniPCIe modules for sale other than the
Intel ones?  The Buffalo routers have some large 3 way ones, but I
can't find them for sale anywhere.

-- 
Jon Smirl
jonsm...@gmail.com
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v6] authsae 80211s authentication daemon

2013-07-24 Thread Etienne Champetier
This patch adds authsae open80211s authentication daemon (http://open80211s.org)
It's a rework of Peter Naulls patch (http://patchwork.openwrt.org/patch/1350/)
I've excluded the sample conf file as it's useless when used with mac80211.sh 
(Emanuel Taube patch)
It now link against libnl-tiny instead of libnl (patch merged in authsae git)
Authsae is 58 Ko (OPENSSL_WITH_EC option adds 35Ko to libopenssl)

Signed-off-by: Peter Naulls pe...@chocky.org
Signed-off-by: Etienne CHAMPETIER etienne.champet...@free.fr

diff --git a/package/network/services/authsae/Makefile 
b/package/network/services/authsae/Makefile
new file mode 100644
index 000..c804803
--- /dev/null
+++ b/package/network/services/authsae/Makefile
@@ -0,0 +1,42 @@
+
+# Copyright (C) 2007-2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=authsae
+PKG_VERSION:=2013-07-24
+PKG_RELEASE=$(PKG_SOURCE_VERSION)
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=git://github.com/cozybit/authsae.git
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=f5693a3ee8dcc4e11d25acc4e75f5d154c0b302b
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
+
+PKG_BUILD_PARALLEL:=1
+CMAKE_INSTALL:=1
+
+CMAKE_OPTIONS += -DSYSCONF_INSTALL_DIR=/etc
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/authsae
+  SECTION:=net
+  CATEGORY:=Network
+  TITLE:=80211s mesh security
+  DEPENDS=+libopenssl +libconfig +libnl-tiny +@OPENSSL_WITH_EC
+endef
+
+TARGET_CFLAGS += -D_GNU_SOURCE
+
+define Package/authsae/install
+   $(INSTALL_DIR) $(1)/usr/bin
+   $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
+endef
+
+$(eval $(call BuildPackage,authsae))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Update minidlna to version 1.1.0

2013-07-24 Thread Catalin Patulea
On Thu, Jul 18, 2013 at 5:24 AM, alpha sparc alphasp...@gmail.com wrote:
  define Package/minidlna/conffiles
 +/etc/config/minidlna
  /etc/minidlna.conf
/etc/minidlna.conf is never used.. no reason to keep it in conffiles, right?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel