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 <[email protected]>
Signed-off-by: Etienne CHAMPETIER <[email protected]>

diff --git a/package/network/services/authsae/Makefile 
b/package/network/services/authsae/Makefile
new file mode 100644
index 0000000..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 0000000..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)
+ 
+ #####################################################################
+ MESSAGE(STATUS "")
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to