diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2003-12-23 10:49:10 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2003-12-23 10:49:10 +0000 |
commit | bc6675d7445e8c5e00119f28ba403e27cf648aad (patch) | |
tree | 53ddd34bb32bb7f4098ca4a6d4d353babf837ac3 /rules/dnsmasq.make | |
parent | c0dc87ff0d6da2dcb49e933ed0b718524d7418f6 (diff) | |
download | ptxdist-bc6675d7445e8c5e00119f28ba403e27cf648aad.tar.gz ptxdist-bc6675d7445e8c5e00119f28ba403e27cf648aad.tar.xz |
Added dnsmasq support. [BSP]
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunk@943 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/dnsmasq.make')
-rw-r--r-- | rules/dnsmasq.make | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/rules/dnsmasq.make b/rules/dnsmasq.make new file mode 100644 index 000000000..1b5dfa1a3 --- /dev/null +++ b/rules/dnsmasq.make @@ -0,0 +1,128 @@ +# -*-makefile-*- +# $Id: dnsmasq.make,v 1.2 2003/12/23 10:49:10 robert Exp $ +# +# Copyright (C) 2003 by Benedikt Spranger +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +ifdef PTXCONF_DNSMASQ +PACKAGES += dnsmasq +endif + +# +# Paths and names +# +DNSMASQ_VERSION = 1.18 +DNSMASQ = dnsmasq-$(DNSMASQ_VERSION) +DNSMASQ_SUFFIX = tar.gz +DNSMASQ_URL = http://www.thekelleys.org.uk/dnsmasq/$(DNSMASQ).$(DNSMASQ_SUFFIX) +DNSMASQ_SOURCE = $(SRCDIR)/$(DNSMASQ).$(DNSMASQ_SUFFIX) +DNSMASQ_DIR = $(BUILDDIR)/$(DNSMASQ) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +dnsmasq_get: $(STATEDIR)/dnsmasq.get + +dnsmasq_get_deps = $(DNSMASQ_SOURCE) + +$(STATEDIR)/dnsmasq.get: $(dnsmasq_get_deps) + @$(call targetinfo, $@) + @$(call get_patches, $(DNSMASQ)) + touch $@ + +$(DNSMASQ_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(DNSMASQ_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +dnsmasq_extract: $(STATEDIR)/dnsmasq.extract + +dnsmasq_extract_deps = $(STATEDIR)/dnsmasq.get + +$(STATEDIR)/dnsmasq.extract: $(dnsmasq_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(DNSMASQ_DIR)) + @$(call extract, $(DNSMASQ_SOURCE)) + @$(call patchin, $(DNSMASQ)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +dnsmasq_prepare: $(STATEDIR)/dnsmasq.prepare + +# +# dependencies +# +dnsmasq_prepare_deps = \ + $(STATEDIR)/dnsmasq.extract \ + $(STATEDIR)/virtual-xchain.install + +DNSMASQ_PATH = PATH=$(CROSS_PATH) +DNSMASQ_ENV = $(CROSS_ENV) +#DNSMASQ_ENV += + +$(STATEDIR)/dnsmasq.prepare: $(dnsmasq_prepare_deps) + @$(call targetinfo, $@) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +dnsmasq_compile: $(STATEDIR)/dnsmasq.compile + +dnsmasq_compile_deps = $(STATEDIR)/dnsmasq.prepare + +$(STATEDIR)/dnsmasq.compile: $(dnsmasq_compile_deps) + @$(call targetinfo, $@) + $(DNSMASQ_PATH) $(DNSMASQ_ENV) make -C $(DNSMASQ_DIR) + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +dnsmasq_install: $(STATEDIR)/dnsmasq.install + +$(STATEDIR)/dnsmasq.install: $(STATEDIR)/dnsmasq.compile + @$(call targetinfo, $@) + $(DNSMASQ_PATH) make -C $(DNSMASQ_DIR) install + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +dnsmasq_targetinstall: $(STATEDIR)/dnsmasq.targetinstall + +dnsmasq_targetinstall_deps = $(STATEDIR)/dnsmasq.compile + +$(STATEDIR)/dnsmasq.targetinstall: $(dnsmasq_targetinstall_deps) + @$(call targetinfo, $@) + install -m 755 $(DNSMASQ_DIR)/dnsmasq $(ROOTDIR)/sbin/dnsmasq + $(CROSSSTRIP) -R .note -R .comment $(ROOTDIR)/sbin/dnsmasq + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +dnsmasq_clean: + rm -rf $(STATEDIR)/dnsmasq.* + rm -rf $(DNSMASQ_DIR) + +# vim: syntax=make |