Move all to deprecated folder.
This commit is contained in:
51
deprecated/firmware/buildroot/package/dnsmasq/Config.in
Normal file
51
deprecated/firmware/buildroot/package/dnsmasq/Config.in
Normal file
@@ -0,0 +1,51 @@
|
||||
config BR2_PACKAGE_DNSMASQ
|
||||
bool "dnsmasq"
|
||||
help
|
||||
A lightweight DNS and DHCP server. It is intended to provide
|
||||
coupled DNS and DHCP service to a LAN.
|
||||
|
||||
http://www.thekelleys.org.uk/dnsmasq/
|
||||
|
||||
if BR2_PACKAGE_DNSMASQ
|
||||
|
||||
config BR2_PACKAGE_DNSMASQ_TFTP
|
||||
bool "tftp support"
|
||||
default y
|
||||
help
|
||||
Enable TFTP support in dnsmasq.
|
||||
|
||||
config BR2_PACKAGE_DNSMASQ_DHCP
|
||||
bool "dhcp support"
|
||||
default y
|
||||
help
|
||||
Enable DHCP server support in dnsmasq.
|
||||
|
||||
config BR2_PACKAGE_DNSMASQ_DNSSEC
|
||||
bool "DNSSEC support"
|
||||
select BR2_PACKAGE_GMP
|
||||
select BR2_PACKAGE_NETTLE
|
||||
help
|
||||
Enable DNSSEC validation and caching support.
|
||||
|
||||
config BR2_PACKAGE_DNSMASQ_IDN
|
||||
bool "IDN support"
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_LIBIDN
|
||||
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
|
||||
help
|
||||
Enable IDN support in dnsmasq.
|
||||
This option is a big space taker since it pulls in many libraries.
|
||||
|
||||
config BR2_PACKAGE_DNSMASQ_LUA
|
||||
bool "Lua scripting support"
|
||||
depends on BR2_PACKAGE_LUA
|
||||
help
|
||||
Enable Lua scripting for dnsmasq
|
||||
|
||||
config BR2_PACKAGE_DNSMASQ_CONNTRACK
|
||||
bool "conntrack marking support"
|
||||
select BR2_PACKAGE_LIBNETFILTER_CONNTRACK
|
||||
help
|
||||
Enable DNS query connection marking in netfilter.
|
||||
|
||||
endif
|
||||
26
deprecated/firmware/buildroot/package/dnsmasq/S80dnsmasq
Executable file
26
deprecated/firmware/buildroot/package/dnsmasq/S80dnsmasq
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -x /usr/sbin/dnsmasq ] || exit 0
|
||||
[ -f /etc/dnsmasq.conf ] || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting dnsmasq: "
|
||||
start-stop-daemon -S -x /usr/sbin/dnsmasq
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping dnsmasq: "
|
||||
start-stop-daemon -K -q -x /usr/sbin/dnsmasq
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
restart|reload)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 640c4e1d4c298e42458419cd78cfc26acc549401b1a34d271cd3e0e4226941f1 dnsmasq-2.75.tar.xz
|
||||
114
deprecated/firmware/buildroot/package/dnsmasq/dnsmasq.mk
Normal file
114
deprecated/firmware/buildroot/package/dnsmasq/dnsmasq.mk
Normal file
@@ -0,0 +1,114 @@
|
||||
################################################################################
|
||||
#
|
||||
# dnsmasq
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DNSMASQ_VERSION = 2.75
|
||||
DNSMASQ_SOURCE = dnsmasq-$(DNSMASQ_VERSION).tar.xz
|
||||
DNSMASQ_SITE = http://thekelleys.org.uk/dnsmasq
|
||||
DNSMASQ_MAKE_ENV = $(TARGET_MAKE_ENV) CC="$(TARGET_CC)"
|
||||
DNSMASQ_MAKE_OPTS = COPTS="$(DNSMASQ_COPTS)" PREFIX=/usr CFLAGS="$(TARGET_CFLAGS)"
|
||||
DNSMASQ_MAKE_OPTS += DESTDIR=$(TARGET_DIR) LDFLAGS="$(TARGET_LDFLAGS)"
|
||||
DNSMASQ_DEPENDENCIES = host-pkgconf
|
||||
DNSMASQ_LICENSE = GPLv2 or GPLv3
|
||||
DNSMASQ_LICENSE_FILES = COPYING COPYING-v3
|
||||
|
||||
ifneq ($(BR2_PACKAGE_DNSMASQ_DHCP),y)
|
||||
DNSMASQ_COPTS += -DNO_DHCP
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DNSMASQ_DNSSEC),y)
|
||||
DNSMASQ_DEPENDENCIES += gmp nettle
|
||||
DNSMASQ_COPTS += -DHAVE_DNSSEC
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
DNSMASQ_COPTS += -DHAVE_DNSSEC_STATIC
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_DNSMASQ_TFTP),y)
|
||||
DNSMASQ_COPTS += -DNO_TFTP
|
||||
endif
|
||||
|
||||
# NLS requires IDN so only enable it (i18n) when IDN is true
|
||||
ifeq ($(BR2_PACKAGE_DNSMASQ_IDN),y)
|
||||
DNSMASQ_DEPENDENCIES += libidn $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-gettext
|
||||
DNSMASQ_MAKE_OPTS += LIBS+="$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)"
|
||||
DNSMASQ_COPTS += -DHAVE_IDN
|
||||
DNSMASQ_I18N = $(if $(BR2_ENABLE_LOCALE),-i18n)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DNSMASQ_CONNTRACK),y)
|
||||
DNSMASQ_DEPENDENCIES += libnetfilter_conntrack
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DNSMASQ_CONNTRACK),y)
|
||||
define DNSMASQ_ENABLE_CONNTRACK
|
||||
$(SED) 's^.*#define HAVE_CONNTRACK.*^#define HAVE_CONNTRACK^' \
|
||||
$(DNSMASQ_DIR)/src/config.h
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DNSMASQ_LUA),y)
|
||||
DNSMASQ_DEPENDENCIES += lua
|
||||
|
||||
# liblua uses dlopen when dynamically linked
|
||||
ifneq ($(BR2_STATIC_LIBS),y)
|
||||
DNSMASQ_MAKE_OPTS += LIBS+="-ldl"
|
||||
endif
|
||||
|
||||
define DNSMASQ_ENABLE_LUA
|
||||
$(SED) 's/lua5.1/lua/g' $(DNSMASQ_DIR)/Makefile
|
||||
$(SED) 's^.*#define HAVE_LUASCRIPT.*^#define HAVE_LUASCRIPT^' \
|
||||
$(DNSMASQ_DIR)/src/config.h
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DBUS),y)
|
||||
DNSMASQ_DEPENDENCIES += dbus
|
||||
endif
|
||||
|
||||
define DNSMASQ_FIX_PKGCONFIG
|
||||
$(SED) 's^PKG_CONFIG = pkg-config^PKG_CONFIG = $(PKG_CONFIG_HOST_BINARY)^' \
|
||||
$(DNSMASQ_DIR)/Makefile
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DBUS),y)
|
||||
define DNSMASQ_ENABLE_DBUS
|
||||
$(SED) 's^.*#define HAVE_DBUS.*^#define HAVE_DBUS^' \
|
||||
$(DNSMASQ_DIR)/src/config.h
|
||||
endef
|
||||
else
|
||||
define DNSMASQ_ENABLE_DBUS
|
||||
$(SED) 's^.*#define HAVE_DBUS.*^/* #define HAVE_DBUS */^' \
|
||||
$(DNSMASQ_DIR)/src/config.h
|
||||
endef
|
||||
endif
|
||||
|
||||
define DNSMASQ_BUILD_CMDS
|
||||
$(DNSMASQ_FIX_PKGCONFIG)
|
||||
$(DNSMASQ_ENABLE_DBUS)
|
||||
$(DNSMASQ_ENABLE_LUA)
|
||||
$(DNSMASQ_ENABLE_CONNTRACK)
|
||||
$(DNSMASQ_MAKE_ENV) $(MAKE1) -C $(@D) $(DNSMASQ_MAKE_OPTS) all$(DNSMASQ_I18N)
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DBUS),y)
|
||||
define DNSMASQ_INSTALL_DBUS
|
||||
$(INSTALL) -m 0644 -D $(@D)/dbus/dnsmasq.conf \
|
||||
$(TARGET_DIR)/etc/dbus-1/system.d/dnsmasq.conf
|
||||
endef
|
||||
endif
|
||||
|
||||
define DNSMASQ_INSTALL_TARGET_CMDS
|
||||
$(DNSMASQ_MAKE_ENV) $(MAKE) -C $(@D) $(DNSMASQ_MAKE_OPTS) install$(DNSMASQ_I18N)
|
||||
mkdir -p $(TARGET_DIR)/var/lib/misc/
|
||||
$(DNSMASQ_INSTALL_DBUS)
|
||||
endef
|
||||
|
||||
define DNSMASQ_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -m 755 -D package/dnsmasq/S80dnsmasq \
|
||||
$(TARGET_DIR)/etc/init.d/S80dnsmasq
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user