diff options
author | Oliver Graute <oliver.graute@gmail.com> | 2015-07-09 15:48:36 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-07-16 12:39:24 +0200 |
commit | 4dffbef91937a53eb1e0aa0d5a16fc1183bee93a (patch) | |
tree | 6dcaec0ac8b4449015e8171929fd32870711c592 /rules | |
parent | 85a8f74b1d661e8b7ddb65e163810d17d437312e (diff) | |
download | ptxdist-4dffbef91937a53eb1e0aa0d5a16fc1183bee93a.tar.gz ptxdist-4dffbef91937a53eb1e0aa0d5a16fc1183bee93a.tar.xz |
dhcp-helper: this patch adds dhcp-helper to ptxdist
This patch adds dhcp-helper a DHCP and BOOTP relay agent to ptxdist
Signed-off-by: Oliver Graute <oliver.graute@neuhaus.de>
[mol: use '-' in install_copy]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/dhcp-helper.in | 12 | ||||
-rw-r--r-- | rules/dhcp-helper.make | 60 |
2 files changed, 72 insertions, 0 deletions
diff --git a/rules/dhcp-helper.in b/rules/dhcp-helper.in new file mode 100644 index 000000000..5133adb34 --- /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 000000000..d38c63eb8 --- /dev/null +++ b/rules/dhcp-helper.make @@ -0,0 +1,60 @@ +# -*-makefile-*- +# +# Copyright (C) 2015 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany, Oliver Graute <oliver.graute@neuhaus.de> +# +# 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 +# ---------------------------------------------------------------------------- + +DHCP_HELPER_CONF_TOOL := NO +DHCP_HELPER_MAKE_OPT := \ + $(CROSS_ENV_CC) \ + PREFIX=/usr + +DHCP_HELPER_INSTALL_OPT := \ + $(DHCP_HELPER_MAKE_OPT) \ + install + +# ---------------------------------------------------------------------------- +# 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,"<oliver.graute@neuhaus.de>") + @$(call install_fixup, dhcp-helper,DESCRIPTION,missing) + + @$(call install_copy, dhcp-helper, 0, 0, 0755, -, /usr/sbin/dhcp-helper) + + @$(call install_finish, dhcp-helper) + + @$(call touch) + +# vim: syntax=make |