From 733096af0743a81756e9d6f54e9e541fe7e61f3f Mon Sep 17 00:00:00 2001 From: Averell Kinouani Date: Sun, 26 Jul 2015 18:41:27 +0200 Subject: install new packages in network category: - dnsmasq - odhcp6c - radvd --- packages/net/dnsmasq/dnsmasq.kconfig | 49 +++++++++++++++++++++++++++++++++ packages/net/dnsmasq/dnsmasq.mk | 50 ++++++++++++++++++++++++++++++++++ packages/net/net.kconfig | 10 +++++++ packages/net/net.mk | 9 +++++++ packages/net/odhcp6c/odhcp6c.kconfig | 48 +++++++++++++++++++++++++++++++++ packages/net/odhcp6c/odhcp6c.mk | 50 ++++++++++++++++++++++++++++++++++ packages/net/radvd/radvd.kconfig | 52 ++++++++++++++++++++++++++++++++++++ packages/net/radvd/radvd.mk | 36 +++++++++++++++++++++++++ 8 files changed, 304 insertions(+) create mode 100644 packages/net/dnsmasq/dnsmasq.kconfig create mode 100644 packages/net/dnsmasq/dnsmasq.mk create mode 100644 packages/net/odhcp6c/odhcp6c.kconfig create mode 100644 packages/net/odhcp6c/odhcp6c.mk create mode 100644 packages/net/radvd/radvd.kconfig create mode 100644 packages/net/radvd/radvd.mk diff --git a/packages/net/dnsmasq/dnsmasq.kconfig b/packages/net/dnsmasq/dnsmasq.kconfig new file mode 100644 index 0000000..27e4491 --- /dev/null +++ b/packages/net/dnsmasq/dnsmasq.kconfig @@ -0,0 +1,49 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2012 Averell KINOUANI. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file dnsmasq.kconfig +# \brief dnsmasq.kconfig of Embtoolkit +# \author Averell KINOUANI +# \date February 2015 +################################################################################ + +config EMBTK_HAVE_DNSMASQ + bool "Have dnsmasq" + help + Dnsmasq provides network infrastructure for small networks: DNS, DHCP, router advertisement and network boot. + Supported platforms include Linux (with glibc and uclibc), Android, *BSD, and Mac OS X. Dnsmasq is included + in most Linux distributions and the ports systems of FreeBSD, OpenBSD and NetBSD. Dnsmasq provides full IPv6 support. +choice + prompt "dnsmasq version you wish" + depends on EMBTK_HAVE_DNSMASQ + help + Here you can choose which version of dnsmasq you want to use. + + config EMBTK_DNSMASQ_VERSION_2_72 + bool "dnsmasq-2.72" +endchoice + +config EMBTK_DNSMASQ_VERSION_STRING + string + default "2.72" if EMBTK_DNSMASQ_VERSION_2_72 + +config EMBTK_DNSMASQ_NEED_PATCH + bool +config EMBTK_DNSMASQ_NEED_AUTORECONF + bool diff --git a/packages/net/dnsmasq/dnsmasq.mk b/packages/net/dnsmasq/dnsmasq.mk new file mode 100644 index 0000000..e27bad6 --- /dev/null +++ b/packages/net/dnsmasq/dnsmasq.mk @@ -0,0 +1,50 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2012 Averell KINOUANI. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file dnsmasq.mk +# \brief dnsmasq.mk of Embtoolkit +# \author Averell KINOUANI +# \date February 2015 +################################################################################ + +DNSMASQ_NAME := dnsmasq +DNSMASQ_VERSION := $(call embtk_get_pkgversion,dnsmasq) +DNSMASQ_SITE := http://www.thekelleys.org.uk/dnsmasq/ +DNSMASQ_PACKAGE := dnsmasq-$(DNSMASQ_VERSION).tar.xz +DNSMASQ_SRC_DIR := $(embtk_pkgb)/dnsmasq-$(DNSMASQ_VERSION) +DNSMASQ_BUILD_DIR := $(embtk_pkgb)/dnsmasq-$(DNSMASQ_VERSION) + + +__embtk_dnsmasq_cflags := $(TARGET_CFLAGS) + +DNSMASQ_MAKE_ENV := LDFLAGS="-L$(embtk_sysroot)/lib -L$(embtk_sysroot)/usr/lib" +DNSMASQ_MAKE_ENV += CPPFLAGS="-I. -I./include -I$(embtk_sysroot)/usr/include" +DNSMASQ_MAKE_ENV += CFLAGS="$(__embtk_dnsmasq_cflags)" +DNSMASQ_MAKE_ENV += BUILDDIR=$(DNSMASQ_BUILD_DIR) +DNSMASQ_MAKE_ENV += PATH=$(PATH):$(embtk_tools)/bin + +DNSMASQ_MAKE_OPTS := CC=$(TARGETCC_CACHED) +DNSMASQ_MAKE_OPTS += PREFIX=/usr + +define embtk_install_dnsmasq + $(call embtk_makeinstall_pkg, dnsmasq) +endef + +DNSMASQ_SBINS := dnsmasq + diff --git a/packages/net/net.kconfig b/packages/net/net.kconfig index 95bba81..9898f92 100644 --- a/packages/net/net.kconfig +++ b/packages/net/net.kconfig @@ -43,3 +43,13 @@ source packages/net/libtirpc/libtirpc.kconfig # tcpdump source packages/net/tcpdump/tcpdump.kconfig + +# radvd +source packages/net/radvd/radvd.kconfig + +# dnsmasq +source packages/net/dnsmasq/dnsmasq.kconfig + +# odhcp6c +source packages/net/odhcp6c/odhcp6c.kconfig + diff --git a/packages/net/net.mk b/packages/net/net.mk index 30cce44..b533a75 100644 --- a/packages/net/net.mk +++ b/packages/net/net.mk @@ -45,3 +45,12 @@ $(call embtk_include_pkg,libtirpc) # tcpdump $(call embtk_include_pkg,tcpdump) + +# radvd +$(call embtk_include_pkg,radvd) + +# dnsmasq +$(call embtk_include_pkg,dnsmasq) + +# odhcp6c +$(call embtk_include_pkg,odhcp6c) diff --git a/packages/net/odhcp6c/odhcp6c.kconfig b/packages/net/odhcp6c/odhcp6c.kconfig new file mode 100644 index 0000000..602b7d5 --- /dev/null +++ b/packages/net/odhcp6c/odhcp6c.kconfig @@ -0,0 +1,48 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2012 Averell KINOUANI. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file odhcp6c.kconfig +# \brief odhcp6c.kconfig of Embtoolkit +# \author Averell KINOUANI +# \date February 2015 +################################################################################ + +config EMBTK_HAVE_ODHCP6C + bool "Have odhcp6c" + help + odhcp6c is a minimal DHCPv6 and RA-client for use in embedded Linux systems + especially routers. +choice + prompt "odhcp6c version you wish" + depends on EMBTK_HAVE_ODHCP6C + help + Here you can choose which version of odhcp6c you want to use. + + config EMBTK_ODHCP6C_VERSION_1_1 + bool "odhcp6c-1.1" +endchoice + +config EMBTK_ODHCP6C_VERSION_STRING + string + default "1.1" if EMBTK_ODHCP6C_VERSION_1_1 + +config EMBTK_ODHCP6C_NEED_PATCH + bool +config EMBTK_ODHCP6C_NEED_AUTORECONF + bool diff --git a/packages/net/odhcp6c/odhcp6c.mk b/packages/net/odhcp6c/odhcp6c.mk new file mode 100644 index 0000000..06702f4 --- /dev/null +++ b/packages/net/odhcp6c/odhcp6c.mk @@ -0,0 +1,50 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2012 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file odhcp6c.mk +# \brief odhcp6c.mk of Embtoolkit +# \author Averell KINOUANI +# \date July 2015 +################################################################################ + +ODHCP6C_NAME := odhcp6c +ODHCP6C_SITE := https://github.com/sbyx/odhcp6c/archive/ +ODHCP6C_VERSION := $(call embtk_get_pkgversion,odhcp6c) +ODHCP6C_PACKAGE := v$(ODHCP6C_VERSION).tar.gz +ODHCP6C_SRC_DIR := $(embtk_pkgb)/odhcp6c-$(ODHCP6C_VERSION) +ODHCP6C_BUILD_DIR := $(embtk_pkgb)/odhcp6c-$(ODHCP6C_VERSION) + +ODHCP6C_BINS := odhcp6c + + +ODHCP6C_CMAKE_OPTS := "SET(CMAKE_SYSTEM_NAME Linux)\n\ + SET(CMAKE_C_COMPILER $(TARGETCC))\n\ + SET(CMAKE_CXX_COMPILER $(TARGETCXX))\n\ + SET(CMAKE_FIND_ROOT_PATH $(embtk_tools))\n\ + SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)\n\ + SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY $(embtk_sysroot)/usr/lib)\n\ + SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE $(embtk_sysroot)/usr/include)\n\ + SET(CMAKE_INSTALL_PREFIX $(embtk_sysroot)/usr)\n" + + +define embtk_install_odhcp6c + printf $(ODHCP6C_CMAKE_OPTS) >> $(ODHCP6C_BUILD_DIR)/CMakeLists.txt; \ + (cd $(ODHCP6C_BUILD_DIR)/ && cmake .; make; make install) +endef + diff --git a/packages/net/radvd/radvd.kconfig b/packages/net/radvd/radvd.kconfig new file mode 100644 index 0000000..31c9be4 --- /dev/null +++ b/packages/net/radvd/radvd.kconfig @@ -0,0 +1,52 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2012 Averell KINOUANI. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file radvd.kconfig +# \brief radvd.kconfig of Embtoolkit +# \author Averell KINOUANI +# \date February 2015 +################################################################################ + +config EMBTK_HAVE_RADVD + bool "Have radvd" + help + The router advertisement daemon (radvd) is run by Linux or BSD systems acting as IPv6 routers. + It sends Router Advertisement messages, specified by RFC 2461, to a local Ethernet LAN periodically + and when requested by a node sending a Router Solicitation message. + These messages are required for IPv6 stateless autoconfiguration. +choice + prompt "radvd version you wish" + depends on EMBTK_HAVE_RADVD + help + Here you can choose which version of radvd you want to use. + + config EMBTK_RADVD_VERSION_2_11 + bool "radvd-2.11" + config EMBTK_RADVD_VERSION_2_10 + bool "radvd-2.10" +endchoice + +config EMBTK_RADVD_VERSION_STRING + string + default "2.11" if EMBTK_RADVD_VERSION_2_11 + +config EMBTK_RADVD_NEED_PATCH + bool +config EMBTK_RADVD_NEED_AUTORECONF + bool diff --git a/packages/net/radvd/radvd.mk b/packages/net/radvd/radvd.mk new file mode 100644 index 0000000..f0068d3 --- /dev/null +++ b/packages/net/radvd/radvd.mk @@ -0,0 +1,36 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2012 Averell KINOUANI. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file radvd.mk +# \brief radvd.mk of Embtoolkit +# \author Averell KINOUANI +# \date February 2015 +################################################################################ + +RADVD_NAME := radvd +RADVD_VERSION := $(call embtk_get_pkgversion,radvd) +RADVD_SITE := http://www.litech.org/radvd/dist/ +RADVD_PACKAGE := radvd-$(RADVD_VERSION).tar.gz +RADVD_SRC_DIR := $(embtk_pkgb)/radvd-$(RADVD_VERSION) +RADVD_BUILD_DIR := $(embtk_pkgb)/radvd-$(RADVD_VERSION) + +RADVD_SBINS := radvd + +RADVD_CONFIGURE_OPTS := --program-transform-name=radvd +RADVD_CONFIGURE_OPTS += --without-check -- cgit v1.2.3