From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YdJeO-0002Vt-T8 for ptxdist@pengutronix.de; Wed, 01 Apr 2015 16:29:49 +0200 Received: by wgra20 with SMTP id a20so55418742wgr.3 for ; Wed, 01 Apr 2015 07:29:43 -0700 (PDT) From: Oliver Graute Date: Wed, 1 Apr 2015 16:29:39 +0200 Message-Id: <1427898579-5725-1-git-send-email-oliver.graute@neuhaus.de> Subject: [ptxdist] [PATCHv3 1/1] dhcp-helper: this patch adds dhcp-helper to ptxdist Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Oliver Graute This patch adds dhcp-helper a DHCP and BOOTP relay agent to ptxdist Signed-off-by: Oliver Graute --- rules/dhcp-helper.in | 12 ++++++++ rules/dhcp-helper.make | 74 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 rules/dhcp-helper.in create mode 100644 rules/dhcp-helper.make diff --git a/rules/dhcp-helper.in b/rules/dhcp-helper.in new file mode 100644 index 0000000..b55755b --- /dev/null +++ b/rules/dhcp-helper.in @@ -0,0 +1,12 @@ +## SECTION=networking + +config DHCP_HELPER + tristate + prompt "dhcp-helper" + help + dhcp-helper is a DHCP and BOOTP relay agent. It listens for DHCP and + BOOTP broadcasts on directly connected subnets and relays them to DHCP + or BOOTP servers elsewhere. It also relays replies from the remote + servers back to partially configured hosts. Once hosts are fully + configured they can communicate directly with their servers and no + longer need the services of a relay. diff --git a/rules/dhcp-helper.make b/rules/dhcp-helper.make new file mode 100644 index 0000000..38a2eb2 --- /dev/null +++ b/rules/dhcp-helper.make @@ -0,0 +1,74 @@ +# -*-makefile-*- +# +# Copyright (C) 2015 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany, Oliver Graute +# +# 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 +# +PACKAGES-$(PTXCONF_DHCP_HELPER) += dhcp-helper + +# +# Paths and names +# +DHCP_HELPER_VERSION := 1.1 +DHCP_HELPER_MD5 := d749a53d8b488b6a15b7400185b99bb3 +DHCP_HELPER := dhcp-helper-$(DHCP_HELPER_VERSION) +DHCP_HELPER_SUFFIX := tar.gz +DHCP_HELPER_URL := http://www.thekelleys.org.uk/dhcp-helper/$(DHCP_HELPER).$(DHCP_HELPER_SUFFIX) +DHCP_HELPER_SOURCE := $(SRCDIR)/$(DHCP_HELPER).$(DHCP_HELPER_SUFFIX) +DHCP_HELPER_DIR := $(BUILDDIR)/$(DHCP_HELPER) +DHCP_HELPER_LICENSE := GPLv2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +$(STATEDIR)/dhcp-helper.prepare: + @$(call targetinfo) + @$(call clean, $(DHCP_HELPER_DIR)/config.cache) + @$(call touch) + +# +# autoconf +# +DHCP_HELPER_CONF_TOOL := NO +DHCP_HELPER_CONF_OPT := \ + CROSS_COMPILE=$(COMPILER_PREFIX) PREFIX=/usr +DHCP_HELPER_INSTALL_OPT := $(COMPILE_OPT) + + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/dhcp-helper.compile: + @$(call targetinfo) + @$(call world/compile, DHCP_HELPER) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/dhcp-helper.targetinstall: + @$(call targetinfo) + + @$(call install_init, dhcp-helper) + @$(call install_fixup, dhcp-helper,PRIORITY,optional) + @$(call install_fixup, dhcp-helper,SECTION,base) + @$(call install_fixup, dhcp-helper,AUTHOR,"") + @$(call install_fixup, dhcp-helper,DESCRIPTION,missing) + + @$(call install_copy, dhcp-helper, 0, 0, 0755, -, /usr/local/sbin/dhcp-helper) + + @$(call install_finish, dhcp-helper) + + @$(call touch) + +# vim: syntax=make -- 1.7.9.5 -- ptxdist mailing list ptxdist@pengutronix.de