aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2004-03-05 19:03:17 +0000
committerManuel Novoa III <mjn3@codepoet.org>2004-03-05 19:03:17 +0000
commitde40cc62a0d5c276d4628470cc5217a495d5afac (patch)
tree8b966ea55ee05870d160a8ad45b183fe4453593b
parent6cf315cd236b2fc4a3c0e2039624d21c247a40bb (diff)
downloadbuildroot-novena-de40cc62a0d5c276d4628470cc5217a495d5afac.tar.gz
buildroot-novena-de40cc62a0d5c276d4628470cc5217a495d5afac.zip
Add dnsmasq1 (currently 1.18). Eventually I'll also add dnsmasq2.
The patch makes it respect current uClibc ipv6 configuration.
-rw-r--r--make/dnsmasq1.mk41
-rw-r--r--sources/dnsmasq1.patch12
2 files changed, 53 insertions, 0 deletions
diff --git a/make/dnsmasq1.mk b/make/dnsmasq1.mk
new file mode 100644
index 000000000..1da42d4bf
--- /dev/null
+++ b/make/dnsmasq1.mk
@@ -0,0 +1,41 @@
+#############################################################
+#
+# dnsmasq1
+#
+#############################################################
+
+DNSMASQ1_SOURCE=dnsmasq-1.18.tar.gz
+DNSMASQ1_SITE=http://thekelleys.org.uk/dnsmasq
+DNSMASQ1_DIR=$(BUILD_DIR)/dnsmasq-1.18
+DNSMASQ1_BINARY=dnsmasq
+DNSMASQ1_TARGET_BINARY=usr/sbin/dnsmasq
+
+$(DL_DIR)/$(DNSMASQ1_SOURCE):
+ $(WGET) -P $(DL_DIR) $(DNSMASQ1_SITE)/$(DNSMASQ1_SOURCE)
+
+$(DNSMASQ1_DIR)/.source: $(DL_DIR)/$(DNSMASQ1_SOURCE)
+ zcat $(DL_DIR)/$(DNSMASQ1_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ patch -p1 -d $(DNSMASQ1_DIR) < $(SOURCE_DIR)/dnsmasq1.patch
+ touch $(DNSMASQ1_DIR)/.source
+
+$(DNSMASQ1_DIR)/$(DNSMASQ1_BINARY): $(DNSMASQ1_DIR)/.source
+ $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \
+ BINDIR=/usr/sbin MANDIR=/usr/man -C $(DNSMASQ1_DIR)
+
+$(TARGET_DIR)/$(DNSMASQ1_TARGET_BINARY): $(DNSMASQ1_DIR)/$(DNSMASQ1_BINARY)
+ $(MAKE) BINDIR=/usr/sbin MANDIR=/usr/man \
+ DESTDIR=$(TARGET_DIR) -C $(DNSMASQ1_DIR) install
+ $(STRIP) $(TARGET_DIR)/$(DNSMASQ1_TARGET_BINARY)
+ rm -Rf $(TARGET_DIR)/usr/man
+
+dnsmasq1: uclibc $(TARGET_DIR)/$(DNSMASQ1_TARGET_BINARY)
+
+dnsmasq1-source: $(DL_DIR)/$(DNSMASQ1_SOURCE)
+
+dnsmasq1-clean:
+ #$(MAKE) prefix=$(TARGET_DIR)/usr -C $(DNSMASQ1_DIR) uninstall
+ -$(MAKE) -C $(DNSMASQ1_DIR) clean
+
+dnsmasq1-dirclean:
+ rm -rf $(DNSMASQ1_DIR)
+
diff --git a/sources/dnsmasq1.patch b/sources/dnsmasq1.patch
new file mode 100644
index 000000000..0635ed30d
--- /dev/null
+++ b/sources/dnsmasq1.patch
@@ -0,0 +1,12 @@
+--- dnsmasq-1.18/config.h.dist 2004-03-01 22:25:12.000000000 -0600
++++ dnsmasq-1.18/config.h 2004-03-01 22:26:50.000000000 -0600
+@@ -126,7 +126,9 @@
+
+ /* Must preceed __linux__ since uClinux defines __linux__ too. */
+ #if defined(__uClinux__) || defined(__UCLIBC__)
++#ifndef __UCLIBC_HAS_IPV6__
+ #undef HAVE_LINUX_IPV6_PROC
++#endif
+ #define HAVE_GETOPT_LONG
+ #undef HAVE_ARC4RANDOM
+ #define HAVE_RANDOM