diff options
author | Averell Kinouani <averell.kinouani@embtoolkit.org> | 2015-07-26 18:41:27 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2015-07-26 19:51:28 +0200 |
commit | 733096af0743a81756e9d6f54e9e541fe7e61f3f (patch) | |
tree | f7d695787a0b03f06b109c7da08b77fc81e08793 /packages/net/dnsmasq | |
parent | e01941925b4bda814f2685ec6776600217b097ea (diff) | |
download | embtoolkit-733096af0743a81756e9d6f54e9e541fe7e61f3f.tar.gz embtoolkit-733096af0743a81756e9d6f54e9e541fe7e61f3f.tar.bz2 embtoolkit-733096af0743a81756e9d6f54e9e541fe7e61f3f.tar.xz |
install new packages in network category: - dnsmasq - odhcp6c - radvd
Diffstat (limited to 'packages/net/dnsmasq')
-rw-r--r-- | packages/net/dnsmasq/dnsmasq.kconfig | 49 | ||||
-rw-r--r-- | packages/net/dnsmasq/dnsmasq.mk | 50 |
2 files changed, 99 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file dnsmasq.kconfig +# \brief dnsmasq.kconfig of Embtoolkit +# \author Averell KINOUANI <akinouani@embtoolkit.org> +# \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 <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file dnsmasq.mk +# \brief dnsmasq.mk of Embtoolkit +# \author Averell KINOUANI <a.kinouani@embtoolkit.org> +# \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 + |